11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
44 def _swig_setattr_nondynamic_class_variable(set):
45 def set_class_attr(cls, name, value):
46 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
53 def _swig_add_metaclass(metaclass):
54 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
60 class _SwigNonDynamicMeta(type):
61 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
67 class IMP_NPC_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_NPC_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_npc.delete_IMP_NPC_SwigPyIterator
78 r"""value(IMP_NPC_SwigPyIterator self) -> PyObject *"""
79 return _IMP_npc.IMP_NPC_SwigPyIterator_value(self)
82 r"""incr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
83 return _IMP_npc.IMP_NPC_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator"""
87 return _IMP_npc.IMP_NPC_SwigPyIterator_decr(self, n)
89 def distance(self, x):
90 r"""distance(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t"""
91 return _IMP_npc.IMP_NPC_SwigPyIterator_distance(self, x)
94 r"""equal(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
95 return _IMP_npc.IMP_NPC_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator"""
99 return _IMP_npc.IMP_NPC_SwigPyIterator_copy(self)
102 r"""next(IMP_NPC_SwigPyIterator self) -> PyObject *"""
103 return _IMP_npc.IMP_NPC_SwigPyIterator_next(self)
106 r"""__next__(IMP_NPC_SwigPyIterator self) -> PyObject *"""
107 return _IMP_npc.IMP_NPC_SwigPyIterator___next__(self)
110 r"""previous(IMP_NPC_SwigPyIterator self) -> PyObject *"""
111 return _IMP_npc.IMP_NPC_SwigPyIterator_previous(self)
113 def advance(self, n):
114 r"""advance(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
115 return _IMP_npc.IMP_NPC_SwigPyIterator_advance(self, n)
118 r"""__eq__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
119 return _IMP_npc.IMP_NPC_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
123 return _IMP_npc.IMP_NPC_SwigPyIterator___ne__(self, x)
125 def __iadd__(self, n):
126 r"""__iadd__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
127 return _IMP_npc.IMP_NPC_SwigPyIterator___iadd__(self, n)
129 def __isub__(self, n):
130 r"""__isub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
131 return _IMP_npc.IMP_NPC_SwigPyIterator___isub__(self, n)
133 def __add__(self, n):
134 r"""__add__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
135 return _IMP_npc.IMP_NPC_SwigPyIterator___add__(self, n)
137 def __sub__(self, *args):
139 __sub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator
140 __sub__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_npc.IMP_NPC_SwigPyIterator___sub__(self, *args)
147 _IMP_npc.IMP_NPC_SwigPyIterator_swigregister(IMP_NPC_SwigPyIterator)
154 IMP_DEBUG = _IMP_npc.IMP_DEBUG
156 IMP_RELEASE = _IMP_npc.IMP_RELEASE
158 IMP_SILENT = _IMP_npc.IMP_SILENT
160 IMP_PROGRESS = _IMP_npc.IMP_PROGRESS
162 IMP_TERSE = _IMP_npc.IMP_TERSE
164 IMP_VERBOSE = _IMP_npc.IMP_VERBOSE
166 IMP_MEMORY = _IMP_npc.IMP_MEMORY
168 IMP_NONE = _IMP_npc.IMP_NONE
170 IMP_USAGE = _IMP_npc.IMP_USAGE
172 IMP_INTERNAL = _IMP_npc.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_npc.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_npc.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_npc.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_npc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_npc.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_npc.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_npc.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_npc.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_npc.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
203 def register(self, obj):
204 """Take a reference to a director object; will only work for
205 refcounted C++ classes"""
206 if hasattr(obj,
'get_ref_count'):
207 self._objects.append(obj)
209 """Only drop our reference and allow cleanup by Python if no other
210 Python references exist (we hold 3 references: one in self._objects,
211 one in x, and one in the argument list for getrefcount) *and* no
212 other C++ references exist (the Python object always holds one)"""
213 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
214 or x.get_ref_count() > 1]
218 def get_object_count(self):
219 """Get number of director objects (useful for testing only)"""
220 return len(self._objects)
221 _director_objects = _DirectorObjects()
223 class _ostream(object):
224 r"""Proxy of C++ std::ostream class."""
226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
228 def __init__(self, *args, **kwargs):
229 raise AttributeError(
"No constructor defined")
230 __repr__ = _swig_repr
232 def write(self, osa_buf):
233 r"""write(_ostream self, char const * osa_buf)"""
234 return _IMP_npc._ostream_write(self, osa_buf)
237 _IMP_npc._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_npc.IMP_C_OPEN_BINARY
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_npc.IMP_CGAL_HAS_BOOST_RANDOM
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_SYSTEM
249 IMP_CGAL_HAS_NUMPY = _IMP_npc.IMP_CGAL_HAS_NUMPY
251 IMPCGAL_SHOW_WARNINGS = _IMP_npc.IMPCGAL_SHOW_WARNINGS
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_IMP_CGAL
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_RANDOM
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_npc.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_npc.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_npc.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_npc.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_SYSTEM
283 IMP_DISPLAY_HAS_CGAL = _IMP_npc.IMP_DISPLAY_HAS_CGAL
285 IMP_DISPLAY_HAS_NUMPY = _IMP_npc.IMP_DISPLAY_HAS_NUMPY
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_npc.IMPDISPLAY_SHOW_WARNINGS
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_CGAL
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_HDF5
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_NUMPY
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_npc.IMPSCOREFUNCTOR_SHOW_WARNINGS
309 IMP_CORE_HAS_IMP_CGAL = _IMP_npc.IMP_CORE_HAS_IMP_CGAL
311 IMP_CORE_HAS_IMP_KERNEL = _IMP_npc.IMP_CORE_HAS_IMP_KERNEL
313 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_FILESYSTEM
315 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
317 IMP_CORE_HAS_BOOST_RANDOM = _IMP_npc.IMP_CORE_HAS_BOOST_RANDOM
319 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_SYSTEM
321 IMP_CORE_HAS_CGAL = _IMP_npc.IMP_CORE_HAS_CGAL
323 IMP_CORE_HAS_HDF5 = _IMP_npc.IMP_CORE_HAS_HDF5
325 IMP_CORE_HAS_NUMPY = _IMP_npc.IMP_CORE_HAS_NUMPY
327 IMPCORE_SHOW_WARNINGS = _IMP_npc.IMPCORE_SHOW_WARNINGS
330 IMP_NPC_HAS_IMP_ALGEBRA = _IMP_npc.IMP_NPC_HAS_IMP_ALGEBRA
332 IMP_NPC_HAS_IMP_CGAL = _IMP_npc.IMP_NPC_HAS_IMP_CGAL
334 IMP_NPC_HAS_IMP_DISPLAY = _IMP_npc.IMP_NPC_HAS_IMP_DISPLAY
336 IMP_NPC_HAS_IMP_KERNEL = _IMP_npc.IMP_NPC_HAS_IMP_KERNEL
338 IMP_NPC_HAS_IMP_SCORE_FUNCTOR = _IMP_npc.IMP_NPC_HAS_IMP_SCORE_FUNCTOR
340 IMP_NPC_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_FILESYSTEM
342 IMP_NPC_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_NPC_HAS_BOOST_PROGRAMOPTIONS
344 IMP_NPC_HAS_BOOST_RANDOM = _IMP_npc.IMP_NPC_HAS_BOOST_RANDOM
346 IMP_NPC_HAS_BOOST_SYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_SYSTEM
348 IMP_NPC_HAS_CGAL = _IMP_npc.IMP_NPC_HAS_CGAL
350 IMP_NPC_HAS_HDF5 = _IMP_npc.IMP_NPC_HAS_HDF5
352 IMP_NPC_HAS_NUMPY = _IMP_npc.IMP_NPC_HAS_NUMPY
354 IMP_NPC_HAS_PYTHON_IHM = _IMP_npc.IMP_NPC_HAS_PYTHON_IHM
356 IMPNPC_SHOW_WARNINGS = _IMP_npc.IMPNPC_SHOW_WARNINGS
359 _object_types.append(
"ZAxialPositionLowerRestraint")
362 def _object_cast_to_ZAxialPositionLowerRestraint(o):
363 r"""_object_cast_to_ZAxialPositionLowerRestraint(Object o) -> ZAxialPositionLowerRestraint"""
364 return _IMP_npc._object_cast_to_ZAxialPositionLowerRestraint(o)
366 _object_types.append(
"ZAxialPositionUpperRestraint")
369 def _object_cast_to_ZAxialPositionUpperRestraint(o):
370 r"""_object_cast_to_ZAxialPositionUpperRestraint(Object o) -> ZAxialPositionUpperRestraint"""
371 return _IMP_npc._object_cast_to_ZAxialPositionUpperRestraint(o)
373 _object_types.append(
"XYRadialPositionLowerRestraint")
376 def _object_cast_to_XYRadialPositionLowerRestraint(o):
377 r"""_object_cast_to_XYRadialPositionLowerRestraint(Object o) -> XYRadialPositionLowerRestraint"""
378 return _IMP_npc._object_cast_to_XYRadialPositionLowerRestraint(o)
380 _object_types.append(
"XYRadialPositionUpperRestraint")
383 def _object_cast_to_XYRadialPositionUpperRestraint(o):
384 r"""_object_cast_to_XYRadialPositionUpperRestraint(Object o) -> XYRadialPositionUpperRestraint"""
385 return _IMP_npc._object_cast_to_XYRadialPositionUpperRestraint(o)
387 _object_types.append(
"ProteinContactRestraint")
390 def _object_cast_to_ProteinContactRestraint(o):
391 r"""_object_cast_to_ProteinContactRestraint(Object o) -> ProteinContactRestraint"""
392 return _IMP_npc._object_cast_to_ProteinContactRestraint(o)
394 _object_types.append(
"ProteinChainRestraint")
397 def _object_cast_to_ProteinChainRestraint(o):
398 r"""_object_cast_to_ProteinChainRestraint(Object o) -> ProteinChainRestraint"""
399 return _IMP_npc._object_cast_to_ProteinChainRestraint(o)
401 _object_types.append(
"MembraneSurfaceLocationRestraint")
404 def _object_cast_to_MembraneSurfaceLocationRestraint(o):
405 r"""_object_cast_to_MembraneSurfaceLocationRestraint(Object o) -> MembraneSurfaceLocationRestraint"""
406 return _IMP_npc._object_cast_to_MembraneSurfaceLocationRestraint(o)
408 _object_types.append(
"PoreSideVolumeLocationRestraint")
411 def _object_cast_to_PoreSideVolumeLocationRestraint(o):
412 r"""_object_cast_to_PoreSideVolumeLocationRestraint(Object o) -> PoreSideVolumeLocationRestraint"""
413 return _IMP_npc._object_cast_to_PoreSideVolumeLocationRestraint(o)
415 _object_types.append(
"PerinuclearVolumeLocationRestraint")
418 def _object_cast_to_PerinuclearVolumeLocationRestraint(o):
419 r"""_object_cast_to_PerinuclearVolumeLocationRestraint(Object o) -> PerinuclearVolumeLocationRestraint"""
420 return _IMP_npc._object_cast_to_PerinuclearVolumeLocationRestraint(o)
422 _object_types.append(
"AssemblySymmetryByDistanceRestraint")
425 def _object_cast_to_AssemblySymmetryByDistanceRestraint(o):
426 r"""_object_cast_to_AssemblySymmetryByDistanceRestraint(Object o) -> AssemblySymmetryByDistanceRestraint"""
427 return _IMP_npc._object_cast_to_AssemblySymmetryByDistanceRestraint(o)
429 _object_types.append(
"AssemblySymmetryByDihedralRestraint")
432 def _object_cast_to_AssemblySymmetryByDihedralRestraint(o):
433 r"""_object_cast_to_AssemblySymmetryByDihedralRestraint(Object o) -> AssemblySymmetryByDihedralRestraint"""
434 return _IMP_npc._object_cast_to_AssemblySymmetryByDihedralRestraint(o)
436 _object_types.append(
"ProteinProximityRestraint")
439 def _object_cast_to_ProteinProximityRestraint(o):
440 r"""_object_cast_to_ProteinProximityRestraint(Object o) -> ProteinProximityRestraint"""
441 return _IMP_npc._object_cast_to_ProteinProximityRestraint(o)
443 _object_types.append(
"CompositeRestraint")
446 def _object_cast_to_CompositeRestraint(o):
447 r"""_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
448 return _IMP_npc._object_cast_to_CompositeRestraint(o)
450 _object_types.append(
"MinimumSphereDistancePairScore")
453 def _object_cast_to_MinimumSphereDistancePairScore(o):
454 r"""_object_cast_to_MinimumSphereDistancePairScore(Object o) -> MinimumSphereDistancePairScore"""
455 return _IMP_npc._object_cast_to_MinimumSphereDistancePairScore(o)
457 _object_types.append(
"MembraneExclusionRestraint")
460 def _object_cast_to_MembraneExclusionRestraint(o):
461 r"""_object_cast_to_MembraneExclusionRestraint(Object o) -> MembraneExclusionRestraint"""
462 return _IMP_npc._object_cast_to_MembraneExclusionRestraint(o)
464 _object_types.append(
"MembraneSurfaceLocationConditionalRestraint")
467 def _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o):
468 r"""_object_cast_to_MembraneSurfaceLocationConditionalRestraint(Object o) -> MembraneSurfaceLocationConditionalRestraint"""
469 return _IMP_npc._object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
471 _object_types.append(
"XYRadialPositionRestraint")
474 def _object_cast_to_XYRadialPositionRestraint(o):
475 r"""_object_cast_to_XYRadialPositionRestraint(Object o) -> XYRadialPositionRestraint"""
476 return _IMP_npc._object_cast_to_XYRadialPositionRestraint(o)
478 _object_types.append(
"YAxialPositionLowerRestraint")
481 def _object_cast_to_YAxialPositionLowerRestraint(o):
482 r"""_object_cast_to_YAxialPositionLowerRestraint(Object o) -> YAxialPositionLowerRestraint"""
483 return _IMP_npc._object_cast_to_YAxialPositionLowerRestraint(o)
485 _object_types.append(
"YAxialPositionRestraint")
488 def _object_cast_to_YAxialPositionRestraint(o):
489 r"""_object_cast_to_YAxialPositionRestraint(Object o) -> YAxialPositionRestraint"""
490 return _IMP_npc._object_cast_to_YAxialPositionRestraint(o)
492 _object_types.append(
"YAxialPositionUpperRestraint")
495 def _object_cast_to_YAxialPositionUpperRestraint(o):
496 r"""_object_cast_to_YAxialPositionUpperRestraint(Object o) -> YAxialPositionUpperRestraint"""
497 return _IMP_npc._object_cast_to_YAxialPositionUpperRestraint(o)
499 _object_types.append(
"ZAxialPositionRestraint")
502 def _object_cast_to_ZAxialPositionRestraint(o):
503 r"""_object_cast_to_ZAxialPositionRestraint(Object o) -> ZAxialPositionRestraint"""
504 return _IMP_npc._object_cast_to_ZAxialPositionRestraint(o)
506 r"""Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
508 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
512 __init__(ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
513 __init__(ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
514 __init__(ZAxialPositionRestraint self) -> ZAxialPositionRestraint
516 _IMP_npc.ZAxialPositionRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionRestraint(*args))
519 r"""add_particle(ZAxialPositionRestraint self, Particle p)"""
520 return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
523 r"""add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
524 return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
526 def set_particles(self, ps):
527 r"""set_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
528 return _IMP_npc.ZAxialPositionRestraint_set_particles(self, ps)
530 def do_get_inputs(self):
531 r"""do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
532 return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
534 def get_version_info(self):
535 r"""get_version_info(ZAxialPositionRestraint self) -> VersionInfo"""
536 return _IMP_npc.ZAxialPositionRestraint_get_version_info(self)
537 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionRestraint
540 r"""__str__(ZAxialPositionRestraint self) -> std::string"""
541 return _IMP_npc.ZAxialPositionRestraint___str__(self)
544 r"""__repr__(ZAxialPositionRestraint self) -> std::string"""
545 return _IMP_npc.ZAxialPositionRestraint___repr__(self)
549 return _object_cast_to_ZAxialPositionRestraint(o)
552 def _get_as_binary(self):
553 r"""_get_as_binary(ZAxialPositionRestraint self) -> PyObject *"""
554 return _IMP_npc.ZAxialPositionRestraint__get_as_binary(self)
556 def _set_from_binary(self, p):
557 r"""_set_from_binary(ZAxialPositionRestraint self, PyObject * p)"""
558 return _IMP_npc.ZAxialPositionRestraint__set_from_binary(self, p)
560 def __getstate__(self):
561 p = self._get_as_binary()
562 if len(self.__dict__) > 1:
563 d = self.__dict__.copy()
568 def __setstate__(self, p):
569 if not hasattr(self,
'this'):
571 if isinstance(p, tuple):
573 self.__dict__.update(d)
574 return self._set_from_binary(p)
578 _IMP_npc.ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
580 r"""Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
582 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
586 __init__(ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
587 __init__(ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
588 __init__(ZAxialPositionLowerRestraint self) -> ZAxialPositionLowerRestraint
590 _IMP_npc.ZAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionLowerRestraint(*args))
593 r"""add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
594 return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
597 r"""add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
598 return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
600 def set_particles(self, ps):
601 r"""set_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
602 return _IMP_npc.ZAxialPositionLowerRestraint_set_particles(self, ps)
604 def do_get_inputs(self):
605 r"""do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
606 return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
608 def get_version_info(self):
609 r"""get_version_info(ZAxialPositionLowerRestraint self) -> VersionInfo"""
610 return _IMP_npc.ZAxialPositionLowerRestraint_get_version_info(self)
611 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionLowerRestraint
614 r"""__str__(ZAxialPositionLowerRestraint self) -> std::string"""
615 return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
618 r"""__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
619 return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
623 return _object_cast_to_ZAxialPositionLowerRestraint(o)
626 def _get_as_binary(self):
627 r"""_get_as_binary(ZAxialPositionLowerRestraint self) -> PyObject *"""
628 return _IMP_npc.ZAxialPositionLowerRestraint__get_as_binary(self)
630 def _set_from_binary(self, p):
631 r"""_set_from_binary(ZAxialPositionLowerRestraint self, PyObject * p)"""
632 return _IMP_npc.ZAxialPositionLowerRestraint__set_from_binary(self, p)
634 def __getstate__(self):
635 p = self._get_as_binary()
636 if len(self.__dict__) > 1:
637 d = self.__dict__.copy()
642 def __setstate__(self, p):
643 if not hasattr(self,
'this'):
645 if isinstance(p, tuple):
647 self.__dict__.update(d)
648 return self._set_from_binary(p)
652 _IMP_npc.ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
654 r"""Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
656 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
660 __init__(ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
661 __init__(ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
662 __init__(ZAxialPositionUpperRestraint self) -> ZAxialPositionUpperRestraint
664 _IMP_npc.ZAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_ZAxialPositionUpperRestraint(*args))
667 r"""add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
668 return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
671 r"""add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
672 return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
674 def set_particles(self, ps):
675 r"""set_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
676 return _IMP_npc.ZAxialPositionUpperRestraint_set_particles(self, ps)
678 def do_get_inputs(self):
679 r"""do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
680 return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
682 def get_version_info(self):
683 r"""get_version_info(ZAxialPositionUpperRestraint self) -> VersionInfo"""
684 return _IMP_npc.ZAxialPositionUpperRestraint_get_version_info(self)
685 __swig_destroy__ = _IMP_npc.delete_ZAxialPositionUpperRestraint
688 r"""__str__(ZAxialPositionUpperRestraint self) -> std::string"""
689 return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
692 r"""__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
693 return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
697 return _object_cast_to_ZAxialPositionUpperRestraint(o)
700 def _get_as_binary(self):
701 r"""_get_as_binary(ZAxialPositionUpperRestraint self) -> PyObject *"""
702 return _IMP_npc.ZAxialPositionUpperRestraint__get_as_binary(self)
704 def _set_from_binary(self, p):
705 r"""_set_from_binary(ZAxialPositionUpperRestraint self, PyObject * p)"""
706 return _IMP_npc.ZAxialPositionUpperRestraint__set_from_binary(self, p)
708 def __getstate__(self):
709 p = self._get_as_binary()
710 if len(self.__dict__) > 1:
711 d = self.__dict__.copy()
716 def __setstate__(self, p):
717 if not hasattr(self,
'this'):
719 if isinstance(p, tuple):
721 self.__dict__.update(d)
722 return self._set_from_binary(p)
726 _IMP_npc.ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
728 r"""Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
730 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
734 __init__(YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
735 __init__(YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
736 __init__(YAxialPositionRestraint self) -> YAxialPositionRestraint
738 _IMP_npc.YAxialPositionRestraint_swiginit(self, _IMP_npc.new_YAxialPositionRestraint(*args))
741 r"""add_particle(YAxialPositionRestraint self, Particle p)"""
742 return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
745 r"""add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
746 return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
748 def set_particles(self, ps):
749 r"""set_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
750 return _IMP_npc.YAxialPositionRestraint_set_particles(self, ps)
752 def do_get_inputs(self):
753 r"""do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
754 return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
756 def get_version_info(self):
757 r"""get_version_info(YAxialPositionRestraint self) -> VersionInfo"""
758 return _IMP_npc.YAxialPositionRestraint_get_version_info(self)
759 __swig_destroy__ = _IMP_npc.delete_YAxialPositionRestraint
762 r"""__str__(YAxialPositionRestraint self) -> std::string"""
763 return _IMP_npc.YAxialPositionRestraint___str__(self)
766 r"""__repr__(YAxialPositionRestraint self) -> std::string"""
767 return _IMP_npc.YAxialPositionRestraint___repr__(self)
771 return _object_cast_to_YAxialPositionRestraint(o)
774 def _get_as_binary(self):
775 r"""_get_as_binary(YAxialPositionRestraint self) -> PyObject *"""
776 return _IMP_npc.YAxialPositionRestraint__get_as_binary(self)
778 def _set_from_binary(self, p):
779 r"""_set_from_binary(YAxialPositionRestraint self, PyObject * p)"""
780 return _IMP_npc.YAxialPositionRestraint__set_from_binary(self, p)
782 def __getstate__(self):
783 p = self._get_as_binary()
784 if len(self.__dict__) > 1:
785 d = self.__dict__.copy()
790 def __setstate__(self, p):
791 if not hasattr(self,
'this'):
793 if isinstance(p, tuple):
795 self.__dict__.update(d)
796 return self._set_from_binary(p)
800 _IMP_npc.YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
802 r"""Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
804 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
808 __init__(YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
809 __init__(YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
810 __init__(YAxialPositionLowerRestraint self) -> YAxialPositionLowerRestraint
812 _IMP_npc.YAxialPositionLowerRestraint_swiginit(self, _IMP_npc.new_YAxialPositionLowerRestraint(*args))
815 r"""add_particle(YAxialPositionLowerRestraint self, Particle p)"""
816 return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
819 r"""add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
820 return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
822 def set_particles(self, ps):
823 r"""set_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
824 return _IMP_npc.YAxialPositionLowerRestraint_set_particles(self, ps)
826 def do_get_inputs(self):
827 r"""do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
828 return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
830 def get_version_info(self):
831 r"""get_version_info(YAxialPositionLowerRestraint self) -> VersionInfo"""
832 return _IMP_npc.YAxialPositionLowerRestraint_get_version_info(self)
833 __swig_destroy__ = _IMP_npc.delete_YAxialPositionLowerRestraint
836 r"""__str__(YAxialPositionLowerRestraint self) -> std::string"""
837 return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
840 r"""__repr__(YAxialPositionLowerRestraint self) -> std::string"""
841 return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
845 return _object_cast_to_YAxialPositionLowerRestraint(o)
848 def _get_as_binary(self):
849 r"""_get_as_binary(YAxialPositionLowerRestraint self) -> PyObject *"""
850 return _IMP_npc.YAxialPositionLowerRestraint__get_as_binary(self)
852 def _set_from_binary(self, p):
853 r"""_set_from_binary(YAxialPositionLowerRestraint self, PyObject * p)"""
854 return _IMP_npc.YAxialPositionLowerRestraint__set_from_binary(self, p)
856 def __getstate__(self):
857 p = self._get_as_binary()
858 if len(self.__dict__) > 1:
859 d = self.__dict__.copy()
864 def __setstate__(self, p):
865 if not hasattr(self,
'this'):
867 if isinstance(p, tuple):
869 self.__dict__.update(d)
870 return self._set_from_binary(p)
874 _IMP_npc.YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
876 r"""Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
878 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
882 __init__(YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
883 __init__(YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
884 __init__(YAxialPositionUpperRestraint self) -> YAxialPositionUpperRestraint
886 _IMP_npc.YAxialPositionUpperRestraint_swiginit(self, _IMP_npc.new_YAxialPositionUpperRestraint(*args))
889 r"""add_particle(YAxialPositionUpperRestraint self, Particle p)"""
890 return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
893 r"""add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
894 return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
896 def set_particles(self, ps):
897 r"""set_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
898 return _IMP_npc.YAxialPositionUpperRestraint_set_particles(self, ps)
900 def do_get_inputs(self):
901 r"""do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
902 return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
904 def get_version_info(self):
905 r"""get_version_info(YAxialPositionUpperRestraint self) -> VersionInfo"""
906 return _IMP_npc.YAxialPositionUpperRestraint_get_version_info(self)
907 __swig_destroy__ = _IMP_npc.delete_YAxialPositionUpperRestraint
910 r"""__str__(YAxialPositionUpperRestraint self) -> std::string"""
911 return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
914 r"""__repr__(YAxialPositionUpperRestraint self) -> std::string"""
915 return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
919 return _object_cast_to_YAxialPositionUpperRestraint(o)
922 def _get_as_binary(self):
923 r"""_get_as_binary(YAxialPositionUpperRestraint self) -> PyObject *"""
924 return _IMP_npc.YAxialPositionUpperRestraint__get_as_binary(self)
926 def _set_from_binary(self, p):
927 r"""_set_from_binary(YAxialPositionUpperRestraint self, PyObject * p)"""
928 return _IMP_npc.YAxialPositionUpperRestraint__set_from_binary(self, p)
930 def __getstate__(self):
931 p = self._get_as_binary()
932 if len(self.__dict__) > 1:
933 d = self.__dict__.copy()
938 def __setstate__(self, p):
939 if not hasattr(self,
'this'):
941 if isinstance(p, tuple):
943 self.__dict__.update(d)
944 return self._set_from_binary(p)
948 _IMP_npc.YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
950 r"""Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
952 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
956 __init__(XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
957 __init__(XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
958 __init__(XYRadialPositionRestraint self) -> XYRadialPositionRestraint
960 _IMP_npc.XYRadialPositionRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionRestraint(*args))
963 r"""add_particle(XYRadialPositionRestraint self, Particle p)"""
964 return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
967 r"""add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
968 return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
970 def set_particles(self, ps):
971 r"""set_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
972 return _IMP_npc.XYRadialPositionRestraint_set_particles(self, ps)
974 def do_get_inputs(self):
975 r"""do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
976 return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
978 def get_version_info(self):
979 r"""get_version_info(XYRadialPositionRestraint self) -> VersionInfo"""
980 return _IMP_npc.XYRadialPositionRestraint_get_version_info(self)
981 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionRestraint
984 r"""__str__(XYRadialPositionRestraint self) -> std::string"""
985 return _IMP_npc.XYRadialPositionRestraint___str__(self)
988 r"""__repr__(XYRadialPositionRestraint self) -> std::string"""
989 return _IMP_npc.XYRadialPositionRestraint___repr__(self)
993 return _object_cast_to_XYRadialPositionRestraint(o)
996 def _get_as_binary(self):
997 r"""_get_as_binary(XYRadialPositionRestraint self) -> PyObject *"""
998 return _IMP_npc.XYRadialPositionRestraint__get_as_binary(self)
1000 def _set_from_binary(self, p):
1001 r"""_set_from_binary(XYRadialPositionRestraint self, PyObject * p)"""
1002 return _IMP_npc.XYRadialPositionRestraint__set_from_binary(self, p)
1004 def __getstate__(self):
1005 p = self._get_as_binary()
1006 if len(self.__dict__) > 1:
1007 d = self.__dict__.copy()
1012 def __setstate__(self, p):
1013 if not hasattr(self,
'this'):
1015 if isinstance(p, tuple):
1017 self.__dict__.update(d)
1018 return self._set_from_binary(p)
1022 _IMP_npc.XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
1024 r"""Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
1026 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1030 __init__(XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1031 __init__(XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
1032 __init__(XYRadialPositionLowerRestraint self) -> XYRadialPositionLowerRestraint
1034 _IMP_npc.XYRadialPositionLowerRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionLowerRestraint(*args))
1037 r"""add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
1038 return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
1041 r"""add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1042 return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
1044 def set_particles(self, ps):
1045 r"""set_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
1046 return _IMP_npc.XYRadialPositionLowerRestraint_set_particles(self, ps)
1048 def do_get_inputs(self):
1049 r"""do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
1050 return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
1052 def get_version_info(self):
1053 r"""get_version_info(XYRadialPositionLowerRestraint self) -> VersionInfo"""
1054 return _IMP_npc.XYRadialPositionLowerRestraint_get_version_info(self)
1055 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionLowerRestraint
1058 r"""__str__(XYRadialPositionLowerRestraint self) -> std::string"""
1059 return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
1062 r"""__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
1063 return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
1067 return _object_cast_to_XYRadialPositionLowerRestraint(o)
1070 def _get_as_binary(self):
1071 r"""_get_as_binary(XYRadialPositionLowerRestraint self) -> PyObject *"""
1072 return _IMP_npc.XYRadialPositionLowerRestraint__get_as_binary(self)
1074 def _set_from_binary(self, p):
1075 r"""_set_from_binary(XYRadialPositionLowerRestraint self, PyObject * p)"""
1076 return _IMP_npc.XYRadialPositionLowerRestraint__set_from_binary(self, p)
1078 def __getstate__(self):
1079 p = self._get_as_binary()
1080 if len(self.__dict__) > 1:
1081 d = self.__dict__.copy()
1086 def __setstate__(self, p):
1087 if not hasattr(self,
'this'):
1089 if isinstance(p, tuple):
1091 self.__dict__.update(d)
1092 return self._set_from_binary(p)
1096 _IMP_npc.XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
1098 r"""Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
1100 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1104 __init__(XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1105 __init__(XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
1106 __init__(XYRadialPositionUpperRestraint self) -> XYRadialPositionUpperRestraint
1108 _IMP_npc.XYRadialPositionUpperRestraint_swiginit(self, _IMP_npc.new_XYRadialPositionUpperRestraint(*args))
1111 r"""add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
1112 return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
1115 r"""add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1116 return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
1118 def set_particles(self, ps):
1119 r"""set_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1120 return _IMP_npc.XYRadialPositionUpperRestraint_set_particles(self, ps)
1122 def do_get_inputs(self):
1123 r"""do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1124 return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
1126 def get_version_info(self):
1127 r"""get_version_info(XYRadialPositionUpperRestraint self) -> VersionInfo"""
1128 return _IMP_npc.XYRadialPositionUpperRestraint_get_version_info(self)
1129 __swig_destroy__ = _IMP_npc.delete_XYRadialPositionUpperRestraint
1132 r"""__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1133 return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1136 r"""__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1137 return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1141 return _object_cast_to_XYRadialPositionUpperRestraint(o)
1144 def _get_as_binary(self):
1145 r"""_get_as_binary(XYRadialPositionUpperRestraint self) -> PyObject *"""
1146 return _IMP_npc.XYRadialPositionUpperRestraint__get_as_binary(self)
1148 def _set_from_binary(self, p):
1149 r"""_set_from_binary(XYRadialPositionUpperRestraint self, PyObject * p)"""
1150 return _IMP_npc.XYRadialPositionUpperRestraint__set_from_binary(self, p)
1152 def __getstate__(self):
1153 p = self._get_as_binary()
1154 if len(self.__dict__) > 1:
1155 d = self.__dict__.copy()
1160 def __setstate__(self, p):
1161 if not hasattr(self,
'this'):
1163 if isinstance(p, tuple):
1165 self.__dict__.update(d)
1166 return self._set_from_binary(p)
1170 _IMP_npc.XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1172 r"""Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1174 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1178 __init__(ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1179 __init__(ProteinContactRestraint self, Model m, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1180 __init__(ProteinContactRestraint self) -> ProteinContactRestraint
1182 _IMP_npc.ProteinContactRestraint_swiginit(self, _IMP_npc.new_ProteinContactRestraint(*args))
1185 r"""add_particle(ProteinContactRestraint self, Particle p)"""
1186 return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1189 r"""add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1190 return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
1192 def set_particles(self, ps):
1193 r"""set_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1194 return _IMP_npc.ProteinContactRestraint_set_particles(self, ps)
1196 def do_get_inputs(self):
1197 r"""do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1198 return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
1200 def get_version_info(self):
1201 r"""get_version_info(ProteinContactRestraint self) -> VersionInfo"""
1202 return _IMP_npc.ProteinContactRestraint_get_version_info(self)
1203 __swig_destroy__ = _IMP_npc.delete_ProteinContactRestraint
1206 r"""__str__(ProteinContactRestraint self) -> std::string"""
1207 return _IMP_npc.ProteinContactRestraint___str__(self)
1210 r"""__repr__(ProteinContactRestraint self) -> std::string"""
1211 return _IMP_npc.ProteinContactRestraint___repr__(self)
1215 return _object_cast_to_ProteinContactRestraint(o)
1218 def _get_as_binary(self):
1219 r"""_get_as_binary(ProteinContactRestraint self) -> PyObject *"""
1220 return _IMP_npc.ProteinContactRestraint__get_as_binary(self)
1222 def _set_from_binary(self, p):
1223 r"""_set_from_binary(ProteinContactRestraint self, PyObject * p)"""
1224 return _IMP_npc.ProteinContactRestraint__set_from_binary(self, p)
1226 def __getstate__(self):
1227 p = self._get_as_binary()
1228 if len(self.__dict__) > 1:
1229 d = self.__dict__.copy()
1234 def __setstate__(self, p):
1235 if not hasattr(self,
'this'):
1237 if isinstance(p, tuple):
1239 self.__dict__.update(d)
1240 return self._set_from_binary(p)
1244 _IMP_npc.ProteinContactRestraint_swigregister(ProteinContactRestraint)
1246 r"""Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1248 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1252 __init__(ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> ProteinChainRestraint
1253 __init__(ProteinChainRestraint self, Model m, double sigma=0.1) -> ProteinChainRestraint
1254 __init__(ProteinChainRestraint self) -> ProteinChainRestraint
1256 _IMP_npc.ProteinChainRestraint_swiginit(self, _IMP_npc.new_ProteinChainRestraint(*args))
1259 r"""add_particle(ProteinChainRestraint self, Particle p)"""
1260 return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1263 r"""add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1264 return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
1266 def set_particles(self, ps):
1267 r"""set_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1268 return _IMP_npc.ProteinChainRestraint_set_particles(self, ps)
1270 def do_get_inputs(self):
1271 r"""do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1272 return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
1274 def get_version_info(self):
1275 r"""get_version_info(ProteinChainRestraint self) -> VersionInfo"""
1276 return _IMP_npc.ProteinChainRestraint_get_version_info(self)
1277 __swig_destroy__ = _IMP_npc.delete_ProteinChainRestraint
1280 r"""__str__(ProteinChainRestraint self) -> std::string"""
1281 return _IMP_npc.ProteinChainRestraint___str__(self)
1284 r"""__repr__(ProteinChainRestraint self) -> std::string"""
1285 return _IMP_npc.ProteinChainRestraint___repr__(self)
1289 return _object_cast_to_ProteinChainRestraint(o)
1292 def _get_as_binary(self):
1293 r"""_get_as_binary(ProteinChainRestraint self) -> PyObject *"""
1294 return _IMP_npc.ProteinChainRestraint__get_as_binary(self)
1296 def _set_from_binary(self, p):
1297 r"""_set_from_binary(ProteinChainRestraint self, PyObject * p)"""
1298 return _IMP_npc.ProteinChainRestraint__set_from_binary(self, p)
1300 def __getstate__(self):
1301 p = self._get_as_binary()
1302 if len(self.__dict__) > 1:
1303 d = self.__dict__.copy()
1308 def __setstate__(self, p):
1309 if not hasattr(self,
'this'):
1311 if isinstance(p, tuple):
1313 self.__dict__.update(d)
1314 return self._set_from_binary(p)
1318 _IMP_npc.ProteinChainRestraint_swigregister(ProteinChainRestraint)
1320 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1322 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1326 __init__(MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1327 __init__(MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1328 __init__(MembraneSurfaceLocationRestraint self) -> MembraneSurfaceLocationRestraint
1330 _IMP_npc.MembraneSurfaceLocationRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationRestraint(*args))
1333 r"""add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1334 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1337 r"""add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1338 return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
1340 def set_particles(self, ps):
1341 r"""set_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1342 return _IMP_npc.MembraneSurfaceLocationRestraint_set_particles(self, ps)
1344 def do_get_inputs(self):
1345 r"""do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1346 return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
1348 def get_version_info(self):
1349 r"""get_version_info(MembraneSurfaceLocationRestraint self) -> VersionInfo"""
1350 return _IMP_npc.MembraneSurfaceLocationRestraint_get_version_info(self)
1351 __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationRestraint
1354 r"""__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1355 return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1358 r"""__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1359 return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1363 return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1366 def _get_as_binary(self):
1367 r"""_get_as_binary(MembraneSurfaceLocationRestraint self) -> PyObject *"""
1368 return _IMP_npc.MembraneSurfaceLocationRestraint__get_as_binary(self)
1370 def _set_from_binary(self, p):
1371 r"""_set_from_binary(MembraneSurfaceLocationRestraint self, PyObject * p)"""
1372 return _IMP_npc.MembraneSurfaceLocationRestraint__set_from_binary(self, p)
1374 def __getstate__(self):
1375 p = self._get_as_binary()
1376 if len(self.__dict__) > 1:
1377 d = self.__dict__.copy()
1382 def __setstate__(self, p):
1383 if not hasattr(self,
'this'):
1385 if isinstance(p, tuple):
1387 self.__dict__.update(d)
1388 return self._set_from_binary(p)
1392 _IMP_npc.MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1393 class MembraneSurfaceLocationConditionalRestraint(
IMP.Restraint):
1394 r"""Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1396 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1400 __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1401 __init__(MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1402 __init__(MembraneSurfaceLocationConditionalRestraint self) -> MembraneSurfaceLocationConditionalRestraint
1404 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swiginit(self, _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args))
1406 def add_particle1(self, p):
1407 r"""add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1408 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1410 def add_particle2(self, p):
1411 r"""add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1412 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
1414 def add_particles1(self, ps):
1415 r"""add_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1416 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles1(self, ps)
1418 def add_particles2(self, ps):
1419 r"""add_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1420 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles2(self, ps)
1422 def set_particles1(self, ps):
1423 r"""set_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1424 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles1(self, ps)
1426 def set_particles2(self, ps):
1427 r"""set_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1428 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles2(self, ps)
1430 def do_get_inputs(self):
1431 r"""do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1432 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
1434 def get_version_info(self):
1435 r"""get_version_info(MembraneSurfaceLocationConditionalRestraint self) -> VersionInfo"""
1436 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_get_version_info(self)
1437 __swig_destroy__ = _IMP_npc.delete_MembraneSurfaceLocationConditionalRestraint
1440 r"""__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1441 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1444 r"""__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1445 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1449 return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1452 def _get_as_binary(self):
1453 r"""_get_as_binary(MembraneSurfaceLocationConditionalRestraint self) -> PyObject *"""
1454 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__get_as_binary(self)
1456 def _set_from_binary(self, p):
1457 r"""_set_from_binary(MembraneSurfaceLocationConditionalRestraint self, PyObject * p)"""
1458 return _IMP_npc.MembraneSurfaceLocationConditionalRestraint__set_from_binary(self, p)
1460 def __getstate__(self):
1461 p = self._get_as_binary()
1462 if len(self.__dict__) > 1:
1463 d = self.__dict__.copy()
1468 def __setstate__(self, p):
1469 if not hasattr(self,
'this'):
1471 if isinstance(p, tuple):
1473 self.__dict__.update(d)
1474 return self._set_from_binary(p)
1478 _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1480 r"""Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1482 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1486 __init__(MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1487 __init__(MembraneExclusionRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1488 __init__(MembraneExclusionRestraint self) -> MembraneExclusionRestraint
1490 _IMP_npc.MembraneExclusionRestraint_swiginit(self, _IMP_npc.new_MembraneExclusionRestraint(*args))
1493 r"""add_particle(MembraneExclusionRestraint self, Particle p)"""
1494 return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1497 r"""add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1498 return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
1500 def set_particles(self, ps):
1501 r"""set_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1502 return _IMP_npc.MembraneExclusionRestraint_set_particles(self, ps)
1504 def do_get_inputs(self):
1505 r"""do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1506 return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
1508 def get_version_info(self):
1509 r"""get_version_info(MembraneExclusionRestraint self) -> VersionInfo"""
1510 return _IMP_npc.MembraneExclusionRestraint_get_version_info(self)
1511 __swig_destroy__ = _IMP_npc.delete_MembraneExclusionRestraint
1514 r"""__str__(MembraneExclusionRestraint self) -> std::string"""
1515 return _IMP_npc.MembraneExclusionRestraint___str__(self)
1518 r"""__repr__(MembraneExclusionRestraint self) -> std::string"""
1519 return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1523 return _object_cast_to_MembraneExclusionRestraint(o)
1526 def _get_as_binary(self):
1527 r"""_get_as_binary(MembraneExclusionRestraint self) -> PyObject *"""
1528 return _IMP_npc.MembraneExclusionRestraint__get_as_binary(self)
1530 def _set_from_binary(self, p):
1531 r"""_set_from_binary(MembraneExclusionRestraint self, PyObject * p)"""
1532 return _IMP_npc.MembraneExclusionRestraint__set_from_binary(self, p)
1534 def __getstate__(self):
1535 p = self._get_as_binary()
1536 if len(self.__dict__) > 1:
1537 d = self.__dict__.copy()
1542 def __setstate__(self, p):
1543 if not hasattr(self,
'this'):
1545 if isinstance(p, tuple):
1547 self.__dict__.update(d)
1548 return self._set_from_binary(p)
1552 _IMP_npc.MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1554 r"""Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1556 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1560 __init__(PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1561 __init__(PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1562 __init__(PoreSideVolumeLocationRestraint self) -> PoreSideVolumeLocationRestraint
1564 _IMP_npc.PoreSideVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PoreSideVolumeLocationRestraint(*args))
1567 r"""add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1568 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1571 r"""add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1572 return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
1574 def set_particles(self, ps):
1575 r"""set_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1576 return _IMP_npc.PoreSideVolumeLocationRestraint_set_particles(self, ps)
1578 def do_get_inputs(self):
1579 r"""do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1580 return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
1582 def get_version_info(self):
1583 r"""get_version_info(PoreSideVolumeLocationRestraint self) -> VersionInfo"""
1584 return _IMP_npc.PoreSideVolumeLocationRestraint_get_version_info(self)
1585 __swig_destroy__ = _IMP_npc.delete_PoreSideVolumeLocationRestraint
1588 r"""__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1589 return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1592 r"""__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1593 return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1597 return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1600 def _get_as_binary(self):
1601 r"""_get_as_binary(PoreSideVolumeLocationRestraint self) -> PyObject *"""
1602 return _IMP_npc.PoreSideVolumeLocationRestraint__get_as_binary(self)
1604 def _set_from_binary(self, p):
1605 r"""_set_from_binary(PoreSideVolumeLocationRestraint self, PyObject * p)"""
1606 return _IMP_npc.PoreSideVolumeLocationRestraint__set_from_binary(self, p)
1608 def __getstate__(self):
1609 p = self._get_as_binary()
1610 if len(self.__dict__) > 1:
1611 d = self.__dict__.copy()
1616 def __setstate__(self, p):
1617 if not hasattr(self,
'this'):
1619 if isinstance(p, tuple):
1621 self.__dict__.update(d)
1622 return self._set_from_binary(p)
1626 _IMP_npc.PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1628 r"""Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1630 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1634 __init__(PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1635 __init__(PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1636 __init__(PerinuclearVolumeLocationRestraint self) -> PerinuclearVolumeLocationRestraint
1638 _IMP_npc.PerinuclearVolumeLocationRestraint_swiginit(self, _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args))
1641 r"""add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1642 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1645 r"""add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1646 return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
1648 def set_particles(self, ps):
1649 r"""set_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1650 return _IMP_npc.PerinuclearVolumeLocationRestraint_set_particles(self, ps)
1652 def do_get_inputs(self):
1653 r"""do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1654 return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
1656 def get_version_info(self):
1657 r"""get_version_info(PerinuclearVolumeLocationRestraint self) -> VersionInfo"""
1658 return _IMP_npc.PerinuclearVolumeLocationRestraint_get_version_info(self)
1659 __swig_destroy__ = _IMP_npc.delete_PerinuclearVolumeLocationRestraint
1662 r"""__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1663 return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1666 r"""__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1667 return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1671 return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1674 def _get_as_binary(self):
1675 r"""_get_as_binary(PerinuclearVolumeLocationRestraint self) -> PyObject *"""
1676 return _IMP_npc.PerinuclearVolumeLocationRestraint__get_as_binary(self)
1678 def _set_from_binary(self, p):
1679 r"""_set_from_binary(PerinuclearVolumeLocationRestraint self, PyObject * p)"""
1680 return _IMP_npc.PerinuclearVolumeLocationRestraint__set_from_binary(self, p)
1682 def __getstate__(self):
1683 p = self._get_as_binary()
1684 if len(self.__dict__) > 1:
1685 d = self.__dict__.copy()
1690 def __setstate__(self, p):
1691 if not hasattr(self,
'this'):
1693 if isinstance(p, tuple):
1695 self.__dict__.update(d)
1696 return self._set_from_binary(p)
1700 _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1702 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1704 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1708 __init__(AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1709 __init__(AssemblySymmetryByDistanceRestraint self, Model m, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1710 __init__(AssemblySymmetryByDistanceRestraint self) -> AssemblySymmetryByDistanceRestraint
1712 _IMP_npc.AssemblySymmetryByDistanceRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args))
1715 r"""add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1716 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1719 r"""add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1720 return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
1722 def set_particles(self, ps):
1723 r"""set_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1724 return _IMP_npc.AssemblySymmetryByDistanceRestraint_set_particles(self, ps)
1726 def do_get_inputs(self):
1727 r"""do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1728 return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
1730 def get_version_info(self):
1731 r"""get_version_info(AssemblySymmetryByDistanceRestraint self) -> VersionInfo"""
1732 return _IMP_npc.AssemblySymmetryByDistanceRestraint_get_version_info(self)
1733 __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDistanceRestraint
1736 r"""__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1737 return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1740 r"""__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1741 return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1745 return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1748 def _get_as_binary(self):
1749 r"""_get_as_binary(AssemblySymmetryByDistanceRestraint self) -> PyObject *"""
1750 return _IMP_npc.AssemblySymmetryByDistanceRestraint__get_as_binary(self)
1752 def _set_from_binary(self, p):
1753 r"""_set_from_binary(AssemblySymmetryByDistanceRestraint self, PyObject * p)"""
1754 return _IMP_npc.AssemblySymmetryByDistanceRestraint__set_from_binary(self, p)
1756 def __getstate__(self):
1757 p = self._get_as_binary()
1758 if len(self.__dict__) > 1:
1759 d = self.__dict__.copy()
1764 def __setstate__(self, p):
1765 if not hasattr(self,
'this'):
1767 if isinstance(p, tuple):
1769 self.__dict__.update(d)
1770 return self._set_from_binary(p)
1774 _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1776 r"""Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1778 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1782 __init__(AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1783 __init__(AssemblySymmetryByDihedralRestraint self, Model m, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1784 __init__(AssemblySymmetryByDihedralRestraint self) -> AssemblySymmetryByDihedralRestraint
1786 _IMP_npc.AssemblySymmetryByDihedralRestraint_swiginit(self, _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args))
1789 r"""add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1790 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1793 r"""add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1794 return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
1796 def set_particles(self, ps):
1797 r"""set_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1798 return _IMP_npc.AssemblySymmetryByDihedralRestraint_set_particles(self, ps)
1800 def do_get_inputs(self):
1801 r"""do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1802 return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
1804 def get_version_info(self):
1805 r"""get_version_info(AssemblySymmetryByDihedralRestraint self) -> VersionInfo"""
1806 return _IMP_npc.AssemblySymmetryByDihedralRestraint_get_version_info(self)
1807 __swig_destroy__ = _IMP_npc.delete_AssemblySymmetryByDihedralRestraint
1810 r"""__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1811 return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1814 r"""__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1815 return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1819 return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1822 def _get_as_binary(self):
1823 r"""_get_as_binary(AssemblySymmetryByDihedralRestraint self) -> PyObject *"""
1824 return _IMP_npc.AssemblySymmetryByDihedralRestraint__get_as_binary(self)
1826 def _set_from_binary(self, p):
1827 r"""_set_from_binary(AssemblySymmetryByDihedralRestraint self, PyObject * p)"""
1828 return _IMP_npc.AssemblySymmetryByDihedralRestraint__set_from_binary(self, p)
1830 def __getstate__(self):
1831 p = self._get_as_binary()
1832 if len(self.__dict__) > 1:
1833 d = self.__dict__.copy()
1838 def __setstate__(self, p):
1839 if not hasattr(self,
'this'):
1841 if isinstance(p, tuple):
1843 self.__dict__.update(d)
1844 return self._set_from_binary(p)
1848 _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1850 r"""Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1852 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1856 __init__(ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1857 __init__(ProteinProximityRestraint self, Model m, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1858 __init__(ProteinProximityRestraint self) -> ProteinProximityRestraint
1860 _IMP_npc.ProteinProximityRestraint_swiginit(self, _IMP_npc.new_ProteinProximityRestraint(*args))
1863 r"""add_particle(ProteinProximityRestraint self, Particle p)"""
1864 return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1867 r"""add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1868 return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
1870 def set_particles(self, ps):
1871 r"""set_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1872 return _IMP_npc.ProteinProximityRestraint_set_particles(self, ps)
1874 def do_get_inputs(self):
1875 r"""do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1876 return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
1878 def get_version_info(self):
1879 r"""get_version_info(ProteinProximityRestraint self) -> VersionInfo"""
1880 return _IMP_npc.ProteinProximityRestraint_get_version_info(self)
1881 __swig_destroy__ = _IMP_npc.delete_ProteinProximityRestraint
1884 r"""__str__(ProteinProximityRestraint self) -> std::string"""
1885 return _IMP_npc.ProteinProximityRestraint___str__(self)
1888 r"""__repr__(ProteinProximityRestraint self) -> std::string"""
1889 return _IMP_npc.ProteinProximityRestraint___repr__(self)
1893 return _object_cast_to_ProteinProximityRestraint(o)
1896 def _get_as_binary(self):
1897 r"""_get_as_binary(ProteinProximityRestraint self) -> PyObject *"""
1898 return _IMP_npc.ProteinProximityRestraint__get_as_binary(self)
1900 def _set_from_binary(self, p):
1901 r"""_set_from_binary(ProteinProximityRestraint self, PyObject * p)"""
1902 return _IMP_npc.ProteinProximityRestraint__set_from_binary(self, p)
1904 def __getstate__(self):
1905 p = self._get_as_binary()
1906 if len(self.__dict__) > 1:
1907 d = self.__dict__.copy()
1912 def __setstate__(self, p):
1913 if not hasattr(self,
'this'):
1915 if isinstance(p, tuple):
1917 self.__dict__.update(d)
1918 return self._set_from_binary(p)
1922 _IMP_npc.ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
1924 r"""Proxy of C++ IMP::npc::CompositeRestraint class."""
1926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1929 r"""__init__(CompositeRestraint self, Model m, PairScore ps) -> CompositeRestraint"""
1930 _IMP_npc.CompositeRestraint_swiginit(self, _IMP_npc.new_CompositeRestraint(m, ps))
1932 def add_type(self, ps):
1933 r"""add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
1934 return _IMP_npc.CompositeRestraint_add_type(self, ps)
1936 def get_connected_pairs(self):
1937 r"""get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
1938 return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
1940 def do_get_inputs(self):
1941 r"""do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
1942 return _IMP_npc.CompositeRestraint_do_get_inputs(self)
1944 def get_version_info(self):
1945 r"""get_version_info(CompositeRestraint self) -> VersionInfo"""
1946 return _IMP_npc.CompositeRestraint_get_version_info(self)
1947 __swig_destroy__ = _IMP_npc.delete_CompositeRestraint
1950 r"""__str__(CompositeRestraint self) -> std::string"""
1951 return _IMP_npc.CompositeRestraint___str__(self)
1954 r"""__repr__(CompositeRestraint self) -> std::string"""
1955 return _IMP_npc.CompositeRestraint___repr__(self)
1959 return _object_cast_to_CompositeRestraint(o)
1963 _IMP_npc.CompositeRestraint_swigregister(CompositeRestraint)
1965 r"""Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
1967 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1971 __init__(MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore
1972 __init__(MinimumSphereDistancePairScore self) -> MinimumSphereDistancePairScore
1974 _IMP_npc.MinimumSphereDistancePairScore_swiginit(self, _IMP_npc.new_MinimumSphereDistancePairScore(*args))
1976 def do_get_inputs(self, m, pis):
1977 r"""do_get_inputs(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1978 return _IMP_npc.MinimumSphereDistancePairScore_do_get_inputs(self, m, pis)
1980 def get_version_info(self):
1981 r"""get_version_info(MinimumSphereDistancePairScore self) -> VersionInfo"""
1982 return _IMP_npc.MinimumSphereDistancePairScore_get_version_info(self)
1983 __swig_destroy__ = _IMP_npc.delete_MinimumSphereDistancePairScore
1986 r"""__str__(MinimumSphereDistancePairScore self) -> std::string"""
1987 return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
1990 r"""__repr__(MinimumSphereDistancePairScore self) -> std::string"""
1991 return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
1995 return _object_cast_to_MinimumSphereDistancePairScore(o)
1998 def _get_as_binary(self):
1999 r"""_get_as_binary(MinimumSphereDistancePairScore self) -> PyObject *"""
2000 return _IMP_npc.MinimumSphereDistancePairScore__get_as_binary(self)
2002 def _set_from_binary(self, p):
2003 r"""_set_from_binary(MinimumSphereDistancePairScore self, PyObject * p)"""
2004 return _IMP_npc.MinimumSphereDistancePairScore__set_from_binary(self, p)
2006 def __getstate__(self):
2007 p = self._get_as_binary()
2008 if len(self.__dict__) > 1:
2009 d = self.__dict__.copy()
2014 def __setstate__(self, p):
2015 if not hasattr(self,
'this'):
2017 if isinstance(p, tuple):
2019 self.__dict__.update(d)
2020 return self._set_from_binary(p)
2024 _IMP_npc.MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
2027 r"""get_module_version() -> std::string const"""
2028 return _IMP_npc.get_module_version()
2031 r"""get_example_path(std::string fname) -> std::string"""
2032 return _IMP_npc.get_example_path(fname)
2035 r"""get_data_path(std::string fname) -> std::string"""
2036 return _IMP_npc.get_data_path(fname)
2038 from .
import _version_check
Abstract class for scoring object(s) of type ParticleIndexPair.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Make CGAL functionality available to IMP.
std::string get_module_version()
Return the version of this module, as a string.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_particle(RMF::FileHandle fh, Particle *hs)
Composable functors to implement scores via compile-time composition.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Output IMP model data in various file formats.
A restraint is a term in an IMP ScoringFunction.