11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
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):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
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"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
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__)
67 class IMP_NPC_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_NPC_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
72 def __init__(self, *args, **kwargs):
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_npc.delete_IMP_NPC_SwigPyIterator
78 r"""value(IMP_NPC_SwigPyIterator self) -> PyObject *"""
79 return _IMP_npc.IMP_NPC_SwigPyIterator_value(self)
82 r"""incr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
83 return _IMP_npc.IMP_NPC_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
87 return _IMP_npc.IMP_NPC_SwigPyIterator_decr(self, n)
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)
94 r"""equal(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
95 return _IMP_npc.IMP_NPC_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator"""
99 return _IMP_npc.IMP_NPC_SwigPyIterator_copy(self)
102 r"""next(IMP_NPC_SwigPyIterator self) -> PyObject *"""
103 return _IMP_npc.IMP_NPC_SwigPyIterator_next(self)
106 r"""__next__(IMP_NPC_SwigPyIterator self) -> PyObject *"""
107 return _IMP_npc.IMP_NPC_SwigPyIterator___next__(self)
110 r"""previous(IMP_NPC_SwigPyIterator self) -> PyObject *"""
111 return _IMP_npc.IMP_NPC_SwigPyIterator_previous(self)
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)
118 r"""__eq__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
119 return _IMP_npc.IMP_NPC_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
123 return _IMP_npc.IMP_NPC_SwigPyIterator___ne__(self, x)
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)
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)
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)
137 def __sub__(self, *args):
139 __sub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator
140 __sub__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_npc.IMP_NPC_SwigPyIterator___sub__(self, *args)
147 _IMP_npc.IMP_NPC_SwigPyIterator_swigregister(IMP_NPC_SwigPyIterator)
154 IMP_DEBUG = _IMP_npc.IMP_DEBUG
156 IMP_RELEASE = _IMP_npc.IMP_RELEASE
158 IMP_SILENT = _IMP_npc.IMP_SILENT
160 IMP_PROGRESS = _IMP_npc.IMP_PROGRESS
162 IMP_TERSE = _IMP_npc.IMP_TERSE
164 IMP_VERBOSE = _IMP_npc.IMP_VERBOSE
166 IMP_MEMORY = _IMP_npc.IMP_MEMORY
168 IMP_NONE = _IMP_npc.IMP_NONE
170 IMP_USAGE = _IMP_npc.IMP_USAGE
172 IMP_INTERNAL = _IMP_npc.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_npc.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_npc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_npc.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_npc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_npc.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_npc.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_npc.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_npc.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_npc.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
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)
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]
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()
223 class _ostream(object):
224 r"""Proxy of C++ std::ostream class."""
226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
228 def __init__(self, *args, **kwargs):
229 raise AttributeError(
"No constructor defined")
230 __repr__ = _swig_repr
232 def write(self, osa_buf):
233 r"""write(_ostream self, char const * osa_buf)"""
234 return _IMP_npc._ostream_write(self, osa_buf)
237 _IMP_npc._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_npc.IMP_C_OPEN_BINARY
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_npc.IMP_CGAL_HAS_BOOST_RANDOM
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_SYSTEM
249 IMP_CGAL_HAS_NUMPY = _IMP_npc.IMP_CGAL_HAS_NUMPY
251 IMPCGAL_SHOW_WARNINGS = _IMP_npc.IMPCGAL_SHOW_WARNINGS
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_IMP_CGAL
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_RANDOM
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_npc.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_npc.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_npc.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_npc.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_SYSTEM
283 IMP_DISPLAY_HAS_CGAL = _IMP_npc.IMP_DISPLAY_HAS_CGAL
285 IMP_DISPLAY_HAS_NUMPY = _IMP_npc.IMP_DISPLAY_HAS_NUMPY
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_npc.IMPDISPLAY_SHOW_WARNINGS
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_CGAL
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_HDF5
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_NUMPY
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_npc.IMPSCOREFUNCTOR_SHOW_WARNINGS
309 IMP_CORE_HAS_IMP_CGAL = _IMP_npc.IMP_CORE_HAS_IMP_CGAL
311 IMP_CORE_HAS_IMP_KERNEL = _IMP_npc.IMP_CORE_HAS_IMP_KERNEL
313 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_FILESYSTEM
315 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
317 IMP_CORE_HAS_BOOST_RANDOM = _IMP_npc.IMP_CORE_HAS_BOOST_RANDOM
319 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_SYSTEM
321 IMP_CORE_HAS_CGAL = _IMP_npc.IMP_CORE_HAS_CGAL
323 IMP_CORE_HAS_HDF5 = _IMP_npc.IMP_CORE_HAS_HDF5
325 IMP_CORE_HAS_NUMPY = _IMP_npc.IMP_CORE_HAS_NUMPY
327 IMPCORE_SHOW_WARNINGS = _IMP_npc.IMPCORE_SHOW_WARNINGS
330 IMP_NPC_HAS_IMP_ALGEBRA = _IMP_npc.IMP_NPC_HAS_IMP_ALGEBRA
332 IMP_NPC_HAS_IMP_CGAL = _IMP_npc.IMP_NPC_HAS_IMP_CGAL
334 IMP_NPC_HAS_IMP_DISPLAY = _IMP_npc.IMP_NPC_HAS_IMP_DISPLAY
336 IMP_NPC_HAS_IMP_KERNEL = _IMP_npc.IMP_NPC_HAS_IMP_KERNEL
338 IMP_NPC_HAS_IMP_SCORE_FUNCTOR = _IMP_npc.IMP_NPC_HAS_IMP_SCORE_FUNCTOR
340 IMP_NPC_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_FILESYSTEM
342 IMP_NPC_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_NPC_HAS_BOOST_PROGRAMOPTIONS
344 IMP_NPC_HAS_BOOST_RANDOM = _IMP_npc.IMP_NPC_HAS_BOOST_RANDOM
346 IMP_NPC_HAS_BOOST_SYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_SYSTEM
348 IMP_NPC_HAS_CGAL = _IMP_npc.IMP_NPC_HAS_CGAL
350 IMP_NPC_HAS_HDF5 = _IMP_npc.IMP_NPC_HAS_HDF5
352 IMP_NPC_HAS_NUMPY = _IMP_npc.IMP_NPC_HAS_NUMPY
354 IMP_NPC_HAS_PYTHON_IHM = _IMP_npc.IMP_NPC_HAS_PYTHON_IHM
356 IMPNPC_SHOW_WARNINGS = _IMP_npc.IMPNPC_SHOW_WARNINGS
359 _object_types.append(
"ZAxialPositionLowerRestraint")
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)
366 _object_types.append(
"ZAxialPositionUpperRestraint")
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)
373 _object_types.append(
"XYRadialPositionLowerRestraint")
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)
380 _object_types.append(
"XYRadialPositionUpperRestraint")
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)
387 _object_types.append(
"ProteinContactRestraint")
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)
394 _object_types.append(
"ProteinChainRestraint")
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)
401 _object_types.append(
"MembraneSurfaceLocationRestraint")
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)
408 _object_types.append(
"PoreSideVolumeLocationRestraint")
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)
415 _object_types.append(
"PerinuclearVolumeLocationRestraint")
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)
422 _object_types.append(
"AssemblySymmetryByDistanceRestraint")
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)
429 _object_types.append(
"AssemblySymmetryByDihedralRestraint")
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)
436 _object_types.append(
"ProteinProximityRestraint")
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)
443 _object_types.append(
"CompositeRestraint")
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)
450 _object_types.append(
"MinimumSphereDistancePairScore")
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)
457 _object_types.append(
"MembraneExclusionRestraint")
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)
464 _object_types.append(
"MembraneSurfaceLocationConditionalRestraint")
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)
471 _object_types.append(
"XYRadialPositionRestraint")
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)
478 _object_types.append(
"YAxialPositionLowerRestraint")
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)
485 _object_types.append(
"YAxialPositionRestraint")
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)
492 _object_types.append(
"YAxialPositionUpperRestraint")
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)
499 _object_types.append(
"ZAxialPositionRestraint")
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)
506 _object_types.append(
"XAxialPositionLowerRestraint")
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)
513 _object_types.append(
"XAxialPositionRestraint")
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)
520 _object_types.append(
"XAxialPositionUpperRestraint")
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)
527 _object_types.append(
"OverallPositionRestraint")
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)
534 def SlabWithSphericalIndents(l=[]):
535 return [SlabWithSphericalIndent(x)
for x
in l]
536 _plural_types.append(
"SlabWithSphericalIndents")
539 _value_types.append(
"SlabWithSphericalIndent")
542 _object_types.append(
"SlabWithSphericalIndentMBMScore")
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)
549 _object_types.append(
"SlabWithSphericalIndentGeometry")
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)
556 _object_types.append(
"SphericalIndentSurfaceDepthPairScore")
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)
563 _object_types.append(
"SlabWithToroidalPoreMBMScore")
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)
570 _object_types.append(
"SlabWithToroidalPoreGoPairScore")
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)
577 _object_types.append(
"ToroidalPoreSurfaceDepthPairScore")
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)
584 def SlabWithPores(l=[]):
585 return [SlabWithPore(x)
for x
in l]
586 _plural_types.append(
"SlabWithPores")
589 _value_types.append(
"SlabWithPore")
592 def SlabWithToroidalPores(l=[]):
593 return [SlabWithToroidalPore(x)
for x
in l]
594 _plural_types.append(
"SlabWithToroidalPores")
597 _value_types.append(
"SlabWithToroidalPore")
600 _object_types.append(
"SlabWithToroidalPoreWireGeometry")
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)
607 r"""Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
609 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
611 def __init__(self, *args):
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
617 _IMP_npc.ZAxialPositionRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionRestraint(*args))
620 r"""add_particle(ZAxialPositionRestraint self, Particle p)"""
621 return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
624 r"""add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
625 return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
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)
631 def do_get_inputs(self):
632 r"""do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
633 return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
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
641 r"""__str__(ZAxialPositionRestraint self) -> std::string"""
642 return _IMP_npc.ZAxialPositionRestraint___str__(self)
645 r"""__repr__(ZAxialPositionRestraint self) -> std::string"""
646 return _IMP_npc.ZAxialPositionRestraint___repr__(self)
650 return _object_cast_to_ZAxialPositionRestraint(o)
653 def _get_as_binary(self):
654 r"""_get_as_binary(ZAxialPositionRestraint self) -> PyObject *"""
655 return _IMP_npc.ZAxialPositionRestraint__get_as_binary(self)
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)
661 def __getstate__(self):
662 p = self._get_as_binary()
663 if len(self.__dict__) > 1:
664 d = self.__dict__.copy()
669 def __setstate__(self, p):
670 if not hasattr(self,
'this'):
672 if isinstance(p, tuple):
674 self.__dict__.update(d)
675 return self._set_from_binary(p)
679 _IMP_npc.ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
681 r"""Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
683 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
685 def __init__(self, *args):
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
691 _IMP_npc.ZAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionLowerRestraint(*args))
694 r"""add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
695 return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
698 r"""add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
699 return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
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)
705 def do_get_inputs(self):
706 r"""do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
707 return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
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
715 r"""__str__(ZAxialPositionLowerRestraint self) -> std::string"""
716 return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
719 r"""__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
720 return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
724 return _object_cast_to_ZAxialPositionLowerRestraint(o)
727 def _get_as_binary(self):
728 r"""_get_as_binary(ZAxialPositionLowerRestraint self) -> PyObject *"""
729 return _IMP_npc.ZAxialPositionLowerRestraint__get_as_binary(self)
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)
735 def __getstate__(self):
736 p = self._get_as_binary()
737 if len(self.__dict__) > 1:
738 d = self.__dict__.copy()
743 def __setstate__(self, p):
744 if not hasattr(self,
'this'):
746 if isinstance(p, tuple):
748 self.__dict__.update(d)
749 return self._set_from_binary(p)
753 _IMP_npc.ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
755 r"""Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
757 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
759 def __init__(self, *args):
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
765 _IMP_npc.ZAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionUpperRestraint(*args))
768 r"""add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
769 return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
772 r"""add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
773 return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
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)
779 def do_get_inputs(self):
780 r"""do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
781 return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
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
789 r"""__str__(ZAxialPositionUpperRestraint self) -> std::string"""
790 return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
793 r"""__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
794 return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
798 return _object_cast_to_ZAxialPositionUpperRestraint(o)
801 def _get_as_binary(self):
802 r"""_get_as_binary(ZAxialPositionUpperRestraint self) -> PyObject *"""
803 return _IMP_npc.ZAxialPositionUpperRestraint__get_as_binary(self)
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)
809 def __getstate__(self):
810 p = self._get_as_binary()
811 if len(self.__dict__) > 1:
812 d = self.__dict__.copy()
817 def __setstate__(self, p):
818 if not hasattr(self,
'this'):
820 if isinstance(p, tuple):
822 self.__dict__.update(d)
823 return self._set_from_binary(p)
827 _IMP_npc.ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
829 r"""Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
831 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
833 def __init__(self, *args):
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
839 _IMP_npc.YAxialPositionRestraint_swiginit(self, _IMP_npc.new_YAxialPositionRestraint(*args))
842 r"""add_particle(YAxialPositionRestraint self, Particle p)"""
843 return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
846 r"""add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
847 return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
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)
853 def do_get_inputs(self):
854 r"""do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
855 return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
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
863 r"""__str__(YAxialPositionRestraint self) -> std::string"""
864 return _IMP_npc.YAxialPositionRestraint___str__(self)
867 r"""__repr__(YAxialPositionRestraint self) -> std::string"""
868 return _IMP_npc.YAxialPositionRestraint___repr__(self)
872 return _object_cast_to_YAxialPositionRestraint(o)
875 def _get_as_binary(self):
876 r"""_get_as_binary(YAxialPositionRestraint self) -> PyObject *"""
877 return _IMP_npc.YAxialPositionRestraint__get_as_binary(self)
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)
883 def __getstate__(self):
884 p = self._get_as_binary()
885 if len(self.__dict__) > 1:
886 d = self.__dict__.copy()
891 def __setstate__(self, p):
892 if not hasattr(self,
'this'):
894 if isinstance(p, tuple):
896 self.__dict__.update(d)
897 return self._set_from_binary(p)
901 _IMP_npc.YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
903 r"""Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
905 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
907 def __init__(self, *args):
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
913 _IMP_npc.YAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_YAxialPositionLowerRestraint(*args))
916 r"""add_particle(YAxialPositionLowerRestraint self, Particle p)"""
917 return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
920 r"""add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
921 return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
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)
927 def do_get_inputs(self):
928 r"""do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
929 return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
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
937 r"""__str__(YAxialPositionLowerRestraint self) -> std::string"""
938 return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
941 r"""__repr__(YAxialPositionLowerRestraint self) -> std::string"""
942 return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
946 return _object_cast_to_YAxialPositionLowerRestraint(o)
949 def _get_as_binary(self):
950 r"""_get_as_binary(YAxialPositionLowerRestraint self) -> PyObject *"""
951 return _IMP_npc.YAxialPositionLowerRestraint__get_as_binary(self)
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)
957 def __getstate__(self):
958 p = self._get_as_binary()
959 if len(self.__dict__) > 1:
960 d = self.__dict__.copy()
965 def __setstate__(self, p):
966 if not hasattr(self,
'this'):
968 if isinstance(p, tuple):
970 self.__dict__.update(d)
971 return self._set_from_binary(p)
975 _IMP_npc.YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
977 r"""Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
979 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
981 def __init__(self, *args):
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
987 _IMP_npc.YAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_YAxialPositionUpperRestraint(*args))
990 r"""add_particle(YAxialPositionUpperRestraint self, Particle p)"""
991 return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
994 r"""add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
995 return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
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)
1001 def do_get_inputs(self):
1002 r"""do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1003 return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
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
1011 r"""__str__(YAxialPositionUpperRestraint self) -> std::string"""
1012 return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
1015 r"""__repr__(YAxialPositionUpperRestraint self) -> std::string"""
1016 return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
1020 return _object_cast_to_YAxialPositionUpperRestraint(o)
1023 def _get_as_binary(self):
1024 r"""_get_as_binary(YAxialPositionUpperRestraint self) -> PyObject *"""
1025 return _IMP_npc.YAxialPositionUpperRestraint__get_as_binary(self)
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)
1031 def __getstate__(self):
1032 p = self._get_as_binary()
1033 if len(self.__dict__) > 1:
1034 d = self.__dict__.copy()
1039 def __setstate__(self, p):
1040 if not hasattr(self,
'this'):
1042 if isinstance(p, tuple):
1044 self.__dict__.update(d)
1045 return self._set_from_binary(p)
1049 _IMP_npc.YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
1051 r"""Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
1053 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1055 def __init__(self, *args):
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
1061 _IMP_npc.XYRadialPositionRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionRestraint(*args))
1064 r"""add_particle(XYRadialPositionRestraint self, Particle p)"""
1065 return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
1068 r"""add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
1069 return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
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)
1075 def do_get_inputs(self):
1076 r"""do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
1077 return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
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
1085 r"""__str__(XYRadialPositionRestraint self) -> std::string"""
1086 return _IMP_npc.XYRadialPositionRestraint___str__(self)
1089 r"""__repr__(XYRadialPositionRestraint self) -> std::string"""
1090 return _IMP_npc.XYRadialPositionRestraint___repr__(self)
1094 return _object_cast_to_XYRadialPositionRestraint(o)
1097 def _get_as_binary(self):
1098 r"""_get_as_binary(XYRadialPositionRestraint self) -> PyObject *"""
1099 return _IMP_npc.XYRadialPositionRestraint__get_as_binary(self)
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)
1105 def __getstate__(self):
1106 p = self._get_as_binary()
1107 if len(self.__dict__) > 1:
1108 d = self.__dict__.copy()
1113 def __setstate__(self, p):
1114 if not hasattr(self,
'this'):
1116 if isinstance(p, tuple):
1118 self.__dict__.update(d)
1119 return self._set_from_binary(p)
1123 _IMP_npc.XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
1125 r"""Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
1127 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1129 def __init__(self, *args):
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
1135 _IMP_npc.XYRadialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionLowerRestraint(*args))
1138 r"""add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
1139 return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
1142 r"""add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1143 return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
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)
1149 def do_get_inputs(self):
1150 r"""do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
1151 return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
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
1159 r"""__str__(XYRadialPositionLowerRestraint self) -> std::string"""
1160 return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
1163 r"""__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
1164 return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
1168 return _object_cast_to_XYRadialPositionLowerRestraint(o)
1171 def _get_as_binary(self):
1172 r"""_get_as_binary(XYRadialPositionLowerRestraint self) -> PyObject *"""
1173 return _IMP_npc.XYRadialPositionLowerRestraint__get_as_binary(self)
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)
1179 def __getstate__(self):
1180 p = self._get_as_binary()
1181 if len(self.__dict__) > 1:
1182 d = self.__dict__.copy()
1187 def __setstate__(self, p):
1188 if not hasattr(self,
'this'):
1190 if isinstance(p, tuple):
1192 self.__dict__.update(d)
1193 return self._set_from_binary(p)
1197 _IMP_npc.XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
1199 r"""Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
1201 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1203 def __init__(self, *args):
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
1209 _IMP_npc.XYRadialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionUpperRestraint(*args))
1212 r"""add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
1213 return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
1216 r"""add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1217 return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
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)
1223 def do_get_inputs(self):
1224 r"""do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1225 return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
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
1233 r"""__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1234 return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1237 r"""__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1238 return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1242 return _object_cast_to_XYRadialPositionUpperRestraint(o)
1245 def _get_as_binary(self):
1246 r"""_get_as_binary(XYRadialPositionUpperRestraint self) -> PyObject *"""
1247 return _IMP_npc.XYRadialPositionUpperRestraint__get_as_binary(self)
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)
1253 def __getstate__(self):
1254 p = self._get_as_binary()
1255 if len(self.__dict__) > 1:
1256 d = self.__dict__.copy()
1261 def __setstate__(self, p):
1262 if not hasattr(self,
'this'):
1264 if isinstance(p, tuple):
1266 self.__dict__.update(d)
1267 return self._set_from_binary(p)
1271 _IMP_npc.XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1273 r"""Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1275 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1277 def __init__(self, *args):
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
1283 _IMP_npc.ProteinContactRestraint_swiginit(self, _IMP_npc.new_ProteinContactRestraint(*args))
1286 r"""add_particle(ProteinContactRestraint self, Particle p)"""
1287 return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1290 r"""add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1291 return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
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)
1297 def do_get_inputs(self):
1298 r"""do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1299 return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
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
1307 r"""__str__(ProteinContactRestraint self) -> std::string"""
1308 return _IMP_npc.ProteinContactRestraint___str__(self)
1311 r"""__repr__(ProteinContactRestraint self) -> std::string"""
1312 return _IMP_npc.ProteinContactRestraint___repr__(self)
1316 return _object_cast_to_ProteinContactRestraint(o)
1319 def _get_as_binary(self):
1320 r"""_get_as_binary(ProteinContactRestraint self) -> PyObject *"""
1321 return _IMP_npc.ProteinContactRestraint__get_as_binary(self)
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)
1327 def __getstate__(self):
1328 p = self._get_as_binary()
1329 if len(self.__dict__) > 1:
1330 d = self.__dict__.copy()
1335 def __setstate__(self, p):
1336 if not hasattr(self,
'this'):
1338 if isinstance(p, tuple):
1340 self.__dict__.update(d)
1341 return self._set_from_binary(p)
1345 _IMP_npc.ProteinContactRestraint_swigregister(ProteinContactRestraint)
1347 r"""Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1349 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1351 def __init__(self, *args):
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
1357 _IMP_npc.ProteinChainRestraint_swiginit(self, _IMP_npc.new_ProteinChainRestraint(*args))
1360 r"""add_particle(ProteinChainRestraint self, Particle p)"""
1361 return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1364 r"""add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1365 return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
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)
1371 def do_get_inputs(self):
1372 r"""do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1373 return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
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
1381 r"""__str__(ProteinChainRestraint self) -> std::string"""
1382 return _IMP_npc.ProteinChainRestraint___str__(self)
1385 r"""__repr__(ProteinChainRestraint self) -> std::string"""
1386 return _IMP_npc.ProteinChainRestraint___repr__(self)
1390 return _object_cast_to_ProteinChainRestraint(o)
1393 def _get_as_binary(self):
1394 r"""_get_as_binary(ProteinChainRestraint self) -> PyObject *"""
1395 return _IMP_npc.ProteinChainRestraint__get_as_binary(self)
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)
1401 def __getstate__(self):
1402 p = self._get_as_binary()
1403 if len(self.__dict__) > 1:
1404 d = self.__dict__.copy()
1409 def __setstate__(self, p):
1410 if not hasattr(self,
'this'):
1412 if isinstance(p, tuple):
1414 self.__dict__.update(d)
1415 return self._set_from_binary(p)
1419 _IMP_npc.ProteinChainRestraint_swigregister(ProteinChainRestraint)
1421 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1423 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1425 def __init__(self, *args):
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
1431 _IMP_npc.MembraneSurfaceLocationRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationRestraint(*args))
1434 r"""add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1435 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1438 r"""add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1439 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
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)
1445 def do_get_inputs(self):
1446 r"""do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1447 return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
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
1455 r"""__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1456 return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1459 r"""__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1460 return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1464 return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1467 def _get_as_binary(self):
1468 r"""_get_as_binary(MembraneSurfaceLocationRestraint self) -> PyObject *"""
1469 return _IMP_npc.MembraneSurfaceLocationRestraint__get_as_binary(self)
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)
1475 def __getstate__(self):
1476 p = self._get_as_binary()
1477 if len(self.__dict__) > 1:
1478 d = self.__dict__.copy()
1483 def __setstate__(self, p):
1484 if not hasattr(self,
'this'):
1486 if isinstance(p, tuple):
1488 self.__dict__.update(d)
1489 return self._set_from_binary(p)
1493 _IMP_npc.MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1494 class MembraneSurfaceLocationConditionalRestraint(
IMP.Restraint):
1495 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1499 def __init__(self, *args):
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
1505 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args))
1507 def add_particle1(self, p):
1508 r"""add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1509 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1511 def add_particle2(self, p):
1512 r"""add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1513 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
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)
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)
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)
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)
1531 def do_get_inputs(self):
1532 r"""do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1533 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
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
1541 r"""__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1542 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1545 r"""__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1546 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1550 return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1553 def _get_as_binary(self):
1554 r"""_get_as_binary(MembraneSurfaceLocationConditionalRestraint self) -> PyObject *"""
1555 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__get_as_binary(self)
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)
1561 def __getstate__(self):
1562 p = self._get_as_binary()
1563 if len(self.__dict__) > 1:
1564 d = self.__dict__.copy()
1569 def __setstate__(self, p):
1570 if not hasattr(self,
'this'):
1572 if isinstance(p, tuple):
1574 self.__dict__.update(d)
1575 return self._set_from_binary(p)
1579 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1581 r"""Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1583 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1585 def __init__(self, *args):
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
1591 _IMP_npc.MembraneExclusionRestraint_swiginit(self, _IMP_npc.new_MembraneExclusionRestraint(*args))
1594 r"""add_particle(MembraneExclusionRestraint self, Particle p)"""
1595 return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1598 r"""add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1599 return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
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)
1605 def do_get_inputs(self):
1606 r"""do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1607 return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
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
1615 r"""__str__(MembraneExclusionRestraint self) -> std::string"""
1616 return _IMP_npc.MembraneExclusionRestraint___str__(self)
1619 r"""__repr__(MembraneExclusionRestraint self) -> std::string"""
1620 return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1624 return _object_cast_to_MembraneExclusionRestraint(o)
1627 def _get_as_binary(self):
1628 r"""_get_as_binary(MembraneExclusionRestraint self) -> PyObject *"""
1629 return _IMP_npc.MembraneExclusionRestraint__get_as_binary(self)
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)
1635 def __getstate__(self):
1636 p = self._get_as_binary()
1637 if len(self.__dict__) > 1:
1638 d = self.__dict__.copy()
1643 def __setstate__(self, p):
1644 if not hasattr(self,
'this'):
1646 if isinstance(p, tuple):
1648 self.__dict__.update(d)
1649 return self._set_from_binary(p)
1653 _IMP_npc.MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1655 r"""Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1657 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1659 def __init__(self, *args):
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
1665 _IMP_npc.PoreSideVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PoreSideVolumeLocationRestraint(*args))
1668 r"""add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1669 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1672 r"""add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1673 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
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)
1679 def do_get_inputs(self):
1680 r"""do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1681 return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
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
1689 r"""__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1690 return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1693 r"""__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1694 return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1698 return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1701 def _get_as_binary(self):
1702 r"""_get_as_binary(PoreSideVolumeLocationRestraint self) -> PyObject *"""
1703 return _IMP_npc.PoreSideVolumeLocationRestraint__get_as_binary(self)
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)
1709 def __getstate__(self):
1710 p = self._get_as_binary()
1711 if len(self.__dict__) > 1:
1712 d = self.__dict__.copy()
1717 def __setstate__(self, p):
1718 if not hasattr(self,
'this'):
1720 if isinstance(p, tuple):
1722 self.__dict__.update(d)
1723 return self._set_from_binary(p)
1727 _IMP_npc.PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1729 r"""Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1731 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1733 def __init__(self, *args):
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
1739 _IMP_npc.PerinuclearVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args))
1742 r"""add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1743 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1746 r"""add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1747 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
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)
1753 def do_get_inputs(self):
1754 r"""do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1755 return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
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
1763 r"""__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1764 return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1767 r"""__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1768 return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1772 return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1775 def _get_as_binary(self):
1776 r"""_get_as_binary(PerinuclearVolumeLocationRestraint self) -> PyObject *"""
1777 return _IMP_npc.PerinuclearVolumeLocationRestraint__get_as_binary(self)
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)
1783 def __getstate__(self):
1784 p = self._get_as_binary()
1785 if len(self.__dict__) > 1:
1786 d = self.__dict__.copy()
1791 def __setstate__(self, p):
1792 if not hasattr(self,
'this'):
1794 if isinstance(p, tuple):
1796 self.__dict__.update(d)
1797 return self._set_from_binary(p)
1801 _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1803 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1805 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1807 def __init__(self, *args):
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
1813 _IMP_npc.AssemblySymmetryByDistanceRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args))
1816 r"""add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1817 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1820 r"""add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1821 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
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)
1827 def do_get_inputs(self):
1828 r"""do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1829 return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
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
1837 r"""__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1838 return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1841 r"""__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1842 return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1846 return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1849 def _get_as_binary(self):
1850 r"""_get_as_binary(AssemblySymmetryByDistanceRestraint self) -> PyObject *"""
1851 return _IMP_npc.AssemblySymmetryByDistanceRestraint__get_as_binary(self)
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)
1857 def __getstate__(self):
1858 p = self._get_as_binary()
1859 if len(self.__dict__) > 1:
1860 d = self.__dict__.copy()
1865 def __setstate__(self, p):
1866 if not hasattr(self,
'this'):
1868 if isinstance(p, tuple):
1870 self.__dict__.update(d)
1871 return self._set_from_binary(p)
1875 _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1877 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1879 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1881 def __init__(self, *args):
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
1887 _IMP_npc.AssemblySymmetryByDihedralRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args))
1890 r"""add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1891 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1894 r"""add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1895 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
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)
1901 def do_get_inputs(self):
1902 r"""do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1903 return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
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
1911 r"""__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1912 return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1915 r"""__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1916 return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1920 return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1923 def _get_as_binary(self):
1924 r"""_get_as_binary(AssemblySymmetryByDihedralRestraint self) -> PyObject *"""
1925 return _IMP_npc.AssemblySymmetryByDihedralRestraint__get_as_binary(self)
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)
1931 def __getstate__(self):
1932 p = self._get_as_binary()
1933 if len(self.__dict__) > 1:
1934 d = self.__dict__.copy()
1939 def __setstate__(self, p):
1940 if not hasattr(self,
'this'):
1942 if isinstance(p, tuple):
1944 self.__dict__.update(d)
1945 return self._set_from_binary(p)
1949 _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1951 r"""Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1953 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1955 def __init__(self, *args):
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
1961 _IMP_npc.ProteinProximityRestraint_swiginit(self, _IMP_npc.new_ProteinProximityRestraint(*args))
1964 r"""add_particle(ProteinProximityRestraint self, Particle p)"""
1965 return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1968 r"""add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1969 return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
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)
1975 def do_get_inputs(self):
1976 r"""do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1977 return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
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
1985 r"""__str__(ProteinProximityRestraint self) -> std::string"""
1986 return _IMP_npc.ProteinProximityRestraint___str__(self)
1989 r"""__repr__(ProteinProximityRestraint self) -> std::string"""
1990 return _IMP_npc.ProteinProximityRestraint___repr__(self)
1994 return _object_cast_to_ProteinProximityRestraint(o)
1997 def _get_as_binary(self):
1998 r"""_get_as_binary(ProteinProximityRestraint self) -> PyObject *"""
1999 return _IMP_npc.ProteinProximityRestraint__get_as_binary(self)
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)
2005 def __getstate__(self):
2006 p = self._get_as_binary()
2007 if len(self.__dict__) > 1:
2008 d = self.__dict__.copy()
2013 def __setstate__(self, p):
2014 if not hasattr(self,
'this'):
2016 if isinstance(p, tuple):
2018 self.__dict__.update(d)
2019 return self._set_from_binary(p)
2023 _IMP_npc.ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
2025 r"""Proxy of C++ IMP::npc::XAxialPositionRestraint class."""
2027 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2029 def __init__(self, *args):
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
2035 _IMP_npc.XAxialPositionRestraint_swiginit(self, _IMP_npc.new_XAxialPositionRestraint(*args))
2038 r"""add_particle(XAxialPositionRestraint self, Particle p)"""
2039 return _IMP_npc.XAxialPositionRestraint_add_particle(self, p)
2042 r"""add_particles(XAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2043 return _IMP_npc.XAxialPositionRestraint_add_particles(self, ps)
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)
2049 def do_get_inputs(self):
2050 r"""do_get_inputs(XAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
2051 return _IMP_npc.XAxialPositionRestraint_do_get_inputs(self)
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
2059 r"""__str__(XAxialPositionRestraint self) -> std::string"""
2060 return _IMP_npc.XAxialPositionRestraint___str__(self)
2063 r"""__repr__(XAxialPositionRestraint self) -> std::string"""
2064 return _IMP_npc.XAxialPositionRestraint___repr__(self)
2068 return _object_cast_to_XAxialPositionRestraint(o)
2071 def _get_as_binary(self):
2072 r"""_get_as_binary(XAxialPositionRestraint self) -> PyObject *"""
2073 return _IMP_npc.XAxialPositionRestraint__get_as_binary(self)
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)
2079 def __getstate__(self):
2080 p = self._get_as_binary()
2081 if len(self.__dict__) > 1:
2082 d = self.__dict__.copy()
2087 def __setstate__(self, p):
2088 if not hasattr(self,
'this'):
2090 if isinstance(p, tuple):
2092 self.__dict__.update(d)
2093 return self._set_from_binary(p)
2097 _IMP_npc.XAxialPositionRestraint_swigregister(XAxialPositionRestraint)
2099 r"""Proxy of C++ IMP::npc::XAxialPositionLowerRestraint class."""
2101 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2103 def __init__(self, *args):
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
2109 _IMP_npc.XAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XAxialPositionLowerRestraint(*args))
2112 r"""add_particle(XAxialPositionLowerRestraint self, Particle p)"""
2113 return _IMP_npc.XAxialPositionLowerRestraint_add_particle(self, p)
2116 r"""add_particles(XAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
2117 return _IMP_npc.XAxialPositionLowerRestraint_add_particles(self, ps)
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)
2123 def do_get_inputs(self):
2124 r"""do_get_inputs(XAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
2125 return _IMP_npc.XAxialPositionLowerRestraint_do_get_inputs(self)
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
2133 r"""__str__(XAxialPositionLowerRestraint self) -> std::string"""
2134 return _IMP_npc.XAxialPositionLowerRestraint___str__(self)
2137 r"""__repr__(XAxialPositionLowerRestraint self) -> std::string"""
2138 return _IMP_npc.XAxialPositionLowerRestraint___repr__(self)
2142 return _object_cast_to_XAxialPositionLowerRestraint(o)
2145 def _get_as_binary(self):
2146 r"""_get_as_binary(XAxialPositionLowerRestraint self) -> PyObject *"""
2147 return _IMP_npc.XAxialPositionLowerRestraint__get_as_binary(self)
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)
2153 def __getstate__(self):
2154 p = self._get_as_binary()
2155 if len(self.__dict__) > 1:
2156 d = self.__dict__.copy()
2161 def __setstate__(self, p):
2162 if not hasattr(self,
'this'):
2164 if isinstance(p, tuple):
2166 self.__dict__.update(d)
2167 return self._set_from_binary(p)
2171 _IMP_npc.XAxialPositionLowerRestraint_swigregister(XAxialPositionLowerRestraint)
2173 r"""Proxy of C++ IMP::npc::XAxialPositionUpperRestraint class."""
2175 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2177 def __init__(self, *args):
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
2183 _IMP_npc.XAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XAxialPositionUpperRestraint(*args))
2186 r"""add_particle(XAxialPositionUpperRestraint self, Particle p)"""
2187 return _IMP_npc.XAxialPositionUpperRestraint_add_particle(self, p)
2190 r"""add_particles(XAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
2191 return _IMP_npc.XAxialPositionUpperRestraint_add_particles(self, ps)
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)
2197 def do_get_inputs(self):
2198 r"""do_get_inputs(XAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
2199 return _IMP_npc.XAxialPositionUpperRestraint_do_get_inputs(self)
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
2207 r"""__str__(XAxialPositionUpperRestraint self) -> std::string"""
2208 return _IMP_npc.XAxialPositionUpperRestraint___str__(self)
2211 r"""__repr__(XAxialPositionUpperRestraint self) -> std::string"""
2212 return _IMP_npc.XAxialPositionUpperRestraint___repr__(self)
2216 return _object_cast_to_XAxialPositionUpperRestraint(o)
2219 def _get_as_binary(self):
2220 r"""_get_as_binary(XAxialPositionUpperRestraint self) -> PyObject *"""
2221 return _IMP_npc.XAxialPositionUpperRestraint__get_as_binary(self)
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)
2227 def __getstate__(self):
2228 p = self._get_as_binary()
2229 if len(self.__dict__) > 1:
2230 d = self.__dict__.copy()
2235 def __setstate__(self, p):
2236 if not hasattr(self,
'this'):
2238 if isinstance(p, tuple):
2240 self.__dict__.update(d)
2241 return self._set_from_binary(p)
2245 _IMP_npc.XAxialPositionUpperRestraint_swigregister(XAxialPositionUpperRestraint)
2247 r"""Proxy of C++ IMP::npc::OverallPositionRestraint class."""
2249 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2251 def __init__(self, *args):
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
2257 _IMP_npc.OverallPositionRestraint_swiginit(self, _IMP_npc.new_OverallPositionRestraint(*args))
2260 r"""add_particle(OverallPositionRestraint self, Particle p)"""
2261 return _IMP_npc.OverallPositionRestraint_add_particle(self, p)
2264 r"""add_particles(OverallPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2265 return _IMP_npc.OverallPositionRestraint_add_particles(self, ps)
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)
2271 def do_get_inputs(self):
2272 r"""do_get_inputs(OverallPositionRestraint self) -> IMP::ModelObjectsTemp"""
2273 return _IMP_npc.OverallPositionRestraint_do_get_inputs(self)
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
2281 r"""__str__(OverallPositionRestraint self) -> std::string"""
2282 return _IMP_npc.OverallPositionRestraint___str__(self)
2285 r"""__repr__(OverallPositionRestraint self) -> std::string"""
2286 return _IMP_npc.OverallPositionRestraint___repr__(self)
2290 return _object_cast_to_OverallPositionRestraint(o)
2293 def _get_as_binary(self):
2294 r"""_get_as_binary(OverallPositionRestraint self) -> PyObject *"""
2295 return _IMP_npc.OverallPositionRestraint__get_as_binary(self)
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)
2301 def __getstate__(self):
2302 p = self._get_as_binary()
2303 if len(self.__dict__) > 1:
2304 d = self.__dict__.copy()
2309 def __setstate__(self, p):
2310 if not hasattr(self,
'this'):
2312 if isinstance(p, tuple):
2314 self.__dict__.update(d)
2315 return self._set_from_binary(p)
2319 _IMP_npc.OverallPositionRestraint_swigregister(OverallPositionRestraint)
2321 r"""Proxy of C++ IMP::npc::CompositeRestraint class."""
2323 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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))
2329 def add_type(self, ps):
2330 r"""add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
2331 return _IMP_npc.CompositeRestraint_add_type(self, ps)
2333 def get_connected_pairs(self):
2334 r"""get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
2335 return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
2337 def do_get_inputs(self):
2338 r"""do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
2339 return _IMP_npc.CompositeRestraint_do_get_inputs(self)
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
2347 r"""__str__(CompositeRestraint self) -> std::string"""
2348 return _IMP_npc.CompositeRestraint___str__(self)
2351 r"""__repr__(CompositeRestraint self) -> std::string"""
2352 return _IMP_npc.CompositeRestraint___repr__(self)
2356 return _object_cast_to_CompositeRestraint(o)
2360 _IMP_npc.CompositeRestraint_swigregister(CompositeRestraint)
2362 r"""Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
2364 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2366 def __init__(self, *args):
2368 __init__(MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore
2369 __init__(MinimumSphereDistancePairScore self) -> MinimumSphereDistancePairScore
2371 _IMP_npc.MinimumSphereDistancePairScore_swiginit(self, _IMP_npc.new_MinimumSphereDistancePairScore(*args))
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)
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
2383 r"""__str__(MinimumSphereDistancePairScore self) -> std::string"""
2384 return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
2387 r"""__repr__(MinimumSphereDistancePairScore self) -> std::string"""
2388 return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
2392 return _object_cast_to_MinimumSphereDistancePairScore(o)
2395 def _get_as_binary(self):
2396 r"""_get_as_binary(MinimumSphereDistancePairScore self) -> PyObject *"""
2397 return _IMP_npc.MinimumSphereDistancePairScore__get_as_binary(self)
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)
2403 def __getstate__(self):
2404 p = self._get_as_binary()
2405 if len(self.__dict__) > 1:
2406 d = self.__dict__.copy()
2411 def __setstate__(self, p):
2412 if not hasattr(self,
'this'):
2414 if isinstance(p, tuple):
2416 self.__dict__.update(d)
2417 return self._set_from_binary(p)
2421 _IMP_npc.MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
2423 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndent class."""
2425 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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)
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)
2435 def get_sphere_radius(self):
2436 r"""get_sphere_radius(SlabWithSphericalIndent self) -> IMP::Float"""
2437 return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius(self)
2439 def get_sphere_depth(self):
2440 r"""get_sphere_depth(SlabWithSphericalIndent self) -> IMP::Float"""
2441 return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth(self)
2444 def get_sphere_radius_key():
2445 r"""get_sphere_radius_key() -> FloatKey"""
2446 return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius_key()
2449 def get_sphere_depth_key():
2450 r"""get_sphere_depth_key() -> FloatKey"""
2451 return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth_key()
2453 def get_decorator_name(self):
2454 r"""get_decorator_name(SlabWithSphericalIndent self) -> std::string"""
2455 return _IMP_npc.SlabWithSphericalIndent_get_decorator_name(self)
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)
2461 def __init__(self, *args):
2463 __init__(SlabWithSphericalIndent self) -> SlabWithSphericalIndent
2464 __init__(SlabWithSphericalIndent self, Model m, ParticleIndex id) -> SlabWithSphericalIndent
2465 __init__(SlabWithSphericalIndent self, _ParticleAdaptor d) -> SlabWithSphericalIndent
2467 _IMP_npc.SlabWithSphericalIndent_swiginit(self, _IMP_npc.new_SlabWithSphericalIndent(*args))
2470 def get_is_setup(*args):
2472 get_is_setup(Model m, ParticleIndex pi) -> bool
2473 get_is_setup(_ParticleAdaptor p) -> bool
2475 return _IMP_npc.SlabWithSphericalIndent_get_is_setup(*args)
2477 def show(self, *args):
2478 r"""show(SlabWithSphericalIndent self, _ostream out=std::cout)"""
2479 return _IMP_npc.SlabWithSphericalIndent_show(self, *args)
2482 def setup_particle(*args):
2484 setup_particle(Model m, ParticleIndex pi, double R, double h) -> SlabWithSphericalIndent
2485 setup_particle(_ParticleAdaptor pa, double R, double h) -> SlabWithSphericalIndent
2487 return _IMP_npc.SlabWithSphericalIndent_setup_particle(*args)
2489 def add_attribute(self, *args):
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)
2504 return _IMP_npc.SlabWithSphericalIndent_add_attribute(self, *args)
2506 def get_value(self, *args):
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
2520 return _IMP_npc.SlabWithSphericalIndent_get_value(self, *args)
2522 def set_value(self, *args):
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)
2536 return _IMP_npc.SlabWithSphericalIndent_set_value(self, *args)
2538 def remove_attribute(self, *args):
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)
2552 return _IMP_npc.SlabWithSphericalIndent_remove_attribute(self, *args)
2554 def has_attribute(self, *args):
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
2568 return _IMP_npc.SlabWithSphericalIndent_has_attribute(self, *args)
2570 def get_derivative(self, a0):
2571 r"""get_derivative(SlabWithSphericalIndent self, FloatKey a0) -> double"""
2572 return _IMP_npc.SlabWithSphericalIndent_get_derivative(self, a0)
2575 r"""get_name(SlabWithSphericalIndent self) -> std::string"""
2576 return _IMP_npc.SlabWithSphericalIndent_get_name(self)
2578 def clear_caches(self):
2579 r"""clear_caches(SlabWithSphericalIndent self)"""
2580 return _IMP_npc.SlabWithSphericalIndent_clear_caches(self)
2582 def set_name(self, a0):
2583 r"""set_name(SlabWithSphericalIndent self, std::string a0)"""
2584 return _IMP_npc.SlabWithSphericalIndent_set_name(self, a0)
2587 r"""set_check_level(SlabWithSphericalIndent self, IMP::CheckLevel a0)"""
2588 return _IMP_npc.SlabWithSphericalIndent_set_check_level(self, a0)
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)
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)
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)
2603 r"""get_check_level(SlabWithSphericalIndent self) -> IMP::CheckLevel"""
2604 return _IMP_npc.SlabWithSphericalIndent_get_check_level(self)
2606 def __eq__(self, *args):
2608 __eq__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2609 __eq__(SlabWithSphericalIndent self, Particle d) -> bool
2611 return _IMP_npc.SlabWithSphericalIndent___eq__(self, *args)
2613 def __ne__(self, *args):
2615 __ne__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2616 __ne__(SlabWithSphericalIndent self, Particle d) -> bool
2618 return _IMP_npc.SlabWithSphericalIndent___ne__(self, *args)
2620 def __le__(self, *args):
2622 __le__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2623 __le__(SlabWithSphericalIndent self, Particle d) -> bool
2625 return _IMP_npc.SlabWithSphericalIndent___le__(self, *args)
2627 def __lt__(self, *args):
2629 __lt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2630 __lt__(SlabWithSphericalIndent self, Particle d) -> bool
2632 return _IMP_npc.SlabWithSphericalIndent___lt__(self, *args)
2634 def __ge__(self, *args):
2636 __ge__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2637 __ge__(SlabWithSphericalIndent self, Particle d) -> bool
2639 return _IMP_npc.SlabWithSphericalIndent___ge__(self, *args)
2641 def __gt__(self, *args):
2643 __gt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2644 __gt__(SlabWithSphericalIndent self, Particle d) -> bool
2646 return _IMP_npc.SlabWithSphericalIndent___gt__(self, *args)
2649 r"""__hash__(SlabWithSphericalIndent self) -> std::size_t"""
2650 return _IMP_npc.SlabWithSphericalIndent___hash__(self)
2653 r"""__str__(SlabWithSphericalIndent self) -> std::string"""
2654 return _IMP_npc.SlabWithSphericalIndent___str__(self)
2657 r"""__repr__(SlabWithSphericalIndent self) -> std::string"""
2658 return _IMP_npc.SlabWithSphericalIndent___repr__(self)
2660 def _get_as_binary(self):
2661 r"""_get_as_binary(SlabWithSphericalIndent self) -> PyObject *"""
2662 return _IMP_npc.SlabWithSphericalIndent__get_as_binary(self)
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)
2668 def __getstate__(self):
2669 p = self._get_as_binary()
2670 if len(self.__dict__) > 1:
2671 d = self.__dict__.copy()
2676 def __setstate__(self, p):
2677 if not hasattr(self,
'this'):
2679 if isinstance(p, tuple):
2681 self.__dict__.update(d)
2682 return self._set_from_binary(p)
2684 __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndent
2687 _IMP_npc.SlabWithSphericalIndent_swigregister(SlabWithSphericalIndent)
2689 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentMBMScore class."""
2691 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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))
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)
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
2707 r"""__str__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2708 return _IMP_npc.SlabWithSphericalIndentMBMScore___str__(self)
2711 r"""__repr__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2712 return _IMP_npc.SlabWithSphericalIndentMBMScore___repr__(self)
2716 return _object_cast_to_SlabWithSphericalIndentMBMScore(o)
2720 _IMP_npc.SlabWithSphericalIndentMBMScore_swigregister(SlabWithSphericalIndentMBMScore)
2722 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentGeometry class."""
2724 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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))
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
2736 r"""__str__(SlabWithSphericalIndentGeometry self) -> std::string"""
2737 return _IMP_npc.SlabWithSphericalIndentGeometry___str__(self)
2740 r"""__repr__(SlabWithSphericalIndentGeometry self) -> std::string"""
2741 return _IMP_npc.SlabWithSphericalIndentGeometry___repr__(self)
2745 return _object_cast_to_SlabWithSphericalIndentGeometry(o)
2749 _IMP_npc.SlabWithSphericalIndentGeometry_swigregister(SlabWithSphericalIndentGeometry)
2751 r"""Proxy of C++ IMP::npc::SphericalIndentSurfaceDepthPairScore class."""
2753 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2755 def __init__(self, k):
2756 r"""__init__(SphericalIndentSurfaceDepthPairScore self, double k) -> SphericalIndentSurfaceDepthPairScore"""
2757 _IMP_npc.SphericalIndentSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_SphericalIndentSurfaceDepthPairScore(k))
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)
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
2769 r"""__str__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2770 return _IMP_npc.SphericalIndentSurfaceDepthPairScore___str__(self)
2773 r"""__repr__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2774 return _IMP_npc.SphericalIndentSurfaceDepthPairScore___repr__(self)
2778 return _object_cast_to_SphericalIndentSurfaceDepthPairScore(o)
2782 _IMP_npc.SphericalIndentSurfaceDepthPairScore_swigregister(SphericalIndentSurfaceDepthPairScore)
2784 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreMBMScore class."""
2786 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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))
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)
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
2802 r"""__str__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2803 return _IMP_npc.SlabWithToroidalPoreMBMScore___str__(self)
2806 r"""__repr__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2807 return _IMP_npc.SlabWithToroidalPoreMBMScore___repr__(self)
2811 return _object_cast_to_SlabWithToroidalPoreMBMScore(o)
2815 _IMP_npc.SlabWithToroidalPoreMBMScore_swigregister(SlabWithToroidalPoreMBMScore)
2817 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreGoPairScore class."""
2819 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
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))
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)
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
2835 r"""__str__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2836 return _IMP_npc.SlabWithToroidalPoreGoPairScore___str__(self)
2839 r"""__repr__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2840 return _IMP_npc.SlabWithToroidalPoreGoPairScore___repr__(self)
2844 return _object_cast_to_SlabWithToroidalPoreGoPairScore(o)
2848 _IMP_npc.SlabWithToroidalPoreGoPairScore_swigregister(SlabWithToroidalPoreGoPairScore)
2850 r"""Proxy of C++ IMP::npc::ToroidalPoreSurfaceDepthPairScore class."""
2852 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2854 def __init__(self, k):
2855 r"""__init__(ToroidalPoreSurfaceDepthPairScore self, double k) -> ToroidalPoreSurfaceDepthPairScore"""
2856 _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_ToroidalPoreSurfaceDepthPairScore(k))
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)
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
2868 r"""__str__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2869 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___str__(self)
2872 r"""__repr__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2873 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___repr__(self)
2877 return _object_cast_to_ToroidalPoreSurfaceDepthPairScore(o)
2881 _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swigregister(ToroidalPoreSurfaceDepthPairScore)
2883 r"""Proxy of C++ IMP::npc::SlabWithPore class."""
2885 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2887 def __init__(self, *args):
2889 __init__(SlabWithPore self) -> SlabWithPore
2890 __init__(SlabWithPore self, Model m, ParticleIndex id) -> SlabWithPore
2891 __init__(SlabWithPore self, _ParticleAdaptor d) -> SlabWithPore
2893 _IMP_npc.SlabWithPore_swiginit(self, _IMP_npc.new_SlabWithPore(*args))
2895 def show(self, *args):
2896 r"""show(SlabWithPore self, _ostream out=std::cout)"""
2897 return _IMP_npc.SlabWithPore_show(self, *args)
2900 def setup_particle(*args):
2902 setup_particle(Model m, ParticleIndex pi, double thickness, double pore_radius) -> SlabWithPore
2903 setup_particle(_ParticleAdaptor pa, double thickness, double pore_radius) -> SlabWithPore
2905 return _IMP_npc.SlabWithPore_setup_particle(*args)
2908 def get_is_setup(*args):
2910 get_is_setup(_ParticleAdaptor p) -> bool
2911 get_is_setup(Model m, ParticleIndex pi) -> bool
2913 return _IMP_npc.SlabWithPore_get_is_setup(*args)
2915 def set_thickness(self, thickness):
2916 r"""set_thickness(SlabWithPore self, double thickness)"""
2917 return _IMP_npc.SlabWithPore_set_thickness(self, thickness)
2919 def get_thickness(self):
2920 r"""get_thickness(SlabWithPore self) -> IMP::Float"""
2921 return _IMP_npc.SlabWithPore_get_thickness(self)
2923 def get_pore_radius(self):
2924 r"""get_pore_radius(SlabWithPore self) -> IMP::Float"""
2925 return _IMP_npc.SlabWithPore_get_pore_radius(self)
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)
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)
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)
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)
2944 def get_thickness_key():
2945 r"""get_thickness_key() -> FloatKey"""
2946 return _IMP_npc.SlabWithPore_get_thickness_key()
2949 def get_pore_radius_key():
2950 r"""get_pore_radius_key() -> FloatKey"""
2951 return _IMP_npc.SlabWithPore_get_pore_radius_key()
2953 def add_attribute(self, *args):
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)
2968 return _IMP_npc.SlabWithPore_add_attribute(self, *args)
2970 def get_value(self, *args):
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
2984 return _IMP_npc.SlabWithPore_get_value(self, *args)
2986 def set_value(self, *args):
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)
3000 return _IMP_npc.SlabWithPore_set_value(self, *args)
3002 def remove_attribute(self, *args):
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)
3016 return _IMP_npc.SlabWithPore_remove_attribute(self, *args)
3018 def has_attribute(self, *args):
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
3032 return _IMP_npc.SlabWithPore_has_attribute(self, *args)
3034 def get_derivative(self, a0):
3035 r"""get_derivative(SlabWithPore self, FloatKey a0) -> double"""
3036 return _IMP_npc.SlabWithPore_get_derivative(self, a0)
3039 r"""get_name(SlabWithPore self) -> std::string"""
3040 return _IMP_npc.SlabWithPore_get_name(self)
3042 def clear_caches(self):
3043 r"""clear_caches(SlabWithPore self)"""
3044 return _IMP_npc.SlabWithPore_clear_caches(self)
3046 def set_name(self, a0):
3047 r"""set_name(SlabWithPore self, std::string a0)"""
3048 return _IMP_npc.SlabWithPore_set_name(self, a0)
3051 r"""set_check_level(SlabWithPore self, IMP::CheckLevel a0)"""
3052 return _IMP_npc.SlabWithPore_set_check_level(self, a0)
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)
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)
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)
3067 r"""get_check_level(SlabWithPore self) -> IMP::CheckLevel"""
3068 return _IMP_npc.SlabWithPore_get_check_level(self)
3070 def __eq__(self, *args):
3072 __eq__(SlabWithPore self, SlabWithPore o) -> bool
3073 __eq__(SlabWithPore self, Particle d) -> bool
3075 return _IMP_npc.SlabWithPore___eq__(self, *args)
3077 def __ne__(self, *args):
3079 __ne__(SlabWithPore self, SlabWithPore o) -> bool
3080 __ne__(SlabWithPore self, Particle d) -> bool
3082 return _IMP_npc.SlabWithPore___ne__(self, *args)
3084 def __le__(self, *args):
3086 __le__(SlabWithPore self, SlabWithPore o) -> bool
3087 __le__(SlabWithPore self, Particle d) -> bool
3089 return _IMP_npc.SlabWithPore___le__(self, *args)
3091 def __lt__(self, *args):
3093 __lt__(SlabWithPore self, SlabWithPore o) -> bool
3094 __lt__(SlabWithPore self, Particle d) -> bool
3096 return _IMP_npc.SlabWithPore___lt__(self, *args)
3098 def __ge__(self, *args):
3100 __ge__(SlabWithPore self, SlabWithPore o) -> bool
3101 __ge__(SlabWithPore self, Particle d) -> bool
3103 return _IMP_npc.SlabWithPore___ge__(self, *args)
3105 def __gt__(self, *args):
3107 __gt__(SlabWithPore self, SlabWithPore o) -> bool
3108 __gt__(SlabWithPore self, Particle d) -> bool
3110 return _IMP_npc.SlabWithPore___gt__(self, *args)
3113 r"""__hash__(SlabWithPore self) -> std::size_t"""
3114 return _IMP_npc.SlabWithPore___hash__(self)
3117 r"""__str__(SlabWithPore self) -> std::string"""
3118 return _IMP_npc.SlabWithPore___str__(self)
3121 r"""__repr__(SlabWithPore self) -> std::string"""
3122 return _IMP_npc.SlabWithPore___repr__(self)
3124 def _get_as_binary(self):
3125 r"""_get_as_binary(SlabWithPore self) -> PyObject *"""
3126 return _IMP_npc.SlabWithPore__get_as_binary(self)
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)
3132 def __getstate__(self):
3133 p = self._get_as_binary()
3134 if len(self.__dict__) > 1:
3135 d = self.__dict__.copy()
3140 def __setstate__(self, p):
3141 if not hasattr(self,
'this'):
3143 if isinstance(p, tuple):
3145 self.__dict__.update(d)
3146 return self._set_from_binary(p)
3148 __swig_destroy__ = _IMP_npc.delete_SlabWithPore
3151 _IMP_npc.SlabWithPore_swigregister(SlabWithPore)
3152 class SlabWithToroidalPore(SlabWithPore):
3153 r"""Proxy of C++ IMP::npc::SlabWithToroidalPore class."""
3155 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3157 def __init__(self, *args):
3159 __init__(SlabWithToroidalPore self) -> SlabWithToroidalPore
3160 __init__(SlabWithToroidalPore self, Model m, ParticleIndex id) -> SlabWithToroidalPore
3161 __init__(SlabWithToroidalPore self, _ParticleAdaptor d) -> SlabWithToroidalPore
3163 _IMP_npc.SlabWithToroidalPore_swiginit(self, _IMP_npc.new_SlabWithToroidalPore(*args))
3165 def show(self, *args):
3166 r"""show(SlabWithToroidalPore self, _ostream out=std::cout)"""
3167 return _IMP_npc.SlabWithToroidalPore_show(self, *args)
3170 def setup_particle(*args):
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
3177 return _IMP_npc.SlabWithToroidalPore_setup_particle(*args)
3180 def get_is_setup(*args):
3182 get_is_setup(_ParticleAdaptor p) -> bool
3183 get_is_setup(Model m, ParticleIndex pi) -> bool
3185 return _IMP_npc.SlabWithToroidalPore_get_is_setup(*args)
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)
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)
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)
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)
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)
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)
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()
3217 def get_toroidal_pore_key():
3218 r"""get_toroidal_pore_key() -> IntKey"""
3219 return _IMP_npc.SlabWithToroidalPore_get_toroidal_pore_key()
3221 def add_attribute(self, *args):
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)
3236 return _IMP_npc.SlabWithToroidalPore_add_attribute(self, *args)
3238 def get_value(self, *args):
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
3252 return _IMP_npc.SlabWithToroidalPore_get_value(self, *args)
3254 def set_value(self, *args):
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)
3268 return _IMP_npc.SlabWithToroidalPore_set_value(self, *args)
3270 def remove_attribute(self, *args):
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)
3284 return _IMP_npc.SlabWithToroidalPore_remove_attribute(self, *args)
3286 def has_attribute(self, *args):
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
3300 return _IMP_npc.SlabWithToroidalPore_has_attribute(self, *args)
3302 def get_derivative(self, a0):
3303 r"""get_derivative(SlabWithToroidalPore self, FloatKey a0) -> double"""
3304 return _IMP_npc.SlabWithToroidalPore_get_derivative(self, a0)
3307 r"""get_name(SlabWithToroidalPore self) -> std::string"""
3308 return _IMP_npc.SlabWithToroidalPore_get_name(self)
3310 def clear_caches(self):
3311 r"""clear_caches(SlabWithToroidalPore self)"""
3312 return _IMP_npc.SlabWithToroidalPore_clear_caches(self)
3314 def set_name(self, a0):
3315 r"""set_name(SlabWithToroidalPore self, std::string a0)"""
3316 return _IMP_npc.SlabWithToroidalPore_set_name(self, a0)
3319 r"""set_check_level(SlabWithToroidalPore self, IMP::CheckLevel a0)"""
3320 return _IMP_npc.SlabWithToroidalPore_set_check_level(self, a0)
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)
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)
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)
3335 r"""get_check_level(SlabWithToroidalPore self) -> IMP::CheckLevel"""
3336 return _IMP_npc.SlabWithToroidalPore_get_check_level(self)
3338 def __eq__(self, *args):
3340 __eq__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3341 __eq__(SlabWithToroidalPore self, Particle d) -> bool
3343 return _IMP_npc.SlabWithToroidalPore___eq__(self, *args)
3345 def __ne__(self, *args):
3347 __ne__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3348 __ne__(SlabWithToroidalPore self, Particle d) -> bool
3350 return _IMP_npc.SlabWithToroidalPore___ne__(self, *args)
3352 def __le__(self, *args):
3354 __le__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3355 __le__(SlabWithToroidalPore self, Particle d) -> bool
3357 return _IMP_npc.SlabWithToroidalPore___le__(self, *args)
3359 def __lt__(self, *args):
3361 __lt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3362 __lt__(SlabWithToroidalPore self, Particle d) -> bool
3364 return _IMP_npc.SlabWithToroidalPore___lt__(self, *args)
3366 def __ge__(self, *args):
3368 __ge__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3369 __ge__(SlabWithToroidalPore self, Particle d) -> bool
3371 return _IMP_npc.SlabWithToroidalPore___ge__(self, *args)
3373 def __gt__(self, *args):
3375 __gt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3376 __gt__(SlabWithToroidalPore self, Particle d) -> bool
3378 return _IMP_npc.SlabWithToroidalPore___gt__(self, *args)
3381 r"""__hash__(SlabWithToroidalPore self) -> std::size_t"""
3382 return _IMP_npc.SlabWithToroidalPore___hash__(self)
3385 r"""__str__(SlabWithToroidalPore self) -> std::string"""
3386 return _IMP_npc.SlabWithToroidalPore___str__(self)
3389 r"""__repr__(SlabWithToroidalPore self) -> std::string"""
3390 return _IMP_npc.SlabWithToroidalPore___repr__(self)
3392 def _get_as_binary(self):
3393 r"""_get_as_binary(SlabWithToroidalPore self) -> PyObject *"""
3394 return _IMP_npc.SlabWithToroidalPore__get_as_binary(self)
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)
3400 def __getstate__(self):
3401 p = self._get_as_binary()
3402 if len(self.__dict__) > 1:
3403 d = self.__dict__.copy()
3408 def __setstate__(self, p):
3409 if not hasattr(self,
'this'):
3411 if isinstance(p, tuple):
3413 self.__dict__.update(d)
3414 return self._set_from_binary(p)
3416 __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPore
3419 _IMP_npc.SlabWithToroidalPore_swigregister(SlabWithToroidalPore)
3421 def __lshift__(*args):
3423 __lshift__(_ostream out, SlabWithSphericalIndent n) -> _ostream
3424 __lshift__(_ostream out, SlabWithPore n) -> _ostream
3425 __lshift__(_ostream out, SlabWithToroidalPore n) -> _ostream
3427 return _IMP_npc.__lshift__(*args)
3429 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreWireGeometry class."""
3431 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3433 def __init__(self, *args):
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
3438 _IMP_npc.SlabWithToroidalPoreWireGeometry_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreWireGeometry(*args))
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
3446 r"""__str__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3447 return _IMP_npc.SlabWithToroidalPoreWireGeometry___str__(self)
3450 r"""__repr__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3451 return _IMP_npc.SlabWithToroidalPoreWireGeometry___repr__(self)
3455 return _object_cast_to_SlabWithToroidalPoreWireGeometry(o)
3459 _IMP_npc.SlabWithToroidalPoreWireGeometry_swigregister(SlabWithToroidalPoreWireGeometry)
3462 r"""get_module_version() -> std::string const"""
3463 return _IMP_npc.get_module_version()
3466 r"""get_example_path(std::string fname) -> std::string"""
3467 return _IMP_npc.get_example_path(fname)
3470 r"""get_data_path(std::string fname) -> std::string"""
3471 return _IMP_npc.get_data_path(fname)
3473 from .
import _version_check
Abstract class for scoring object(s) of type ParticleIndexPair.
def get_module_version
Return the version of this module, as a string.
CheckLevel get_check_level()
Get the current audit mode.
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)
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.
A restraint is a term in an IMP ScoringFunction.