14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_NPC_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_NPC_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_npc.delete_IMP_NPC_SwigPyIterator
77 r"""value(IMP_NPC_SwigPyIterator self) -> PyObject *"""
78 return _IMP_npc.IMP_NPC_SwigPyIterator_value(self)
81 r"""incr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
82 return _IMP_npc.IMP_NPC_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
86 return _IMP_npc.IMP_NPC_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_npc.IMP_NPC_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
94 return _IMP_npc.IMP_NPC_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator"""
98 return _IMP_npc.IMP_NPC_SwigPyIterator_copy(self)
101 r"""next(IMP_NPC_SwigPyIterator self) -> PyObject *"""
102 return _IMP_npc.IMP_NPC_SwigPyIterator_next(self)
105 r"""__next__(IMP_NPC_SwigPyIterator self) -> PyObject *"""
106 return _IMP_npc.IMP_NPC_SwigPyIterator___next__(self)
109 r"""previous(IMP_NPC_SwigPyIterator self) -> PyObject *"""
110 return _IMP_npc.IMP_NPC_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
114 return _IMP_npc.IMP_NPC_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
118 return _IMP_npc.IMP_NPC_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
122 return _IMP_npc.IMP_NPC_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
126 return _IMP_npc.IMP_NPC_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
130 return _IMP_npc.IMP_NPC_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
134 return _IMP_npc.IMP_NPC_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator
139 __sub__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_npc.IMP_NPC_SwigPyIterator___sub__(self, *args)
146 _IMP_npc.IMP_NPC_SwigPyIterator_swigregister(IMP_NPC_SwigPyIterator)
153 IMP_DEBUG = _IMP_npc.IMP_DEBUG
155 IMP_RELEASE = _IMP_npc.IMP_RELEASE
157 IMP_SILENT = _IMP_npc.IMP_SILENT
159 IMP_PROGRESS = _IMP_npc.IMP_PROGRESS
161 IMP_TERSE = _IMP_npc.IMP_TERSE
163 IMP_VERBOSE = _IMP_npc.IMP_VERBOSE
165 IMP_MEMORY = _IMP_npc.IMP_MEMORY
167 IMP_NONE = _IMP_npc.IMP_NONE
169 IMP_USAGE = _IMP_npc.IMP_USAGE
171 IMP_INTERNAL = _IMP_npc.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_npc.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_npc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_npc.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_npc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_npc.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_npc.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_npc.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_npc.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_npc.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_npc._ostream_write(self, osa_buf)
236 _IMP_npc._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_npc.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_npc.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_npc.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_npc.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_npc.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_npc.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_npc.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_npc.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_npc.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_npc.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_npc.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_npc.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_npc.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_npc.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_npc.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_npc.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_npc.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_npc.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_npc.IMPCORE_SHOW_WARNINGS
329 IMP_NPC_HAS_IMP_ALGEBRA = _IMP_npc.IMP_NPC_HAS_IMP_ALGEBRA
331 IMP_NPC_HAS_IMP_CGAL = _IMP_npc.IMP_NPC_HAS_IMP_CGAL
333 IMP_NPC_HAS_IMP_DISPLAY = _IMP_npc.IMP_NPC_HAS_IMP_DISPLAY
335 IMP_NPC_HAS_IMP_KERNEL = _IMP_npc.IMP_NPC_HAS_IMP_KERNEL
337 IMP_NPC_HAS_IMP_SCORE_FUNCTOR = _IMP_npc.IMP_NPC_HAS_IMP_SCORE_FUNCTOR
339 IMP_NPC_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_FILESYSTEM
341 IMP_NPC_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_NPC_HAS_BOOST_PROGRAMOPTIONS
343 IMP_NPC_HAS_BOOST_RANDOM = _IMP_npc.IMP_NPC_HAS_BOOST_RANDOM
345 IMP_NPC_HAS_BOOST_SYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_SYSTEM
347 IMP_NPC_HAS_CGAL = _IMP_npc.IMP_NPC_HAS_CGAL
349 IMP_NPC_HAS_HDF5 = _IMP_npc.IMP_NPC_HAS_HDF5
351 IMP_NPC_HAS_NUMPY = _IMP_npc.IMP_NPC_HAS_NUMPY
353 IMP_NPC_HAS_PYTHON_IHM = _IMP_npc.IMP_NPC_HAS_PYTHON_IHM
355 IMPNPC_SHOW_WARNINGS = _IMP_npc.IMPNPC_SHOW_WARNINGS
358 _object_types.append(
"ZAxialPositionLowerRestraint")
361 def _object_cast_to_ZAxialPositionLowerRestraint(o):
362 r"""_object_cast_to_ZAxialPositionLowerRestraint(Object o) -> ZAxialPositionLowerRestraint"""
363 return _IMP_npc._object_cast_to_ZAxialPositionLowerRestraint(o)
365 _object_types.append(
"ZAxialPositionUpperRestraint")
368 def _object_cast_to_ZAxialPositionUpperRestraint(o):
369 r"""_object_cast_to_ZAxialPositionUpperRestraint(Object o) -> ZAxialPositionUpperRestraint"""
370 return _IMP_npc._object_cast_to_ZAxialPositionUpperRestraint(o)
372 _object_types.append(
"XYRadialPositionLowerRestraint")
375 def _object_cast_to_XYRadialPositionLowerRestraint(o):
376 r"""_object_cast_to_XYRadialPositionLowerRestraint(Object o) -> XYRadialPositionLowerRestraint"""
377 return _IMP_npc._object_cast_to_XYRadialPositionLowerRestraint(o)
379 _object_types.append(
"XYRadialPositionUpperRestraint")
382 def _object_cast_to_XYRadialPositionUpperRestraint(o):
383 r"""_object_cast_to_XYRadialPositionUpperRestraint(Object o) -> XYRadialPositionUpperRestraint"""
384 return _IMP_npc._object_cast_to_XYRadialPositionUpperRestraint(o)
386 _object_types.append(
"ProteinContactRestraint")
389 def _object_cast_to_ProteinContactRestraint(o):
390 r"""_object_cast_to_ProteinContactRestraint(Object o) -> ProteinContactRestraint"""
391 return _IMP_npc._object_cast_to_ProteinContactRestraint(o)
393 _object_types.append(
"ProteinChainRestraint")
396 def _object_cast_to_ProteinChainRestraint(o):
397 r"""_object_cast_to_ProteinChainRestraint(Object o) -> ProteinChainRestraint"""
398 return _IMP_npc._object_cast_to_ProteinChainRestraint(o)
400 _object_types.append(
"MembraneSurfaceLocationRestraint")
403 def _object_cast_to_MembraneSurfaceLocationRestraint(o):
404 r"""_object_cast_to_MembraneSurfaceLocationRestraint(Object o) -> MembraneSurfaceLocationRestraint"""
405 return _IMP_npc._object_cast_to_MembraneSurfaceLocationRestraint(o)
407 _object_types.append(
"PoreSideVolumeLocationRestraint")
410 def _object_cast_to_PoreSideVolumeLocationRestraint(o):
411 r"""_object_cast_to_PoreSideVolumeLocationRestraint(Object o) -> PoreSideVolumeLocationRestraint"""
412 return _IMP_npc._object_cast_to_PoreSideVolumeLocationRestraint(o)
414 _object_types.append(
"PerinuclearVolumeLocationRestraint")
417 def _object_cast_to_PerinuclearVolumeLocationRestraint(o):
418 r"""_object_cast_to_PerinuclearVolumeLocationRestraint(Object o) -> PerinuclearVolumeLocationRestraint"""
419 return _IMP_npc._object_cast_to_PerinuclearVolumeLocationRestraint(o)
421 _object_types.append(
"AssemblySymmetryByDistanceRestraint")
424 def _object_cast_to_AssemblySymmetryByDistanceRestraint(o):
425 r"""_object_cast_to_AssemblySymmetryByDistanceRestraint(Object o) -> AssemblySymmetryByDistanceRestraint"""
426 return _IMP_npc._object_cast_to_AssemblySymmetryByDistanceRestraint(o)
428 _object_types.append(
"AssemblySymmetryByDihedralRestraint")
431 def _object_cast_to_AssemblySymmetryByDihedralRestraint(o):
432 r"""_object_cast_to_AssemblySymmetryByDihedralRestraint(Object o) -> AssemblySymmetryByDihedralRestraint"""
433 return _IMP_npc._object_cast_to_AssemblySymmetryByDihedralRestraint(o)
435 _object_types.append(
"ProteinProximityRestraint")
438 def _object_cast_to_ProteinProximityRestraint(o):
439 r"""_object_cast_to_ProteinProximityRestraint(Object o) -> ProteinProximityRestraint"""
440 return _IMP_npc._object_cast_to_ProteinProximityRestraint(o)
442 _object_types.append(
"CompositeRestraint")
445 def _object_cast_to_CompositeRestraint(o):
446 r"""_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
447 return _IMP_npc._object_cast_to_CompositeRestraint(o)
449 _object_types.append(
"MinimumSphereDistancePairScore")
452 def _object_cast_to_MinimumSphereDistancePairScore(o):
453 r"""_object_cast_to_MinimumSphereDistancePairScore(Object o) -> MinimumSphereDistancePairScore"""
454 return _IMP_npc._object_cast_to_MinimumSphereDistancePairScore(o)
456 _object_types.append(
"MembraneExclusionRestraint")
459 def _object_cast_to_MembraneExclusionRestraint(o):
460 r"""_object_cast_to_MembraneExclusionRestraint(Object o) -> MembraneExclusionRestraint"""
461 return _IMP_npc._object_cast_to_MembraneExclusionRestraint(o)
463 _object_types.append(
"MembraneSurfaceLocationConditionalRestraint")
466 def _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o):
467 r"""_object_cast_to_MembraneSurfaceLocationConditionalRestraint(Object o) -> MembraneSurfaceLocationConditionalRestraint"""
468 return _IMP_npc._object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
470 _object_types.append(
"XYRadialPositionRestraint")
473 def _object_cast_to_XYRadialPositionRestraint(o):
474 r"""_object_cast_to_XYRadialPositionRestraint(Object o) -> XYRadialPositionRestraint"""
475 return _IMP_npc._object_cast_to_XYRadialPositionRestraint(o)
477 _object_types.append(
"YAxialPositionLowerRestraint")
480 def _object_cast_to_YAxialPositionLowerRestraint(o):
481 r"""_object_cast_to_YAxialPositionLowerRestraint(Object o) -> YAxialPositionLowerRestraint"""
482 return _IMP_npc._object_cast_to_YAxialPositionLowerRestraint(o)
484 _object_types.append(
"YAxialPositionRestraint")
487 def _object_cast_to_YAxialPositionRestraint(o):
488 r"""_object_cast_to_YAxialPositionRestraint(Object o) -> YAxialPositionRestraint"""
489 return _IMP_npc._object_cast_to_YAxialPositionRestraint(o)
491 _object_types.append(
"YAxialPositionUpperRestraint")
494 def _object_cast_to_YAxialPositionUpperRestraint(o):
495 r"""_object_cast_to_YAxialPositionUpperRestraint(Object o) -> YAxialPositionUpperRestraint"""
496 return _IMP_npc._object_cast_to_YAxialPositionUpperRestraint(o)
498 _object_types.append(
"ZAxialPositionRestraint")
501 def _object_cast_to_ZAxialPositionRestraint(o):
502 r"""_object_cast_to_ZAxialPositionRestraint(Object o) -> ZAxialPositionRestraint"""
503 return _IMP_npc._object_cast_to_ZAxialPositionRestraint(o)
505 _object_types.append(
"XAxialPositionLowerRestraint")
508 def _object_cast_to_XAxialPositionLowerRestraint(o):
509 r"""_object_cast_to_XAxialPositionLowerRestraint(Object o) -> XAxialPositionLowerRestraint"""
510 return _IMP_npc._object_cast_to_XAxialPositionLowerRestraint(o)
512 _object_types.append(
"XAxialPositionRestraint")
515 def _object_cast_to_XAxialPositionRestraint(o):
516 r"""_object_cast_to_XAxialPositionRestraint(Object o) -> XAxialPositionRestraint"""
517 return _IMP_npc._object_cast_to_XAxialPositionRestraint(o)
519 _object_types.append(
"XAxialPositionUpperRestraint")
522 def _object_cast_to_XAxialPositionUpperRestraint(o):
523 r"""_object_cast_to_XAxialPositionUpperRestraint(Object o) -> XAxialPositionUpperRestraint"""
524 return _IMP_npc._object_cast_to_XAxialPositionUpperRestraint(o)
526 _object_types.append(
"OverallPositionRestraint")
529 def _object_cast_to_OverallPositionRestraint(o):
530 r"""_object_cast_to_OverallPositionRestraint(Object o) -> OverallPositionRestraint"""
531 return _IMP_npc._object_cast_to_OverallPositionRestraint(o)
533 def SlabWithSphericalIndents(l=[]):
534 return [SlabWithSphericalIndent(x)
for x
in l]
535 _plural_types.append(
"SlabWithSphericalIndents")
538 _value_types.append(
"SlabWithSphericalIndent")
541 _object_types.append(
"SlabWithSphericalIndentMBMScore")
544 def _object_cast_to_SlabWithSphericalIndentMBMScore(o):
545 r"""_object_cast_to_SlabWithSphericalIndentMBMScore(Object o) -> SlabWithSphericalIndentMBMScore"""
546 return _IMP_npc._object_cast_to_SlabWithSphericalIndentMBMScore(o)
548 _object_types.append(
"SlabWithSphericalIndentGeometry")
551 def _object_cast_to_SlabWithSphericalIndentGeometry(o):
552 r"""_object_cast_to_SlabWithSphericalIndentGeometry(Object o) -> SlabWithSphericalIndentGeometry"""
553 return _IMP_npc._object_cast_to_SlabWithSphericalIndentGeometry(o)
555 _object_types.append(
"SphericalIndentSurfaceDepthPairScore")
558 def _object_cast_to_SphericalIndentSurfaceDepthPairScore(o):
559 r"""_object_cast_to_SphericalIndentSurfaceDepthPairScore(Object o) -> SphericalIndentSurfaceDepthPairScore"""
560 return _IMP_npc._object_cast_to_SphericalIndentSurfaceDepthPairScore(o)
562 _object_types.append(
"SlabWithToroidalPoreMBMScore")
565 def _object_cast_to_SlabWithToroidalPoreMBMScore(o):
566 r"""_object_cast_to_SlabWithToroidalPoreMBMScore(Object o) -> SlabWithToroidalPoreMBMScore"""
567 return _IMP_npc._object_cast_to_SlabWithToroidalPoreMBMScore(o)
569 _object_types.append(
"SlabWithToroidalPoreGoPairScore")
572 def _object_cast_to_SlabWithToroidalPoreGoPairScore(o):
573 r"""_object_cast_to_SlabWithToroidalPoreGoPairScore(Object o) -> SlabWithToroidalPoreGoPairScore"""
574 return _IMP_npc._object_cast_to_SlabWithToroidalPoreGoPairScore(o)
576 _object_types.append(
"ToroidalPoreSurfaceDepthPairScore")
579 def _object_cast_to_ToroidalPoreSurfaceDepthPairScore(o):
580 r"""_object_cast_to_ToroidalPoreSurfaceDepthPairScore(Object o) -> ToroidalPoreSurfaceDepthPairScore"""
581 return _IMP_npc._object_cast_to_ToroidalPoreSurfaceDepthPairScore(o)
583 def SlabWithPores(l=[]):
584 return [SlabWithPore(x)
for x
in l]
585 _plural_types.append(
"SlabWithPores")
588 _value_types.append(
"SlabWithPore")
591 def SlabWithToroidalPores(l=[]):
592 return [SlabWithToroidalPore(x)
for x
in l]
593 _plural_types.append(
"SlabWithToroidalPores")
596 _value_types.append(
"SlabWithToroidalPore")
599 _object_types.append(
"SlabWithToroidalPoreWireGeometry")
602 def _object_cast_to_SlabWithToroidalPoreWireGeometry(o):
603 r"""_object_cast_to_SlabWithToroidalPoreWireGeometry(Object o) -> SlabWithToroidalPoreWireGeometry"""
604 return _IMP_npc._object_cast_to_SlabWithToroidalPoreWireGeometry(o)
606 r"""Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
608 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
610 def __init__(self, *args):
612 __init__(ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
613 __init__(ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
614 __init__(ZAxialPositionRestraint self) -> ZAxialPositionRestraint
616 _IMP_npc.ZAxialPositionRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionRestraint(*args))
619 r"""add_particle(ZAxialPositionRestraint self, Particle p)"""
620 return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
623 r"""add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
624 return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
626 def set_particles(self, ps):
627 r"""set_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
628 return _IMP_npc.ZAxialPositionRestraint_set_particles(self, ps)
630 def do_get_inputs(self):
631 r"""do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
632 return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
634 def get_version_info(self):
635 r"""get_version_info(ZAxialPositionRestraint self) -> VersionInfo"""
636 return _IMP_npc.ZAxialPositionRestraint_get_version_info(self)
637 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionRestraint
640 r"""__str__(ZAxialPositionRestraint self) -> std::string"""
641 return _IMP_npc.ZAxialPositionRestraint___str__(self)
644 r"""__repr__(ZAxialPositionRestraint self) -> std::string"""
645 return _IMP_npc.ZAxialPositionRestraint___repr__(self)
649 return _object_cast_to_ZAxialPositionRestraint(o)
652 def _get_as_binary(self):
653 r"""_get_as_binary(ZAxialPositionRestraint self) -> PyObject *"""
654 return _IMP_npc.ZAxialPositionRestraint__get_as_binary(self)
656 def _set_from_binary(self, p):
657 r"""_set_from_binary(ZAxialPositionRestraint self, PyObject * p)"""
658 return _IMP_npc.ZAxialPositionRestraint__set_from_binary(self, p)
660 def __getstate__(self):
661 p = self._get_as_binary()
662 if len(self.__dict__) > 1:
663 d = self.__dict__.copy()
668 def __setstate__(self, p):
669 if not hasattr(self,
'this'):
671 if isinstance(p, tuple):
673 self.__dict__.update(d)
674 return self._set_from_binary(p)
678 _IMP_npc.ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
680 r"""Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
682 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
684 def __init__(self, *args):
686 __init__(ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
687 __init__(ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
688 __init__(ZAxialPositionLowerRestraint self) -> ZAxialPositionLowerRestraint
690 _IMP_npc.ZAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionLowerRestraint(*args))
693 r"""add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
694 return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
697 r"""add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
698 return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
700 def set_particles(self, ps):
701 r"""set_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
702 return _IMP_npc.ZAxialPositionLowerRestraint_set_particles(self, ps)
704 def do_get_inputs(self):
705 r"""do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
706 return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
708 def get_version_info(self):
709 r"""get_version_info(ZAxialPositionLowerRestraint self) -> VersionInfo"""
710 return _IMP_npc.ZAxialPositionLowerRestraint_get_version_info(self)
711 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionLowerRestraint
714 r"""__str__(ZAxialPositionLowerRestraint self) -> std::string"""
715 return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
718 r"""__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
719 return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
723 return _object_cast_to_ZAxialPositionLowerRestraint(o)
726 def _get_as_binary(self):
727 r"""_get_as_binary(ZAxialPositionLowerRestraint self) -> PyObject *"""
728 return _IMP_npc.ZAxialPositionLowerRestraint__get_as_binary(self)
730 def _set_from_binary(self, p):
731 r"""_set_from_binary(ZAxialPositionLowerRestraint self, PyObject * p)"""
732 return _IMP_npc.ZAxialPositionLowerRestraint__set_from_binary(self, p)
734 def __getstate__(self):
735 p = self._get_as_binary()
736 if len(self.__dict__) > 1:
737 d = self.__dict__.copy()
742 def __setstate__(self, p):
743 if not hasattr(self,
'this'):
745 if isinstance(p, tuple):
747 self.__dict__.update(d)
748 return self._set_from_binary(p)
752 _IMP_npc.ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
754 r"""Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
756 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
758 def __init__(self, *args):
760 __init__(ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
761 __init__(ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
762 __init__(ZAxialPositionUpperRestraint self) -> ZAxialPositionUpperRestraint
764 _IMP_npc.ZAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionUpperRestraint(*args))
767 r"""add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
768 return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
771 r"""add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
772 return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
774 def set_particles(self, ps):
775 r"""set_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
776 return _IMP_npc.ZAxialPositionUpperRestraint_set_particles(self, ps)
778 def do_get_inputs(self):
779 r"""do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
780 return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
782 def get_version_info(self):
783 r"""get_version_info(ZAxialPositionUpperRestraint self) -> VersionInfo"""
784 return _IMP_npc.ZAxialPositionUpperRestraint_get_version_info(self)
785 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionUpperRestraint
788 r"""__str__(ZAxialPositionUpperRestraint self) -> std::string"""
789 return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
792 r"""__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
793 return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
797 return _object_cast_to_ZAxialPositionUpperRestraint(o)
800 def _get_as_binary(self):
801 r"""_get_as_binary(ZAxialPositionUpperRestraint self) -> PyObject *"""
802 return _IMP_npc.ZAxialPositionUpperRestraint__get_as_binary(self)
804 def _set_from_binary(self, p):
805 r"""_set_from_binary(ZAxialPositionUpperRestraint self, PyObject * p)"""
806 return _IMP_npc.ZAxialPositionUpperRestraint__set_from_binary(self, p)
808 def __getstate__(self):
809 p = self._get_as_binary()
810 if len(self.__dict__) > 1:
811 d = self.__dict__.copy()
816 def __setstate__(self, p):
817 if not hasattr(self,
'this'):
819 if isinstance(p, tuple):
821 self.__dict__.update(d)
822 return self._set_from_binary(p)
826 _IMP_npc.ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
828 r"""Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
830 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
832 def __init__(self, *args):
834 __init__(YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
835 __init__(YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
836 __init__(YAxialPositionRestraint self) -> YAxialPositionRestraint
838 _IMP_npc.YAxialPositionRestraint_swiginit(self, _IMP_npc.new_YAxialPositionRestraint(*args))
841 r"""add_particle(YAxialPositionRestraint self, Particle p)"""
842 return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
845 r"""add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
846 return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
848 def set_particles(self, ps):
849 r"""set_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
850 return _IMP_npc.YAxialPositionRestraint_set_particles(self, ps)
852 def do_get_inputs(self):
853 r"""do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
854 return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
856 def get_version_info(self):
857 r"""get_version_info(YAxialPositionRestraint self) -> VersionInfo"""
858 return _IMP_npc.YAxialPositionRestraint_get_version_info(self)
859 __swig_destroy__ = _IMP_npc.delete_YAxialPositionRestraint
862 r"""__str__(YAxialPositionRestraint self) -> std::string"""
863 return _IMP_npc.YAxialPositionRestraint___str__(self)
866 r"""__repr__(YAxialPositionRestraint self) -> std::string"""
867 return _IMP_npc.YAxialPositionRestraint___repr__(self)
871 return _object_cast_to_YAxialPositionRestraint(o)
874 def _get_as_binary(self):
875 r"""_get_as_binary(YAxialPositionRestraint self) -> PyObject *"""
876 return _IMP_npc.YAxialPositionRestraint__get_as_binary(self)
878 def _set_from_binary(self, p):
879 r"""_set_from_binary(YAxialPositionRestraint self, PyObject * p)"""
880 return _IMP_npc.YAxialPositionRestraint__set_from_binary(self, p)
882 def __getstate__(self):
883 p = self._get_as_binary()
884 if len(self.__dict__) > 1:
885 d = self.__dict__.copy()
890 def __setstate__(self, p):
891 if not hasattr(self,
'this'):
893 if isinstance(p, tuple):
895 self.__dict__.update(d)
896 return self._set_from_binary(p)
900 _IMP_npc.YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
902 r"""Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
904 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
906 def __init__(self, *args):
908 __init__(YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
909 __init__(YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
910 __init__(YAxialPositionLowerRestraint self) -> YAxialPositionLowerRestraint
912 _IMP_npc.YAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_YAxialPositionLowerRestraint(*args))
915 r"""add_particle(YAxialPositionLowerRestraint self, Particle p)"""
916 return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
919 r"""add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
920 return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
922 def set_particles(self, ps):
923 r"""set_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
924 return _IMP_npc.YAxialPositionLowerRestraint_set_particles(self, ps)
926 def do_get_inputs(self):
927 r"""do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
928 return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
930 def get_version_info(self):
931 r"""get_version_info(YAxialPositionLowerRestraint self) -> VersionInfo"""
932 return _IMP_npc.YAxialPositionLowerRestraint_get_version_info(self)
933 __swig_destroy__ = _IMP_npc.delete_YAxialPositionLowerRestraint
936 r"""__str__(YAxialPositionLowerRestraint self) -> std::string"""
937 return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
940 r"""__repr__(YAxialPositionLowerRestraint self) -> std::string"""
941 return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
945 return _object_cast_to_YAxialPositionLowerRestraint(o)
948 def _get_as_binary(self):
949 r"""_get_as_binary(YAxialPositionLowerRestraint self) -> PyObject *"""
950 return _IMP_npc.YAxialPositionLowerRestraint__get_as_binary(self)
952 def _set_from_binary(self, p):
953 r"""_set_from_binary(YAxialPositionLowerRestraint self, PyObject * p)"""
954 return _IMP_npc.YAxialPositionLowerRestraint__set_from_binary(self, p)
956 def __getstate__(self):
957 p = self._get_as_binary()
958 if len(self.__dict__) > 1:
959 d = self.__dict__.copy()
964 def __setstate__(self, p):
965 if not hasattr(self,
'this'):
967 if isinstance(p, tuple):
969 self.__dict__.update(d)
970 return self._set_from_binary(p)
974 _IMP_npc.YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
976 r"""Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
978 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
980 def __init__(self, *args):
982 __init__(YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
983 __init__(YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
984 __init__(YAxialPositionUpperRestraint self) -> YAxialPositionUpperRestraint
986 _IMP_npc.YAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_YAxialPositionUpperRestraint(*args))
989 r"""add_particle(YAxialPositionUpperRestraint self, Particle p)"""
990 return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
993 r"""add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
994 return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
996 def set_particles(self, ps):
997 r"""set_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
998 return _IMP_npc.YAxialPositionUpperRestraint_set_particles(self, ps)
1000 def do_get_inputs(self):
1001 r"""do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1002 return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
1004 def get_version_info(self):
1005 r"""get_version_info(YAxialPositionUpperRestraint self) -> VersionInfo"""
1006 return _IMP_npc.YAxialPositionUpperRestraint_get_version_info(self)
1007 __swig_destroy__ = _IMP_npc.delete_YAxialPositionUpperRestraint
1010 r"""__str__(YAxialPositionUpperRestraint self) -> std::string"""
1011 return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
1014 r"""__repr__(YAxialPositionUpperRestraint self) -> std::string"""
1015 return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
1019 return _object_cast_to_YAxialPositionUpperRestraint(o)
1022 def _get_as_binary(self):
1023 r"""_get_as_binary(YAxialPositionUpperRestraint self) -> PyObject *"""
1024 return _IMP_npc.YAxialPositionUpperRestraint__get_as_binary(self)
1026 def _set_from_binary(self, p):
1027 r"""_set_from_binary(YAxialPositionUpperRestraint self, PyObject * p)"""
1028 return _IMP_npc.YAxialPositionUpperRestraint__set_from_binary(self, p)
1030 def __getstate__(self):
1031 p = self._get_as_binary()
1032 if len(self.__dict__) > 1:
1033 d = self.__dict__.copy()
1038 def __setstate__(self, p):
1039 if not hasattr(self,
'this'):
1041 if isinstance(p, tuple):
1043 self.__dict__.update(d)
1044 return self._set_from_binary(p)
1048 _IMP_npc.YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
1050 r"""Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
1052 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1054 def __init__(self, *args):
1056 __init__(XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
1057 __init__(XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
1058 __init__(XYRadialPositionRestraint self) -> XYRadialPositionRestraint
1060 _IMP_npc.XYRadialPositionRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionRestraint(*args))
1063 r"""add_particle(XYRadialPositionRestraint self, Particle p)"""
1064 return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
1067 r"""add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
1068 return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
1070 def set_particles(self, ps):
1071 r"""set_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
1072 return _IMP_npc.XYRadialPositionRestraint_set_particles(self, ps)
1074 def do_get_inputs(self):
1075 r"""do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
1076 return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
1078 def get_version_info(self):
1079 r"""get_version_info(XYRadialPositionRestraint self) -> VersionInfo"""
1080 return _IMP_npc.XYRadialPositionRestraint_get_version_info(self)
1081 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionRestraint
1084 r"""__str__(XYRadialPositionRestraint self) -> std::string"""
1085 return _IMP_npc.XYRadialPositionRestraint___str__(self)
1088 r"""__repr__(XYRadialPositionRestraint self) -> std::string"""
1089 return _IMP_npc.XYRadialPositionRestraint___repr__(self)
1093 return _object_cast_to_XYRadialPositionRestraint(o)
1096 def _get_as_binary(self):
1097 r"""_get_as_binary(XYRadialPositionRestraint self) -> PyObject *"""
1098 return _IMP_npc.XYRadialPositionRestraint__get_as_binary(self)
1100 def _set_from_binary(self, p):
1101 r"""_set_from_binary(XYRadialPositionRestraint self, PyObject * p)"""
1102 return _IMP_npc.XYRadialPositionRestraint__set_from_binary(self, p)
1104 def __getstate__(self):
1105 p = self._get_as_binary()
1106 if len(self.__dict__) > 1:
1107 d = self.__dict__.copy()
1112 def __setstate__(self, p):
1113 if not hasattr(self,
'this'):
1115 if isinstance(p, tuple):
1117 self.__dict__.update(d)
1118 return self._set_from_binary(p)
1122 _IMP_npc.XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
1124 r"""Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
1126 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1128 def __init__(self, *args):
1130 __init__(XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1131 __init__(XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1132 __init__(XYRadialPositionLowerRestraint self) -> XYRadialPositionLowerRestraint
1134 _IMP_npc.XYRadialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionLowerRestraint(*args))
1137 r"""add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
1138 return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
1141 r"""add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1142 return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
1144 def set_particles(self, ps):
1145 r"""set_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1146 return _IMP_npc.XYRadialPositionLowerRestraint_set_particles(self, ps)
1148 def do_get_inputs(self):
1149 r"""do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
1150 return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
1152 def get_version_info(self):
1153 r"""get_version_info(XYRadialPositionLowerRestraint self) -> VersionInfo"""
1154 return _IMP_npc.XYRadialPositionLowerRestraint_get_version_info(self)
1155 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionLowerRestraint
1158 r"""__str__(XYRadialPositionLowerRestraint self) -> std::string"""
1159 return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
1162 r"""__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
1163 return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
1167 return _object_cast_to_XYRadialPositionLowerRestraint(o)
1170 def _get_as_binary(self):
1171 r"""_get_as_binary(XYRadialPositionLowerRestraint self) -> PyObject *"""
1172 return _IMP_npc.XYRadialPositionLowerRestraint__get_as_binary(self)
1174 def _set_from_binary(self, p):
1175 r"""_set_from_binary(XYRadialPositionLowerRestraint self, PyObject * p)"""
1176 return _IMP_npc.XYRadialPositionLowerRestraint__set_from_binary(self, p)
1178 def __getstate__(self):
1179 p = self._get_as_binary()
1180 if len(self.__dict__) > 1:
1181 d = self.__dict__.copy()
1186 def __setstate__(self, p):
1187 if not hasattr(self,
'this'):
1189 if isinstance(p, tuple):
1191 self.__dict__.update(d)
1192 return self._set_from_binary(p)
1196 _IMP_npc.XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
1198 r"""Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
1200 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1202 def __init__(self, *args):
1204 __init__(XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1205 __init__(XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1206 __init__(XYRadialPositionUpperRestraint self) -> XYRadialPositionUpperRestraint
1208 _IMP_npc.XYRadialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionUpperRestraint(*args))
1211 r"""add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
1212 return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
1215 r"""add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1216 return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
1218 def set_particles(self, ps):
1219 r"""set_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1220 return _IMP_npc.XYRadialPositionUpperRestraint_set_particles(self, ps)
1222 def do_get_inputs(self):
1223 r"""do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1224 return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
1226 def get_version_info(self):
1227 r"""get_version_info(XYRadialPositionUpperRestraint self) -> VersionInfo"""
1228 return _IMP_npc.XYRadialPositionUpperRestraint_get_version_info(self)
1229 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionUpperRestraint
1232 r"""__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1233 return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1236 r"""__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1237 return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1241 return _object_cast_to_XYRadialPositionUpperRestraint(o)
1244 def _get_as_binary(self):
1245 r"""_get_as_binary(XYRadialPositionUpperRestraint self) -> PyObject *"""
1246 return _IMP_npc.XYRadialPositionUpperRestraint__get_as_binary(self)
1248 def _set_from_binary(self, p):
1249 r"""_set_from_binary(XYRadialPositionUpperRestraint self, PyObject * p)"""
1250 return _IMP_npc.XYRadialPositionUpperRestraint__set_from_binary(self, p)
1252 def __getstate__(self):
1253 p = self._get_as_binary()
1254 if len(self.__dict__) > 1:
1255 d = self.__dict__.copy()
1260 def __setstate__(self, p):
1261 if not hasattr(self,
'this'):
1263 if isinstance(p, tuple):
1265 self.__dict__.update(d)
1266 return self._set_from_binary(p)
1270 _IMP_npc.XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1272 r"""Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1274 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1276 def __init__(self, *args):
1278 __init__(ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1279 __init__(ProteinContactRestraint self, Model m, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1280 __init__(ProteinContactRestraint self) -> ProteinContactRestraint
1282 _IMP_npc.ProteinContactRestraint_swiginit(self, _IMP_npc.new_ProteinContactRestraint(*args))
1285 r"""add_particle(ProteinContactRestraint self, Particle p)"""
1286 return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1289 r"""add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1290 return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
1292 def set_particles(self, ps):
1293 r"""set_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1294 return _IMP_npc.ProteinContactRestraint_set_particles(self, ps)
1296 def do_get_inputs(self):
1297 r"""do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1298 return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
1300 def get_version_info(self):
1301 r"""get_version_info(ProteinContactRestraint self) -> VersionInfo"""
1302 return _IMP_npc.ProteinContactRestraint_get_version_info(self)
1303 __swig_destroy__ = _IMP_npc.delete_ProteinContactRestraint
1306 r"""__str__(ProteinContactRestraint self) -> std::string"""
1307 return _IMP_npc.ProteinContactRestraint___str__(self)
1310 r"""__repr__(ProteinContactRestraint self) -> std::string"""
1311 return _IMP_npc.ProteinContactRestraint___repr__(self)
1315 return _object_cast_to_ProteinContactRestraint(o)
1318 def _get_as_binary(self):
1319 r"""_get_as_binary(ProteinContactRestraint self) -> PyObject *"""
1320 return _IMP_npc.ProteinContactRestraint__get_as_binary(self)
1322 def _set_from_binary(self, p):
1323 r"""_set_from_binary(ProteinContactRestraint self, PyObject * p)"""
1324 return _IMP_npc.ProteinContactRestraint__set_from_binary(self, p)
1326 def __getstate__(self):
1327 p = self._get_as_binary()
1328 if len(self.__dict__) > 1:
1329 d = self.__dict__.copy()
1334 def __setstate__(self, p):
1335 if not hasattr(self,
'this'):
1337 if isinstance(p, tuple):
1339 self.__dict__.update(d)
1340 return self._set_from_binary(p)
1344 _IMP_npc.ProteinContactRestraint_swigregister(ProteinContactRestraint)
1346 r"""Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1348 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1350 def __init__(self, *args):
1352 __init__(ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> ProteinChainRestraint
1353 __init__(ProteinChainRestraint self, Model m, double sigma=0.1) -> ProteinChainRestraint
1354 __init__(ProteinChainRestraint self) -> ProteinChainRestraint
1356 _IMP_npc.ProteinChainRestraint_swiginit(self, _IMP_npc.new_ProteinChainRestraint(*args))
1359 r"""add_particle(ProteinChainRestraint self, Particle p)"""
1360 return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1363 r"""add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1364 return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
1366 def set_particles(self, ps):
1367 r"""set_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1368 return _IMP_npc.ProteinChainRestraint_set_particles(self, ps)
1370 def do_get_inputs(self):
1371 r"""do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1372 return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
1374 def get_version_info(self):
1375 r"""get_version_info(ProteinChainRestraint self) -> VersionInfo"""
1376 return _IMP_npc.ProteinChainRestraint_get_version_info(self)
1377 __swig_destroy__ = _IMP_npc.delete_ProteinChainRestraint
1380 r"""__str__(ProteinChainRestraint self) -> std::string"""
1381 return _IMP_npc.ProteinChainRestraint___str__(self)
1384 r"""__repr__(ProteinChainRestraint self) -> std::string"""
1385 return _IMP_npc.ProteinChainRestraint___repr__(self)
1389 return _object_cast_to_ProteinChainRestraint(o)
1392 def _get_as_binary(self):
1393 r"""_get_as_binary(ProteinChainRestraint self) -> PyObject *"""
1394 return _IMP_npc.ProteinChainRestraint__get_as_binary(self)
1396 def _set_from_binary(self, p):
1397 r"""_set_from_binary(ProteinChainRestraint self, PyObject * p)"""
1398 return _IMP_npc.ProteinChainRestraint__set_from_binary(self, p)
1400 def __getstate__(self):
1401 p = self._get_as_binary()
1402 if len(self.__dict__) > 1:
1403 d = self.__dict__.copy()
1408 def __setstate__(self, p):
1409 if not hasattr(self,
'this'):
1411 if isinstance(p, tuple):
1413 self.__dict__.update(d)
1414 return self._set_from_binary(p)
1418 _IMP_npc.ProteinChainRestraint_swigregister(ProteinChainRestraint)
1420 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1422 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1424 def __init__(self, *args):
1426 __init__(MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1427 __init__(MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1428 __init__(MembraneSurfaceLocationRestraint self) -> MembraneSurfaceLocationRestraint
1430 _IMP_npc.MembraneSurfaceLocationRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationRestraint(*args))
1433 r"""add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1434 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1437 r"""add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1438 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
1440 def set_particles(self, ps):
1441 r"""set_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1442 return _IMP_npc.MembraneSurfaceLocationRestraint_set_particles(self, ps)
1444 def do_get_inputs(self):
1445 r"""do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1446 return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
1448 def get_version_info(self):
1449 r"""get_version_info(MembraneSurfaceLocationRestraint self) -> VersionInfo"""
1450 return _IMP_npc.MembraneSurfaceLocationRestraint_get_version_info(self)
1451 __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationRestraint
1454 r"""__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1455 return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1458 r"""__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1459 return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1463 return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1466 def _get_as_binary(self):
1467 r"""_get_as_binary(MembraneSurfaceLocationRestraint self) -> PyObject *"""
1468 return _IMP_npc.MembraneSurfaceLocationRestraint__get_as_binary(self)
1470 def _set_from_binary(self, p):
1471 r"""_set_from_binary(MembraneSurfaceLocationRestraint self, PyObject * p)"""
1472 return _IMP_npc.MembraneSurfaceLocationRestraint__set_from_binary(self, p)
1474 def __getstate__(self):
1475 p = self._get_as_binary()
1476 if len(self.__dict__) > 1:
1477 d = self.__dict__.copy()
1482 def __setstate__(self, p):
1483 if not hasattr(self,
'this'):
1485 if isinstance(p, tuple):
1487 self.__dict__.update(d)
1488 return self._set_from_binary(p)
1492 _IMP_npc.MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1493 class MembraneSurfaceLocationConditionalRestraint(
IMP.Restraint):
1494 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1496 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1498 def __init__(self, *args):
1500 __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1501 __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1502 __init__(MembraneSurfaceLocationConditionalRestraint self) -> MembraneSurfaceLocationConditionalRestraint
1504 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args))
1506 def add_particle1(self, p):
1507 r"""add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1508 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1510 def add_particle2(self, p):
1511 r"""add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1512 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
1514 def add_particles1(self, ps):
1515 r"""add_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1516 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles1(self, ps)
1518 def add_particles2(self, ps):
1519 r"""add_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1520 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles2(self, ps)
1522 def set_particles1(self, ps):
1523 r"""set_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1524 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles1(self, ps)
1526 def set_particles2(self, ps):
1527 r"""set_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1528 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles2(self, ps)
1530 def do_get_inputs(self):
1531 r"""do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1532 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
1534 def get_version_info(self):
1535 r"""get_version_info(MembraneSurfaceLocationConditionalRestraint self) -> VersionInfo"""
1536 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_get_version_info(self)
1537 __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationConditionalRestraint
1540 r"""__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1541 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1544 r"""__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1545 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1549 return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1552 def _get_as_binary(self):
1553 r"""_get_as_binary(MembraneSurfaceLocationConditionalRestraint self) -> PyObject *"""
1554 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__get_as_binary(self)
1556 def _set_from_binary(self, p):
1557 r"""_set_from_binary(MembraneSurfaceLocationConditionalRestraint self, PyObject * p)"""
1558 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__set_from_binary(self, p)
1560 def __getstate__(self):
1561 p = self._get_as_binary()
1562 if len(self.__dict__) > 1:
1563 d = self.__dict__.copy()
1568 def __setstate__(self, p):
1569 if not hasattr(self,
'this'):
1571 if isinstance(p, tuple):
1573 self.__dict__.update(d)
1574 return self._set_from_binary(p)
1578 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1580 r"""Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1584 def __init__(self, *args):
1586 __init__(MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1587 __init__(MembraneExclusionRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1588 __init__(MembraneExclusionRestraint self) -> MembraneExclusionRestraint
1590 _IMP_npc.MembraneExclusionRestraint_swiginit(self, _IMP_npc.new_MembraneExclusionRestraint(*args))
1593 r"""add_particle(MembraneExclusionRestraint self, Particle p)"""
1594 return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1597 r"""add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1598 return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
1600 def set_particles(self, ps):
1601 r"""set_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1602 return _IMP_npc.MembraneExclusionRestraint_set_particles(self, ps)
1604 def do_get_inputs(self):
1605 r"""do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1606 return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
1608 def get_version_info(self):
1609 r"""get_version_info(MembraneExclusionRestraint self) -> VersionInfo"""
1610 return _IMP_npc.MembraneExclusionRestraint_get_version_info(self)
1611 __swig_destroy__ = _IMP_npc.delete_MembraneExclusionRestraint
1614 r"""__str__(MembraneExclusionRestraint self) -> std::string"""
1615 return _IMP_npc.MembraneExclusionRestraint___str__(self)
1618 r"""__repr__(MembraneExclusionRestraint self) -> std::string"""
1619 return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1623 return _object_cast_to_MembraneExclusionRestraint(o)
1626 def _get_as_binary(self):
1627 r"""_get_as_binary(MembraneExclusionRestraint self) -> PyObject *"""
1628 return _IMP_npc.MembraneExclusionRestraint__get_as_binary(self)
1630 def _set_from_binary(self, p):
1631 r"""_set_from_binary(MembraneExclusionRestraint self, PyObject * p)"""
1632 return _IMP_npc.MembraneExclusionRestraint__set_from_binary(self, p)
1634 def __getstate__(self):
1635 p = self._get_as_binary()
1636 if len(self.__dict__) > 1:
1637 d = self.__dict__.copy()
1642 def __setstate__(self, p):
1643 if not hasattr(self,
'this'):
1645 if isinstance(p, tuple):
1647 self.__dict__.update(d)
1648 return self._set_from_binary(p)
1652 _IMP_npc.MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1654 r"""Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1656 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1658 def __init__(self, *args):
1660 __init__(PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1661 __init__(PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1662 __init__(PoreSideVolumeLocationRestraint self) -> PoreSideVolumeLocationRestraint
1664 _IMP_npc.PoreSideVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PoreSideVolumeLocationRestraint(*args))
1667 r"""add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1668 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1671 r"""add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1672 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
1674 def set_particles(self, ps):
1675 r"""set_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1676 return _IMP_npc.PoreSideVolumeLocationRestraint_set_particles(self, ps)
1678 def do_get_inputs(self):
1679 r"""do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1680 return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
1682 def get_version_info(self):
1683 r"""get_version_info(PoreSideVolumeLocationRestraint self) -> VersionInfo"""
1684 return _IMP_npc.PoreSideVolumeLocationRestraint_get_version_info(self)
1685 __swig_destroy__ = _IMP_npc.delete_PoreSideVolumeLocationRestraint
1688 r"""__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1689 return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1692 r"""__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1693 return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1697 return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1700 def _get_as_binary(self):
1701 r"""_get_as_binary(PoreSideVolumeLocationRestraint self) -> PyObject *"""
1702 return _IMP_npc.PoreSideVolumeLocationRestraint__get_as_binary(self)
1704 def _set_from_binary(self, p):
1705 r"""_set_from_binary(PoreSideVolumeLocationRestraint self, PyObject * p)"""
1706 return _IMP_npc.PoreSideVolumeLocationRestraint__set_from_binary(self, p)
1708 def __getstate__(self):
1709 p = self._get_as_binary()
1710 if len(self.__dict__) > 1:
1711 d = self.__dict__.copy()
1716 def __setstate__(self, p):
1717 if not hasattr(self,
'this'):
1719 if isinstance(p, tuple):
1721 self.__dict__.update(d)
1722 return self._set_from_binary(p)
1726 _IMP_npc.PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1728 r"""Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1730 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1732 def __init__(self, *args):
1734 __init__(PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1735 __init__(PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1736 __init__(PerinuclearVolumeLocationRestraint self) -> PerinuclearVolumeLocationRestraint
1738 _IMP_npc.PerinuclearVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args))
1741 r"""add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1742 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1745 r"""add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1746 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
1748 def set_particles(self, ps):
1749 r"""set_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1750 return _IMP_npc.PerinuclearVolumeLocationRestraint_set_particles(self, ps)
1752 def do_get_inputs(self):
1753 r"""do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1754 return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
1756 def get_version_info(self):
1757 r"""get_version_info(PerinuclearVolumeLocationRestraint self) -> VersionInfo"""
1758 return _IMP_npc.PerinuclearVolumeLocationRestraint_get_version_info(self)
1759 __swig_destroy__ = _IMP_npc.delete_PerinuclearVolumeLocationRestraint
1762 r"""__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1763 return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1766 r"""__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1767 return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1771 return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1774 def _get_as_binary(self):
1775 r"""_get_as_binary(PerinuclearVolumeLocationRestraint self) -> PyObject *"""
1776 return _IMP_npc.PerinuclearVolumeLocationRestraint__get_as_binary(self)
1778 def _set_from_binary(self, p):
1779 r"""_set_from_binary(PerinuclearVolumeLocationRestraint self, PyObject * p)"""
1780 return _IMP_npc.PerinuclearVolumeLocationRestraint__set_from_binary(self, p)
1782 def __getstate__(self):
1783 p = self._get_as_binary()
1784 if len(self.__dict__) > 1:
1785 d = self.__dict__.copy()
1790 def __setstate__(self, p):
1791 if not hasattr(self,
'this'):
1793 if isinstance(p, tuple):
1795 self.__dict__.update(d)
1796 return self._set_from_binary(p)
1800 _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1802 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1804 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1806 def __init__(self, *args):
1808 __init__(AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1809 __init__(AssemblySymmetryByDistanceRestraint self, Model m, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1810 __init__(AssemblySymmetryByDistanceRestraint self) -> AssemblySymmetryByDistanceRestraint
1812 _IMP_npc.AssemblySymmetryByDistanceRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args))
1815 r"""add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1816 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1819 r"""add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1820 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
1822 def set_particles(self, ps):
1823 r"""set_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1824 return _IMP_npc.AssemblySymmetryByDistanceRestraint_set_particles(self, ps)
1826 def do_get_inputs(self):
1827 r"""do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1828 return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
1830 def get_version_info(self):
1831 r"""get_version_info(AssemblySymmetryByDistanceRestraint self) -> VersionInfo"""
1832 return _IMP_npc.AssemblySymmetryByDistanceRestraint_get_version_info(self)
1833 __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDistanceRestraint
1836 r"""__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1837 return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1840 r"""__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1841 return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1845 return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1848 def _get_as_binary(self):
1849 r"""_get_as_binary(AssemblySymmetryByDistanceRestraint self) -> PyObject *"""
1850 return _IMP_npc.AssemblySymmetryByDistanceRestraint__get_as_binary(self)
1852 def _set_from_binary(self, p):
1853 r"""_set_from_binary(AssemblySymmetryByDistanceRestraint self, PyObject * p)"""
1854 return _IMP_npc.AssemblySymmetryByDistanceRestraint__set_from_binary(self, p)
1856 def __getstate__(self):
1857 p = self._get_as_binary()
1858 if len(self.__dict__) > 1:
1859 d = self.__dict__.copy()
1864 def __setstate__(self, p):
1865 if not hasattr(self,
'this'):
1867 if isinstance(p, tuple):
1869 self.__dict__.update(d)
1870 return self._set_from_binary(p)
1874 _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1876 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1878 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1880 def __init__(self, *args):
1882 __init__(AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1883 __init__(AssemblySymmetryByDihedralRestraint self, Model m, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1884 __init__(AssemblySymmetryByDihedralRestraint self) -> AssemblySymmetryByDihedralRestraint
1886 _IMP_npc.AssemblySymmetryByDihedralRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args))
1889 r"""add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1890 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1893 r"""add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1894 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
1896 def set_particles(self, ps):
1897 r"""set_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1898 return _IMP_npc.AssemblySymmetryByDihedralRestraint_set_particles(self, ps)
1900 def do_get_inputs(self):
1901 r"""do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1902 return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
1904 def get_version_info(self):
1905 r"""get_version_info(AssemblySymmetryByDihedralRestraint self) -> VersionInfo"""
1906 return _IMP_npc.AssemblySymmetryByDihedralRestraint_get_version_info(self)
1907 __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDihedralRestraint
1910 r"""__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1911 return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1914 r"""__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1915 return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1919 return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1922 def _get_as_binary(self):
1923 r"""_get_as_binary(AssemblySymmetryByDihedralRestraint self) -> PyObject *"""
1924 return _IMP_npc.AssemblySymmetryByDihedralRestraint__get_as_binary(self)
1926 def _set_from_binary(self, p):
1927 r"""_set_from_binary(AssemblySymmetryByDihedralRestraint self, PyObject * p)"""
1928 return _IMP_npc.AssemblySymmetryByDihedralRestraint__set_from_binary(self, p)
1930 def __getstate__(self):
1931 p = self._get_as_binary()
1932 if len(self.__dict__) > 1:
1933 d = self.__dict__.copy()
1938 def __setstate__(self, p):
1939 if not hasattr(self,
'this'):
1941 if isinstance(p, tuple):
1943 self.__dict__.update(d)
1944 return self._set_from_binary(p)
1948 _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1950 r"""Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1952 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1954 def __init__(self, *args):
1956 __init__(ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1957 __init__(ProteinProximityRestraint self, Model m, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1958 __init__(ProteinProximityRestraint self) -> ProteinProximityRestraint
1960 _IMP_npc.ProteinProximityRestraint_swiginit(self, _IMP_npc.new_ProteinProximityRestraint(*args))
1963 r"""add_particle(ProteinProximityRestraint self, Particle p)"""
1964 return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1967 r"""add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1968 return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
1970 def set_particles(self, ps):
1971 r"""set_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1972 return _IMP_npc.ProteinProximityRestraint_set_particles(self, ps)
1974 def do_get_inputs(self):
1975 r"""do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1976 return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
1978 def get_version_info(self):
1979 r"""get_version_info(ProteinProximityRestraint self) -> VersionInfo"""
1980 return _IMP_npc.ProteinProximityRestraint_get_version_info(self)
1981 __swig_destroy__ = _IMP_npc.delete_ProteinProximityRestraint
1984 r"""__str__(ProteinProximityRestraint self) -> std::string"""
1985 return _IMP_npc.ProteinProximityRestraint___str__(self)
1988 r"""__repr__(ProteinProximityRestraint self) -> std::string"""
1989 return _IMP_npc.ProteinProximityRestraint___repr__(self)
1993 return _object_cast_to_ProteinProximityRestraint(o)
1996 def _get_as_binary(self):
1997 r"""_get_as_binary(ProteinProximityRestraint self) -> PyObject *"""
1998 return _IMP_npc.ProteinProximityRestraint__get_as_binary(self)
2000 def _set_from_binary(self, p):
2001 r"""_set_from_binary(ProteinProximityRestraint self, PyObject * p)"""
2002 return _IMP_npc.ProteinProximityRestraint__set_from_binary(self, p)
2004 def __getstate__(self):
2005 p = self._get_as_binary()
2006 if len(self.__dict__) > 1:
2007 d = self.__dict__.copy()
2012 def __setstate__(self, p):
2013 if not hasattr(self,
'this'):
2015 if isinstance(p, tuple):
2017 self.__dict__.update(d)
2018 return self._set_from_binary(p)
2022 _IMP_npc.ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
2024 r"""Proxy of C++ IMP::npc::XAxialPositionRestraint class."""
2026 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2028 def __init__(self, *args):
2030 __init__(XAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionRestraint
2031 __init__(XAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionRestraint
2032 __init__(XAxialPositionRestraint self) -> XAxialPositionRestraint
2034 _IMP_npc.XAxialPositionRestraint_swiginit(self, _IMP_npc.new_XAxialPositionRestraint(*args))
2037 r"""add_particle(XAxialPositionRestraint self, Particle p)"""
2038 return _IMP_npc.XAxialPositionRestraint_add_particle(self, p)
2041 r"""add_particles(XAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2042 return _IMP_npc.XAxialPositionRestraint_add_particles(self, ps)
2044 def set_particles(self, ps):
2045 r"""set_particles(XAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2046 return _IMP_npc.XAxialPositionRestraint_set_particles(self, ps)
2048 def do_get_inputs(self):
2049 r"""do_get_inputs(XAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
2050 return _IMP_npc.XAxialPositionRestraint_do_get_inputs(self)
2052 def get_version_info(self):
2053 r"""get_version_info(XAxialPositionRestraint self) -> VersionInfo"""
2054 return _IMP_npc.XAxialPositionRestraint_get_version_info(self)
2055 __swig_destroy__ = _IMP_npc.delete_XAxialPositionRestraint
2058 r"""__str__(XAxialPositionRestraint self) -> std::string"""
2059 return _IMP_npc.XAxialPositionRestraint___str__(self)
2062 r"""__repr__(XAxialPositionRestraint self) -> std::string"""
2063 return _IMP_npc.XAxialPositionRestraint___repr__(self)
2067 return _object_cast_to_XAxialPositionRestraint(o)
2070 def _get_as_binary(self):
2071 r"""_get_as_binary(XAxialPositionRestraint self) -> PyObject *"""
2072 return _IMP_npc.XAxialPositionRestraint__get_as_binary(self)
2074 def _set_from_binary(self, p):
2075 r"""_set_from_binary(XAxialPositionRestraint self, PyObject * p)"""
2076 return _IMP_npc.XAxialPositionRestraint__set_from_binary(self, p)
2078 def __getstate__(self):
2079 p = self._get_as_binary()
2080 if len(self.__dict__) > 1:
2081 d = self.__dict__.copy()
2086 def __setstate__(self, p):
2087 if not hasattr(self,
'this'):
2089 if isinstance(p, tuple):
2091 self.__dict__.update(d)
2092 return self._set_from_binary(p)
2096 _IMP_npc.XAxialPositionRestraint_swigregister(XAxialPositionRestraint)
2098 r"""Proxy of C++ IMP::npc::XAxialPositionLowerRestraint class."""
2100 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2102 def __init__(self, *args):
2104 __init__(XAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XAxialPositionLowerRestraint
2105 __init__(XAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XAxialPositionLowerRestraint
2106 __init__(XAxialPositionLowerRestraint self) -> XAxialPositionLowerRestraint
2108 _IMP_npc.XAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XAxialPositionLowerRestraint(*args))
2111 r"""add_particle(XAxialPositionLowerRestraint self, Particle p)"""
2112 return _IMP_npc.XAxialPositionLowerRestraint_add_particle(self, p)
2115 r"""add_particles(XAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
2116 return _IMP_npc.XAxialPositionLowerRestraint_add_particles(self, ps)
2118 def set_particles(self, ps):
2119 r"""set_particles(XAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
2120 return _IMP_npc.XAxialPositionLowerRestraint_set_particles(self, ps)
2122 def do_get_inputs(self):
2123 r"""do_get_inputs(XAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
2124 return _IMP_npc.XAxialPositionLowerRestraint_do_get_inputs(self)
2126 def get_version_info(self):
2127 r"""get_version_info(XAxialPositionLowerRestraint self) -> VersionInfo"""
2128 return _IMP_npc.XAxialPositionLowerRestraint_get_version_info(self)
2129 __swig_destroy__ = _IMP_npc.delete_XAxialPositionLowerRestraint
2132 r"""__str__(XAxialPositionLowerRestraint self) -> std::string"""
2133 return _IMP_npc.XAxialPositionLowerRestraint___str__(self)
2136 r"""__repr__(XAxialPositionLowerRestraint self) -> std::string"""
2137 return _IMP_npc.XAxialPositionLowerRestraint___repr__(self)
2141 return _object_cast_to_XAxialPositionLowerRestraint(o)
2144 def _get_as_binary(self):
2145 r"""_get_as_binary(XAxialPositionLowerRestraint self) -> PyObject *"""
2146 return _IMP_npc.XAxialPositionLowerRestraint__get_as_binary(self)
2148 def _set_from_binary(self, p):
2149 r"""_set_from_binary(XAxialPositionLowerRestraint self, PyObject * p)"""
2150 return _IMP_npc.XAxialPositionLowerRestraint__set_from_binary(self, p)
2152 def __getstate__(self):
2153 p = self._get_as_binary()
2154 if len(self.__dict__) > 1:
2155 d = self.__dict__.copy()
2160 def __setstate__(self, p):
2161 if not hasattr(self,
'this'):
2163 if isinstance(p, tuple):
2165 self.__dict__.update(d)
2166 return self._set_from_binary(p)
2170 _IMP_npc.XAxialPositionLowerRestraint_swigregister(XAxialPositionLowerRestraint)
2172 r"""Proxy of C++ IMP::npc::XAxialPositionUpperRestraint class."""
2174 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2176 def __init__(self, *args):
2178 __init__(XAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionUpperRestraint
2179 __init__(XAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XAxialPositionUpperRestraint
2180 __init__(XAxialPositionUpperRestraint self) -> XAxialPositionUpperRestraint
2182 _IMP_npc.XAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XAxialPositionUpperRestraint(*args))
2185 r"""add_particle(XAxialPositionUpperRestraint self, Particle p)"""
2186 return _IMP_npc.XAxialPositionUpperRestraint_add_particle(self, p)
2189 r"""add_particles(XAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
2190 return _IMP_npc.XAxialPositionUpperRestraint_add_particles(self, ps)
2192 def set_particles(self, ps):
2193 r"""set_particles(XAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
2194 return _IMP_npc.XAxialPositionUpperRestraint_set_particles(self, ps)
2196 def do_get_inputs(self):
2197 r"""do_get_inputs(XAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
2198 return _IMP_npc.XAxialPositionUpperRestraint_do_get_inputs(self)
2200 def get_version_info(self):
2201 r"""get_version_info(XAxialPositionUpperRestraint self) -> VersionInfo"""
2202 return _IMP_npc.XAxialPositionUpperRestraint_get_version_info(self)
2203 __swig_destroy__ = _IMP_npc.delete_XAxialPositionUpperRestraint
2206 r"""__str__(XAxialPositionUpperRestraint self) -> std::string"""
2207 return _IMP_npc.XAxialPositionUpperRestraint___str__(self)
2210 r"""__repr__(XAxialPositionUpperRestraint self) -> std::string"""
2211 return _IMP_npc.XAxialPositionUpperRestraint___repr__(self)
2215 return _object_cast_to_XAxialPositionUpperRestraint(o)
2218 def _get_as_binary(self):
2219 r"""_get_as_binary(XAxialPositionUpperRestraint self) -> PyObject *"""
2220 return _IMP_npc.XAxialPositionUpperRestraint__get_as_binary(self)
2222 def _set_from_binary(self, p):
2223 r"""_set_from_binary(XAxialPositionUpperRestraint self, PyObject * p)"""
2224 return _IMP_npc.XAxialPositionUpperRestraint__set_from_binary(self, p)
2226 def __getstate__(self):
2227 p = self._get_as_binary()
2228 if len(self.__dict__) > 1:
2229 d = self.__dict__.copy()
2234 def __setstate__(self, p):
2235 if not hasattr(self,
'this'):
2237 if isinstance(p, tuple):
2239 self.__dict__.update(d)
2240 return self._set_from_binary(p)
2244 _IMP_npc.XAxialPositionUpperRestraint_swigregister(XAxialPositionUpperRestraint)
2246 r"""Proxy of C++ IMP::npc::OverallPositionRestraint class."""
2248 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2250 def __init__(self, *args):
2252 __init__(OverallPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double x_start, double y_start, double z_start, double tolerance, bool consider_radius, double sigma=1) -> OverallPositionRestraint
2253 __init__(OverallPositionRestraint self, Model m, double x_start, double y_start, double z_start, double tolerance, bool consider_radius, double sigma=1) -> OverallPositionRestraint
2254 __init__(OverallPositionRestraint self) -> OverallPositionRestraint
2256 _IMP_npc.OverallPositionRestraint_swiginit(self, _IMP_npc.new_OverallPositionRestraint(*args))
2259 r"""add_particle(OverallPositionRestraint self, Particle p)"""
2260 return _IMP_npc.OverallPositionRestraint_add_particle(self, p)
2263 r"""add_particles(OverallPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2264 return _IMP_npc.OverallPositionRestraint_add_particles(self, ps)
2266 def set_particles(self, ps):
2267 r"""set_particles(OverallPositionRestraint self, IMP::ParticlesTemp const & ps)"""
2268 return _IMP_npc.OverallPositionRestraint_set_particles(self, ps)
2270 def do_get_inputs(self):
2271 r"""do_get_inputs(OverallPositionRestraint self) -> IMP::ModelObjectsTemp"""
2272 return _IMP_npc.OverallPositionRestraint_do_get_inputs(self)
2274 def get_version_info(self):
2275 r"""get_version_info(OverallPositionRestraint self) -> VersionInfo"""
2276 return _IMP_npc.OverallPositionRestraint_get_version_info(self)
2277 __swig_destroy__ = _IMP_npc.delete_OverallPositionRestraint
2280 r"""__str__(OverallPositionRestraint self) -> std::string"""
2281 return _IMP_npc.OverallPositionRestraint___str__(self)
2284 r"""__repr__(OverallPositionRestraint self) -> std::string"""
2285 return _IMP_npc.OverallPositionRestraint___repr__(self)
2289 return _object_cast_to_OverallPositionRestraint(o)
2292 def _get_as_binary(self):
2293 r"""_get_as_binary(OverallPositionRestraint self) -> PyObject *"""
2294 return _IMP_npc.OverallPositionRestraint__get_as_binary(self)
2296 def _set_from_binary(self, p):
2297 r"""_set_from_binary(OverallPositionRestraint self, PyObject * p)"""
2298 return _IMP_npc.OverallPositionRestraint__set_from_binary(self, p)
2300 def __getstate__(self):
2301 p = self._get_as_binary()
2302 if len(self.__dict__) > 1:
2303 d = self.__dict__.copy()
2308 def __setstate__(self, p):
2309 if not hasattr(self,
'this'):
2311 if isinstance(p, tuple):
2313 self.__dict__.update(d)
2314 return self._set_from_binary(p)
2318 _IMP_npc.OverallPositionRestraint_swigregister(OverallPositionRestraint)
2320 r"""Proxy of C++ IMP::npc::CompositeRestraint class."""
2322 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2324 def __init__(self, m, ps):
2325 r"""__init__(CompositeRestraint self, Model m, PairScore ps) -> CompositeRestraint"""
2326 _IMP_npc.CompositeRestraint_swiginit(self, _IMP_npc.new_CompositeRestraint(m, ps))
2328 def add_type(self, ps):
2329 r"""add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
2330 return _IMP_npc.CompositeRestraint_add_type(self, ps)
2332 def get_connected_pairs(self):
2333 r"""get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
2334 return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
2336 def do_get_inputs(self):
2337 r"""do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
2338 return _IMP_npc.CompositeRestraint_do_get_inputs(self)
2340 def get_version_info(self):
2341 r"""get_version_info(CompositeRestraint self) -> VersionInfo"""
2342 return _IMP_npc.CompositeRestraint_get_version_info(self)
2343 __swig_destroy__ = _IMP_npc.delete_CompositeRestraint
2346 r"""__str__(CompositeRestraint self) -> std::string"""
2347 return _IMP_npc.CompositeRestraint___str__(self)
2350 r"""__repr__(CompositeRestraint self) -> std::string"""
2351 return _IMP_npc.CompositeRestraint___repr__(self)
2355 return _object_cast_to_CompositeRestraint(o)
2359 _IMP_npc.CompositeRestraint_swigregister(CompositeRestraint)
2361 r"""Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
2363 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2365 def __init__(self, *args):
2367 __init__(MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore
2368 __init__(MinimumSphereDistancePairScore self) -> MinimumSphereDistancePairScore
2370 _IMP_npc.MinimumSphereDistancePairScore_swiginit(self, _IMP_npc.new_MinimumSphereDistancePairScore(*args))
2372 def do_get_inputs(self, m, pis):
2373 r"""do_get_inputs(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2374 return _IMP_npc.MinimumSphereDistancePairScore_do_get_inputs(self, m, pis)
2376 def get_version_info(self):
2377 r"""get_version_info(MinimumSphereDistancePairScore self) -> VersionInfo"""
2378 return _IMP_npc.MinimumSphereDistancePairScore_get_version_info(self)
2379 __swig_destroy__ = _IMP_npc.delete_MinimumSphereDistancePairScore
2382 r"""__str__(MinimumSphereDistancePairScore self) -> std::string"""
2383 return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
2386 r"""__repr__(MinimumSphereDistancePairScore self) -> std::string"""
2387 return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
2391 return _object_cast_to_MinimumSphereDistancePairScore(o)
2394 def _get_as_binary(self):
2395 r"""_get_as_binary(MinimumSphereDistancePairScore self) -> PyObject *"""
2396 return _IMP_npc.MinimumSphereDistancePairScore__get_as_binary(self)
2398 def _set_from_binary(self, p):
2399 r"""_set_from_binary(MinimumSphereDistancePairScore self, PyObject * p)"""
2400 return _IMP_npc.MinimumSphereDistancePairScore__set_from_binary(self, p)
2402 def __getstate__(self):
2403 p = self._get_as_binary()
2404 if len(self.__dict__) > 1:
2405 d = self.__dict__.copy()
2410 def __setstate__(self, p):
2411 if not hasattr(self,
'this'):
2413 if isinstance(p, tuple):
2415 self.__dict__.update(d)
2416 return self._set_from_binary(p)
2420 _IMP_npc.MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
2422 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndent class."""
2424 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2426 def set_sphere_radius(self, R):
2427 r"""set_sphere_radius(SlabWithSphericalIndent self, double R)"""
2428 return _IMP_npc.SlabWithSphericalIndent_set_sphere_radius(self, R)
2430 def set_sphere_depth(self, h):
2431 r"""set_sphere_depth(SlabWithSphericalIndent self, double h)"""
2432 return _IMP_npc.SlabWithSphericalIndent_set_sphere_depth(self, h)
2434 def get_sphere_radius(self):
2435 r"""get_sphere_radius(SlabWithSphericalIndent self) -> IMP::Float"""
2436 return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius(self)
2438 def get_sphere_depth(self):
2439 r"""get_sphere_depth(SlabWithSphericalIndent self) -> IMP::Float"""
2440 return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth(self)
2443 def get_sphere_radius_key():
2444 r"""get_sphere_radius_key() -> FloatKey"""
2445 return _IMP_npc.SlabWithSphericalIndent_get_sphere_radius_key()
2448 def get_sphere_depth_key():
2449 r"""get_sphere_depth_key() -> FloatKey"""
2450 return _IMP_npc.SlabWithSphericalIndent_get_sphere_depth_key()
2452 def get_decorator_name(self):
2453 r"""get_decorator_name(SlabWithSphericalIndent self) -> std::string"""
2454 return _IMP_npc.SlabWithSphericalIndent_get_decorator_name(self)
2456 def set_decorator_name(self, nm):
2457 r"""set_decorator_name(SlabWithSphericalIndent self, std::string nm)"""
2458 return _IMP_npc.SlabWithSphericalIndent_set_decorator_name(self, nm)
2460 def __init__(self, *args):
2462 __init__(SlabWithSphericalIndent self) -> SlabWithSphericalIndent
2463 __init__(SlabWithSphericalIndent self, Model m, ParticleIndex id) -> SlabWithSphericalIndent
2464 __init__(SlabWithSphericalIndent self, _ParticleAdaptor d) -> SlabWithSphericalIndent
2466 _IMP_npc.SlabWithSphericalIndent_swiginit(self, _IMP_npc.new_SlabWithSphericalIndent(*args))
2469 def get_is_setup(*args):
2471 get_is_setup(Model m, ParticleIndex pi) -> bool
2472 get_is_setup(_ParticleAdaptor p) -> bool
2474 return _IMP_npc.SlabWithSphericalIndent_get_is_setup(*args)
2476 def show(self, *args):
2477 r"""show(SlabWithSphericalIndent self, _ostream out=std::cout)"""
2478 return _IMP_npc.SlabWithSphericalIndent_show(self, *args)
2481 def setup_particle(*args):
2483 setup_particle(Model m, ParticleIndex pi, double R, double h) -> SlabWithSphericalIndent
2484 setup_particle(_ParticleAdaptor pa, double R, double h) -> SlabWithSphericalIndent
2486 return _IMP_npc.SlabWithSphericalIndent_setup_particle(*args)
2488 def add_attribute(self, *args):
2490 add_attribute(SlabWithSphericalIndent self, FloatKey k, IMP::Float v, bool opt)
2491 add_attribute(SlabWithSphericalIndent self, FloatKey a0, IMP::Float a1)
2492 add_attribute(SlabWithSphericalIndent self, IntKey a0, IMP::Int a1)
2493 add_attribute(SlabWithSphericalIndent self, FloatsKey a0, IMP::Floats a1)
2494 add_attribute(SlabWithSphericalIndent self, IntsKey a0, IMP::Ints a1)
2495 add_attribute(SlabWithSphericalIndent self, StringKey a0, IMP::String a1)
2496 add_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0, Particle a1)
2497 add_attribute(SlabWithSphericalIndent self, ObjectKey a0, Object a1)
2498 add_attribute(SlabWithSphericalIndent self, SparseFloatKey a0, IMP::Float a1)
2499 add_attribute(SlabWithSphericalIndent self, SparseIntKey a0, IMP::Int a1)
2500 add_attribute(SlabWithSphericalIndent self, SparseStringKey a0, IMP::String a1)
2501 add_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0, ParticleIndex a1)
2503 return _IMP_npc.SlabWithSphericalIndent_add_attribute(self, *args)
2505 def get_value(self, *args):
2507 get_value(SlabWithSphericalIndent self, FloatKey a0) -> IMP::Float
2508 get_value(SlabWithSphericalIndent self, IntKey a0) -> IMP::Int
2509 get_value(SlabWithSphericalIndent self, FloatsKey a0) -> IMP::Floats
2510 get_value(SlabWithSphericalIndent self, IntsKey a0) -> IMP::Ints
2511 get_value(SlabWithSphericalIndent self, StringKey a0) -> IMP::String
2512 get_value(SlabWithSphericalIndent self, ParticleIndexKey a0) -> Particle
2513 get_value(SlabWithSphericalIndent self, ObjectKey a0) -> Object
2514 get_value(SlabWithSphericalIndent self, SparseFloatKey a0) -> IMP::Float
2515 get_value(SlabWithSphericalIndent self, SparseIntKey a0) -> IMP::Int
2516 get_value(SlabWithSphericalIndent self, SparseStringKey a0) -> IMP::String
2517 get_value(SlabWithSphericalIndent self, SparseParticleIndexKey a0) -> ParticleIndex
2519 return _IMP_npc.SlabWithSphericalIndent_get_value(self, *args)
2521 def set_value(self, *args):
2523 set_value(SlabWithSphericalIndent self, FloatKey a0, IMP::Float a1)
2524 set_value(SlabWithSphericalIndent self, IntKey a0, IMP::Int a1)
2525 set_value(SlabWithSphericalIndent self, FloatsKey a0, IMP::Floats a1)
2526 set_value(SlabWithSphericalIndent self, IntsKey a0, IMP::Ints a1)
2527 set_value(SlabWithSphericalIndent self, StringKey a0, IMP::String a1)
2528 set_value(SlabWithSphericalIndent self, ParticleIndexKey a0, Particle a1)
2529 set_value(SlabWithSphericalIndent self, ObjectKey a0, Object a1)
2530 set_value(SlabWithSphericalIndent self, SparseFloatKey a0, IMP::Float a1)
2531 set_value(SlabWithSphericalIndent self, SparseIntKey a0, IMP::Int a1)
2532 set_value(SlabWithSphericalIndent self, SparseStringKey a0, IMP::String a1)
2533 set_value(SlabWithSphericalIndent self, SparseParticleIndexKey a0, ParticleIndex a1)
2535 return _IMP_npc.SlabWithSphericalIndent_set_value(self, *args)
2537 def remove_attribute(self, *args):
2539 remove_attribute(SlabWithSphericalIndent self, FloatKey a0)
2540 remove_attribute(SlabWithSphericalIndent self, IntKey a0)
2541 remove_attribute(SlabWithSphericalIndent self, FloatsKey a0)
2542 remove_attribute(SlabWithSphericalIndent self, IntsKey a0)
2543 remove_attribute(SlabWithSphericalIndent self, StringKey a0)
2544 remove_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0)
2545 remove_attribute(SlabWithSphericalIndent self, ObjectKey a0)
2546 remove_attribute(SlabWithSphericalIndent self, SparseFloatKey a0)
2547 remove_attribute(SlabWithSphericalIndent self, SparseIntKey a0)
2548 remove_attribute(SlabWithSphericalIndent self, SparseStringKey a0)
2549 remove_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0)
2551 return _IMP_npc.SlabWithSphericalIndent_remove_attribute(self, *args)
2553 def has_attribute(self, *args):
2555 has_attribute(SlabWithSphericalIndent self, FloatKey a0) -> bool
2556 has_attribute(SlabWithSphericalIndent self, IntKey a0) -> bool
2557 has_attribute(SlabWithSphericalIndent self, FloatsKey a0) -> bool
2558 has_attribute(SlabWithSphericalIndent self, IntsKey a0) -> bool
2559 has_attribute(SlabWithSphericalIndent self, StringKey a0) -> bool
2560 has_attribute(SlabWithSphericalIndent self, ParticleIndexKey a0) -> bool
2561 has_attribute(SlabWithSphericalIndent self, ObjectKey a0) -> bool
2562 has_attribute(SlabWithSphericalIndent self, SparseFloatKey a0) -> bool
2563 has_attribute(SlabWithSphericalIndent self, SparseIntKey a0) -> bool
2564 has_attribute(SlabWithSphericalIndent self, SparseStringKey a0) -> bool
2565 has_attribute(SlabWithSphericalIndent self, SparseParticleIndexKey a0) -> bool
2567 return _IMP_npc.SlabWithSphericalIndent_has_attribute(self, *args)
2569 def get_derivative(self, a0):
2570 r"""get_derivative(SlabWithSphericalIndent self, FloatKey a0) -> double"""
2571 return _IMP_npc.SlabWithSphericalIndent_get_derivative(self, a0)
2574 r"""get_name(SlabWithSphericalIndent self) -> std::string"""
2575 return _IMP_npc.SlabWithSphericalIndent_get_name(self)
2577 def clear_caches(self):
2578 r"""clear_caches(SlabWithSphericalIndent self)"""
2579 return _IMP_npc.SlabWithSphericalIndent_clear_caches(self)
2581 def set_name(self, a0):
2582 r"""set_name(SlabWithSphericalIndent self, std::string a0)"""
2583 return _IMP_npc.SlabWithSphericalIndent_set_name(self, a0)
2586 r"""set_check_level(SlabWithSphericalIndent self, IMP::CheckLevel a0)"""
2587 return _IMP_npc.SlabWithSphericalIndent_set_check_level(self, a0)
2589 def add_to_derivative(self, a0, a1, a2):
2590 r"""add_to_derivative(SlabWithSphericalIndent self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2591 return _IMP_npc.SlabWithSphericalIndent_add_to_derivative(self, a0, a1, a2)
2593 def set_is_optimized(self, a0, a1):
2594 r"""set_is_optimized(SlabWithSphericalIndent self, FloatKey a0, bool a1)"""
2595 return _IMP_npc.SlabWithSphericalIndent_set_is_optimized(self, a0, a1)
2597 def get_is_optimized(self, a0):
2598 r"""get_is_optimized(SlabWithSphericalIndent self, FloatKey a0) -> bool"""
2599 return _IMP_npc.SlabWithSphericalIndent_get_is_optimized(self, a0)
2602 r"""get_check_level(SlabWithSphericalIndent self) -> IMP::CheckLevel"""
2603 return _IMP_npc.SlabWithSphericalIndent_get_check_level(self)
2605 def __eq__(self, *args):
2607 __eq__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2608 __eq__(SlabWithSphericalIndent self, Particle d) -> bool
2610 return _IMP_npc.SlabWithSphericalIndent___eq__(self, *args)
2612 def __ne__(self, *args):
2614 __ne__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2615 __ne__(SlabWithSphericalIndent self, Particle d) -> bool
2617 return _IMP_npc.SlabWithSphericalIndent___ne__(self, *args)
2619 def __le__(self, *args):
2621 __le__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2622 __le__(SlabWithSphericalIndent self, Particle d) -> bool
2624 return _IMP_npc.SlabWithSphericalIndent___le__(self, *args)
2626 def __lt__(self, *args):
2628 __lt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2629 __lt__(SlabWithSphericalIndent self, Particle d) -> bool
2631 return _IMP_npc.SlabWithSphericalIndent___lt__(self, *args)
2633 def __ge__(self, *args):
2635 __ge__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2636 __ge__(SlabWithSphericalIndent self, Particle d) -> bool
2638 return _IMP_npc.SlabWithSphericalIndent___ge__(self, *args)
2640 def __gt__(self, *args):
2642 __gt__(SlabWithSphericalIndent self, SlabWithSphericalIndent o) -> bool
2643 __gt__(SlabWithSphericalIndent self, Particle d) -> bool
2645 return _IMP_npc.SlabWithSphericalIndent___gt__(self, *args)
2648 r"""__hash__(SlabWithSphericalIndent self) -> std::size_t"""
2649 return _IMP_npc.SlabWithSphericalIndent___hash__(self)
2652 r"""__str__(SlabWithSphericalIndent self) -> std::string"""
2653 return _IMP_npc.SlabWithSphericalIndent___str__(self)
2656 r"""__repr__(SlabWithSphericalIndent self) -> std::string"""
2657 return _IMP_npc.SlabWithSphericalIndent___repr__(self)
2659 def _get_as_binary(self):
2660 r"""_get_as_binary(SlabWithSphericalIndent self) -> PyObject *"""
2661 return _IMP_npc.SlabWithSphericalIndent__get_as_binary(self)
2663 def _set_from_binary(self, p):
2664 r"""_set_from_binary(SlabWithSphericalIndent self, PyObject * p)"""
2665 return _IMP_npc.SlabWithSphericalIndent__set_from_binary(self, p)
2667 def __getstate__(self):
2668 p = self._get_as_binary()
2669 if len(self.__dict__) > 1:
2670 d = self.__dict__.copy()
2675 def __setstate__(self, p):
2676 if not hasattr(self,
'this'):
2678 if isinstance(p, tuple):
2680 self.__dict__.update(d)
2681 return self._set_from_binary(p)
2683 __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndent
2686 _IMP_npc.SlabWithSphericalIndent_swigregister(SlabWithSphericalIndent)
2688 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentMBMScore class."""
2690 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2692 def __init__(self, x0, k):
2693 r"""__init__(SlabWithSphericalIndentMBMScore self, double x0, double k) -> SlabWithSphericalIndentMBMScore"""
2694 _IMP_npc.SlabWithSphericalIndentMBMScore_swiginit(self, _IMP_npc.new_SlabWithSphericalIndentMBMScore(x0, k))
2696 def do_get_inputs(self, m, pis):
2697 r"""do_get_inputs(SlabWithSphericalIndentMBMScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2698 return _IMP_npc.SlabWithSphericalIndentMBMScore_do_get_inputs(self, m, pis)
2700 def get_version_info(self):
2701 r"""get_version_info(SlabWithSphericalIndentMBMScore self) -> VersionInfo"""
2702 return _IMP_npc.SlabWithSphericalIndentMBMScore_get_version_info(self)
2703 __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndentMBMScore
2706 r"""__str__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2707 return _IMP_npc.SlabWithSphericalIndentMBMScore___str__(self)
2710 r"""__repr__(SlabWithSphericalIndentMBMScore self) -> std::string"""
2711 return _IMP_npc.SlabWithSphericalIndentMBMScore___repr__(self)
2715 return _object_cast_to_SlabWithSphericalIndentMBMScore(o)
2719 _IMP_npc.SlabWithSphericalIndentMBMScore_swigregister(SlabWithSphericalIndentMBMScore)
2721 r"""Proxy of C++ IMP::npc::SlabWithSphericalIndentGeometry class."""
2723 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2725 def __init__(self, radius, depth, length):
2726 r"""__init__(SlabWithSphericalIndentGeometry self, double radius, double depth, double length) -> SlabWithSphericalIndentGeometry"""
2727 _IMP_npc.SlabWithSphericalIndentGeometry_swiginit(self, _IMP_npc.new_SlabWithSphericalIndentGeometry(radius, depth, length))
2729 def get_version_info(self):
2730 r"""get_version_info(SlabWithSphericalIndentGeometry self) -> VersionInfo"""
2731 return _IMP_npc.SlabWithSphericalIndentGeometry_get_version_info(self)
2732 __swig_destroy__ = _IMP_npc.delete_SlabWithSphericalIndentGeometry
2735 r"""__str__(SlabWithSphericalIndentGeometry self) -> std::string"""
2736 return _IMP_npc.SlabWithSphericalIndentGeometry___str__(self)
2739 r"""__repr__(SlabWithSphericalIndentGeometry self) -> std::string"""
2740 return _IMP_npc.SlabWithSphericalIndentGeometry___repr__(self)
2744 return _object_cast_to_SlabWithSphericalIndentGeometry(o)
2748 _IMP_npc.SlabWithSphericalIndentGeometry_swigregister(SlabWithSphericalIndentGeometry)
2750 r"""Proxy of C++ IMP::npc::SphericalIndentSurfaceDepthPairScore class."""
2752 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2754 def __init__(self, k):
2755 r"""__init__(SphericalIndentSurfaceDepthPairScore self, double k) -> SphericalIndentSurfaceDepthPairScore"""
2756 _IMP_npc.SphericalIndentSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_SphericalIndentSurfaceDepthPairScore(k))
2758 def do_get_inputs(self, m, pis):
2759 r"""do_get_inputs(SphericalIndentSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2760 return _IMP_npc.SphericalIndentSurfaceDepthPairScore_do_get_inputs(self, m, pis)
2762 def get_version_info(self):
2763 r"""get_version_info(SphericalIndentSurfaceDepthPairScore self) -> VersionInfo"""
2764 return _IMP_npc.SphericalIndentSurfaceDepthPairScore_get_version_info(self)
2765 __swig_destroy__ = _IMP_npc.delete_SphericalIndentSurfaceDepthPairScore
2768 r"""__str__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2769 return _IMP_npc.SphericalIndentSurfaceDepthPairScore___str__(self)
2772 r"""__repr__(SphericalIndentSurfaceDepthPairScore self) -> std::string"""
2773 return _IMP_npc.SphericalIndentSurfaceDepthPairScore___repr__(self)
2777 return _object_cast_to_SphericalIndentSurfaceDepthPairScore(o)
2781 _IMP_npc.SphericalIndentSurfaceDepthPairScore_swigregister(SphericalIndentSurfaceDepthPairScore)
2783 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreMBMScore class."""
2785 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2787 def __init__(self, x0_upper, x0_lower, k):
2788 r"""__init__(SlabWithToroidalPoreMBMScore self, double x0_upper, double x0_lower, double k) -> SlabWithToroidalPoreMBMScore"""
2789 _IMP_npc.SlabWithToroidalPoreMBMScore_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreMBMScore(x0_upper, x0_lower, k))
2791 def do_get_inputs(self, m, pis):
2792 r"""do_get_inputs(SlabWithToroidalPoreMBMScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2793 return _IMP_npc.SlabWithToroidalPoreMBMScore_do_get_inputs(self, m, pis)
2795 def get_version_info(self):
2796 r"""get_version_info(SlabWithToroidalPoreMBMScore self) -> VersionInfo"""
2797 return _IMP_npc.SlabWithToroidalPoreMBMScore_get_version_info(self)
2798 __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreMBMScore
2801 r"""__str__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2802 return _IMP_npc.SlabWithToroidalPoreMBMScore___str__(self)
2805 r"""__repr__(SlabWithToroidalPoreMBMScore self) -> std::string"""
2806 return _IMP_npc.SlabWithToroidalPoreMBMScore___repr__(self)
2810 return _object_cast_to_SlabWithToroidalPoreMBMScore(o)
2814 _IMP_npc.SlabWithToroidalPoreMBMScore_swigregister(SlabWithToroidalPoreMBMScore)
2816 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreGoPairScore class."""
2818 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2820 def __init__(self, x0, k):
2821 r"""__init__(SlabWithToroidalPoreGoPairScore self, double x0, double k) -> SlabWithToroidalPoreGoPairScore"""
2822 _IMP_npc.SlabWithToroidalPoreGoPairScore_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreGoPairScore(x0, k))
2824 def do_get_inputs(self, m, pis):
2825 r"""do_get_inputs(SlabWithToroidalPoreGoPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2826 return _IMP_npc.SlabWithToroidalPoreGoPairScore_do_get_inputs(self, m, pis)
2828 def get_version_info(self):
2829 r"""get_version_info(SlabWithToroidalPoreGoPairScore self) -> VersionInfo"""
2830 return _IMP_npc.SlabWithToroidalPoreGoPairScore_get_version_info(self)
2831 __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreGoPairScore
2834 r"""__str__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2835 return _IMP_npc.SlabWithToroidalPoreGoPairScore___str__(self)
2838 r"""__repr__(SlabWithToroidalPoreGoPairScore self) -> std::string"""
2839 return _IMP_npc.SlabWithToroidalPoreGoPairScore___repr__(self)
2843 return _object_cast_to_SlabWithToroidalPoreGoPairScore(o)
2847 _IMP_npc.SlabWithToroidalPoreGoPairScore_swigregister(SlabWithToroidalPoreGoPairScore)
2849 r"""Proxy of C++ IMP::npc::ToroidalPoreSurfaceDepthPairScore class."""
2851 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2853 def __init__(self, k):
2854 r"""__init__(ToroidalPoreSurfaceDepthPairScore self, double k) -> ToroidalPoreSurfaceDepthPairScore"""
2855 _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swiginit(self, _IMP_npc.new_ToroidalPoreSurfaceDepthPairScore(k))
2857 def do_get_inputs(self, m, pis):
2858 r"""do_get_inputs(ToroidalPoreSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2859 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_do_get_inputs(self, m, pis)
2861 def get_version_info(self):
2862 r"""get_version_info(ToroidalPoreSurfaceDepthPairScore self) -> VersionInfo"""
2863 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore_get_version_info(self)
2864 __swig_destroy__ = _IMP_npc.delete_ToroidalPoreSurfaceDepthPairScore
2867 r"""__str__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2868 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___str__(self)
2871 r"""__repr__(ToroidalPoreSurfaceDepthPairScore self) -> std::string"""
2872 return _IMP_npc.ToroidalPoreSurfaceDepthPairScore___repr__(self)
2876 return _object_cast_to_ToroidalPoreSurfaceDepthPairScore(o)
2880 _IMP_npc.ToroidalPoreSurfaceDepthPairScore_swigregister(ToroidalPoreSurfaceDepthPairScore)
2882 r"""Proxy of C++ IMP::npc::SlabWithPore class."""
2884 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2886 def __init__(self, *args):
2888 __init__(SlabWithPore self) -> SlabWithPore
2889 __init__(SlabWithPore self, Model m, ParticleIndex id) -> SlabWithPore
2890 __init__(SlabWithPore self, _ParticleAdaptor d) -> SlabWithPore
2892 _IMP_npc.SlabWithPore_swiginit(self, _IMP_npc.new_SlabWithPore(*args))
2894 def show(self, *args):
2895 r"""show(SlabWithPore self, _ostream out=std::cout)"""
2896 return _IMP_npc.SlabWithPore_show(self, *args)
2899 def setup_particle(*args):
2901 setup_particle(Model m, ParticleIndex pi, double thickness, double pore_radius) -> SlabWithPore
2902 setup_particle(_ParticleAdaptor pa, double thickness, double pore_radius) -> SlabWithPore
2904 return _IMP_npc.SlabWithPore_setup_particle(*args)
2907 def get_is_setup(*args):
2909 get_is_setup(_ParticleAdaptor p) -> bool
2910 get_is_setup(Model m, ParticleIndex pi) -> bool
2912 return _IMP_npc.SlabWithPore_get_is_setup(*args)
2914 def set_thickness(self, thickness):
2915 r"""set_thickness(SlabWithPore self, double thickness)"""
2916 return _IMP_npc.SlabWithPore_set_thickness(self, thickness)
2918 def get_thickness(self):
2919 r"""get_thickness(SlabWithPore self) -> IMP::Float"""
2920 return _IMP_npc.SlabWithPore_get_thickness(self)
2922 def get_pore_radius(self):
2923 r"""get_pore_radius(SlabWithPore self) -> IMP::Float"""
2924 return _IMP_npc.SlabWithPore_get_pore_radius(self)
2926 def set_pore_radius(self, r):
2927 r"""set_pore_radius(SlabWithPore self, double r)"""
2928 return _IMP_npc.SlabWithPore_set_pore_radius(self, r)
2930 def add_to_pore_radius_derivative(self, v, d):
2931 r"""add_to_pore_radius_derivative(SlabWithPore self, double v, DerivativeAccumulator d)"""
2932 return _IMP_npc.SlabWithPore_add_to_pore_radius_derivative(self, v, d)
2934 def get_pore_radius_is_optimized(self):
2935 r"""get_pore_radius_is_optimized(SlabWithPore self) -> bool"""
2936 return _IMP_npc.SlabWithPore_get_pore_radius_is_optimized(self)
2938 def set_pore_radius_is_optimized(self, tf):
2939 r"""set_pore_radius_is_optimized(SlabWithPore self, bool tf)"""
2940 return _IMP_npc.SlabWithPore_set_pore_radius_is_optimized(self, tf)
2943 def get_thickness_key():
2944 r"""get_thickness_key() -> FloatKey"""
2945 return _IMP_npc.SlabWithPore_get_thickness_key()
2948 def get_pore_radius_key():
2949 r"""get_pore_radius_key() -> FloatKey"""
2950 return _IMP_npc.SlabWithPore_get_pore_radius_key()
2952 def add_attribute(self, *args):
2954 add_attribute(SlabWithPore self, FloatKey k, IMP::Float v, bool opt)
2955 add_attribute(SlabWithPore self, FloatKey a0, IMP::Float a1)
2956 add_attribute(SlabWithPore self, IntKey a0, IMP::Int a1)
2957 add_attribute(SlabWithPore self, FloatsKey a0, IMP::Floats a1)
2958 add_attribute(SlabWithPore self, IntsKey a0, IMP::Ints a1)
2959 add_attribute(SlabWithPore self, StringKey a0, IMP::String a1)
2960 add_attribute(SlabWithPore self, ParticleIndexKey a0, Particle a1)
2961 add_attribute(SlabWithPore self, ObjectKey a0, Object a1)
2962 add_attribute(SlabWithPore self, SparseFloatKey a0, IMP::Float a1)
2963 add_attribute(SlabWithPore self, SparseIntKey a0, IMP::Int a1)
2964 add_attribute(SlabWithPore self, SparseStringKey a0, IMP::String a1)
2965 add_attribute(SlabWithPore self, SparseParticleIndexKey a0, ParticleIndex a1)
2967 return _IMP_npc.SlabWithPore_add_attribute(self, *args)
2969 def get_value(self, *args):
2971 get_value(SlabWithPore self, FloatKey a0) -> IMP::Float
2972 get_value(SlabWithPore self, IntKey a0) -> IMP::Int
2973 get_value(SlabWithPore self, FloatsKey a0) -> IMP::Floats
2974 get_value(SlabWithPore self, IntsKey a0) -> IMP::Ints
2975 get_value(SlabWithPore self, StringKey a0) -> IMP::String
2976 get_value(SlabWithPore self, ParticleIndexKey a0) -> Particle
2977 get_value(SlabWithPore self, ObjectKey a0) -> Object
2978 get_value(SlabWithPore self, SparseFloatKey a0) -> IMP::Float
2979 get_value(SlabWithPore self, SparseIntKey a0) -> IMP::Int
2980 get_value(SlabWithPore self, SparseStringKey a0) -> IMP::String
2981 get_value(SlabWithPore self, SparseParticleIndexKey a0) -> ParticleIndex
2983 return _IMP_npc.SlabWithPore_get_value(self, *args)
2985 def set_value(self, *args):
2987 set_value(SlabWithPore self, FloatKey a0, IMP::Float a1)
2988 set_value(SlabWithPore self, IntKey a0, IMP::Int a1)
2989 set_value(SlabWithPore self, FloatsKey a0, IMP::Floats a1)
2990 set_value(SlabWithPore self, IntsKey a0, IMP::Ints a1)
2991 set_value(SlabWithPore self, StringKey a0, IMP::String a1)
2992 set_value(SlabWithPore self, ParticleIndexKey a0, Particle a1)
2993 set_value(SlabWithPore self, ObjectKey a0, Object a1)
2994 set_value(SlabWithPore self, SparseFloatKey a0, IMP::Float a1)
2995 set_value(SlabWithPore self, SparseIntKey a0, IMP::Int a1)
2996 set_value(SlabWithPore self, SparseStringKey a0, IMP::String a1)
2997 set_value(SlabWithPore self, SparseParticleIndexKey a0, ParticleIndex a1)
2999 return _IMP_npc.SlabWithPore_set_value(self, *args)
3001 def remove_attribute(self, *args):
3003 remove_attribute(SlabWithPore self, FloatKey a0)
3004 remove_attribute(SlabWithPore self, IntKey a0)
3005 remove_attribute(SlabWithPore self, FloatsKey a0)
3006 remove_attribute(SlabWithPore self, IntsKey a0)
3007 remove_attribute(SlabWithPore self, StringKey a0)
3008 remove_attribute(SlabWithPore self, ParticleIndexKey a0)
3009 remove_attribute(SlabWithPore self, ObjectKey a0)
3010 remove_attribute(SlabWithPore self, SparseFloatKey a0)
3011 remove_attribute(SlabWithPore self, SparseIntKey a0)
3012 remove_attribute(SlabWithPore self, SparseStringKey a0)
3013 remove_attribute(SlabWithPore self, SparseParticleIndexKey a0)
3015 return _IMP_npc.SlabWithPore_remove_attribute(self, *args)
3017 def has_attribute(self, *args):
3019 has_attribute(SlabWithPore self, FloatKey a0) -> bool
3020 has_attribute(SlabWithPore self, IntKey a0) -> bool
3021 has_attribute(SlabWithPore self, FloatsKey a0) -> bool
3022 has_attribute(SlabWithPore self, IntsKey a0) -> bool
3023 has_attribute(SlabWithPore self, StringKey a0) -> bool
3024 has_attribute(SlabWithPore self, ParticleIndexKey a0) -> bool
3025 has_attribute(SlabWithPore self, ObjectKey a0) -> bool
3026 has_attribute(SlabWithPore self, SparseFloatKey a0) -> bool
3027 has_attribute(SlabWithPore self, SparseIntKey a0) -> bool
3028 has_attribute(SlabWithPore self, SparseStringKey a0) -> bool
3029 has_attribute(SlabWithPore self, SparseParticleIndexKey a0) -> bool
3031 return _IMP_npc.SlabWithPore_has_attribute(self, *args)
3033 def get_derivative(self, a0):
3034 r"""get_derivative(SlabWithPore self, FloatKey a0) -> double"""
3035 return _IMP_npc.SlabWithPore_get_derivative(self, a0)
3038 r"""get_name(SlabWithPore self) -> std::string"""
3039 return _IMP_npc.SlabWithPore_get_name(self)
3041 def clear_caches(self):
3042 r"""clear_caches(SlabWithPore self)"""
3043 return _IMP_npc.SlabWithPore_clear_caches(self)
3045 def set_name(self, a0):
3046 r"""set_name(SlabWithPore self, std::string a0)"""
3047 return _IMP_npc.SlabWithPore_set_name(self, a0)
3050 r"""set_check_level(SlabWithPore self, IMP::CheckLevel a0)"""
3051 return _IMP_npc.SlabWithPore_set_check_level(self, a0)
3053 def add_to_derivative(self, a0, a1, a2):
3054 r"""add_to_derivative(SlabWithPore self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3055 return _IMP_npc.SlabWithPore_add_to_derivative(self, a0, a1, a2)
3057 def set_is_optimized(self, a0, a1):
3058 r"""set_is_optimized(SlabWithPore self, FloatKey a0, bool a1)"""
3059 return _IMP_npc.SlabWithPore_set_is_optimized(self, a0, a1)
3061 def get_is_optimized(self, a0):
3062 r"""get_is_optimized(SlabWithPore self, FloatKey a0) -> bool"""
3063 return _IMP_npc.SlabWithPore_get_is_optimized(self, a0)
3066 r"""get_check_level(SlabWithPore self) -> IMP::CheckLevel"""
3067 return _IMP_npc.SlabWithPore_get_check_level(self)
3069 def __eq__(self, *args):
3071 __eq__(SlabWithPore self, SlabWithPore o) -> bool
3072 __eq__(SlabWithPore self, Particle d) -> bool
3074 return _IMP_npc.SlabWithPore___eq__(self, *args)
3076 def __ne__(self, *args):
3078 __ne__(SlabWithPore self, SlabWithPore o) -> bool
3079 __ne__(SlabWithPore self, Particle d) -> bool
3081 return _IMP_npc.SlabWithPore___ne__(self, *args)
3083 def __le__(self, *args):
3085 __le__(SlabWithPore self, SlabWithPore o) -> bool
3086 __le__(SlabWithPore self, Particle d) -> bool
3088 return _IMP_npc.SlabWithPore___le__(self, *args)
3090 def __lt__(self, *args):
3092 __lt__(SlabWithPore self, SlabWithPore o) -> bool
3093 __lt__(SlabWithPore self, Particle d) -> bool
3095 return _IMP_npc.SlabWithPore___lt__(self, *args)
3097 def __ge__(self, *args):
3099 __ge__(SlabWithPore self, SlabWithPore o) -> bool
3100 __ge__(SlabWithPore self, Particle d) -> bool
3102 return _IMP_npc.SlabWithPore___ge__(self, *args)
3104 def __gt__(self, *args):
3106 __gt__(SlabWithPore self, SlabWithPore o) -> bool
3107 __gt__(SlabWithPore self, Particle d) -> bool
3109 return _IMP_npc.SlabWithPore___gt__(self, *args)
3112 r"""__hash__(SlabWithPore self) -> std::size_t"""
3113 return _IMP_npc.SlabWithPore___hash__(self)
3116 r"""__str__(SlabWithPore self) -> std::string"""
3117 return _IMP_npc.SlabWithPore___str__(self)
3120 r"""__repr__(SlabWithPore self) -> std::string"""
3121 return _IMP_npc.SlabWithPore___repr__(self)
3123 def _get_as_binary(self):
3124 r"""_get_as_binary(SlabWithPore self) -> PyObject *"""
3125 return _IMP_npc.SlabWithPore__get_as_binary(self)
3127 def _set_from_binary(self, p):
3128 r"""_set_from_binary(SlabWithPore self, PyObject * p)"""
3129 return _IMP_npc.SlabWithPore__set_from_binary(self, p)
3131 def __getstate__(self):
3132 p = self._get_as_binary()
3133 if len(self.__dict__) > 1:
3134 d = self.__dict__.copy()
3139 def __setstate__(self, p):
3140 if not hasattr(self,
'this'):
3142 if isinstance(p, tuple):
3144 self.__dict__.update(d)
3145 return self._set_from_binary(p)
3147 __swig_destroy__ = _IMP_npc.delete_SlabWithPore
3150 _IMP_npc.SlabWithPore_swigregister(SlabWithPore)
3151 class SlabWithToroidalPore(SlabWithPore):
3152 r"""Proxy of C++ IMP::npc::SlabWithToroidalPore class."""
3154 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3156 def __init__(self, *args):
3158 __init__(SlabWithToroidalPore self) -> SlabWithToroidalPore
3159 __init__(SlabWithToroidalPore self, Model m, ParticleIndex id) -> SlabWithToroidalPore
3160 __init__(SlabWithToroidalPore self, _ParticleAdaptor d) -> SlabWithToroidalPore
3162 _IMP_npc.SlabWithToroidalPore_swiginit(self, _IMP_npc.new_SlabWithToroidalPore(*args))
3164 def show(self, *args):
3165 r"""show(SlabWithToroidalPore self, _ostream out=std::cout)"""
3166 return _IMP_npc.SlabWithToroidalPore_show(self, *args)
3169 def setup_particle(*args):
3171 setup_particle(Model m, ParticleIndex pi, double thickness, double major_radius) -> SlabWithToroidalPore
3172 setup_particle(_ParticleAdaptor pa, double thickness, double major_radius) -> SlabWithToroidalPore
3173 setup_particle(Model m, ParticleIndex pi, double thickness, double major_radius, double minor_radius_h2v_aspect_ratio) -> SlabWithToroidalPore
3174 setup_particle(_ParticleAdaptor pa, double thickness, double major_radius, double minor_radius_h2v_aspect_ratio) -> SlabWithToroidalPore
3176 return _IMP_npc.SlabWithToroidalPore_setup_particle(*args)
3179 def get_is_setup(*args):
3181 get_is_setup(_ParticleAdaptor p) -> bool
3182 get_is_setup(Model m, ParticleIndex pi) -> bool
3184 return _IMP_npc.SlabWithToroidalPore_get_is_setup(*args)
3186 def set_minor_radius_h2v_aspect_ratio(self, aspect_ratio):
3187 r"""set_minor_radius_h2v_aspect_ratio(SlabWithToroidalPore self, double aspect_ratio)"""
3188 return _IMP_npc.SlabWithToroidalPore_set_minor_radius_h2v_aspect_ratio(self, aspect_ratio)
3190 def get_minor_radius_h2v_aspect_ratio(self):
3191 r"""get_minor_radius_h2v_aspect_ratio(SlabWithToroidalPore self) -> double"""
3192 return _IMP_npc.SlabWithToroidalPore_get_minor_radius_h2v_aspect_ratio(self)
3194 def get_vertical_minor_radius(self):
3195 r"""get_vertical_minor_radius(SlabWithToroidalPore self) -> double"""
3196 return _IMP_npc.SlabWithToroidalPore_get_vertical_minor_radius(self)
3198 def set_vertical_minor_radius(self, rv):
3199 r"""set_vertical_minor_radius(SlabWithToroidalPore self, double rv)"""
3200 return _IMP_npc.SlabWithToroidalPore_set_vertical_minor_radius(self, rv)
3202 def get_horizontal_minor_radius(self):
3203 r"""get_horizontal_minor_radius(SlabWithToroidalPore self) -> double"""
3204 return _IMP_npc.SlabWithToroidalPore_get_horizontal_minor_radius(self)
3206 def set_horizontal_minor_radius(self, rh):
3207 r"""set_horizontal_minor_radius(SlabWithToroidalPore self, double rh)"""
3208 return _IMP_npc.SlabWithToroidalPore_set_horizontal_minor_radius(self, rh)
3211 def get_minor_radius_h2v_aspect_ratio_key():
3212 r"""get_minor_radius_h2v_aspect_ratio_key() -> FloatKey"""
3213 return _IMP_npc.SlabWithToroidalPore_get_minor_radius_h2v_aspect_ratio_key()
3216 def get_toroidal_pore_key():
3217 r"""get_toroidal_pore_key() -> IntKey"""
3218 return _IMP_npc.SlabWithToroidalPore_get_toroidal_pore_key()
3220 def add_attribute(self, *args):
3222 add_attribute(SlabWithToroidalPore self, FloatKey k, IMP::Float v, bool opt)
3223 add_attribute(SlabWithToroidalPore self, FloatKey a0, IMP::Float a1)
3224 add_attribute(SlabWithToroidalPore self, IntKey a0, IMP::Int a1)
3225 add_attribute(SlabWithToroidalPore self, FloatsKey a0, IMP::Floats a1)
3226 add_attribute(SlabWithToroidalPore self, IntsKey a0, IMP::Ints a1)
3227 add_attribute(SlabWithToroidalPore self, StringKey a0, IMP::String a1)
3228 add_attribute(SlabWithToroidalPore self, ParticleIndexKey a0, Particle a1)
3229 add_attribute(SlabWithToroidalPore self, ObjectKey a0, Object a1)
3230 add_attribute(SlabWithToroidalPore self, SparseFloatKey a0, IMP::Float a1)
3231 add_attribute(SlabWithToroidalPore self, SparseIntKey a0, IMP::Int a1)
3232 add_attribute(SlabWithToroidalPore self, SparseStringKey a0, IMP::String a1)
3233 add_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3235 return _IMP_npc.SlabWithToroidalPore_add_attribute(self, *args)
3237 def get_value(self, *args):
3239 get_value(SlabWithToroidalPore self, FloatKey a0) -> IMP::Float
3240 get_value(SlabWithToroidalPore self, IntKey a0) -> IMP::Int
3241 get_value(SlabWithToroidalPore self, FloatsKey a0) -> IMP::Floats
3242 get_value(SlabWithToroidalPore self, IntsKey a0) -> IMP::Ints
3243 get_value(SlabWithToroidalPore self, StringKey a0) -> IMP::String
3244 get_value(SlabWithToroidalPore self, ParticleIndexKey a0) -> Particle
3245 get_value(SlabWithToroidalPore self, ObjectKey a0) -> Object
3246 get_value(SlabWithToroidalPore self, SparseFloatKey a0) -> IMP::Float
3247 get_value(SlabWithToroidalPore self, SparseIntKey a0) -> IMP::Int
3248 get_value(SlabWithToroidalPore self, SparseStringKey a0) -> IMP::String
3249 get_value(SlabWithToroidalPore self, SparseParticleIndexKey a0) -> ParticleIndex
3251 return _IMP_npc.SlabWithToroidalPore_get_value(self, *args)
3253 def set_value(self, *args):
3255 set_value(SlabWithToroidalPore self, FloatKey a0, IMP::Float a1)
3256 set_value(SlabWithToroidalPore self, IntKey a0, IMP::Int a1)
3257 set_value(SlabWithToroidalPore self, FloatsKey a0, IMP::Floats a1)
3258 set_value(SlabWithToroidalPore self, IntsKey a0, IMP::Ints a1)
3259 set_value(SlabWithToroidalPore self, StringKey a0, IMP::String a1)
3260 set_value(SlabWithToroidalPore self, ParticleIndexKey a0, Particle a1)
3261 set_value(SlabWithToroidalPore self, ObjectKey a0, Object a1)
3262 set_value(SlabWithToroidalPore self, SparseFloatKey a0, IMP::Float a1)
3263 set_value(SlabWithToroidalPore self, SparseIntKey a0, IMP::Int a1)
3264 set_value(SlabWithToroidalPore self, SparseStringKey a0, IMP::String a1)
3265 set_value(SlabWithToroidalPore self, SparseParticleIndexKey a0, ParticleIndex a1)
3267 return _IMP_npc.SlabWithToroidalPore_set_value(self, *args)
3269 def remove_attribute(self, *args):
3271 remove_attribute(SlabWithToroidalPore self, FloatKey a0)
3272 remove_attribute(SlabWithToroidalPore self, IntKey a0)
3273 remove_attribute(SlabWithToroidalPore self, FloatsKey a0)
3274 remove_attribute(SlabWithToroidalPore self, IntsKey a0)
3275 remove_attribute(SlabWithToroidalPore self, StringKey a0)
3276 remove_attribute(SlabWithToroidalPore self, ParticleIndexKey a0)
3277 remove_attribute(SlabWithToroidalPore self, ObjectKey a0)
3278 remove_attribute(SlabWithToroidalPore self, SparseFloatKey a0)
3279 remove_attribute(SlabWithToroidalPore self, SparseIntKey a0)
3280 remove_attribute(SlabWithToroidalPore self, SparseStringKey a0)
3281 remove_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0)
3283 return _IMP_npc.SlabWithToroidalPore_remove_attribute(self, *args)
3285 def has_attribute(self, *args):
3287 has_attribute(SlabWithToroidalPore self, FloatKey a0) -> bool
3288 has_attribute(SlabWithToroidalPore self, IntKey a0) -> bool
3289 has_attribute(SlabWithToroidalPore self, FloatsKey a0) -> bool
3290 has_attribute(SlabWithToroidalPore self, IntsKey a0) -> bool
3291 has_attribute(SlabWithToroidalPore self, StringKey a0) -> bool
3292 has_attribute(SlabWithToroidalPore self, ParticleIndexKey a0) -> bool
3293 has_attribute(SlabWithToroidalPore self, ObjectKey a0) -> bool
3294 has_attribute(SlabWithToroidalPore self, SparseFloatKey a0) -> bool
3295 has_attribute(SlabWithToroidalPore self, SparseIntKey a0) -> bool
3296 has_attribute(SlabWithToroidalPore self, SparseStringKey a0) -> bool
3297 has_attribute(SlabWithToroidalPore self, SparseParticleIndexKey a0) -> bool
3299 return _IMP_npc.SlabWithToroidalPore_has_attribute(self, *args)
3301 def get_derivative(self, a0):
3302 r"""get_derivative(SlabWithToroidalPore self, FloatKey a0) -> double"""
3303 return _IMP_npc.SlabWithToroidalPore_get_derivative(self, a0)
3306 r"""get_name(SlabWithToroidalPore self) -> std::string"""
3307 return _IMP_npc.SlabWithToroidalPore_get_name(self)
3309 def clear_caches(self):
3310 r"""clear_caches(SlabWithToroidalPore self)"""
3311 return _IMP_npc.SlabWithToroidalPore_clear_caches(self)
3313 def set_name(self, a0):
3314 r"""set_name(SlabWithToroidalPore self, std::string a0)"""
3315 return _IMP_npc.SlabWithToroidalPore_set_name(self, a0)
3318 r"""set_check_level(SlabWithToroidalPore self, IMP::CheckLevel a0)"""
3319 return _IMP_npc.SlabWithToroidalPore_set_check_level(self, a0)
3321 def add_to_derivative(self, a0, a1, a2):
3322 r"""add_to_derivative(SlabWithToroidalPore self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3323 return _IMP_npc.SlabWithToroidalPore_add_to_derivative(self, a0, a1, a2)
3325 def set_is_optimized(self, a0, a1):
3326 r"""set_is_optimized(SlabWithToroidalPore self, FloatKey a0, bool a1)"""
3327 return _IMP_npc.SlabWithToroidalPore_set_is_optimized(self, a0, a1)
3329 def get_is_optimized(self, a0):
3330 r"""get_is_optimized(SlabWithToroidalPore self, FloatKey a0) -> bool"""
3331 return _IMP_npc.SlabWithToroidalPore_get_is_optimized(self, a0)
3334 r"""get_check_level(SlabWithToroidalPore self) -> IMP::CheckLevel"""
3335 return _IMP_npc.SlabWithToroidalPore_get_check_level(self)
3337 def __eq__(self, *args):
3339 __eq__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3340 __eq__(SlabWithToroidalPore self, Particle d) -> bool
3342 return _IMP_npc.SlabWithToroidalPore___eq__(self, *args)
3344 def __ne__(self, *args):
3346 __ne__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3347 __ne__(SlabWithToroidalPore self, Particle d) -> bool
3349 return _IMP_npc.SlabWithToroidalPore___ne__(self, *args)
3351 def __le__(self, *args):
3353 __le__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3354 __le__(SlabWithToroidalPore self, Particle d) -> bool
3356 return _IMP_npc.SlabWithToroidalPore___le__(self, *args)
3358 def __lt__(self, *args):
3360 __lt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3361 __lt__(SlabWithToroidalPore self, Particle d) -> bool
3363 return _IMP_npc.SlabWithToroidalPore___lt__(self, *args)
3365 def __ge__(self, *args):
3367 __ge__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3368 __ge__(SlabWithToroidalPore self, Particle d) -> bool
3370 return _IMP_npc.SlabWithToroidalPore___ge__(self, *args)
3372 def __gt__(self, *args):
3374 __gt__(SlabWithToroidalPore self, SlabWithToroidalPore o) -> bool
3375 __gt__(SlabWithToroidalPore self, Particle d) -> bool
3377 return _IMP_npc.SlabWithToroidalPore___gt__(self, *args)
3380 r"""__hash__(SlabWithToroidalPore self) -> std::size_t"""
3381 return _IMP_npc.SlabWithToroidalPore___hash__(self)
3384 r"""__str__(SlabWithToroidalPore self) -> std::string"""
3385 return _IMP_npc.SlabWithToroidalPore___str__(self)
3388 r"""__repr__(SlabWithToroidalPore self) -> std::string"""
3389 return _IMP_npc.SlabWithToroidalPore___repr__(self)
3391 def _get_as_binary(self):
3392 r"""_get_as_binary(SlabWithToroidalPore self) -> PyObject *"""
3393 return _IMP_npc.SlabWithToroidalPore__get_as_binary(self)
3395 def _set_from_binary(self, p):
3396 r"""_set_from_binary(SlabWithToroidalPore self, PyObject * p)"""
3397 return _IMP_npc.SlabWithToroidalPore__set_from_binary(self, p)
3399 def __getstate__(self):
3400 p = self._get_as_binary()
3401 if len(self.__dict__) > 1:
3402 d = self.__dict__.copy()
3407 def __setstate__(self, p):
3408 if not hasattr(self,
'this'):
3410 if isinstance(p, tuple):
3412 self.__dict__.update(d)
3413 return self._set_from_binary(p)
3415 __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPore
3418 _IMP_npc.SlabWithToroidalPore_swigregister(SlabWithToroidalPore)
3420 def __lshift__(*args):
3422 __lshift__(_ostream out, SlabWithSphericalIndent n) -> _ostream
3423 __lshift__(_ostream out, SlabWithPore n) -> _ostream
3424 __lshift__(_ostream out, SlabWithToroidalPore n) -> _ostream
3426 return _IMP_npc.__lshift__(*args)
3428 r"""Proxy of C++ IMP::npc::SlabWithToroidalPoreWireGeometry class."""
3430 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3432 def __init__(self, *args):
3434 __init__(SlabWithToroidalPoreWireGeometry self, double slab_height, double major_radius, double horizontal_semiaxis, double slab_length) -> SlabWithToroidalPoreWireGeometry
3435 __init__(SlabWithToroidalPoreWireGeometry self, double slab_height, double major_radius, double slab_length) -> SlabWithToroidalPoreWireGeometry
3437 _IMP_npc.SlabWithToroidalPoreWireGeometry_swiginit(self, _IMP_npc.new_SlabWithToroidalPoreWireGeometry(*args))
3439 def get_version_info(self):
3440 r"""get_version_info(SlabWithToroidalPoreWireGeometry self) -> VersionInfo"""
3441 return _IMP_npc.SlabWithToroidalPoreWireGeometry_get_version_info(self)
3442 __swig_destroy__ = _IMP_npc.delete_SlabWithToroidalPoreWireGeometry
3445 r"""__str__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3446 return _IMP_npc.SlabWithToroidalPoreWireGeometry___str__(self)
3449 r"""__repr__(SlabWithToroidalPoreWireGeometry self) -> std::string"""
3450 return _IMP_npc.SlabWithToroidalPoreWireGeometry___repr__(self)
3454 return _object_cast_to_SlabWithToroidalPoreWireGeometry(o)
3458 _IMP_npc.SlabWithToroidalPoreWireGeometry_swigregister(SlabWithToroidalPoreWireGeometry)
3461 r"""get_module_version() -> std::string const"""
3462 return _IMP_npc.get_module_version()
3465 r"""get_example_path(std::string fname) -> std::string"""
3466 return _IMP_npc.get_example_path(fname)
3469 r"""get_data_path(std::string fname) -> std::string"""
3470 return _IMP_npc.get_data_path(fname)
3472 from .
import _version_check
def get_example_path
Return the full path to one of this module's example files.
Abstract class for scoring object(s) of type ParticleIndexPair.
CheckLevel get_check_level()
Get the current audit mode.
def get_module_version
Return the version of this module, as a string.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
The base class for geometry.
Make CGAL functionality available to IMP.
void add_particle(RMF::FileHandle fh, Particle *hs)
Composable functors to implement scores via compile-time composition.
def get_data_path
Return the full path to one of this module's data files.
Interface to specialized Particle types (e.g. atoms)
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.