Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change of weight edge #2

Merged
merged 5 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions C/SERD.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _SERD
else:
import _SERD

try:
import builtins as __builtin__
except ImportError:
import __builtin__

def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr


def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper


class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)



def igrid(grid):
return _SERD.igrid(grid)

def fill(grid, atoms, reference, sincos, step, probe, nthreads):
return _SERD.fill(grid, atoms, reference, sincos, step, probe, nthreads)

def check_protein_neighbours(grid, i, j, k):
return _SERD.check_protein_neighbours(grid, i, j, k)

def ses(grid, step, probe, nthreads):
return _SERD.ses(grid, step, probe, nthreads)

def define_surface_points(grid, i, j, k):
return _SERD.define_surface_points(grid, i, j, k)

def filter_surface(grid, nthreads):
return _SERD.filter_surface(grid, nthreads)

def remove_noise_points(grid, i, j, k):
return _SERD.remove_noise_points(grid, i, j, k)

def filter_noise_points(grid, nthreads):
return _SERD.filter_noise_points(grid, nthreads)

def check_unclustered_neighbours(grid, i, j, k):
return _SERD.check_unclustered_neighbours(grid, i, j, k)

def flood_and_fill(grid, i, j, k, tag):
return _SERD.flood_and_fill(grid, i, j, k, tag)

def filter_enclosed_regions(grid, step, nthreads):
return _SERD.filter_enclosed_regions(grid, step, nthreads)

def _surface(grid, nx, ny, nz, atoms, reference, sincos, step, probe, is_ses, nthreads, verbose):
return _SERD._surface(grid, nx, ny, nz, atoms, reference, sincos, step, probe, is_ses, nthreads, verbose)
class res(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
pos = property(_SERD.res_pos_get, _SERD.res_pos_set)
next = property(_SERD.res_next_get, _SERD.res_next_set)

def __init__(self):
_SERD.res_swiginit(self, _SERD.new_res())
__swig_destroy__ = _SERD.delete_res

# Register res in _SERD:
_SERD.res_swigregister(res)


def create(pos):
return _SERD.create(pos)

def insert(head, res_new):
return _SERD.insert(head, res_new)

def _interface(grid, pdb, atoms, reference, sincos, step, probe, nthreads, verbose):
return _SERD._interface(grid, pdb, atoms, reference, sincos, step, probe, nthreads, verbose)


Loading