/* Generated by Cython 0.29.22 */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_22"
#define CYTHON_HEX_VERSION 0x001D16F0
#define CYTHON_FUTURE_DIVISION 0
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned char     uint8_t;
           typedef unsigned int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
  #else
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #endif
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#ifndef PyObject_Unicode
  #define PyObject_Unicode             PyObject_Str
#endif
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
#else
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#define __PYX_MARK_ERR_POS(f_index, lineno) \
    { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__AdaptivePELE__atomset__atomset
#define __PYX_HAVE_API__AdaptivePELE__atomset__atomset
/* Early includes */
#include <string.h>
#include <stdio.h>
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"

    /* NumPy API declarations from "numpy/__init__.pxd" */
    
#include <math.h>
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;

/* Header.proto */
#if !defined(CYTHON_CCOMPLEX)
  #if defined(__cplusplus)
    #define CYTHON_CCOMPLEX 1
  #elif defined(_Complex_I)
    #define CYTHON_CCOMPLEX 1
  #else
    #define CYTHON_CCOMPLEX 0
  #endif
#endif
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #include <complex>
  #else
    #include <complex.h>
  #endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
  #undef _Complex_I
  #define _Complex_I 1.0fj
#endif


static const char *__pyx_f[] = {
  "AdaptivePELE/atomset/atomset.pyx",
  "AdaptivePELE/atomset/atomset.pxd",
  "stringsource",
  "__init__.pxd",
  "type.pxd",
};
/* BufferFormatStructs.proto */
#define IS_UNSIGNED(type) (((type) -1) > 0)
struct __Pyx_StructField_;
#define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
typedef struct {
  const char* name;
  struct __Pyx_StructField_* fields;
  size_t size;
  size_t arraysize[8];
  int ndim;
  char typegroup;
  char is_unsigned;
  int flags;
} __Pyx_TypeInfo;
typedef struct __Pyx_StructField_ {
  __Pyx_TypeInfo* type;
  const char* name;
  size_t offset;
} __Pyx_StructField;
typedef struct {
  __Pyx_StructField* field;
  size_t parent_offset;
} __Pyx_BufFmt_StackElem;
typedef struct {
  __Pyx_StructField root;
  __Pyx_BufFmt_StackElem* head;
  size_t fmt_offset;
  size_t new_count, enc_count;
  size_t struct_alignment;
  int is_complex;
  char enc_type;
  char new_packmode;
  char enc_packmode;
  char is_valid_array;
} __Pyx_BufFmt_Context;


/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":689
 * # in Cython to enable them only on the right systems.
 * 
 * ctypedef npy_int8       int8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 */
typedef npy_int8 __pyx_t_5numpy_int8_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":690
 * 
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t
 */
typedef npy_int16 __pyx_t_5numpy_int16_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":691
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int64      int64_t
 * #ctypedef npy_int96      int96_t
 */
typedef npy_int32 __pyx_t_5numpy_int32_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":692
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_int96      int96_t
 * #ctypedef npy_int128     int128_t
 */
typedef npy_int64 __pyx_t_5numpy_int64_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":696
 * #ctypedef npy_int128     int128_t
 * 
 * ctypedef npy_uint8      uint8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 */
typedef npy_uint8 __pyx_t_5numpy_uint8_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":697
 * 
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t
 */
typedef npy_uint16 __pyx_t_5numpy_uint16_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":698
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint64     uint64_t
 * #ctypedef npy_uint96     uint96_t
 */
typedef npy_uint32 __pyx_t_5numpy_uint32_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":699
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_uint96     uint96_t
 * #ctypedef npy_uint128    uint128_t
 */
typedef npy_uint64 __pyx_t_5numpy_uint64_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":703
 * #ctypedef npy_uint128    uint128_t
 * 
 * ctypedef npy_float32    float32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_float64    float64_t
 * #ctypedef npy_float80    float80_t
 */
typedef npy_float32 __pyx_t_5numpy_float32_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":704
 * 
 * ctypedef npy_float32    float32_t
 * ctypedef npy_float64    float64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_float80    float80_t
 * #ctypedef npy_float128   float128_t
 */
typedef npy_float64 __pyx_t_5numpy_float64_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":713
 * # The int types are mapped a bit surprising --
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t
 */
typedef npy_long __pyx_t_5numpy_int_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":714
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   longlong_t
 * 
 */
typedef npy_longlong __pyx_t_5numpy_long_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":715
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_ulong      uint_t
 */
typedef npy_longlong __pyx_t_5numpy_longlong_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":717
 * ctypedef npy_longlong   longlong_t
 * 
 * ctypedef npy_ulong      uint_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t
 */
typedef npy_ulong __pyx_t_5numpy_uint_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":718
 * 
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 */
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":719
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_intp       intp_t
 */
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":721
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 * ctypedef npy_intp       intp_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uintp      uintp_t
 * 
 */
typedef npy_intp __pyx_t_5numpy_intp_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":722
 * 
 * ctypedef npy_intp       intp_t
 * ctypedef npy_uintp      uintp_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_double     float_t
 */
typedef npy_uintp __pyx_t_5numpy_uintp_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":724
 * ctypedef npy_uintp      uintp_t
 * 
 * ctypedef npy_double     float_t             # <<<<<<<<<<<<<<
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t
 */
typedef npy_double __pyx_t_5numpy_float_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":725
 * 
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longdouble longdouble_t
 * 
 */
typedef npy_double __pyx_t_5numpy_double_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":726
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cfloat      cfloat_t
 */
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
/* Declarations.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< float > __pyx_t_float_complex;
  #else
    typedef float _Complex __pyx_t_float_complex;
  #endif
#else
    typedef struct { float real, imag; } __pyx_t_float_complex;
#endif
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);

/* Declarations.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< double > __pyx_t_double_complex;
  #else
    typedef double _Complex __pyx_t_double_complex;
  #endif
#else
    typedef struct { double real, imag; } __pyx_t_double_complex;
#endif
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);


/*--- Type declarations ---*/
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom;
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB;
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":728
 * ctypedef npy_longdouble longdouble_t
 * 
 * ctypedef npy_cfloat      cfloat_t             # <<<<<<<<<<<<<<
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t
 */
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":729
 * 
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t             # <<<<<<<<<<<<<<
 * ctypedef npy_clongdouble clongdouble_t
 * 
 */
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":730
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cdouble     complex_t
 */
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":732
 * ctypedef npy_clongdouble clongdouble_t
 * 
 * ctypedef npy_cdouble     complex_t             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 */
typedef npy_cdouble __pyx_t_5numpy_complex_t;

/* "AdaptivePELE/atomset/atomset.pxd":1
 * cdef class Atom:             # <<<<<<<<<<<<<<
 *     cdef public basestring atomSerial, name, resname, resChain, resnum, type, id
 *     cdef public double x, y, z, mass
 */
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom {
  PyObject_HEAD
  PyObject *atomSerial;
  PyObject *name;
  PyObject *resname;
  PyObject *resChain;
  PyObject *resnum;
  PyObject *type;
  PyObject *id;
  double x;
  double y;
  double z;
  double mass;
  int protein;
};


/* "AdaptivePELE/atomset/atomset.pxd":6
 *     cdef public bint protein
 * 
 * cdef class PDB:             # <<<<<<<<<<<<<<
 *     cdef public dict atoms
 *     cdef public list atomList, com, centroid
 */
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB {
  PyObject_HEAD
  PyObject *atoms;
  PyObject *atomList;
  PyObject *com;
  PyObject *centroid;
  double totalMass;
  PyObject *pdb;
  int ispdb;
};


/* "AdaptivePELE/atomset/atomset.pyx":731
 *         self.atomList.remove(atomId)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         for atomId in self.atomList:
 *             yield self.atoms[atomId]
 */
struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ {
  PyObject_HEAD
  PyObject *__pyx_v_atomId;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
};


/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* IncludeStringH.proto */
#include <string.h>

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* pyobject_as_double.proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
 likely(PyInt_CheckExact(obj)) ?\
 PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?\
 PyFloat_AS_DOUBLE(obj) : __Pyx__PyObject_AsDouble(obj))
#endif

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name)  {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* PyObjectFormat.proto */
#if CYTHON_USE_UNICODE_WRITER
static PyObject* __Pyx_PyObject_Format(PyObject* s, PyObject* f);
#else
#define __Pyx_PyObject_Format(s, f) PyObject_Format(s, f)
#endif

/* JoinPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* IsLittleEndian.proto */
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void);

/* BufferFormatCheck.proto */
static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts);
static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
                              __Pyx_BufFmt_StackElem* stack,
                              __Pyx_TypeInfo* type);

/* BufferGetAndValidate.proto */
#define __Pyx_GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack)\
    ((obj == Py_None || obj == NULL) ?\
    (__Pyx_ZeroBuffer(buf), 0) :\
    __Pyx__GetBufferAndValidate(buf, obj, dtype, flags, nd, cast, stack))
static int  __Pyx__GetBufferAndValidate(Py_buffer* buf, PyObject* obj,
    __Pyx_TypeInfo* dtype, int flags, int nd, int cast, __Pyx_BufFmt_StackElem* stack);
static void __Pyx_ZeroBuffer(Py_buffer* buf);
static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info);
static Py_ssize_t __Pyx_minusones[] = { -1, -1, -1, -1, -1, -1, -1, -1 };
static Py_ssize_t __Pyx_zeros[] = { 0, 0, 0, 0, 0, 0, 0, 0 };

/* BufferIndexError.proto */
static void __Pyx_RaiseBufferIndexError(int axis);

#define __Pyx_BufPtrStrided2d(type, buf, i0, s0, i1, s1) (type)((char*)buf + i0 * s0 + i1 * s1)
/* py_dict_values.proto */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* UnpackUnboundCMethod.proto */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;

/* CallUnboundCMethod0.proto */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CallUnboundCMethod0(cfunc, self)\
    (likely((cfunc)->func) ?\
        (likely((cfunc)->flag == METH_NOARGS) ?  (*((cfunc)->func))(self, NULL) :\
         (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
            (PY_VERSION_HEX >= 0x030700A0 ?\
                (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
                (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
          (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
            (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
            (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ?  ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
               ((cfunc)->flag == METH_VARARGS ?  (*((cfunc)->func))(self, __pyx_empty_tuple) :\
               __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
        __Pyx__CallUnboundCMethod0(cfunc, self))
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* py_dict_pop.proto */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value);

/* CallUnboundCMethod2.proto */
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* CallUnboundCMethod1.proto */
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto */
#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\
    (likely(is_tuple || PyTuple_Check(tuple)) ?\
        (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\
            __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
            (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
        __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* SetItemInt.proto */
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
               __Pyx_SetItemInt_Generic(o, to_py_func(i), v)))
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v);
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int is_list, int wraparound, int boundscheck);

/* PyObjectLookupSpecial.proto */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
#if PY_MAJOR_VERSION < 3
    if (unlikely(PyInstance_Check(obj)))
        return __Pyx_PyObject_GetAttrStr(obj, attr_name);
#endif
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#else
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* PyObject_Unicode.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))
#else
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj))
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyDictContains.proto */
static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) {
    int result = PyDict_Contains(dict, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* PyObjectGetAttrStrNoError.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
   __Pyx_ImportType_CheckSize_Error = 0,
   __Pyx_ImportType_CheckSize_Warn = 1,
   __Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* BufferStructDeclare.proto */
typedef struct {
  Py_ssize_t shape, strides, suboffsets;
} __Pyx_Buf_DimInfo;
typedef struct {
  size_t refcount;
  Py_buffer pybuffer;
} __Pyx_Buffer;
typedef struct {
  __Pyx_Buffer *rcbuffer;
  char *data;
  __Pyx_Buf_DimInfo diminfo[8];
} __Pyx_LocalBuf_ND;

#if PY_MAJOR_VERSION < 3
    static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags);
    static void __Pyx_ReleaseBuffer(Py_buffer *view);
#else
    #define __Pyx_GetBuffer PyObject_GetBuffer
    #define __Pyx_ReleaseBuffer PyBuffer_Release
#endif


/* GCCDiagnostics.proto */
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* Print.proto */
static int __Pyx_Print(PyObject*, PyObject *, int);
#if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
static PyObject* __pyx_print = 0;
static PyObject* __pyx_print_kwargs = 0;
#endif

/* None.proto */
static CYTHON_INLINE long __Pyx_pow_long(long, long);

/* RealImag.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #define __Pyx_CREAL(z) ((z).real())
    #define __Pyx_CIMAG(z) ((z).imag())
  #else
    #define __Pyx_CREAL(z) (__real__(z))
    #define __Pyx_CIMAG(z) (__imag__(z))
  #endif
#else
    #define __Pyx_CREAL(z) ((z).real)
    #define __Pyx_CIMAG(z) ((z).imag)
#endif
#if defined(__cplusplus) && CYTHON_CCOMPLEX\
        && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
    #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
    #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eq_float(a, b)   ((a)==(b))
    #define __Pyx_c_sum_float(a, b)  ((a)+(b))
    #define __Pyx_c_diff_float(a, b) ((a)-(b))
    #define __Pyx_c_prod_float(a, b) ((a)*(b))
    #define __Pyx_c_quot_float(a, b) ((a)/(b))
    #define __Pyx_c_neg_float(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
    #define __Pyx_c_conj_float(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (::std::abs(z))
        #define __Pyx_c_pow_float(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_float(z) ((z)==0)
    #define __Pyx_c_conj_float(z)    (conjf(z))
    #if 1
        #define __Pyx_c_abs_float(z)     (cabsf(z))
        #define __Pyx_c_pow_float(a, b)  (cpowf(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex);
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
    #endif
#endif

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eq_double(a, b)   ((a)==(b))
    #define __Pyx_c_sum_double(a, b)  ((a)+(b))
    #define __Pyx_c_diff_double(a, b) ((a)-(b))
    #define __Pyx_c_prod_double(a, b) ((a)*(b))
    #define __Pyx_c_quot_double(a, b) ((a)/(b))
    #define __Pyx_c_neg_double(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
    #define __Pyx_c_conj_double(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (::std::abs(z))
        #define __Pyx_c_pow_double(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_double(z) ((z)==0)
    #define __Pyx_c_conj_double(z)    (conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (cabs(z))
        #define __Pyx_c_pow_double(a, b)  (cpow(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
    #endif
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *);

/* PrintOne.proto */
static int __Pyx_PrintOne(PyObject* stream, PyObject *o);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* FetchCommonType.proto */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyObjectCallMethod1.proto */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* CoroutineBase.proto */
typedef PyObject *(*__pyx_coroutine_body_t)(PyObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
    PyObject *gi_weakreflist;
    PyObject *classobj;
    PyObject *yieldfrom;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static PyObject *__Pyx_Coroutine_Close(PyObject *self);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);

/* PatchModuleWithCoroutine.proto */
static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code);

/* PatchGeneratorABC.proto */
static int __Pyx_patch_abc(void);

/* Generator.proto */
#define __Pyx_Generator_USED
static PyTypeObject *__pyx_GeneratorType = 0;
#define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == __pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);


/* Module declarations from 'cython' */

/* Module declarations from 'cpython.buffer' */

/* Module declarations from 'libc.string' */

/* Module declarations from 'libc.stdio' */

/* Module declarations from '__builtin__' */

/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;

/* Module declarations from 'cpython' */

/* Module declarations from 'cpython.object' */

/* Module declarations from 'cpython.ref' */

/* Module declarations from 'cpython.mem' */

/* Module declarations from 'numpy' */

/* Module declarations from 'numpy' */
static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;

/* Module declarations from 'libc.math' */

/* Module declarations from 'AdaptivePELE.atomset.atomset' */
static PyTypeObject *__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom = 0;
static PyTypeObject *__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB = 0;
static PyTypeObject *__pyx_ptype_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ = 0;
static int __pyx_f_12AdaptivePELE_7atomset_7atomset_check_add_TER(PyObject *, PyObject *); /*proto*/
static PyObject *__pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_Atom__set_state(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *, PyObject *); /*proto*/
static PyObject *__pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_PDB__set_state(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *, PyObject *); /*proto*/
static __Pyx_TypeInfo __Pyx_TypeInfo_float = { "float", NULL, sizeof(float), { 0 }, 0, 'R', 0, 0 };
#define __Pyx_MODULE_NAME "AdaptivePELE.atomset.atomset"
extern int __pyx_module_is_main_AdaptivePELE__atomset__atomset;
int __pyx_module_is_main_AdaptivePELE__atomset__atomset = 0;

/* Implementation of 'AdaptivePELE.atomset.atomset' */
static PyObject *__pyx_builtin_zip;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_IOError;
static PyObject *__pyx_builtin_ImportError;
static const char __pyx_k_[] = "";
static const char __pyx_k_A[] = "A";
static const char __pyx_k_B[] = "B";
static const char __pyx_k_C[] = "C";
static const char __pyx_k_D[] = "D";
static const char __pyx_k_E[] = "E";
static const char __pyx_k_F[] = "F";
static const char __pyx_k_G[] = "G";
static const char __pyx_k_H[] = "H";
static const char __pyx_k_I[] = "I";
static const char __pyx_k_K[] = "K";
static const char __pyx_k_L[] = "L";
static const char __pyx_k_M[] = "M";
static const char __pyx_k_N[] = "N";
static const char __pyx_k_O[] = "O";
static const char __pyx_k_P[] = "P";
static const char __pyx_k_Q[] = "Q";
static const char __pyx_k_R[] = "R";
static const char __pyx_k_S[] = "S";
static const char __pyx_k_T[] = "T";
static const char __pyx_k_U[] = "U";
static const char __pyx_k_V[] = "V";
static const char __pyx_k_W[] = "W";
static const char __pyx_k_X[] = "X";
static const char __pyx_k_Y[] = "Y";
static const char __pyx_k_Z[] = "Z";
static const char __pyx_k_d[] = "%d";
static const char __pyx_k_f[] = "f";
static const char __pyx_k_w[] = "w";
static const char __pyx_k_x[] = "x";
static const char __pyx_k_y[] = "y";
static const char __pyx_k_z[] = "z";
static const char __pyx_k_3f[] = "%.3f";
static const char __pyx_k_AG[] = "AG";
static const char __pyx_k_AL[] = "AL";
static const char __pyx_k_AR[] = "AR";
static const char __pyx_k_AS[] = "AS";
static const char __pyx_k_AU[] = "AU";
static const char __pyx_k_BA[] = "BA";
static const char __pyx_k_BE[] = "BE";
static const char __pyx_k_BR[] = "BR";
static const char __pyx_k_CA[] = "CA";
static const char __pyx_k_CD[] = "CD";
static const char __pyx_k_CL[] = "CL";
static const char __pyx_k_CM[] = "CM";
static const char __pyx_k_CO[] = "CO";
static const char __pyx_k_CR[] = "CR";
static const char __pyx_k_CS[] = "CS";
static const char __pyx_k_CU[] = "CU";
static const char __pyx_k_CZ[] = "CZ";
static const char __pyx_k_EU[] = "EU";
static const char __pyx_k_FE[] = "FE";
static const char __pyx_k_GA[] = "GA";
static const char __pyx_k_GD[] = "GD";
static const char __pyx_k_GE[] = "GE";
static const char __pyx_k_HE[] = "HE";
static const char __pyx_k_HG[] = "HG";
static const char __pyx_k_IN[] = "IN";
static const char __pyx_k_IR[] = "IR";
static const char __pyx_k_KR[] = "KR";
static const char __pyx_k_LI[] = "LI";
static const char __pyx_k_MA[] = "MA";
static const char __pyx_k_MG[] = "MG";
static const char __pyx_k_MN[] = "MN";
static const char __pyx_k_MO[] = "MO";
static const char __pyx_k_NA[] = "NA";
static const char __pyx_k_NB[] = "NB";
static const char __pyx_k_NE[] = "NE";
static const char __pyx_k_NI[] = "NI";
static const char __pyx_k_NZ[] = "NZ";
static const char __pyx_k_OH[] = "OH";
static const char __pyx_k_PB[] = "PB";
static const char __pyx_k_PD[] = "PD";
static const char __pyx_k_PR[] = "PR";
static const char __pyx_k_PT[] = "PT";
static const char __pyx_k_RB[] = "RB";
static const char __pyx_k_RH[] = "RH";
static const char __pyx_k_RU[] = "RU";
static const char __pyx_k_SB[] = "SB";
static const char __pyx_k_SC[] = "SC";
static const char __pyx_k_SE[] = "SE";
static const char __pyx_k_SI[] = "SI";
static const char __pyx_k_SN[] = "SN";
static const char __pyx_k_SR[] = "SR";
static const char __pyx_k_TB[] = "TB";
static const char __pyx_k_TC[] = "TC";
static const char __pyx_k_TE[] = "TE";
static const char __pyx_k_TI[] = "TI";
static const char __pyx_k_XE[] = "XE";
static const char __pyx_k_ZN[] = "ZN";
static const char __pyx_k_ZR[] = "ZR";
static const char __pyx_k__2[] = ":";
static const char __pyx_k__3[] = ": ";
static const char __pyx_k__4[] = " ";
static const char __pyx_k__5[] = " [";
static const char __pyx_k__6[] = ", ";
static const char __pyx_k__7[] = "] ";
static const char __pyx_k__8[] = "\n";
static const char __pyx_k_dx[] = "dx";
static const char __pyx_k_dy[] = "dy";
static const char __pyx_k_dz[] = "dz";
static const char __pyx_k_id[] = "id";
static const char __pyx_k_io[] = "io";
static const char __pyx_k_np[] = "np";
static const char __pyx_k_re[] = "re";
static const char __pyx_k_rt[] = "rt";
static const char __pyx_k_00C[] = "00C";
static const char __pyx_k_01W[] = "01W";
static const char __pyx_k_02K[] = "02K";
static const char __pyx_k_02L[] = "02L";
static const char __pyx_k_03Y[] = "03Y";
static const char __pyx_k_07O[] = "07O";
static const char __pyx_k_08P[] = "08P";
static const char __pyx_k_0A0[] = "0A0";
static const char __pyx_k_0A1[] = "0A1";
static const char __pyx_k_0A2[] = "0A2";
static const char __pyx_k_0A8[] = "0A8";
static const char __pyx_k_0AA[] = "0AA";
static const char __pyx_k_0AB[] = "0AB";
static const char __pyx_k_0AC[] = "0AC";
static const char __pyx_k_0AF[] = "0AF";
static const char __pyx_k_0AG[] = "0AG";
static const char __pyx_k_0AH[] = "0AH";
static const char __pyx_k_0AK[] = "0AK";
static const char __pyx_k_0BN[] = "0BN";
static const char __pyx_k_0CS[] = "0CS";
static const char __pyx_k_0E5[] = "0E5";
static const char __pyx_k_0EA[] = "0EA";
static const char __pyx_k_0FL[] = "0FL";
static const char __pyx_k_0NC[] = "0NC";
static const char __pyx_k_0WZ[] = "0WZ";
static const char __pyx_k_0Y8[] = "0Y8";
static const char __pyx_k_0_9[] = "[0-9]|\\+|\\-";
static const char __pyx_k_143[] = "143";
static const char __pyx_k_193[] = "193";
static const char __pyx_k_1OP[] = "1OP";
static const char __pyx_k_1PA[] = "1PA";
static const char __pyx_k_1PI[] = "1PI";
static const char __pyx_k_1TQ[] = "1TQ";
static const char __pyx_k_1TY[] = "1TY";
static const char __pyx_k_1X6[] = "1X6";
static const char __pyx_k_200[] = "200";
static const char __pyx_k_23F[] = "23F";
static const char __pyx_k_23S[] = "23S";
static const char __pyx_k_26B[] = "26B";
static const char __pyx_k_2AD[] = "2AD";
static const char __pyx_k_2AG[] = "2AG";
static const char __pyx_k_2AO[] = "2AO";
static const char __pyx_k_2AS[] = "2AS";
static const char __pyx_k_2CO[] = "2CO";
static const char __pyx_k_2DO[] = "2DO";
static const char __pyx_k_2FM[] = "2FM";
static const char __pyx_k_2HF[] = "2HF";
static const char __pyx_k_2KK[] = "2KK";
static const char __pyx_k_2KP[] = "2KP";
static const char __pyx_k_2LU[] = "2LU";
static const char __pyx_k_2ML[] = "2ML";
static const char __pyx_k_2MR[] = "2MR";
static const char __pyx_k_2MT[] = "2MT";
static const char __pyx_k_2OR[] = "2OR";
static const char __pyx_k_2PI[] = "2PI";
static const char __pyx_k_2QZ[] = "2QZ";
static const char __pyx_k_2R3[] = "2R3";
static const char __pyx_k_2SI[] = "2SI";
static const char __pyx_k_2TL[] = "2TL";
static const char __pyx_k_2TY[] = "2TY";
static const char __pyx_k_2VA[] = "2VA";
static const char __pyx_k_2XA[] = "2XA";
static const char __pyx_k_32S[] = "32S";
static const char __pyx_k_32T[] = "32T";
static const char __pyx_k_33X[] = "33X";
static const char __pyx_k_3AH[] = "3AH";
static const char __pyx_k_3AR[] = "3AR";
static const char __pyx_k_3CF[] = "3CF";
static const char __pyx_k_3GA[] = "3GA";
static const char __pyx_k_3MD[] = "3MD";
static const char __pyx_k_3NF[] = "3NF";
static const char __pyx_k_3QN[] = "3QN";
static const char __pyx_k_3TY[] = "3TY";
static const char __pyx_k_3XH[] = "3XH";
static const char __pyx_k_4BF[] = "4BF";
static const char __pyx_k_4CF[] = "4CF";
static const char __pyx_k_4CY[] = "4CY";
static const char __pyx_k_4DP[] = "4DP";
static const char __pyx_k_4FB[] = "4FB";
static const char __pyx_k_4FW[] = "4FW";
static const char __pyx_k_4HT[] = "4HT";
static const char __pyx_k_4IN[] = "4IN";
static const char __pyx_k_4MM[] = "4MM";
static const char __pyx_k_4PH[] = "4PH";
static const char __pyx_k_4U7[] = "4U7";
static const char __pyx_k_56A[] = "56A";
static const char __pyx_k_5AB[] = "5AB";
static const char __pyx_k_5CS[] = "5CS";
static const char __pyx_k_5CW[] = "5CW";
static const char __pyx_k_5HP[] = "5HP";
static const char __pyx_k_6CL[] = "6CL";
static const char __pyx_k_6CW[] = "6CW";
static const char __pyx_k_6GL[] = "6GL";
static const char __pyx_k_6HN[] = "6HN";
static const char __pyx_k_7JA[] = "7JA";
static const char __pyx_k_9NE[] = "9NE";
static const char __pyx_k_9NF[] = "9NF";
static const char __pyx_k_9NR[] = "9NR";
static const char __pyx_k_9NV[] = "9NV";
static const char __pyx_k_A5N[] = "A5N";
static const char __pyx_k_A66[] = "A66";
static const char __pyx_k_AA3[] = "AA3";
static const char __pyx_k_AA4[] = "AA4";
static const char __pyx_k_AAR[] = "AAR";
static const char __pyx_k_AB7[] = "AB7";
static const char __pyx_k_ABA[] = "ABA";
static const char __pyx_k_ACB[] = "ACB";
static const char __pyx_k_ACE[] = "ACE";
static const char __pyx_k_ACL[] = "ACL";
static const char __pyx_k_ADD[] = "ADD";
static const char __pyx_k_AEA[] = "AEA";
static const char __pyx_k_AEI[] = "AEI";
static const char __pyx_k_AFA[] = "AFA";
static const char __pyx_k_AGM[] = "AGM";
static const char __pyx_k_AGT[] = "AGT";
static const char __pyx_k_AHB[] = "AHB";
static const char __pyx_k_AHH[] = "AHH";
static const char __pyx_k_AHO[] = "AHO";
static const char __pyx_k_AHP[] = "AHP";
static const char __pyx_k_AHS[] = "AHS";
static const char __pyx_k_AHT[] = "AHT";
static const char __pyx_k_AIB[] = "AIB";
static const char __pyx_k_AKL[] = "AKL";
static const char __pyx_k_AKZ[] = "AKZ";
static const char __pyx_k_ALA[] = "ALA";
static const char __pyx_k_ALC[] = "ALC";
static const char __pyx_k_ALL[] = "ALL";
static const char __pyx_k_ALM[] = "ALM";
static const char __pyx_k_ALN[] = "ALN";
static const char __pyx_k_ALO[] = "ALO";
static const char __pyx_k_ALS[] = "ALS";
static const char __pyx_k_ALT[] = "ALT";
static const char __pyx_k_ALV[] = "ALV";
static const char __pyx_k_ALY[] = "ALY";
static const char __pyx_k_AN8[] = "AN8";
static const char __pyx_k_APE[] = "APE";
static const char __pyx_k_APH[] = "APH";
static const char __pyx_k_API[] = "API";
static const char __pyx_k_APK[] = "APK";
static const char __pyx_k_APM[] = "APM";
static const char __pyx_k_APP[] = "APP";
static const char __pyx_k_AR2[] = "AR2";
static const char __pyx_k_AR4[] = "AR4";
static const char __pyx_k_AR7[] = "AR7";
static const char __pyx_k_ARG[] = "ARG";
static const char __pyx_k_ARM[] = "ARM";
static const char __pyx_k_ARO[] = "ARO";
static const char __pyx_k_ARV[] = "ARV";
static const char __pyx_k_AS2[] = "AS2";
static const char __pyx_k_AS9[] = "AS9";
static const char __pyx_k_ASA[] = "ASA";
static const char __pyx_k_ASB[] = "ASB";
static const char __pyx_k_ASI[] = "ASI";
static const char __pyx_k_ASK[] = "ASK";
static const char __pyx_k_ASL[] = "ASL";
static const char __pyx_k_ASM[] = "ASM";
static const char __pyx_k_ASN[] = "ASN";
static const char __pyx_k_ASP[] = "ASP";
static const char __pyx_k_ASQ[] = "ASQ";
static const char __pyx_k_ASX[] = "ASX";
static const char __pyx_k_AVN[] = "AVN";
static const char __pyx_k_AYA[] = "AYA";
static const char __pyx_k_AZK[] = "AZK";
static const char __pyx_k_AZS[] = "AZS";
static const char __pyx_k_AZY[] = "AZY";
static const char __pyx_k_B1F[] = "B1F";
static const char __pyx_k_B2A[] = "B2A";
static const char __pyx_k_B2F[] = "B2F";
static const char __pyx_k_B2I[] = "B2I";
static const char __pyx_k_B2V[] = "B2V";
static const char __pyx_k_B3A[] = "B3A";
static const char __pyx_k_B3D[] = "B3D";
static const char __pyx_k_B3E[] = "B3E";
static const char __pyx_k_B3K[] = "B3K";
static const char __pyx_k_B3L[] = "B3L";
static const char __pyx_k_B3M[] = "B3M";
static const char __pyx_k_B3Q[] = "B3Q";
static const char __pyx_k_B3S[] = "B3S";
static const char __pyx_k_B3T[] = "B3T";
static const char __pyx_k_B3U[] = "B3U";
static const char __pyx_k_B3X[] = "B3X";
static const char __pyx_k_B3Y[] = "B3Y";
static const char __pyx_k_BB6[] = "BB6";
static const char __pyx_k_BB7[] = "BB7";
static const char __pyx_k_BB8[] = "BB8";
static const char __pyx_k_BB9[] = "BB9";
static const char __pyx_k_BBC[] = "BBC";
static const char __pyx_k_BCS[] = "BCS";
static const char __pyx_k_BE2[] = "BE2";
static const char __pyx_k_BFD[] = "BFD";
static const char __pyx_k_BG1[] = "BG1";
static const char __pyx_k_BH2[] = "BH2";
static const char __pyx_k_BHD[] = "BHD";
static const char __pyx_k_BIF[] = "BIF";
static const char __pyx_k_BIL[] = "BIL";
static const char __pyx_k_BIU[] = "BIU";
static const char __pyx_k_BJH[] = "BJH";
static const char __pyx_k_BL2[] = "BL2";
static const char __pyx_k_BLE[] = "BLE";
static const char __pyx_k_BLY[] = "BLY";
static const char __pyx_k_BMT[] = "BMT";
static const char __pyx_k_BNN[] = "BNN";
static const char __pyx_k_BNO[] = "BNO";
static const char __pyx_k_BOR[] = "BOR";
static const char __pyx_k_BPE[] = "BPE";
static const char __pyx_k_BSE[] = "BSE";
static const char __pyx_k_BTA[] = "BTA";
static const char __pyx_k_BTC[] = "BTC";
static const char __pyx_k_BTR[] = "BTR";
static const char __pyx_k_BUC[] = "BUC";
static const char __pyx_k_BUG[] = "BUG";
static const char __pyx_k_C1X[] = "C1X";
static const char __pyx_k_C22[] = "C22";
static const char __pyx_k_C3Y[] = "C3Y";
static const char __pyx_k_C4R[] = "C4R";
static const char __pyx_k_C5C[] = "C5C";
static const char __pyx_k_C66[] = "C66";
static const char __pyx_k_C6C[] = "C6C";
static const char __pyx_k_CAF[] = "CAF";
static const char __pyx_k_CAL[] = "CAL";
static const char __pyx_k_CAS[] = "CAS";
static const char __pyx_k_CAV[] = "CAV";
static const char __pyx_k_CAY[] = "CAY";
static const char __pyx_k_CCL[] = "CCL";
static const char __pyx_k_CCS[] = "CCS";
static const char __pyx_k_CDE[] = "CDE";
static const char __pyx_k_CDV[] = "CDV";
static const char __pyx_k_CE1[] = "CE1";
static const char __pyx_k_CEA[] = "CEA";
static const char __pyx_k_CGA[] = "CGA";
static const char __pyx_k_CGU[] = "CGU";
static const char __pyx_k_CH2[] = "CH2";
static const char __pyx_k_CHF[] = "CHF";
static const char __pyx_k_CHG[] = "CHG";
static const char __pyx_k_CHP[] = "CHP";
static const char __pyx_k_CHS[] = "CHS";
static const char __pyx_k_CIR[] = "CIR";
static const char __pyx_k_CLE[] = "CLE";
static const char __pyx_k_CLG[] = "CLG";
static const char __pyx_k_CLH[] = "CLH";
static const char __pyx_k_CME[] = "CME";
static const char __pyx_k_CMH[] = "CMH";
static const char __pyx_k_CML[] = "CML";
static const char __pyx_k_CMT[] = "CMT";
static const char __pyx_k_CPC[] = "CPC";
static const char __pyx_k_CPI[] = "CPI";
static const char __pyx_k_CR5[] = "CR5";
static const char __pyx_k_CS0[] = "CS0";
static const char __pyx_k_CS1[] = "CS1";
static const char __pyx_k_CS3[] = "CS3";
static const char __pyx_k_CS4[] = "CS4";
static const char __pyx_k_CSA[] = "CSA";
static const char __pyx_k_CSB[] = "CSB";
static const char __pyx_k_CSD[] = "CSD";
static const char __pyx_k_CSE[] = "CSE";
static const char __pyx_k_CSJ[] = "CSJ";
static const char __pyx_k_CSO[] = "CSO";
static const char __pyx_k_CSP[] = "CSP";
static const char __pyx_k_CSR[] = "CSR";
static const char __pyx_k_CSS[] = "CSS";
static const char __pyx_k_CSU[] = "CSU";
static const char __pyx_k_CSW[] = "CSW";
static const char __pyx_k_CSX[] = "CSX";
static const char __pyx_k_CSZ[] = "CSZ";
static const char __pyx_k_CTE[] = "CTE";
static const char __pyx_k_CTH[] = "CTH";
static const char __pyx_k_CUC[] = "CUC";
static const char __pyx_k_CWR[] = "CWR";
static const char __pyx_k_CXM[] = "CXM";
static const char __pyx_k_CY0[] = "CY0";
static const char __pyx_k_CY1[] = "CY1";
static const char __pyx_k_CY3[] = "CY3";
static const char __pyx_k_CY4[] = "CY4";
static const char __pyx_k_CYA[] = "CYA";
static const char __pyx_k_CYD[] = "CYD";
static const char __pyx_k_CYF[] = "CYF";
static const char __pyx_k_CYG[] = "CYG";
static const char __pyx_k_CYJ[] = "CYJ";
static const char __pyx_k_CYM[] = "CYM";
static const char __pyx_k_CYQ[] = "CYQ";
static const char __pyx_k_CYR[] = "CYR";
static const char __pyx_k_CYS[] = "CYS";
static const char __pyx_k_CYT[] = "CYT";
static const char __pyx_k_CZ2[] = "CZ2";
static const char __pyx_k_CZZ[] = "CZZ";
static const char __pyx_k_D11[] = "D11";
static const char __pyx_k_D3P[] = "D3P";
static const char __pyx_k_D4P[] = "D4P";
static const char __pyx_k_DA2[] = "DA2";
static const char __pyx_k_DAB[] = "DAB";
static const char __pyx_k_DAH[] = "DAH";
static const char __pyx_k_DAL[] = "DAL";
static const char __pyx_k_DAR[] = "DAR";
static const char __pyx_k_DAS[] = "DAS";
static const char __pyx_k_DBB[] = "DBB";
static const char __pyx_k_DBS[] = "DBS";
static const char __pyx_k_DBU[] = "DBU";
static const char __pyx_k_DBY[] = "DBY";
static const char __pyx_k_DBZ[] = "DBZ";
static const char __pyx_k_DC2[] = "DC2";
static const char __pyx_k_DCL[] = "DCL";
static const char __pyx_k_DCY[] = "DCY";
static const char __pyx_k_DDE[] = "DDE";
static const char __pyx_k_DFI[] = "DFI";
static const char __pyx_k_DFO[] = "DFO";
static const char __pyx_k_DGH[] = "DGH";
static const char __pyx_k_DGL[] = "DGL";
static const char __pyx_k_DGN[] = "DGN";
static const char __pyx_k_DHA[] = "DHA";
static const char __pyx_k_DHI[] = "DHI";
static const char __pyx_k_DHL[] = "DHL";
static const char __pyx_k_DHN[] = "DHN";
static const char __pyx_k_DHP[] = "DHP";
static const char __pyx_k_DHV[] = "DHV";
static const char __pyx_k_DI7[] = "DI7";
static const char __pyx_k_DIL[] = "DIL";
static const char __pyx_k_DIR[] = "DIR";
static const char __pyx_k_DIV[] = "DIV";
static const char __pyx_k_DLE[] = "DLE";
static const char __pyx_k_DLS[] = "DLS";
static const char __pyx_k_DLY[] = "DLY";
static const char __pyx_k_DM0[] = "DM0";
static const char __pyx_k_DMH[] = "DMH";
static const char __pyx_k_DMK[] = "DMK";
static const char __pyx_k_DMT[] = "DMT";
static const char __pyx_k_DNE[] = "DNE";
static const char __pyx_k_DNL[] = "DNL";
static const char __pyx_k_DNP[] = "DNP";
static const char __pyx_k_DNS[] = "DNS";
static const char __pyx_k_DOA[] = "DOA";
static const char __pyx_k_DOH[] = "DOH";
static const char __pyx_k_DON[] = "DON";
static const char __pyx_k_DPL[] = "DPL";
static const char __pyx_k_DPN[] = "DPN";
static const char __pyx_k_DPP[] = "DPP";
static const char __pyx_k_DPQ[] = "DPQ";
static const char __pyx_k_DPR[] = "DPR";
static const char __pyx_k_DSE[] = "DSE";
static const char __pyx_k_DSG[] = "DSG";
static const char __pyx_k_DSN[] = "DSN";
static const char __pyx_k_DSP[] = "DSP";
static const char __pyx_k_DTH[] = "DTH";
static const char __pyx_k_DTR[] = "DTR";
static const char __pyx_k_DTY[] = "DTY";
static const char __pyx_k_DVA[] = "DVA";
static const char __pyx_k_DYS[] = "DYS";
static const char __pyx_k_ECC[] = "ECC";
static const char __pyx_k_EFC[] = "EFC";
static const char __pyx_k_EHP[] = "EHP";
static const char __pyx_k_END[] = "END\n";
static const char __pyx_k_ESB[] = "ESB";
static const char __pyx_k_ESC[] = "ESC";
static const char __pyx_k_EXY[] = "EXY";
static const char __pyx_k_EYS[] = "EYS";
static const char __pyx_k_F2F[] = "F2F";
static const char __pyx_k_FAK[] = "FAK";
static const char __pyx_k_FB5[] = "FB5";
static const char __pyx_k_FB6[] = "FB6";
static const char __pyx_k_FCL[] = "FCL";
static const char __pyx_k_FGA[] = "FGA";
static const char __pyx_k_FGL[] = "FGL";
static const char __pyx_k_FGP[] = "FGP";
static const char __pyx_k_FH7[] = "FH7";
static const char __pyx_k_FHL[] = "FHL";
static const char __pyx_k_FHO[] = "FHO";
static const char __pyx_k_FLA[] = "FLA";
static const char __pyx_k_FLE[] = "FLE";
static const char __pyx_k_FLT[] = "FLT";
static const char __pyx_k_FME[] = "FME";
static const char __pyx_k_FOE[] = "FOE";
static const char __pyx_k_FP9[] = "FP9";
static const char __pyx_k_FRD[] = "FRD";
static const char __pyx_k_FT6[] = "FT6";
static const char __pyx_k_FTR[] = "FTR";
static const char __pyx_k_FTY[] = "FTY";
static const char __pyx_k_FVA[] = "FVA";
static const char __pyx_k_FZN[] = "FZN";
static const char __pyx_k_GAU[] = "GAU";
static const char __pyx_k_GCM[] = "GCM";
static const char __pyx_k_GFT[] = "GFT";
static const char __pyx_k_GGL[] = "GGL";
static const char __pyx_k_GHG[] = "GHG";
static const char __pyx_k_GHP[] = "GHP";
static const char __pyx_k_GL3[] = "GL3";
static const char __pyx_k_GLH[] = "GLH";
static const char __pyx_k_GLJ[] = "GLJ";
static const char __pyx_k_GLK[] = "GLK";
static const char __pyx_k_GLM[] = "GLM";
static const char __pyx_k_GLN[] = "GLN";
static const char __pyx_k_GLQ[] = "GLQ";
static const char __pyx_k_GLU[] = "GLU";
static const char __pyx_k_GLX[] = "GLX";
static const char __pyx_k_GLY[] = "GLY";
static const char __pyx_k_GLZ[] = "GLZ";
static const char __pyx_k_GMA[] = "GMA";
static const char __pyx_k_GND[] = "GND";
static const char __pyx_k_GPL[] = "GPL";
static const char __pyx_k_GSC[] = "GSC";
static const char __pyx_k_GSU[] = "GSU";
static const char __pyx_k_GT9[] = "GT9";
static const char __pyx_k_GVL[] = "GVL";
static const char __pyx_k_H14[] = "H14";
static const char __pyx_k_H5M[] = "H5M";
static const char __pyx_k_HAC[] = "HAC";
static const char __pyx_k_HAR[] = "HAR";
static const char __pyx_k_HBN[] = "HBN";
static const char __pyx_k_HCS[] = "HCS";
static const char __pyx_k_HFA[] = "HFA";
static const char __pyx_k_HGL[] = "HGL";
static const char __pyx_k_HHI[] = "HHI";
static const char __pyx_k_HIA[] = "HIA";
static const char __pyx_k_HIC[] = "HIC";
static const char __pyx_k_HID[] = "HID";
static const char __pyx_k_HIE[] = "HIE";
static const char __pyx_k_HIP[] = "HIP";
static const char __pyx_k_HIQ[] = "HIQ";
static const char __pyx_k_HIS[] = "HIS";
static const char __pyx_k_HL2[] = "HL2";
static const char __pyx_k_HLU[] = "HLU";
static const char __pyx_k_HMR[] = "HMR";
static const char __pyx_k_HOH[] = "HOH";
static const char __pyx_k_HPC[] = "HPC";
static const char __pyx_k_HPE[] = "HPE";
static const char __pyx_k_HPH[] = "HPH";
static const char __pyx_k_HPQ[] = "HPQ";
static const char __pyx_k_HQA[] = "HQA";
static const char __pyx_k_HRG[] = "HRG";
static const char __pyx_k_HRP[] = "HRP";
static const char __pyx_k_HS8[] = "HS8";
static const char __pyx_k_HS9[] = "HS9";
static const char __pyx_k_HSE[] = "HSE";
static const char __pyx_k_HSL[] = "HSL";
static const char __pyx_k_HSO[] = "HSO";
static const char __pyx_k_HTI[] = "HTI";
static const char __pyx_k_HTN[] = "HTN";
static const char __pyx_k_HTR[] = "HTR";
static const char __pyx_k_HV5[] = "HV5";
static const char __pyx_k_HVA[] = "HVA";
static const char __pyx_k_HY3[] = "HY3";
static const char __pyx_k_HYP[] = "HYP";
static const char __pyx_k_HZP[] = "HZP";
static const char __pyx_k_I2M[] = "I2M";
static const char __pyx_k_I58[] = "I58";
static const char __pyx_k_IAM[] = "IAM";
static const char __pyx_k_IAR[] = "IAR";
static const char __pyx_k_IAS[] = "IAS";
static const char __pyx_k_IEL[] = "IEL";
static const char __pyx_k_IGL[] = "IGL";
static const char __pyx_k_IIL[] = "IIL";
static const char __pyx_k_ILE[] = "ILE";
static const char __pyx_k_ILG[] = "ILG";
static const char __pyx_k_ILX[] = "ILX";
static const char __pyx_k_IML[] = "IML";
static const char __pyx_k_IOY[] = "IOY";
static const char __pyx_k_IPG[] = "IPG";
static const char __pyx_k_IT1[] = "IT1";
static const char __pyx_k_IYR[] = "IYR";
static const char __pyx_k_IYT[] = "IYT";
static const char __pyx_k_IZO[] = "IZO";
static const char __pyx_k_JJJ[] = "JJJ";
static const char __pyx_k_JJK[] = "JJK";
static const char __pyx_k_JJL[] = "JJL";
static const char __pyx_k_K1R[] = "K1R";
static const char __pyx_k_KCX[] = "KCX";
static const char __pyx_k_KGC[] = "KGC";
static const char __pyx_k_KNB[] = "KNB";
static const char __pyx_k_KOR[] = "KOR";
static const char __pyx_k_KPI[] = "KPI";
static const char __pyx_k_KST[] = "KST";
static const char __pyx_k_KYN[] = "KYN";
static const char __pyx_k_KYQ[] = "KYQ";
static const char __pyx_k_L2A[] = "L2A";
static const char __pyx_k_LA2[] = "LA2";
static const char __pyx_k_LAA[] = "LAA";
static const char __pyx_k_LAL[] = "LAL";
static const char __pyx_k_LBY[] = "LBY";
static const char __pyx_k_LCK[] = "LCK";
static const char __pyx_k_LCX[] = "LCX";
static const char __pyx_k_LCZ[] = "LCZ";
static const char __pyx_k_LDH[] = "LDH";
static const char __pyx_k_LED[] = "LED";
static const char __pyx_k_LEF[] = "LEF";
static const char __pyx_k_LEH[] = "LEH";
static const char __pyx_k_LEI[] = "LEI";
static const char __pyx_k_LEM[] = "LEM";
static const char __pyx_k_LEN[] = "LEN";
static const char __pyx_k_LET[] = "LET";
static const char __pyx_k_LEU[] = "LEU";
static const char __pyx_k_LEX[] = "LEX";
static const char __pyx_k_LHC[] = "LHC";
static const char __pyx_k_LLP[] = "LLP";
static const char __pyx_k_LLY[] = "LLY";
static const char __pyx_k_LME[] = "LME";
static const char __pyx_k_LMF[] = "LMF";
static const char __pyx_k_LMQ[] = "LMQ";
static const char __pyx_k_LP6[] = "LP6";
static const char __pyx_k_LPD[] = "LPD";
static const char __pyx_k_LPG[] = "LPG";
static const char __pyx_k_LPL[] = "LPL";
static const char __pyx_k_LPS[] = "LPS";
static const char __pyx_k_LSO[] = "LSO";
static const char __pyx_k_LTA[] = "LTA";
static const char __pyx_k_LTR[] = "LTR";
static const char __pyx_k_LVG[] = "LVG";
static const char __pyx_k_LVN[] = "LVN";
static const char __pyx_k_LYF[] = "LYF";
static const char __pyx_k_LYK[] = "LYK";
static const char __pyx_k_LYM[] = "LYM";
static const char __pyx_k_LYN[] = "LYN";
static const char __pyx_k_LYR[] = "LYR";
static const char __pyx_k_LYS[] = "LYS";
static const char __pyx_k_LYX[] = "LYX";
static const char __pyx_k_LYZ[] = "LYZ";
static const char __pyx_k_M0H[] = "M0H";
static const char __pyx_k_M2L[] = "M2L";
static const char __pyx_k_M2S[] = "M2S";
static const char __pyx_k_M30[] = "M30";
static const char __pyx_k_M3L[] = "M3L";
static const char __pyx_k_MAA[] = "MAA";
static const char __pyx_k_MAI[] = "MAI";
static const char __pyx_k_MBQ[] = "MBQ";
static const char __pyx_k_MC1[] = "MC1";
static const char __pyx_k_MCG[] = "MCG";
static const char __pyx_k_MCL[] = "MCL";
static const char __pyx_k_MCS[] = "MCS";
static const char __pyx_k_MD3[] = "MD3";
static const char __pyx_k_MD6[] = "MD6";
static const char __pyx_k_MDF[] = "MDF";
static const char __pyx_k_MDH[] = "MDH";
static const char __pyx_k_MEA[] = "MEA";
static const char __pyx_k_MED[] = "MED";
static const char __pyx_k_MEG[] = "MEG";
static const char __pyx_k_MEN[] = "MEN";
static const char __pyx_k_MEQ[] = "MEQ";
static const char __pyx_k_MET[] = "MET";
static const char __pyx_k_MEU[] = "MEU";
static const char __pyx_k_MF3[] = "MF3";
static const char __pyx_k_MGG[] = "MGG";
static const char __pyx_k_MGN[] = "MGN";
static const char __pyx_k_MGY[] = "MGY";
static const char __pyx_k_MHL[] = "MHL";
static const char __pyx_k_MHO[] = "MHO";
static const char __pyx_k_MHS[] = "MHS";
static const char __pyx_k_MIS[] = "MIS";
static const char __pyx_k_MK8[] = "MK8";
static const char __pyx_k_ML3[] = "ML3";
static const char __pyx_k_MLE[] = "MLE";
static const char __pyx_k_MLL[] = "MLL";
static const char __pyx_k_MLY[] = "MLY";
static const char __pyx_k_MLZ[] = "MLZ";
static const char __pyx_k_MME[] = "MME";
static const char __pyx_k_MMO[] = "MMO";
static const char __pyx_k_MND[] = "MND";
static const char __pyx_k_MNL[] = "MNL";
static const char __pyx_k_MNV[] = "MNV";
static const char __pyx_k_MOD[] = "MOD";
static const char __pyx_k_MP8[] = "MP8";
static const char __pyx_k_MPH[] = "MPH";
static const char __pyx_k_MPJ[] = "MPJ";
static const char __pyx_k_MPQ[] = "MPQ";
static const char __pyx_k_MSA[] = "MSA";
static const char __pyx_k_MSE[] = "MSE";
static const char __pyx_k_MSL[] = "MSL";
static const char __pyx_k_MSO[] = "MSO";
static const char __pyx_k_MSP[] = "MSP";
static const char __pyx_k_MT2[] = "MT2";
static const char __pyx_k_MTY[] = "MTY";
static const char __pyx_k_MVA[] = "MVA";
static const char __pyx_k_N10[] = "N10";
static const char __pyx_k_N2C[] = "N2C";
static const char __pyx_k_N7P[] = "N7P";
static const char __pyx_k_N80[] = "N80";
static const char __pyx_k_N8P[] = "N8P";
static const char __pyx_k_NA8[] = "NA8";
static const char __pyx_k_NAL[] = "NAL";
static const char __pyx_k_NAM[] = "NAM";
static const char __pyx_k_NB8[] = "NB8";
static const char __pyx_k_NBQ[] = "NBQ";
static const char __pyx_k_NC1[] = "NC1";
static const char __pyx_k_NCB[] = "NCB";
static const char __pyx_k_NCY[] = "NCY";
static const char __pyx_k_NDF[] = "NDF";
static const char __pyx_k_NEM[] = "NEM";
static const char __pyx_k_NEP[] = "NEP";
static const char __pyx_k_NFA[] = "NFA";
static const char __pyx_k_NHL[] = "NHL";
static const char __pyx_k_NIY[] = "NIY";
static const char __pyx_k_NLE[] = "NLE";
static const char __pyx_k_NLN[] = "NLN";
static const char __pyx_k_NLO[] = "NLO";
static const char __pyx_k_NLP[] = "NLP";
static const char __pyx_k_NLQ[] = "NLQ";
static const char __pyx_k_NMC[] = "NMC";
static const char __pyx_k_NME[] = "NME";
static const char __pyx_k_NMM[] = "NMM";
static const char __pyx_k_NNH[] = "NNH";
static const char __pyx_k_NPH[] = "NPH";
static const char __pyx_k_NPI[] = "NPI";
static const char __pyx_k_NSK[] = "NSK";
static const char __pyx_k_NTR[] = "NTR";
static const char __pyx_k_NTY[] = "NTY";
static const char __pyx_k_NVA[] = "NVA";
static const char __pyx_k_NYS[] = "NYS";
static const char __pyx_k_NZH[] = "NZH";
static const char __pyx_k_O12[] = "O12";
static const char __pyx_k_OAR[] = "OAR";
static const char __pyx_k_OAS[] = "OAS";
static const char __pyx_k_OBF[] = "OBF";
static const char __pyx_k_OBS[] = "OBS";
static const char __pyx_k_OCS[] = "OCS";
static const char __pyx_k_OCY[] = "OCY";
static const char __pyx_k_OD1[] = "OD1";
static const char __pyx_k_OE1[] = "OE1";
static const char __pyx_k_OHI[] = "OHI";
static const char __pyx_k_OHS[] = "OHS";
static const char __pyx_k_OIC[] = "OIC";
static const char __pyx_k_OLE[] = "OLE";
static const char __pyx_k_OLT[] = "OLT";
static const char __pyx_k_OLZ[] = "OLZ";
static const char __pyx_k_OMT[] = "OMT";
static const char __pyx_k_ONH[] = "ONH";
static const char __pyx_k_ONL[] = "ONL";
static const char __pyx_k_OPR[] = "OPR";
static const char __pyx_k_ORN[] = "ORN";
static const char __pyx_k_ORQ[] = "ORQ";
static const char __pyx_k_OSE[] = "OSE";
static const char __pyx_k_OTB[] = "OTB";
static const char __pyx_k_OTH[] = "OTH";
static const char __pyx_k_OXX[] = "OXX";
static const char __pyx_k_P1L[] = "P1L";
static const char __pyx_k_P2Y[] = "P2Y";
static const char __pyx_k_PAQ[] = "PAQ";
static const char __pyx_k_PAS[] = "PAS";
static const char __pyx_k_PAT[] = "PAT";
static const char __pyx_k_PAU[] = "PAU";
static const char __pyx_k_PBB[] = "PBB";
static const char __pyx_k_PBF[] = "PBF";
static const char __pyx_k_PCA[] = "PCA";
static const char __pyx_k_PCC[] = "PCC";
static const char __pyx_k_PCE[] = "PCE";
static const char __pyx_k_PCS[] = "PCS";
static const char __pyx_k_PDB[] = "PDB";
static const char __pyx_k_PDL[] = "PDL";
static const char __pyx_k_PEC[] = "PEC";
static const char __pyx_k_PF5[] = "PF5";
static const char __pyx_k_PFF[] = "PFF";
static const char __pyx_k_PFX[] = "PFX";
static const char __pyx_k_PG1[] = "PG1";
static const char __pyx_k_PG9[] = "PG9";
static const char __pyx_k_PGL[] = "PGL";
static const char __pyx_k_PGY[] = "PGY";
static const char __pyx_k_PH6[] = "PH6";
static const char __pyx_k_PHA[] = "PHA";
static const char __pyx_k_PHD[] = "PHD";
static const char __pyx_k_PHE[] = "PHE";
static const char __pyx_k_PHI[] = "PHI";
static const char __pyx_k_PHL[] = "PHL";
static const char __pyx_k_PHM[] = "PHM";
static const char __pyx_k_PIV[] = "PIV";
static const char __pyx_k_PLE[] = "PLE";
static const char __pyx_k_PM3[] = "PM3";
static const char __pyx_k_POM[] = "POM";
static const char __pyx_k_PPN[] = "PPN";
static const char __pyx_k_PR3[] = "PR3";
static const char __pyx_k_PR9[] = "PR9";
static const char __pyx_k_PRO[] = "PRO";
static const char __pyx_k_PRS[] = "PRS";
static const char __pyx_k_PSA[] = "PSA";
static const char __pyx_k_PSH[] = "PSH";
static const char __pyx_k_PTA[] = "PTA";
static const char __pyx_k_PTH[] = "PTH";
static const char __pyx_k_PTM[] = "PTM";
static const char __pyx_k_PTR[] = "PTR";
static const char __pyx_k_PVH[] = "PVH";
static const char __pyx_k_PVL[] = "PVL";
static const char __pyx_k_PYA[] = "PYA";
static const char __pyx_k_PYL[] = "PYL";
static const char __pyx_k_PYX[] = "PYX";
static const char __pyx_k_QCS[] = "QCS";
static const char __pyx_k_QMM[] = "QMM";
static const char __pyx_k_QPA[] = "QPA";
static const char __pyx_k_QPH[] = "QPH";
static const char __pyx_k_R1A[] = "R1A";
static const char __pyx_k_R4K[] = "R4K";
static const char __pyx_k_RE0[] = "RE0";
static const char __pyx_k_RE3[] = "RE3";
static const char __pyx_k_RON[] = "RON";
static const char __pyx_k_RVX[] = "RVX";
static const char __pyx_k_RZ4[] = "RZ4";
static const char __pyx_k_S1H[] = "S1H";
static const char __pyx_k_S2C[] = "S2C";
static const char __pyx_k_S2D[] = "S2D";
static const char __pyx_k_S2P[] = "S2P";
static const char __pyx_k_SAC[] = "SAC";
static const char __pyx_k_SAH[] = "SAH";
static const char __pyx_k_SAR[] = "SAR";
static const char __pyx_k_SBL[] = "SBL";
static const char __pyx_k_SCH[] = "SCH";
static const char __pyx_k_SCS[] = "SCS";
static const char __pyx_k_SCY[] = "SCY";
static const char __pyx_k_SD2[] = "SD2";
static const char __pyx_k_SDP[] = "SDP";
static const char __pyx_k_SE7[] = "SE7";
static const char __pyx_k_SEB[] = "SEB";
static const char __pyx_k_SEC[] = "SEC";
static const char __pyx_k_SEG[] = "SEG";
static const char __pyx_k_SEL[] = "SEL";
static const char __pyx_k_SEM[] = "SEM";
static const char __pyx_k_SEN[] = "SEN";
static const char __pyx_k_SEP[] = "SEP";
static const char __pyx_k_SER[] = "SER";
static const char __pyx_k_SET[] = "SET";
static const char __pyx_k_SGB[] = "SGB";
static const char __pyx_k_SHC[] = "SHC";
static const char __pyx_k_SHP[] = "SHP";
static const char __pyx_k_SHR[] = "SHR";
static const char __pyx_k_SIB[] = "SIB";
static const char __pyx_k_SLR[] = "SLR";
static const char __pyx_k_SLZ[] = "SLZ";
static const char __pyx_k_SMC[] = "SMC";
static const char __pyx_k_SME[] = "SME";
static const char __pyx_k_SMF[] = "SMF";
static const char __pyx_k_SNC[] = "SNC";
static const char __pyx_k_SNN[] = "SNN";
static const char __pyx_k_SOC[] = "SOC";
static const char __pyx_k_SOY[] = "SOY";
static const char __pyx_k_SRZ[] = "SRZ";
static const char __pyx_k_STY[] = "STY";
static const char __pyx_k_SUB[] = "SUB";
static const char __pyx_k_SUN[] = "SUN";
static const char __pyx_k_SVA[] = "SVA";
static const char __pyx_k_SVV[] = "SVV";
static const char __pyx_k_SVW[] = "SVW";
static const char __pyx_k_SVX[] = "SVX";
static const char __pyx_k_SVY[] = "SVY";
static const char __pyx_k_SVZ[] = "SVZ";
static const char __pyx_k_SYS[] = "SYS";
static const char __pyx_k_T11[] = "T11";
static const char __pyx_k_T66[] = "T66";
static const char __pyx_k_TA4[] = "TA4";
static const char __pyx_k_TAV[] = "TAV";
static const char __pyx_k_TBG[] = "TBG";
static const char __pyx_k_TBM[] = "TBM";
static const char __pyx_k_TCQ[] = "TCQ";
static const char __pyx_k_TCR[] = "TCR";
static const char __pyx_k_TDD[] = "TDD";
static const char __pyx_k_TER[] = "TER\n";
static const char __pyx_k_TFQ[] = "TFQ";
static const char __pyx_k_TH6[] = "TH6";
static const char __pyx_k_THC[] = "THC";
static const char __pyx_k_THO[] = "THO";
static const char __pyx_k_THR[] = "THR";
static const char __pyx_k_THZ[] = "THZ";
static const char __pyx_k_TIH[] = "TIH";
static const char __pyx_k_TMB[] = "TMB";
static const char __pyx_k_TMD[] = "TMD";
static const char __pyx_k_TNB[] = "TNB";
static const char __pyx_k_TNR[] = "TNR";
static const char __pyx_k_TOQ[] = "TOQ";
static const char __pyx_k_TPH[] = "TPH";
static const char __pyx_k_TPL[] = "TPL";
static const char __pyx_k_TPO[] = "TPO";
static const char __pyx_k_TPQ[] = "TPQ";
static const char __pyx_k_TQI[] = "TQI";
static const char __pyx_k_TQQ[] = "TQQ";
static const char __pyx_k_TRF[] = "TRF";
static const char __pyx_k_TRG[] = "TRG";
static const char __pyx_k_TRN[] = "TRN";
static const char __pyx_k_TRO[] = "TRO";
static const char __pyx_k_TRP[] = "TRP";
static const char __pyx_k_TRQ[] = "TRQ";
static const char __pyx_k_TRW[] = "TRW";
static const char __pyx_k_TRX[] = "TRX";
static const char __pyx_k_TRY[] = "TRY";
static const char __pyx_k_TST[] = "TST";
static const char __pyx_k_TTQ[] = "TTQ";
static const char __pyx_k_TTS[] = "TTS";
static const char __pyx_k_TXY[] = "TXY";
static const char __pyx_k_TY1[] = "TY1";
static const char __pyx_k_TY2[] = "TY2";
static const char __pyx_k_TY3[] = "TY3";
static const char __pyx_k_TY5[] = "TY5";
static const char __pyx_k_TYB[] = "TYB";
static const char __pyx_k_TYI[] = "TYI";
static const char __pyx_k_TYJ[] = "TYJ";
static const char __pyx_k_TYN[] = "TYN";
static const char __pyx_k_TYO[] = "TYO";
static const char __pyx_k_TYQ[] = "TYQ";
static const char __pyx_k_TYR[] = "TYR";
static const char __pyx_k_TYS[] = "TYS";
static const char __pyx_k_TYT[] = "TYT";
static const char __pyx_k_TYW[] = "TYW";
static const char __pyx_k_TYX[] = "TYX";
static const char __pyx_k_TYY[] = "TYY";
static const char __pyx_k_TZB[] = "TZB";
static const char __pyx_k_TZO[] = "TZO";
static const char __pyx_k_UMA[] = "UMA";
static const char __pyx_k_UN1[] = "UN1";
static const char __pyx_k_UN2[] = "UN2";
static const char __pyx_k_UNK[] = "UNK";
static const char __pyx_k_VAD[] = "VAD";
static const char __pyx_k_VAF[] = "VAF";
static const char __pyx_k_VAL[] = "VAL";
static const char __pyx_k_VB1[] = "VB1";
static const char __pyx_k_VDL[] = "VDL";
static const char __pyx_k_VLL[] = "VLL";
static const char __pyx_k_VLM[] = "VLM";
static const char __pyx_k_VMS[] = "VMS";
static const char __pyx_k_VOL[] = "VOL";
static const char __pyx_k_WLU[] = "WLU";
static const char __pyx_k_WPA[] = "WPA";
static const char __pyx_k_WRP[] = "WRP";
static const char __pyx_k_WVL[] = "WVL";
static const char __pyx_k_X2W[] = "X2W";
static const char __pyx_k_XCN[] = "XCN";
static const char __pyx_k_XCP[] = "XCP";
static const char __pyx_k_XDT[] = "XDT";
static const char __pyx_k_XPL[] = "XPL";
static const char __pyx_k_XPR[] = "XPR";
static const char __pyx_k_XSN[] = "XSN";
static const char __pyx_k_XX1[] = "XX1";
static const char __pyx_k_YCM[] = "YCM";
static const char __pyx_k_YOF[] = "YOF";
static const char __pyx_k_YTH[] = "YTH";
static const char __pyx_k_Z01[] = "Z01";
static const char __pyx_k_ZAL[] = "ZAL";
static const char __pyx_k_ZCL[] = "ZCL";
static const char __pyx_k_ZFB[] = "ZFB";
static const char __pyx_k_ZU0[] = "ZU0";
static const char __pyx_k_ZZJ[] = "ZZJ";
static const char __pyx_k_com[] = "com";
static const char __pyx_k_end[] = "end";
static const char __pyx_k_get[] = "get";
static const char __pyx_k_new[] = "__new__";
static const char __pyx_k_pdb[] = "pdb";
static const char __pyx_k_pop[] = "pop";
static const char __pyx_k_sub[] = "sub";
static const char __pyx_k_zip[] = "zip";
static const char __pyx_k_ATOM[] = "ATOM";
static const char __pyx_k_Atom[] = "Atom";
static const char __pyx_k_COM1[] = "COM1";
static const char __pyx_k_COM2[] = "COM2";
static const char __pyx_k_PDB1[] = "PDB1";
static const char __pyx_k_PDB2[] = "PDB2";
static const char __pyx_k_args[] = "args";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_exit[] = "__exit__";
static const char __pyx_k_file[] = "file";
static const char __pyx_k_iter[] = "__iter__";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_mass[] = "mass";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_open[] = "open";
static const char __pyx_k_path[] = "path";
static const char __pyx_k_read[] = "read";
static const char __pyx_k_send[] = "send";
static const char __pyx_k_sqrt[] = "sqrt";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_type[] = "type";
static const char __pyx_k_array[] = "array";
static const char __pyx_k_atoms[] = "atoms";
static const char __pyx_k_chain[] = "chain";
static const char __pyx_k_close[] = "close";
static const char __pyx_k_empty[] = "empty";
static const char __pyx_k_enter[] = "__enter__";
static const char __pyx_k_frame[] = "frame";
static const char __pyx_k_ispdb[] = "ispdb";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_print[] = "print";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_rjust[] = "rjust";
static const char __pyx_k_split[] = "split";
static const char __pyx_k_strip[] = "strip";
static const char __pyx_k_throw[] = "throw";
static const char __pyx_k_upper[] = "upper";
static const char __pyx_k_utf_8[] = "utf-8";
static const char __pyx_k_write[] = "write";
static const char __pyx_k_ENDMDL[] = "ENDMDL\n";
static const char __pyx_k_HETATM[] = "HETATM";
static const char __pyx_k_HETERO[] = "HETERO";
static const char __pyx_k_PDBstr[] = "PDBstr";
static const char __pyx_k_getCOM[] = "getCOM";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_pickle[] = "pickle";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_remove[] = "remove";
static const char __pyx_k_resNum[] = "resNum";
static const char __pyx_k_resnum[] = "resnum";
static const char __pyx_k_serial[] = "serial";
static const char __pyx_k_typeCM[] = "_typeCM";
static const char __pyx_k_update[] = "update";
static const char __pyx_k_values[] = "values";
static const char __pyx_k_CMAtoms[] = "CMAtoms";
static const char __pyx_k_IOError[] = "IOError";
static const char __pyx_k_PROTEIN[] = "PROTEIN";
static const char __pyx_k_compile[] = "compile";
static const char __pyx_k_element[] = "element";
static const char __pyx_k_pdbfile[] = "pdbfile";
static const char __pyx_k_protein[] = "protein";
static const char __pyx_k_readPDB[] = "readPDB";
static const char __pyx_k_resName[] = "resName";
static const char __pyx_k_resname[] = "resname";
static const char __pyx_k_typeAll[] = "_typeAll";
static const char __pyx_k_MODEL_4d[] = "MODEL    %4d\n";
static const char __pyx_k_StringIO[] = "StringIO";
static const char __pyx_k_atomList[] = "atomList";
static const char __pyx_k_atomName[] = "atomName";
static const char __pyx_k_atomname[] = "atomname";
static const char __pyx_k_centroid[] = "centroid";
static const char __pyx_k_encoding[] = "encoding";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_pyx_type[] = "__pyx_type";
static const char __pyx_k_resChain[] = "resChain";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_topology[] = "topology";
static const char __pyx_k_centroid1[] = "centroid1";
static const char __pyx_k_centroid2[] = "centroid2";
static const char __pyx_k_isProtein[] = "isProtein";
static const char __pyx_k_model_num[] = "model_num";
static const char __pyx_k_pyx_state[] = "__pyx_state";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_totalMass[] = "totalMass";
static const char __pyx_k_PDB___iter[] = "PDB.__iter__";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_atomSerial[] = "atomSerial";
static const char __pyx_k_extractCOM[] = "extractCOM";
static const char __pyx_k_heavyAtoms[] = "heavyAtoms";
static const char __pyx_k_initialise[] = "initialise";
static const char __pyx_k_pyx_result[] = "__pyx_result";
static const char __pyx_k_startswith[] = "startswith";
static const char __pyx_k_typeHetero[] = "_typeHetero";
static const char __pyx_k_ImportError[] = "ImportError";
static const char __pyx_k_PickleError[] = "PickleError";
static const char __pyx_k_atomContent[] = "atomContent";
static const char __pyx_k_coordinates[] = "coordinates";
static const char __pyx_k_extra_atoms[] = "extra_atoms";
static const char __pyx_k_getCentroid[] = "getCentroid";
static const char __pyx_k_isHeavyAtom[] = "isHeavyAtom";
static const char __pyx_k_ligandChain[] = "ligandChain";
static const char __pyx_k_typeProtein[] = "_typeProtein";
static const char __pyx_k_ATOM_WEIGHTS[] = "_ATOM_WEIGHTS";
static const char __pyx_k_isHeteroAtom[] = "isHeteroAtom";
static const char __pyx_k_ligandResnum[] = "ligandResnum";
static const char __pyx_k_pyx_checksum[] = "__pyx_checksum";
static const char __pyx_k_stringsource[] = "stringsource";
static const char __pyx_k_REGEX_PATTERN[] = "REGEX_PATTERN";
static const char __pyx_k_chargePattern[] = "_chargePattern";
static const char __pyx_k_initialisePDB[] = "_initialisePDB";
static const char __pyx_k_initialiseXTC[] = "_initialiseXTC";
static const char __pyx_k_ligandResname[] = "ligandResname";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_join_PDB_lines[] = "join_PDB_lines";
static const char __pyx_k_set_properties[] = "set_properties";
static const char __pyx_k_extractCentroid[] = "extractCentroid";
static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_squaredDistance[] = "squaredDistance";
static const char __pyx_k_AMINO_ACID_CODES[] = "_AMINO_ACID_CODES";
static const char __pyx_k_computeTotalMass[] = "computeTotalMass";
static const char __pyx_k_pyx_unpickle_PDB[] = "__pyx_unpickle_PDB";
static const char __pyx_k_equivalentResname[] = "equivalentResname";
static const char __pyx_k_pyx_unpickle_Atom[] = "__pyx_unpickle_Atom";
static const char __pyx_k_ATOM_LINE_TEMPLATE[] = "ATOM_LINE_TEMPLATE";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_Input_file_not_found[] = "Input file not found!!";
static const char __pyx_k_computeCOMDifference[] = "computeCOMDifference";
static const char __pyx_k_contactThresholdDistance[] = "contactThresholdDistance";
static const char __pyx_k_computeCOMSquaredDifference[] = "computeCOMSquaredDifference";
static const char __pyx_k_AdaptivePELE_atomset_atomset[] = "AdaptivePELE.atomset.atomset";
static const char __pyx_k_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s[] = "%s%s %s %s %s%s%s   %.3f%.3f%.3f%.2f%.2f          %s   ";
static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
static const char __pyx_k_AdaptivePELE_atomset_atomset_pyx[] = "AdaptivePELE/atomset/atomset.pyx";
static const char __pyx_k_Incompatible_checksums_s_vs_0x0d[] = "Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))";
static const char __pyx_k_Incompatible_checksums_s_vs_0x73[] = "Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))";
static const char __pyx_k_Input_coordinates_and_topology_d[] = "Input coordinates and topology do not match!!!";
static const char __pyx_k_Input_pdb_was_malformed_or_empty[] = "Input pdb was malformed or empty!!";
static const char __pyx_k_No_boolean_operator_available_fo[] = "No boolean operator available for PDB apart from equality";
static const char __pyx_k_Nothing_found_in_the_input_coord[] = "Nothing found in the input coordinates, please check your selection!";
static const char __pyx_k_WARNING_Information_about_atom_t[] = "WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.";
static const char __pyx_k_computeSquaredCentroidDifference[] = "computeSquaredCentroidDifference";
static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
static PyObject *__pyx_kp_u_;
static PyObject *__pyx_kp_u_00C;
static PyObject *__pyx_kp_u_01W;
static PyObject *__pyx_kp_u_02K;
static PyObject *__pyx_kp_u_02L;
static PyObject *__pyx_kp_u_03Y;
static PyObject *__pyx_kp_u_07O;
static PyObject *__pyx_kp_u_08P;
static PyObject *__pyx_kp_u_0A0;
static PyObject *__pyx_kp_u_0A1;
static PyObject *__pyx_kp_u_0A2;
static PyObject *__pyx_kp_u_0A8;
static PyObject *__pyx_kp_u_0AA;
static PyObject *__pyx_kp_u_0AB;
static PyObject *__pyx_kp_u_0AC;
static PyObject *__pyx_kp_u_0AF;
static PyObject *__pyx_kp_u_0AG;
static PyObject *__pyx_kp_u_0AH;
static PyObject *__pyx_kp_u_0AK;
static PyObject *__pyx_kp_u_0BN;
static PyObject *__pyx_kp_u_0CS;
static PyObject *__pyx_kp_u_0E5;
static PyObject *__pyx_kp_u_0EA;
static PyObject *__pyx_kp_u_0FL;
static PyObject *__pyx_kp_u_0NC;
static PyObject *__pyx_kp_u_0WZ;
static PyObject *__pyx_kp_u_0Y8;
static PyObject *__pyx_kp_u_0_9;
static PyObject *__pyx_kp_u_143;
static PyObject *__pyx_kp_u_193;
static PyObject *__pyx_kp_u_1OP;
static PyObject *__pyx_kp_u_1PA;
static PyObject *__pyx_kp_u_1PI;
static PyObject *__pyx_kp_u_1TQ;
static PyObject *__pyx_kp_u_1TY;
static PyObject *__pyx_kp_u_1X6;
static PyObject *__pyx_kp_u_200;
static PyObject *__pyx_kp_u_23F;
static PyObject *__pyx_kp_u_23S;
static PyObject *__pyx_kp_u_26B;
static PyObject *__pyx_kp_u_2AD;
static PyObject *__pyx_kp_u_2AG;
static PyObject *__pyx_kp_u_2AO;
static PyObject *__pyx_kp_u_2AS;
static PyObject *__pyx_kp_u_2CO;
static PyObject *__pyx_kp_u_2DO;
static PyObject *__pyx_kp_u_2FM;
static PyObject *__pyx_kp_u_2HF;
static PyObject *__pyx_kp_u_2KK;
static PyObject *__pyx_kp_u_2KP;
static PyObject *__pyx_kp_u_2LU;
static PyObject *__pyx_kp_u_2ML;
static PyObject *__pyx_kp_u_2MR;
static PyObject *__pyx_kp_u_2MT;
static PyObject *__pyx_kp_u_2OR;
static PyObject *__pyx_kp_u_2PI;
static PyObject *__pyx_kp_u_2QZ;
static PyObject *__pyx_kp_u_2R3;
static PyObject *__pyx_kp_u_2SI;
static PyObject *__pyx_kp_u_2TL;
static PyObject *__pyx_kp_u_2TY;
static PyObject *__pyx_kp_u_2VA;
static PyObject *__pyx_kp_u_2XA;
static PyObject *__pyx_kp_u_32S;
static PyObject *__pyx_kp_u_32T;
static PyObject *__pyx_kp_u_33X;
static PyObject *__pyx_kp_u_3AH;
static PyObject *__pyx_kp_u_3AR;
static PyObject *__pyx_kp_u_3CF;
static PyObject *__pyx_kp_u_3GA;
static PyObject *__pyx_kp_u_3MD;
static PyObject *__pyx_kp_u_3NF;
static PyObject *__pyx_kp_u_3QN;
static PyObject *__pyx_kp_u_3TY;
static PyObject *__pyx_kp_u_3XH;
static PyObject *__pyx_kp_u_3f;
static PyObject *__pyx_kp_u_4BF;
static PyObject *__pyx_kp_u_4CF;
static PyObject *__pyx_kp_u_4CY;
static PyObject *__pyx_kp_u_4DP;
static PyObject *__pyx_kp_u_4FB;
static PyObject *__pyx_kp_u_4FW;
static PyObject *__pyx_kp_u_4HT;
static PyObject *__pyx_kp_u_4IN;
static PyObject *__pyx_kp_u_4MM;
static PyObject *__pyx_kp_u_4PH;
static PyObject *__pyx_kp_u_4U7;
static PyObject *__pyx_kp_u_56A;
static PyObject *__pyx_kp_u_5AB;
static PyObject *__pyx_kp_u_5CS;
static PyObject *__pyx_kp_u_5CW;
static PyObject *__pyx_kp_u_5HP;
static PyObject *__pyx_kp_u_6CL;
static PyObject *__pyx_kp_u_6CW;
static PyObject *__pyx_kp_u_6GL;
static PyObject *__pyx_kp_u_6HN;
static PyObject *__pyx_kp_u_7JA;
static PyObject *__pyx_kp_u_9NE;
static PyObject *__pyx_kp_u_9NF;
static PyObject *__pyx_kp_u_9NR;
static PyObject *__pyx_kp_u_9NV;
static PyObject *__pyx_n_u_A;
static PyObject *__pyx_n_u_A5N;
static PyObject *__pyx_n_u_A66;
static PyObject *__pyx_n_u_AA3;
static PyObject *__pyx_n_u_AA4;
static PyObject *__pyx_n_u_AAR;
static PyObject *__pyx_n_u_AB7;
static PyObject *__pyx_n_u_ABA;
static PyObject *__pyx_n_u_ACB;
static PyObject *__pyx_n_u_ACE;
static PyObject *__pyx_n_u_ACL;
static PyObject *__pyx_n_u_ADD;
static PyObject *__pyx_n_u_AEA;
static PyObject *__pyx_n_u_AEI;
static PyObject *__pyx_n_u_AFA;
static PyObject *__pyx_n_u_AG;
static PyObject *__pyx_n_u_AGM;
static PyObject *__pyx_n_u_AGT;
static PyObject *__pyx_n_u_AHB;
static PyObject *__pyx_n_u_AHH;
static PyObject *__pyx_n_u_AHO;
static PyObject *__pyx_n_u_AHP;
static PyObject *__pyx_n_u_AHS;
static PyObject *__pyx_n_u_AHT;
static PyObject *__pyx_n_u_AIB;
static PyObject *__pyx_n_u_AKL;
static PyObject *__pyx_n_u_AKZ;
static PyObject *__pyx_n_u_AL;
static PyObject *__pyx_n_u_ALA;
static PyObject *__pyx_n_u_ALC;
static PyObject *__pyx_n_u_ALL;
static PyObject *__pyx_n_u_ALM;
static PyObject *__pyx_n_u_ALN;
static PyObject *__pyx_n_u_ALO;
static PyObject *__pyx_n_u_ALS;
static PyObject *__pyx_n_u_ALT;
static PyObject *__pyx_n_u_ALV;
static PyObject *__pyx_n_u_ALY;
static PyObject *__pyx_n_s_AMINO_ACID_CODES;
static PyObject *__pyx_n_u_AN8;
static PyObject *__pyx_n_u_APE;
static PyObject *__pyx_n_u_APH;
static PyObject *__pyx_n_u_API;
static PyObject *__pyx_n_u_APK;
static PyObject *__pyx_n_u_APM;
static PyObject *__pyx_n_u_APP;
static PyObject *__pyx_n_u_AR;
static PyObject *__pyx_n_u_AR2;
static PyObject *__pyx_n_u_AR4;
static PyObject *__pyx_n_u_AR7;
static PyObject *__pyx_n_u_ARG;
static PyObject *__pyx_n_u_ARM;
static PyObject *__pyx_n_u_ARO;
static PyObject *__pyx_n_u_ARV;
static PyObject *__pyx_n_u_AS;
static PyObject *__pyx_n_u_AS2;
static PyObject *__pyx_n_u_AS9;
static PyObject *__pyx_n_u_ASA;
static PyObject *__pyx_n_u_ASB;
static PyObject *__pyx_n_u_ASI;
static PyObject *__pyx_n_u_ASK;
static PyObject *__pyx_n_u_ASL;
static PyObject *__pyx_n_u_ASM;
static PyObject *__pyx_n_u_ASN;
static PyObject *__pyx_n_u_ASP;
static PyObject *__pyx_n_u_ASQ;
static PyObject *__pyx_n_u_ASX;
static PyObject *__pyx_n_u_ATOM;
static PyObject *__pyx_n_s_ATOM_LINE_TEMPLATE;
static PyObject *__pyx_n_s_ATOM_WEIGHTS;
static PyObject *__pyx_n_u_AU;
static PyObject *__pyx_n_u_AVN;
static PyObject *__pyx_n_u_AYA;
static PyObject *__pyx_n_u_AZK;
static PyObject *__pyx_n_u_AZS;
static PyObject *__pyx_n_u_AZY;
static PyObject *__pyx_n_s_AdaptivePELE_atomset_atomset;
static PyObject *__pyx_kp_s_AdaptivePELE_atomset_atomset_pyx;
static PyObject *__pyx_n_s_Atom;
static PyObject *__pyx_n_u_B;
static PyObject *__pyx_n_u_B1F;
static PyObject *__pyx_n_u_B2A;
static PyObject *__pyx_n_u_B2F;
static PyObject *__pyx_n_u_B2I;
static PyObject *__pyx_n_u_B2V;
static PyObject *__pyx_n_u_B3A;
static PyObject *__pyx_n_u_B3D;
static PyObject *__pyx_n_u_B3E;
static PyObject *__pyx_n_u_B3K;
static PyObject *__pyx_n_u_B3L;
static PyObject *__pyx_n_u_B3M;
static PyObject *__pyx_n_u_B3Q;
static PyObject *__pyx_n_u_B3S;
static PyObject *__pyx_n_u_B3T;
static PyObject *__pyx_n_u_B3U;
static PyObject *__pyx_n_u_B3X;
static PyObject *__pyx_n_u_B3Y;
static PyObject *__pyx_n_u_BA;
static PyObject *__pyx_n_u_BB6;
static PyObject *__pyx_n_u_BB7;
static PyObject *__pyx_n_u_BB8;
static PyObject *__pyx_n_u_BB9;
static PyObject *__pyx_n_u_BBC;
static PyObject *__pyx_n_u_BCS;
static PyObject *__pyx_n_u_BE;
static PyObject *__pyx_n_u_BE2;
static PyObject *__pyx_n_u_BFD;
static PyObject *__pyx_n_u_BG1;
static PyObject *__pyx_n_u_BH2;
static PyObject *__pyx_n_u_BHD;
static PyObject *__pyx_n_u_BIF;
static PyObject *__pyx_n_u_BIL;
static PyObject *__pyx_n_u_BIU;
static PyObject *__pyx_n_u_BJH;
static PyObject *__pyx_n_u_BL2;
static PyObject *__pyx_n_u_BLE;
static PyObject *__pyx_n_u_BLY;
static PyObject *__pyx_n_u_BMT;
static PyObject *__pyx_n_u_BNN;
static PyObject *__pyx_n_u_BNO;
static PyObject *__pyx_n_u_BOR;
static PyObject *__pyx_n_u_BPE;
static PyObject *__pyx_n_u_BR;
static PyObject *__pyx_n_u_BSE;
static PyObject *__pyx_n_u_BTA;
static PyObject *__pyx_n_u_BTC;
static PyObject *__pyx_n_u_BTR;
static PyObject *__pyx_n_u_BUC;
static PyObject *__pyx_n_u_BUG;
static PyObject *__pyx_n_u_C;
static PyObject *__pyx_n_u_C1X;
static PyObject *__pyx_n_u_C22;
static PyObject *__pyx_n_u_C3Y;
static PyObject *__pyx_n_u_C4R;
static PyObject *__pyx_n_u_C5C;
static PyObject *__pyx_n_u_C66;
static PyObject *__pyx_n_u_C6C;
static PyObject *__pyx_n_u_CA;
static PyObject *__pyx_n_u_CAF;
static PyObject *__pyx_n_u_CAL;
static PyObject *__pyx_n_u_CAS;
static PyObject *__pyx_n_u_CAV;
static PyObject *__pyx_n_u_CAY;
static PyObject *__pyx_n_u_CCL;
static PyObject *__pyx_n_u_CCS;
static PyObject *__pyx_n_u_CD;
static PyObject *__pyx_n_u_CDE;
static PyObject *__pyx_n_u_CDV;
static PyObject *__pyx_n_u_CE1;
static PyObject *__pyx_n_u_CEA;
static PyObject *__pyx_n_u_CGA;
static PyObject *__pyx_n_u_CGU;
static PyObject *__pyx_n_u_CH2;
static PyObject *__pyx_n_u_CHF;
static PyObject *__pyx_n_u_CHG;
static PyObject *__pyx_n_u_CHP;
static PyObject *__pyx_n_u_CHS;
static PyObject *__pyx_n_u_CIR;
static PyObject *__pyx_n_u_CL;
static PyObject *__pyx_n_u_CLE;
static PyObject *__pyx_n_u_CLG;
static PyObject *__pyx_n_u_CLH;
static PyObject *__pyx_n_u_CM;
static PyObject *__pyx_n_s_CMAtoms;
static PyObject *__pyx_n_u_CME;
static PyObject *__pyx_n_u_CMH;
static PyObject *__pyx_n_u_CML;
static PyObject *__pyx_n_u_CMT;
static PyObject *__pyx_n_u_CO;
static PyObject *__pyx_n_s_COM1;
static PyObject *__pyx_n_s_COM2;
static PyObject *__pyx_n_u_CPC;
static PyObject *__pyx_n_u_CPI;
static PyObject *__pyx_n_u_CR;
static PyObject *__pyx_n_u_CR5;
static PyObject *__pyx_n_u_CS;
static PyObject *__pyx_n_u_CS0;
static PyObject *__pyx_n_u_CS1;
static PyObject *__pyx_n_u_CS3;
static PyObject *__pyx_n_u_CS4;
static PyObject *__pyx_n_u_CSA;
static PyObject *__pyx_n_u_CSB;
static PyObject *__pyx_n_u_CSD;
static PyObject *__pyx_n_u_CSE;
static PyObject *__pyx_n_u_CSJ;
static PyObject *__pyx_n_u_CSO;
static PyObject *__pyx_n_u_CSP;
static PyObject *__pyx_n_u_CSR;
static PyObject *__pyx_n_u_CSS;
static PyObject *__pyx_n_u_CSU;
static PyObject *__pyx_n_u_CSW;
static PyObject *__pyx_n_u_CSX;
static PyObject *__pyx_n_u_CSZ;
static PyObject *__pyx_n_u_CTE;
static PyObject *__pyx_n_u_CTH;
static PyObject *__pyx_n_u_CU;
static PyObject *__pyx_n_u_CUC;
static PyObject *__pyx_n_u_CWR;
static PyObject *__pyx_n_u_CXM;
static PyObject *__pyx_n_u_CY0;
static PyObject *__pyx_n_u_CY1;
static PyObject *__pyx_n_u_CY3;
static PyObject *__pyx_n_u_CY4;
static PyObject *__pyx_n_u_CYA;
static PyObject *__pyx_n_u_CYD;
static PyObject *__pyx_n_u_CYF;
static PyObject *__pyx_n_u_CYG;
static PyObject *__pyx_n_u_CYJ;
static PyObject *__pyx_n_u_CYM;
static PyObject *__pyx_n_u_CYQ;
static PyObject *__pyx_n_u_CYR;
static PyObject *__pyx_n_u_CYS;
static PyObject *__pyx_n_u_CYT;
static PyObject *__pyx_n_u_CZ;
static PyObject *__pyx_n_u_CZ2;
static PyObject *__pyx_n_u_CZZ;
static PyObject *__pyx_n_u_D;
static PyObject *__pyx_n_u_D11;
static PyObject *__pyx_n_u_D3P;
static PyObject *__pyx_n_u_D4P;
static PyObject *__pyx_n_u_DA2;
static PyObject *__pyx_n_u_DAB;
static PyObject *__pyx_n_u_DAH;
static PyObject *__pyx_n_u_DAL;
static PyObject *__pyx_n_u_DAR;
static PyObject *__pyx_n_u_DAS;
static PyObject *__pyx_n_u_DBB;
static PyObject *__pyx_n_u_DBS;
static PyObject *__pyx_n_u_DBU;
static PyObject *__pyx_n_u_DBY;
static PyObject *__pyx_n_u_DBZ;
static PyObject *__pyx_n_u_DC2;
static PyObject *__pyx_n_u_DCL;
static PyObject *__pyx_n_u_DCY;
static PyObject *__pyx_n_u_DDE;
static PyObject *__pyx_n_u_DFI;
static PyObject *__pyx_n_u_DFO;
static PyObject *__pyx_n_u_DGH;
static PyObject *__pyx_n_u_DGL;
static PyObject *__pyx_n_u_DGN;
static PyObject *__pyx_n_u_DHA;
static PyObject *__pyx_n_u_DHI;
static PyObject *__pyx_n_u_DHL;
static PyObject *__pyx_n_u_DHN;
static PyObject *__pyx_n_u_DHP;
static PyObject *__pyx_n_u_DHV;
static PyObject *__pyx_n_u_DI7;
static PyObject *__pyx_n_u_DIL;
static PyObject *__pyx_n_u_DIR;
static PyObject *__pyx_n_u_DIV;
static PyObject *__pyx_n_u_DLE;
static PyObject *__pyx_n_u_DLS;
static PyObject *__pyx_n_u_DLY;
static PyObject *__pyx_n_u_DM0;
static PyObject *__pyx_n_u_DMH;
static PyObject *__pyx_n_u_DMK;
static PyObject *__pyx_n_u_DMT;
static PyObject *__pyx_n_u_DNE;
static PyObject *__pyx_n_u_DNL;
static PyObject *__pyx_n_u_DNP;
static PyObject *__pyx_n_u_DNS;
static PyObject *__pyx_n_u_DOA;
static PyObject *__pyx_n_u_DOH;
static PyObject *__pyx_n_u_DON;
static PyObject *__pyx_n_u_DPL;
static PyObject *__pyx_n_u_DPN;
static PyObject *__pyx_n_u_DPP;
static PyObject *__pyx_n_u_DPQ;
static PyObject *__pyx_n_u_DPR;
static PyObject *__pyx_n_u_DSE;
static PyObject *__pyx_n_u_DSG;
static PyObject *__pyx_n_u_DSN;
static PyObject *__pyx_n_u_DSP;
static PyObject *__pyx_n_u_DTH;
static PyObject *__pyx_n_u_DTR;
static PyObject *__pyx_n_u_DTY;
static PyObject *__pyx_n_u_DVA;
static PyObject *__pyx_n_u_DYS;
static PyObject *__pyx_n_u_E;
static PyObject *__pyx_n_u_ECC;
static PyObject *__pyx_n_u_EFC;
static PyObject *__pyx_n_u_EHP;
static PyObject *__pyx_n_u_END;
static PyObject *__pyx_n_u_ENDMDL;
static PyObject *__pyx_n_u_ESB;
static PyObject *__pyx_n_u_ESC;
static PyObject *__pyx_n_u_EU;
static PyObject *__pyx_n_u_EXY;
static PyObject *__pyx_n_u_EYS;
static PyObject *__pyx_n_u_F;
static PyObject *__pyx_n_u_F2F;
static PyObject *__pyx_n_u_FAK;
static PyObject *__pyx_n_u_FB5;
static PyObject *__pyx_n_u_FB6;
static PyObject *__pyx_n_u_FCL;
static PyObject *__pyx_n_u_FE;
static PyObject *__pyx_n_u_FGA;
static PyObject *__pyx_n_u_FGL;
static PyObject *__pyx_n_u_FGP;
static PyObject *__pyx_n_u_FH7;
static PyObject *__pyx_n_u_FHL;
static PyObject *__pyx_n_u_FHO;
static PyObject *__pyx_n_u_FLA;
static PyObject *__pyx_n_u_FLE;
static PyObject *__pyx_n_u_FLT;
static PyObject *__pyx_n_u_FME;
static PyObject *__pyx_n_u_FOE;
static PyObject *__pyx_n_u_FP9;
static PyObject *__pyx_n_u_FRD;
static PyObject *__pyx_n_u_FT6;
static PyObject *__pyx_n_u_FTR;
static PyObject *__pyx_n_u_FTY;
static PyObject *__pyx_n_u_FVA;
static PyObject *__pyx_n_u_FZN;
static PyObject *__pyx_n_u_G;
static PyObject *__pyx_n_u_GA;
static PyObject *__pyx_n_u_GAU;
static PyObject *__pyx_n_u_GCM;
static PyObject *__pyx_n_u_GD;
static PyObject *__pyx_n_u_GE;
static PyObject *__pyx_n_u_GFT;
static PyObject *__pyx_n_u_GGL;
static PyObject *__pyx_n_u_GHG;
static PyObject *__pyx_n_u_GHP;
static PyObject *__pyx_n_u_GL3;
static PyObject *__pyx_n_u_GLH;
static PyObject *__pyx_n_u_GLJ;
static PyObject *__pyx_n_u_GLK;
static PyObject *__pyx_n_u_GLM;
static PyObject *__pyx_n_u_GLN;
static PyObject *__pyx_n_u_GLQ;
static PyObject *__pyx_n_u_GLU;
static PyObject *__pyx_n_u_GLX;
static PyObject *__pyx_n_u_GLY;
static PyObject *__pyx_n_u_GLZ;
static PyObject *__pyx_n_u_GMA;
static PyObject *__pyx_n_u_GND;
static PyObject *__pyx_n_u_GPL;
static PyObject *__pyx_n_u_GSC;
static PyObject *__pyx_n_u_GSU;
static PyObject *__pyx_n_u_GT9;
static PyObject *__pyx_n_u_GVL;
static PyObject *__pyx_n_u_H;
static PyObject *__pyx_n_u_H14;
static PyObject *__pyx_n_u_H5M;
static PyObject *__pyx_n_u_HAC;
static PyObject *__pyx_n_u_HAR;
static PyObject *__pyx_n_u_HBN;
static PyObject *__pyx_n_u_HCS;
static PyObject *__pyx_n_u_HE;
static PyObject *__pyx_n_u_HETATM;
static PyObject *__pyx_n_u_HETERO;
static PyObject *__pyx_n_u_HFA;
static PyObject *__pyx_n_u_HG;
static PyObject *__pyx_n_u_HGL;
static PyObject *__pyx_n_u_HHI;
static PyObject *__pyx_n_u_HIA;
static PyObject *__pyx_n_u_HIC;
static PyObject *__pyx_n_u_HID;
static PyObject *__pyx_n_u_HIE;
static PyObject *__pyx_n_u_HIP;
static PyObject *__pyx_n_u_HIQ;
static PyObject *__pyx_n_u_HIS;
static PyObject *__pyx_n_u_HL2;
static PyObject *__pyx_n_u_HLU;
static PyObject *__pyx_n_u_HMR;
static PyObject *__pyx_n_u_HOH;
static PyObject *__pyx_n_u_HPC;
static PyObject *__pyx_n_u_HPE;
static PyObject *__pyx_n_u_HPH;
static PyObject *__pyx_n_u_HPQ;
static PyObject *__pyx_n_u_HQA;
static PyObject *__pyx_n_u_HRG;
static PyObject *__pyx_n_u_HRP;
static PyObject *__pyx_n_u_HS8;
static PyObject *__pyx_n_u_HS9;
static PyObject *__pyx_n_u_HSE;
static PyObject *__pyx_n_u_HSL;
static PyObject *__pyx_n_u_HSO;
static PyObject *__pyx_n_u_HTI;
static PyObject *__pyx_n_u_HTN;
static PyObject *__pyx_n_u_HTR;
static PyObject *__pyx_n_u_HV5;
static PyObject *__pyx_n_u_HVA;
static PyObject *__pyx_n_u_HY3;
static PyObject *__pyx_n_u_HYP;
static PyObject *__pyx_n_u_HZP;
static PyObject *__pyx_n_u_I;
static PyObject *__pyx_n_u_I2M;
static PyObject *__pyx_n_u_I58;
static PyObject *__pyx_n_u_IAM;
static PyObject *__pyx_n_u_IAR;
static PyObject *__pyx_n_u_IAS;
static PyObject *__pyx_n_u_IEL;
static PyObject *__pyx_n_u_IGL;
static PyObject *__pyx_n_u_IIL;
static PyObject *__pyx_n_u_ILE;
static PyObject *__pyx_n_u_ILG;
static PyObject *__pyx_n_u_ILX;
static PyObject *__pyx_n_u_IML;
static PyObject *__pyx_n_u_IN;
static PyObject *__pyx_n_s_IOError;
static PyObject *__pyx_n_u_IOY;
static PyObject *__pyx_n_u_IPG;
static PyObject *__pyx_n_u_IR;
static PyObject *__pyx_n_u_IT1;
static PyObject *__pyx_n_u_IYR;
static PyObject *__pyx_n_u_IYT;
static PyObject *__pyx_n_u_IZO;
static PyObject *__pyx_n_s_ImportError;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x0d;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0x73;
static PyObject *__pyx_kp_u_Input_coordinates_and_topology_d;
static PyObject *__pyx_kp_u_Input_file_not_found;
static PyObject *__pyx_kp_u_Input_pdb_was_malformed_or_empty;
static PyObject *__pyx_n_u_JJJ;
static PyObject *__pyx_n_u_JJK;
static PyObject *__pyx_n_u_JJL;
static PyObject *__pyx_n_u_K;
static PyObject *__pyx_n_u_K1R;
static PyObject *__pyx_n_u_KCX;
static PyObject *__pyx_n_u_KGC;
static PyObject *__pyx_n_u_KNB;
static PyObject *__pyx_n_u_KOR;
static PyObject *__pyx_n_u_KPI;
static PyObject *__pyx_n_u_KR;
static PyObject *__pyx_n_u_KST;
static PyObject *__pyx_n_u_KYN;
static PyObject *__pyx_n_u_KYQ;
static PyObject *__pyx_n_u_L;
static PyObject *__pyx_n_u_L2A;
static PyObject *__pyx_n_u_LA2;
static PyObject *__pyx_n_u_LAA;
static PyObject *__pyx_n_u_LAL;
static PyObject *__pyx_n_u_LBY;
static PyObject *__pyx_n_u_LCK;
static PyObject *__pyx_n_u_LCX;
static PyObject *__pyx_n_u_LCZ;
static PyObject *__pyx_n_u_LDH;
static PyObject *__pyx_n_u_LED;
static PyObject *__pyx_n_u_LEF;
static PyObject *__pyx_n_u_LEH;
static PyObject *__pyx_n_u_LEI;
static PyObject *__pyx_n_u_LEM;
static PyObject *__pyx_n_u_LEN;
static PyObject *__pyx_n_u_LET;
static PyObject *__pyx_n_u_LEU;
static PyObject *__pyx_n_u_LEX;
static PyObject *__pyx_n_u_LHC;
static PyObject *__pyx_n_u_LI;
static PyObject *__pyx_n_u_LLP;
static PyObject *__pyx_n_u_LLY;
static PyObject *__pyx_n_u_LME;
static PyObject *__pyx_n_u_LMF;
static PyObject *__pyx_n_u_LMQ;
static PyObject *__pyx_n_u_LP6;
static PyObject *__pyx_n_u_LPD;
static PyObject *__pyx_n_u_LPG;
static PyObject *__pyx_n_u_LPL;
static PyObject *__pyx_n_u_LPS;
static PyObject *__pyx_n_u_LSO;
static PyObject *__pyx_n_u_LTA;
static PyObject *__pyx_n_u_LTR;
static PyObject *__pyx_n_u_LVG;
static PyObject *__pyx_n_u_LVN;
static PyObject *__pyx_n_u_LYF;
static PyObject *__pyx_n_u_LYK;
static PyObject *__pyx_n_u_LYM;
static PyObject *__pyx_n_u_LYN;
static PyObject *__pyx_n_u_LYR;
static PyObject *__pyx_n_u_LYS;
static PyObject *__pyx_n_u_LYX;
static PyObject *__pyx_n_u_LYZ;
static PyObject *__pyx_n_u_M;
static PyObject *__pyx_n_u_M0H;
static PyObject *__pyx_n_u_M2L;
static PyObject *__pyx_n_u_M2S;
static PyObject *__pyx_n_u_M30;
static PyObject *__pyx_n_u_M3L;
static PyObject *__pyx_n_u_MA;
static PyObject *__pyx_n_u_MAA;
static PyObject *__pyx_n_u_MAI;
static PyObject *__pyx_n_u_MBQ;
static PyObject *__pyx_n_u_MC1;
static PyObject *__pyx_n_u_MCG;
static PyObject *__pyx_n_u_MCL;
static PyObject *__pyx_n_u_MCS;
static PyObject *__pyx_n_u_MD3;
static PyObject *__pyx_n_u_MD6;
static PyObject *__pyx_n_u_MDF;
static PyObject *__pyx_n_u_MDH;
static PyObject *__pyx_n_u_MEA;
static PyObject *__pyx_n_u_MED;
static PyObject *__pyx_n_u_MEG;
static PyObject *__pyx_n_u_MEN;
static PyObject *__pyx_n_u_MEQ;
static PyObject *__pyx_n_u_MET;
static PyObject *__pyx_n_u_MEU;
static PyObject *__pyx_n_u_MF3;
static PyObject *__pyx_n_u_MG;
static PyObject *__pyx_n_u_MGG;
static PyObject *__pyx_n_u_MGN;
static PyObject *__pyx_n_u_MGY;
static PyObject *__pyx_n_u_MHL;
static PyObject *__pyx_n_u_MHO;
static PyObject *__pyx_n_u_MHS;
static PyObject *__pyx_n_u_MIS;
static PyObject *__pyx_n_u_MK8;
static PyObject *__pyx_n_u_ML3;
static PyObject *__pyx_n_u_MLE;
static PyObject *__pyx_n_u_MLL;
static PyObject *__pyx_n_u_MLY;
static PyObject *__pyx_n_u_MLZ;
static PyObject *__pyx_n_u_MME;
static PyObject *__pyx_n_u_MMO;
static PyObject *__pyx_n_u_MN;
static PyObject *__pyx_n_u_MND;
static PyObject *__pyx_n_u_MNL;
static PyObject *__pyx_n_u_MNV;
static PyObject *__pyx_n_u_MO;
static PyObject *__pyx_n_u_MOD;
static PyObject *__pyx_kp_u_MODEL_4d;
static PyObject *__pyx_n_u_MP8;
static PyObject *__pyx_n_u_MPH;
static PyObject *__pyx_n_u_MPJ;
static PyObject *__pyx_n_u_MPQ;
static PyObject *__pyx_n_u_MSA;
static PyObject *__pyx_n_u_MSE;
static PyObject *__pyx_n_u_MSL;
static PyObject *__pyx_n_u_MSO;
static PyObject *__pyx_n_u_MSP;
static PyObject *__pyx_n_u_MT2;
static PyObject *__pyx_n_u_MTY;
static PyObject *__pyx_n_u_MVA;
static PyObject *__pyx_n_u_N;
static PyObject *__pyx_n_u_N10;
static PyObject *__pyx_n_u_N2C;
static PyObject *__pyx_n_u_N7P;
static PyObject *__pyx_n_u_N80;
static PyObject *__pyx_n_u_N8P;
static PyObject *__pyx_n_u_NA;
static PyObject *__pyx_n_u_NA8;
static PyObject *__pyx_n_u_NAL;
static PyObject *__pyx_n_u_NAM;
static PyObject *__pyx_n_u_NB;
static PyObject *__pyx_n_u_NB8;
static PyObject *__pyx_n_u_NBQ;
static PyObject *__pyx_n_u_NC1;
static PyObject *__pyx_n_u_NCB;
static PyObject *__pyx_n_u_NCY;
static PyObject *__pyx_n_u_NDF;
static PyObject *__pyx_n_u_NE;
static PyObject *__pyx_n_u_NEM;
static PyObject *__pyx_n_u_NEP;
static PyObject *__pyx_n_u_NFA;
static PyObject *__pyx_n_u_NHL;
static PyObject *__pyx_n_u_NI;
static PyObject *__pyx_n_u_NIY;
static PyObject *__pyx_n_u_NLE;
static PyObject *__pyx_n_u_NLN;
static PyObject *__pyx_n_u_NLO;
static PyObject *__pyx_n_u_NLP;
static PyObject *__pyx_n_u_NLQ;
static PyObject *__pyx_n_u_NMC;
static PyObject *__pyx_n_u_NME;
static PyObject *__pyx_n_u_NMM;
static PyObject *__pyx_n_u_NNH;
static PyObject *__pyx_n_u_NPH;
static PyObject *__pyx_n_u_NPI;
static PyObject *__pyx_n_u_NSK;
static PyObject *__pyx_n_u_NTR;
static PyObject *__pyx_n_u_NTY;
static PyObject *__pyx_n_u_NVA;
static PyObject *__pyx_n_u_NYS;
static PyObject *__pyx_n_u_NZ;
static PyObject *__pyx_n_u_NZH;
static PyObject *__pyx_kp_u_No_boolean_operator_available_fo;
static PyObject *__pyx_kp_u_Nothing_found_in_the_input_coord;
static PyObject *__pyx_n_u_O;
static PyObject *__pyx_n_u_O12;
static PyObject *__pyx_n_u_OAR;
static PyObject *__pyx_n_u_OAS;
static PyObject *__pyx_n_u_OBF;
static PyObject *__pyx_n_u_OBS;
static PyObject *__pyx_n_u_OCS;
static PyObject *__pyx_n_u_OCY;
static PyObject *__pyx_n_u_OD1;
static PyObject *__pyx_n_u_OE1;
static PyObject *__pyx_n_u_OH;
static PyObject *__pyx_n_u_OHI;
static PyObject *__pyx_n_u_OHS;
static PyObject *__pyx_n_u_OIC;
static PyObject *__pyx_n_u_OLE;
static PyObject *__pyx_n_u_OLT;
static PyObject *__pyx_n_u_OLZ;
static PyObject *__pyx_n_u_OMT;
static PyObject *__pyx_n_u_ONH;
static PyObject *__pyx_n_u_ONL;
static PyObject *__pyx_n_u_OPR;
static PyObject *__pyx_n_u_ORN;
static PyObject *__pyx_n_u_ORQ;
static PyObject *__pyx_n_u_OSE;
static PyObject *__pyx_n_u_OTB;
static PyObject *__pyx_n_u_OTH;
static PyObject *__pyx_n_u_OXX;
static PyObject *__pyx_n_u_P;
static PyObject *__pyx_n_u_P1L;
static PyObject *__pyx_n_u_P2Y;
static PyObject *__pyx_n_u_PAQ;
static PyObject *__pyx_n_u_PAS;
static PyObject *__pyx_n_u_PAT;
static PyObject *__pyx_n_u_PAU;
static PyObject *__pyx_n_u_PB;
static PyObject *__pyx_n_u_PBB;
static PyObject *__pyx_n_u_PBF;
static PyObject *__pyx_n_u_PCA;
static PyObject *__pyx_n_u_PCC;
static PyObject *__pyx_n_u_PCE;
static PyObject *__pyx_n_u_PCS;
static PyObject *__pyx_n_u_PD;
static PyObject *__pyx_n_s_PDB;
static PyObject *__pyx_n_s_PDB1;
static PyObject *__pyx_n_s_PDB2;
static PyObject *__pyx_n_s_PDB___iter;
static PyObject *__pyx_n_s_PDBstr;
static PyObject *__pyx_n_u_PDL;
static PyObject *__pyx_n_u_PEC;
static PyObject *__pyx_n_u_PF5;
static PyObject *__pyx_n_u_PFF;
static PyObject *__pyx_n_u_PFX;
static PyObject *__pyx_n_u_PG1;
static PyObject *__pyx_n_u_PG9;
static PyObject *__pyx_n_u_PGL;
static PyObject *__pyx_n_u_PGY;
static PyObject *__pyx_n_u_PH6;
static PyObject *__pyx_n_u_PHA;
static PyObject *__pyx_n_u_PHD;
static PyObject *__pyx_n_u_PHE;
static PyObject *__pyx_n_u_PHI;
static PyObject *__pyx_n_u_PHL;
static PyObject *__pyx_n_u_PHM;
static PyObject *__pyx_n_u_PIV;
static PyObject *__pyx_n_u_PLE;
static PyObject *__pyx_n_u_PM3;
static PyObject *__pyx_n_u_POM;
static PyObject *__pyx_n_u_PPN;
static PyObject *__pyx_n_u_PR;
static PyObject *__pyx_n_u_PR3;
static PyObject *__pyx_n_u_PR9;
static PyObject *__pyx_n_u_PRO;
static PyObject *__pyx_n_u_PROTEIN;
static PyObject *__pyx_n_u_PRS;
static PyObject *__pyx_n_u_PSA;
static PyObject *__pyx_n_u_PSH;
static PyObject *__pyx_n_u_PT;
static PyObject *__pyx_n_u_PTA;
static PyObject *__pyx_n_u_PTH;
static PyObject *__pyx_n_u_PTM;
static PyObject *__pyx_n_u_PTR;
static PyObject *__pyx_n_u_PVH;
static PyObject *__pyx_n_u_PVL;
static PyObject *__pyx_n_u_PYA;
static PyObject *__pyx_n_u_PYL;
static PyObject *__pyx_n_u_PYX;
static PyObject *__pyx_n_s_PickleError;
static PyObject *__pyx_n_u_Q;
static PyObject *__pyx_n_u_QCS;
static PyObject *__pyx_n_u_QMM;
static PyObject *__pyx_n_u_QPA;
static PyObject *__pyx_n_u_QPH;
static PyObject *__pyx_n_u_R;
static PyObject *__pyx_n_u_R1A;
static PyObject *__pyx_n_u_R4K;
static PyObject *__pyx_n_u_RB;
static PyObject *__pyx_n_u_RE0;
static PyObject *__pyx_n_u_RE3;
static PyObject *__pyx_n_s_REGEX_PATTERN;
static PyObject *__pyx_n_u_RH;
static PyObject *__pyx_n_u_RON;
static PyObject *__pyx_n_u_RU;
static PyObject *__pyx_n_u_RVX;
static PyObject *__pyx_n_u_RZ4;
static PyObject *__pyx_n_u_S;
static PyObject *__pyx_n_u_S1H;
static PyObject *__pyx_n_u_S2C;
static PyObject *__pyx_n_u_S2D;
static PyObject *__pyx_n_u_S2P;
static PyObject *__pyx_n_u_SAC;
static PyObject *__pyx_n_u_SAH;
static PyObject *__pyx_n_u_SAR;
static PyObject *__pyx_n_u_SB;
static PyObject *__pyx_n_u_SBL;
static PyObject *__pyx_n_u_SC;
static PyObject *__pyx_n_u_SCH;
static PyObject *__pyx_n_u_SCS;
static PyObject *__pyx_n_u_SCY;
static PyObject *__pyx_n_u_SD2;
static PyObject *__pyx_n_u_SDP;
static PyObject *__pyx_n_u_SE;
static PyObject *__pyx_n_u_SE7;
static PyObject *__pyx_n_u_SEB;
static PyObject *__pyx_n_u_SEC;
static PyObject *__pyx_n_u_SEG;
static PyObject *__pyx_n_u_SEL;
static PyObject *__pyx_n_u_SEM;
static PyObject *__pyx_n_u_SEN;
static PyObject *__pyx_n_u_SEP;
static PyObject *__pyx_n_u_SER;
static PyObject *__pyx_n_u_SET;
static PyObject *__pyx_n_u_SGB;
static PyObject *__pyx_n_u_SHC;
static PyObject *__pyx_n_u_SHP;
static PyObject *__pyx_n_u_SHR;
static PyObject *__pyx_n_u_SI;
static PyObject *__pyx_n_u_SIB;
static PyObject *__pyx_n_u_SLR;
static PyObject *__pyx_n_u_SLZ;
static PyObject *__pyx_n_u_SMC;
static PyObject *__pyx_n_u_SME;
static PyObject *__pyx_n_u_SMF;
static PyObject *__pyx_n_u_SN;
static PyObject *__pyx_n_u_SNC;
static PyObject *__pyx_n_u_SNN;
static PyObject *__pyx_n_u_SOC;
static PyObject *__pyx_n_u_SOY;
static PyObject *__pyx_n_u_SR;
static PyObject *__pyx_n_u_SRZ;
static PyObject *__pyx_n_u_STY;
static PyObject *__pyx_n_u_SUB;
static PyObject *__pyx_n_u_SUN;
static PyObject *__pyx_n_u_SVA;
static PyObject *__pyx_n_u_SVV;
static PyObject *__pyx_n_u_SVW;
static PyObject *__pyx_n_u_SVX;
static PyObject *__pyx_n_u_SVY;
static PyObject *__pyx_n_u_SVZ;
static PyObject *__pyx_n_u_SYS;
static PyObject *__pyx_n_s_StringIO;
static PyObject *__pyx_n_u_T;
static PyObject *__pyx_n_u_T11;
static PyObject *__pyx_n_u_T66;
static PyObject *__pyx_n_u_TA4;
static PyObject *__pyx_n_u_TAV;
static PyObject *__pyx_n_u_TB;
static PyObject *__pyx_n_u_TBG;
static PyObject *__pyx_n_u_TBM;
static PyObject *__pyx_n_u_TC;
static PyObject *__pyx_n_u_TCQ;
static PyObject *__pyx_n_u_TCR;
static PyObject *__pyx_n_u_TDD;
static PyObject *__pyx_n_u_TE;
static PyObject *__pyx_n_u_TER;
static PyObject *__pyx_n_u_TFQ;
static PyObject *__pyx_n_u_TH6;
static PyObject *__pyx_n_u_THC;
static PyObject *__pyx_n_u_THO;
static PyObject *__pyx_n_u_THR;
static PyObject *__pyx_n_u_THZ;
static PyObject *__pyx_n_u_TI;
static PyObject *__pyx_n_u_TIH;
static PyObject *__pyx_n_u_TMB;
static PyObject *__pyx_n_u_TMD;
static PyObject *__pyx_n_u_TNB;
static PyObject *__pyx_n_u_TNR;
static PyObject *__pyx_n_u_TOQ;
static PyObject *__pyx_n_u_TPH;
static PyObject *__pyx_n_u_TPL;
static PyObject *__pyx_n_u_TPO;
static PyObject *__pyx_n_u_TPQ;
static PyObject *__pyx_n_u_TQI;
static PyObject *__pyx_n_u_TQQ;
static PyObject *__pyx_n_u_TRF;
static PyObject *__pyx_n_u_TRG;
static PyObject *__pyx_n_u_TRN;
static PyObject *__pyx_n_u_TRO;
static PyObject *__pyx_n_u_TRP;
static PyObject *__pyx_n_u_TRQ;
static PyObject *__pyx_n_u_TRW;
static PyObject *__pyx_n_u_TRX;
static PyObject *__pyx_n_u_TRY;
static PyObject *__pyx_n_u_TST;
static PyObject *__pyx_n_u_TTQ;
static PyObject *__pyx_n_u_TTS;
static PyObject *__pyx_n_u_TXY;
static PyObject *__pyx_n_u_TY1;
static PyObject *__pyx_n_u_TY2;
static PyObject *__pyx_n_u_TY3;
static PyObject *__pyx_n_u_TY5;
static PyObject *__pyx_n_u_TYB;
static PyObject *__pyx_n_u_TYI;
static PyObject *__pyx_n_u_TYJ;
static PyObject *__pyx_n_u_TYN;
static PyObject *__pyx_n_u_TYO;
static PyObject *__pyx_n_u_TYQ;
static PyObject *__pyx_n_u_TYR;
static PyObject *__pyx_n_u_TYS;
static PyObject *__pyx_n_u_TYT;
static PyObject *__pyx_n_u_TYW;
static PyObject *__pyx_n_u_TYX;
static PyObject *__pyx_n_u_TYY;
static PyObject *__pyx_n_u_TZB;
static PyObject *__pyx_n_u_TZO;
static PyObject *__pyx_n_u_U;
static PyObject *__pyx_n_u_UMA;
static PyObject *__pyx_n_u_UN1;
static PyObject *__pyx_n_u_UN2;
static PyObject *__pyx_n_u_UNK;
static PyObject *__pyx_n_u_V;
static PyObject *__pyx_n_u_VAD;
static PyObject *__pyx_n_u_VAF;
static PyObject *__pyx_n_u_VAL;
static PyObject *__pyx_n_u_VB1;
static PyObject *__pyx_n_u_VDL;
static PyObject *__pyx_n_u_VLL;
static PyObject *__pyx_n_u_VLM;
static PyObject *__pyx_n_u_VMS;
static PyObject *__pyx_n_u_VOL;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_u_W;
static PyObject *__pyx_kp_u_WARNING_Information_about_atom_t;
static PyObject *__pyx_n_u_WLU;
static PyObject *__pyx_n_u_WPA;
static PyObject *__pyx_n_u_WRP;
static PyObject *__pyx_n_u_WVL;
static PyObject *__pyx_n_u_X;
static PyObject *__pyx_n_u_X2W;
static PyObject *__pyx_n_u_XCN;
static PyObject *__pyx_n_u_XCP;
static PyObject *__pyx_n_u_XDT;
static PyObject *__pyx_n_u_XE;
static PyObject *__pyx_n_u_XPL;
static PyObject *__pyx_n_u_XPR;
static PyObject *__pyx_n_u_XSN;
static PyObject *__pyx_n_u_XX1;
static PyObject *__pyx_n_u_Y;
static PyObject *__pyx_n_u_YCM;
static PyObject *__pyx_n_u_YOF;
static PyObject *__pyx_n_u_YTH;
static PyObject *__pyx_n_u_Z;
static PyObject *__pyx_n_u_Z01;
static PyObject *__pyx_n_u_ZAL;
static PyObject *__pyx_n_u_ZCL;
static PyObject *__pyx_n_u_ZFB;
static PyObject *__pyx_n_u_ZN;
static PyObject *__pyx_n_u_ZR;
static PyObject *__pyx_n_u_ZU0;
static PyObject *__pyx_n_u_ZZJ;
static PyObject *__pyx_kp_u__2;
static PyObject *__pyx_kp_u__3;
static PyObject *__pyx_kp_u__4;
static PyObject *__pyx_kp_u__5;
static PyObject *__pyx_kp_u__6;
static PyObject *__pyx_kp_u__7;
static PyObject *__pyx_kp_u__8;
static PyObject *__pyx_n_s_args;
static PyObject *__pyx_n_s_array;
static PyObject *__pyx_n_s_atomContent;
static PyObject *__pyx_n_s_atomList;
static PyObject *__pyx_n_u_atomList;
static PyObject *__pyx_n_s_atomName;
static PyObject *__pyx_n_s_atomSerial;
static PyObject *__pyx_n_u_atomSerial;
static PyObject *__pyx_n_s_atomname;
static PyObject *__pyx_n_s_atoms;
static PyObject *__pyx_n_u_atoms;
static PyObject *__pyx_n_u_centroid;
static PyObject *__pyx_n_s_centroid1;
static PyObject *__pyx_n_s_centroid2;
static PyObject *__pyx_n_s_chain;
static PyObject *__pyx_n_s_chargePattern;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_close;
static PyObject *__pyx_n_u_com;
static PyObject *__pyx_n_s_compile;
static PyObject *__pyx_n_s_computeCOMDifference;
static PyObject *__pyx_n_s_computeCOMSquaredDifference;
static PyObject *__pyx_n_s_computeSquaredCentroidDifference;
static PyObject *__pyx_n_s_computeTotalMass;
static PyObject *__pyx_n_s_contactThresholdDistance;
static PyObject *__pyx_n_s_coordinates;
static PyObject *__pyx_kp_u_d;
static PyObject *__pyx_n_s_dict;
static PyObject *__pyx_n_s_dx;
static PyObject *__pyx_n_s_dy;
static PyObject *__pyx_n_s_dz;
static PyObject *__pyx_n_s_element;
static PyObject *__pyx_n_u_empty;
static PyObject *__pyx_n_s_encoding;
static PyObject *__pyx_n_s_end;
static PyObject *__pyx_n_s_enter;
static PyObject *__pyx_n_s_equivalentResname;
static PyObject *__pyx_n_s_exit;
static PyObject *__pyx_n_s_extra_atoms;
static PyObject *__pyx_n_s_extractCOM;
static PyObject *__pyx_n_s_extractCentroid;
static PyObject *__pyx_n_u_f;
static PyObject *__pyx_n_s_file;
static PyObject *__pyx_n_s_frame;
static PyObject *__pyx_n_s_get;
static PyObject *__pyx_n_s_getCOM;
static PyObject *__pyx_n_s_getCentroid;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_n_s_heavyAtoms;
static PyObject *__pyx_n_u_id;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_initialise;
static PyObject *__pyx_n_s_initialisePDB;
static PyObject *__pyx_n_s_initialiseXTC;
static PyObject *__pyx_n_s_io;
static PyObject *__pyx_n_s_isHeavyAtom;
static PyObject *__pyx_n_s_isHeteroAtom;
static PyObject *__pyx_n_s_isProtein;
static PyObject *__pyx_n_s_ispdb;
static PyObject *__pyx_n_u_ispdb;
static PyObject *__pyx_n_s_iter;
static PyObject *__pyx_n_s_join_PDB_lines;
static PyObject *__pyx_n_s_ligandChain;
static PyObject *__pyx_n_s_ligandResname;
static PyObject *__pyx_n_s_ligandResnum;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_mass;
static PyObject *__pyx_n_u_mass;
static PyObject *__pyx_n_s_model_num;
static PyObject *__pyx_n_u_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_n_s_new;
static PyObject *__pyx_n_s_np;
static PyObject *__pyx_n_s_numpy;
static PyObject *__pyx_kp_u_numpy_core_multiarray_failed_to;
static PyObject *__pyx_kp_u_numpy_core_umath_failed_to_impor;
static PyObject *__pyx_n_s_open;
static PyObject *__pyx_n_s_path;
static PyObject *__pyx_n_s_pdb;
static PyObject *__pyx_n_u_pdb;
static PyObject *__pyx_n_s_pdbfile;
static PyObject *__pyx_n_s_pickle;
static PyObject *__pyx_n_s_pop;
static PyObject *__pyx_n_s_print;
static PyObject *__pyx_n_u_protein;
static PyObject *__pyx_n_s_pyx_PickleError;
static PyObject *__pyx_n_s_pyx_checksum;
static PyObject *__pyx_n_s_pyx_result;
static PyObject *__pyx_n_s_pyx_state;
static PyObject *__pyx_n_s_pyx_type;
static PyObject *__pyx_n_s_pyx_unpickle_Atom;
static PyObject *__pyx_n_s_pyx_unpickle_PDB;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_re;
static PyObject *__pyx_n_s_read;
static PyObject *__pyx_n_s_readPDB;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_n_s_remove;
static PyObject *__pyx_n_s_resChain;
static PyObject *__pyx_n_u_resChain;
static PyObject *__pyx_n_s_resName;
static PyObject *__pyx_n_s_resNum;
static PyObject *__pyx_n_s_resname;
static PyObject *__pyx_n_u_resname;
static PyObject *__pyx_n_s_resnum;
static PyObject *__pyx_n_u_resnum;
static PyObject *__pyx_n_s_rjust;
static PyObject *__pyx_n_u_rt;
static PyObject *__pyx_kp_u_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s;
static PyObject *__pyx_n_s_send;
static PyObject *__pyx_n_s_serial;
static PyObject *__pyx_n_s_set_properties;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_split;
static PyObject *__pyx_n_s_sqrt;
static PyObject *__pyx_n_s_squaredDistance;
static PyObject *__pyx_n_s_startswith;
static PyObject *__pyx_kp_s_stringsource;
static PyObject *__pyx_n_s_strip;
static PyObject *__pyx_n_s_sub;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_throw;
static PyObject *__pyx_n_s_topology;
static PyObject *__pyx_n_u_totalMass;
static PyObject *__pyx_n_s_type;
static PyObject *__pyx_n_u_type;
static PyObject *__pyx_n_s_typeAll;
static PyObject *__pyx_n_s_typeCM;
static PyObject *__pyx_n_s_typeHetero;
static PyObject *__pyx_n_s_typeProtein;
static PyObject *__pyx_n_s_update;
static PyObject *__pyx_n_s_upper;
static PyObject *__pyx_kp_u_utf_8;
static PyObject *__pyx_n_s_values;
static PyObject *__pyx_n_u_w;
static PyObject *__pyx_n_s_write;
static PyObject *__pyx_n_s_x;
static PyObject *__pyx_n_u_x;
static PyObject *__pyx_n_s_y;
static PyObject *__pyx_n_u_y;
static PyObject *__pyx_n_s_z;
static PyObject *__pyx_n_u_z;
static PyObject *__pyx_n_s_zip;
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom___init__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_atomContent); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2__getstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4__setstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_state); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6equivalentResname(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_resname); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8set_properties(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, int __pyx_v_isProtein, PyObject *__pyx_v_atomSerial, PyObject *__pyx_v_atomName, PyObject *__pyx_v_resName, PyObject *__pyx_v_resNum, float __pyx_v_x, float __pyx_v_y, float __pyx_v_z, PyObject *__pyx_v_element, PyObject *__pyx_v_resChain); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10isHeavyAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_12isProtein(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_14isHeteroAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_16printAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_18__richcmp__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom2, int __pyx_v_op); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_20__str__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_22getAtomCoords(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_24squaredDistance(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom2); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_26__reduce_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_28__setstate_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB___init__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_2__richcmp__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_4__getstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_6__setstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_state); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8isfromPDBFile(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_10_initialisePDB(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_PDBstr, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_extra_atoms); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_12_initialiseXTC(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyArrayObject *__pyx_v_frame, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_topology, PyObject *__pyx_v_extra_atoms); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_14initialise(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_coordinates, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_topology, PyObject *__pyx_v_extra_atoms); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_16computeTotalMass(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_18printAtoms(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_20getNumberOfAtoms(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_22getAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId); /* proto */
static Py_ssize_t __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_24__len__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_26__getitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_28__setitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId, PyObject *__pyx_v_atom); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_30__delitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_32__iter__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_35updateCoords(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_newCoords); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_37extractCOM(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_39getCOM(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_41extractCentroid(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_43getCentroid(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_45join_PDB_lines(CYTHON_UNUSED struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_topology, PyArrayObject *__pyx_v_frame); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_47get_pdb_string(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, int __pyx_v_model_num); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_49writePDB(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_path, int __pyx_v_model_num); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_51countContacts(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_ligandResname, int __pyx_v_contactThresholdDistance, int __pyx_v_ligandResnum, PyObject *__pyx_v_ligandChain); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_53__reduce_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_55__setstate_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_computeCOMDifference(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_PDB1, PyObject *__pyx_v_PDB2); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_2computeCOMSquaredDifference(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4computeSquaredCentroidDifference(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_6readPDB(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pdbfile); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_8__pyx_unpickle_Atom(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_10__pyx_unpickle_PDB(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset_Atom(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset_PDB(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop = {0, &__pyx_n_s_pop, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values = {0, &__pyx_n_s_values, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PySet_Type_update = {0, &__pyx_n_s_update, 0, 0, 0};
static PyObject *__pyx_float_0_;
static PyObject *__pyx_float_4_00;
static PyObject *__pyx_float_9_01;
static PyObject *__pyx_float_98_0;
static PyObject *__pyx_float_20_18;
static PyObject *__pyx_float_207_2;
static PyObject *__pyx_float_26_98;
static PyObject *__pyx_float_28_09;
static PyObject *__pyx_float_39_95;
static PyObject *__pyx_float_44_96;
static PyObject *__pyx_float_47_87;
static PyObject *__pyx_float_50_94;
static PyObject *__pyx_float_58_93;
static PyObject *__pyx_float_6_941;
static PyObject *__pyx_float_69_72;
static PyObject *__pyx_float_72_64;
static PyObject *__pyx_float_78_96;
static PyObject *__pyx_float_79_90;
static PyObject *__pyx_float_83_80;
static PyObject *__pyx_float_85_47;
static PyObject *__pyx_float_87_62;
static PyObject *__pyx_float_88_91;
static PyObject *__pyx_float_91_22;
static PyObject *__pyx_float_92_91;
static PyObject *__pyx_float_95_94;
static PyObject *__pyx_float_10_811;
static PyObject *__pyx_float_101_07;
static PyObject *__pyx_float_102_91;
static PyObject *__pyx_float_106_42;
static PyObject *__pyx_float_114_82;
static PyObject *__pyx_float_118_71;
static PyObject *__pyx_float_121_76;
static PyObject *__pyx_float_127_60;
static PyObject *__pyx_float_131_29;
static PyObject *__pyx_float_132_91;
static PyObject *__pyx_float_137_33;
static PyObject *__pyx_float_140_91;
static PyObject *__pyx_float_151_96;
static PyObject *__pyx_float_157_25;
static PyObject *__pyx_float_158_93;
static PyObject *__pyx_float_192_22;
static PyObject *__pyx_float_200_59;
static PyObject *__pyx_float_238_03;
static PyObject *__pyx_float_24_305;
static PyObject *__pyx_float_32_065;
static PyObject *__pyx_float_35_453;
static PyObject *__pyx_float_40_078;
static PyObject *__pyx_float_55_845;
static PyObject *__pyx_float_63_546;
static PyObject *__pyx_float_65_409;
static PyObject *__pyx_float_1_00794;
static PyObject *__pyx_float_112_411;
static PyObject *__pyx_float_12_0107;
static PyObject *__pyx_float_14_0067;
static PyObject *__pyx_float_15_9994;
static PyObject *__pyx_float_195_084;
static PyObject *__pyx_float_39_0983;
static PyObject *__pyx_float_51_9961;
static PyObject *__pyx_float_58_6934;
static PyObject *__pyx_float_74_9216;
static PyObject *__pyx_float_107_8682;
static PyObject *__pyx_float_126_90447;
static PyObject *__pyx_float_18_998403;
static PyObject *__pyx_float_196_96657;
static PyObject *__pyx_float_22_989769;
static PyObject *__pyx_float_30_973762;
static PyObject *__pyx_float_54_938045;
static PyObject *__pyx_float_2_01410178;
static PyObject *__pyx_int_8;
static PyObject *__pyx_int_14519438;
static PyObject *__pyx_int_120783956;
static PyObject *__pyx_k__10;
static PyObject *__pyx_k__14;
static PyObject *__pyx_k__16;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_codeobj__22;
static PyObject *__pyx_codeobj__24;
static PyObject *__pyx_codeobj__26;
static PyObject *__pyx_codeobj__28;
static PyObject *__pyx_codeobj__30;
static PyObject *__pyx_codeobj__32;
/* Late includes */

/* "AdaptivePELE/atomset/atomset.pyx":149
 * @cython.wraparound(False)
 * @cython.nonecheck(False)
 * cdef bint check_add_TER(basestring prevLine, basestring line):             # <<<<<<<<<<<<<<
 *     cdef basestring prevres = prevLine[22:26], res = line[22:26]
 *     cdef int prevres_num = int(prevres), resnum = int(res)
 */

static int __pyx_f_12AdaptivePELE_7atomset_7atomset_check_add_TER(PyObject *__pyx_v_prevLine, PyObject *__pyx_v_line) {
  PyObject *__pyx_v_prevres = 0;
  PyObject *__pyx_v_res = 0;
  int __pyx_v_prevres_num;
  int __pyx_v_resnum;
  PyObject *__pyx_v_resname = 0;
  PyObject *__pyx_v_prevresname = 0;
  PyObject *__pyx_v_prevAtomtype = 0;
  PyObject *__pyx_v_atomtype = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("check_add_TER", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":150
 * @cython.nonecheck(False)
 * cdef bint check_add_TER(basestring prevLine, basestring line):
 *     cdef basestring prevres = prevLine[22:26], res = line[22:26]             # <<<<<<<<<<<<<<
 *     cdef int prevres_num = int(prevres), resnum = int(res)
 *     cdef basestring resname, prevresname, prevAtomtype, atomtype
 */
  if (unlikely(__pyx_v_prevLine == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 150, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_prevLine, 22, 26); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_prevres = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v_line == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 150, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_line, 22, 26); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_res = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":151
 * cdef bint check_add_TER(basestring prevLine, basestring line):
 *     cdef basestring prevres = prevLine[22:26], res = line[22:26]
 *     cdef int prevres_num = int(prevres), resnum = int(res)             # <<<<<<<<<<<<<<
 *     cdef basestring resname, prevresname, prevAtomtype, atomtype
 *     if abs(prevres_num - resnum) > 1:
 */
  __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_prevres); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_prevres_num = __pyx_t_2;
  __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_res); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_resnum = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":153
 *     cdef int prevres_num = int(prevres), resnum = int(res)
 *     cdef basestring resname, prevresname, prevAtomtype, atomtype
 *     if abs(prevres_num - resnum) > 1:             # <<<<<<<<<<<<<<
 *         return True
 *     resname = line[17:20]
 */
  __pyx_t_2 = abs((__pyx_v_prevres_num - __pyx_v_resnum)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 153, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 > 1) != 0);
  if (__pyx_t_3) {

    /* "AdaptivePELE/atomset/atomset.pyx":154
 *     cdef basestring resname, prevresname, prevAtomtype, atomtype
 *     if abs(prevres_num - resnum) > 1:
 *         return True             # <<<<<<<<<<<<<<
 *     resname = line[17:20]
 *     prevresname = prevLine[17:20]
 */
    __pyx_r = 1;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":153
 *     cdef int prevres_num = int(prevres), resnum = int(res)
 *     cdef basestring resname, prevresname, prevAtomtype, atomtype
 *     if abs(prevres_num - resnum) > 1:             # <<<<<<<<<<<<<<
 *         return True
 *     resname = line[17:20]
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":155
 *     if abs(prevres_num - resnum) > 1:
 *         return True
 *     resname = line[17:20]             # <<<<<<<<<<<<<<
 *     prevresname = prevLine[17:20]
 *     prevAtomtype = prevLine[0:6]
 */
  if (unlikely(__pyx_v_line == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 155, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_line, 17, 20); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_resname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":156
 *         return True
 *     resname = line[17:20]
 *     prevresname = prevLine[17:20]             # <<<<<<<<<<<<<<
 *     prevAtomtype = prevLine[0:6]
 *     atomtype = line[0:6]
 */
  if (unlikely(__pyx_v_prevLine == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 156, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_prevLine, 17, 20); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_prevresname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":157
 *     resname = line[17:20]
 *     prevresname = prevLine[17:20]
 *     prevAtomtype = prevLine[0:6]             # <<<<<<<<<<<<<<
 *     atomtype = line[0:6]
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):
 */
  if (unlikely(__pyx_v_prevLine == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 157, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_prevLine, 0, 6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_prevAtomtype = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":158
 *     prevresname = prevLine[17:20]
 *     prevAtomtype = prevLine[0:6]
 *     atomtype = line[0:6]             # <<<<<<<<<<<<<<
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):
 *         return True
 */
  if (unlikely(__pyx_v_line == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 158, __pyx_L1_error)
  }
  __pyx_t_1 = PySequence_GetSlice(__pyx_v_line, 0, 6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_atomtype = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":159
 *     prevAtomtype = prevLine[0:6]
 *     atomtype = line[0:6]
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):             # <<<<<<<<<<<<<<
 *         return True
 *     return False
 */
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_prevres, __pyx_v_res, Py_NE)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_n_u_HOH, __pyx_v_resname, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_5 != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_n_u_HOH, __pyx_v_prevresname, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (!__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_atomtype, __pyx_v_prevAtomtype, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_5 != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_prevAtomtype, __pyx_v_atomtype, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  if (__pyx_t_4) {
    __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_atomtype, __pyx_n_u_HETATM, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 159, __pyx_L1_error)
  }
  __pyx_t_5 = (__pyx_t_4 != 0);
  __pyx_t_3 = __pyx_t_5;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_3) {

    /* "AdaptivePELE/atomset/atomset.pyx":160
 *     atomtype = line[0:6]
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):
 *         return True             # <<<<<<<<<<<<<<
 *     return False
 * 
 */
    __pyx_r = 1;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":159
 *     prevAtomtype = prevLine[0:6]
 *     atomtype = line[0:6]
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):             # <<<<<<<<<<<<<<
 *         return True
 *     return False
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":161
 *     if prevres != res and (("HOH" == resname or "HOH" == prevresname) or (atomtype != prevAtomtype) or (prevAtomtype == atomtype == "HETATM")):
 *         return True
 *     return False             # <<<<<<<<<<<<<<
 * 
 * REGEX_PATTERN = re.compile("[0-9]|\+|\-")
 */
  __pyx_r = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":149
 * @cython.wraparound(False)
 * @cython.nonecheck(False)
 * cdef bint check_add_TER(basestring prevLine, basestring line):             # <<<<<<<<<<<<<<
 *     cdef basestring prevres = prevLine[22:26], res = line[22:26]
 *     cdef int prevres_num = int(prevres), resnum = int(res)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_WriteUnraisable("AdaptivePELE.atomset.atomset.check_add_TER", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_prevres);
  __Pyx_XDECREF(__pyx_v_res);
  __Pyx_XDECREF(__pyx_v_resname);
  __Pyx_XDECREF(__pyx_v_prevresname);
  __Pyx_XDECREF(__pyx_v_prevAtomtype);
  __Pyx_XDECREF(__pyx_v_atomtype);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":235
 *                     u"PB": 207.2,
 *                     u"U": 238.03}
 *     def __init__(self, basestring atomContent=u""):             # <<<<<<<<<<<<<<
 *         """ Create an atom from a pdb line
 * 
 */

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom___init__[] = " Create an atom from a pdb line\n\n            :param atomContent: Line of the pdb from which the atom will be created\n            :type atomContent: basestring\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_4Atom___init__;
#endif
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_atomContent = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_atomContent,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject*)__pyx_kp_u_);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomContent);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 235, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_atomContent = ((PyObject*)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 235, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomContent), (&PyBaseString_Type), 1, "atomContent", 1))) __PYX_ERR(0, 235, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom___init__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), __pyx_v_atomContent);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom___init__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_atomContent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  double __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":242
 *         """
 *         # Force string attributes to be unicode strings
 *         self.atomSerial = u""             # <<<<<<<<<<<<<<
 *         self.name = u""
 *         self.resname = u""
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->atomSerial);
  __Pyx_DECREF(__pyx_v_self->atomSerial);
  __pyx_v_self->atomSerial = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":243
 *         # Force string attributes to be unicode strings
 *         self.atomSerial = u""
 *         self.name = u""             # <<<<<<<<<<<<<<
 *         self.resname = u""
 *         self.resChain = u""
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":244
 *         self.atomSerial = u""
 *         self.name = u""
 *         self.resname = u""             # <<<<<<<<<<<<<<
 *         self.resChain = u""
 *         self.resnum = u""
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->resname);
  __Pyx_DECREF(__pyx_v_self->resname);
  __pyx_v_self->resname = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":245
 *         self.name = u""
 *         self.resname = u""
 *         self.resChain = u""             # <<<<<<<<<<<<<<
 *         self.resnum = u""
 *         self.type = u""
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->resChain);
  __Pyx_DECREF(__pyx_v_self->resChain);
  __pyx_v_self->resChain = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":246
 *         self.resname = u""
 *         self.resChain = u""
 *         self.resnum = u""             # <<<<<<<<<<<<<<
 *         self.type = u""
 *         # atomContent = atomContent.split()
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->resnum);
  __Pyx_DECREF(__pyx_v_self->resnum);
  __pyx_v_self->resnum = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":247
 *         self.resChain = u""
 *         self.resnum = u""
 *         self.type = u""             # <<<<<<<<<<<<<<
 *         # atomContent = atomContent.split()
 *         if len(atomContent) > 6 and (atomContent[:4] == u'ATOM' or atomContent[:6] == u'HETATM'):
 */
  __Pyx_INCREF(__pyx_kp_u_);
  __Pyx_GIVEREF(__pyx_kp_u_);
  __Pyx_GOTREF(__pyx_v_self->type);
  __Pyx_DECREF(__pyx_v_self->type);
  __pyx_v_self->type = ((PyObject*)__pyx_kp_u_);

  /* "AdaptivePELE/atomset/atomset.pyx":249
 *         self.type = u""
 *         # atomContent = atomContent.split()
 *         if len(atomContent) > 6 and (atomContent[:4] == u'ATOM' or atomContent[:6] == u'HETATM'):             # <<<<<<<<<<<<<<
 *             self.atomSerial = atomContent[6:11].strip()
 *             self.name = atomContent[12:16].strip()
 */
  __pyx_t_2 = PyObject_Length(__pyx_v_atomContent); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 249, __pyx_L1_error)
  __pyx_t_3 = ((__pyx_t_2 > 6) != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  if (unlikely(__pyx_v_atomContent == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 249, __pyx_L1_error)
  }
  __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomContent, 0, 4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_n_u_ATOM, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = (__pyx_t_3 != 0);
  if (!__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  if (unlikely(__pyx_v_atomContent == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 249, __pyx_L1_error)
  }
  __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomContent, 0, 6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_n_u_HETATM, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__pyx_t_5 != 0);
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":250
 *         # atomContent = atomContent.split()
 *         if len(atomContent) > 6 and (atomContent[:4] == u'ATOM' or atomContent[:6] == u'HETATM'):
 *             self.atomSerial = atomContent[6:11].strip()             # <<<<<<<<<<<<<<
 *             self.name = atomContent[12:16].strip()
 *             self.resname = atomContent[17:20].strip()
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 250, __pyx_L1_error)
    }
    __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomContent, 6, 11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 250, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->atomSerial);
    __Pyx_DECREF(__pyx_v_self->atomSerial);
    __pyx_v_self->atomSerial = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":251
 *         if len(atomContent) > 6 and (atomContent[:4] == u'ATOM' or atomContent[:6] == u'HETATM'):
 *             self.atomSerial = atomContent[6:11].strip()
 *             self.name = atomContent[12:16].strip()             # <<<<<<<<<<<<<<
 *             self.resname = atomContent[17:20].strip()
 *             self.resChain = atomContent[21]
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 251, __pyx_L1_error)
    }
    __pyx_t_7 = PySequence_GetSlice(__pyx_v_atomContent, 12, 16); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->name);
    __Pyx_DECREF(__pyx_v_self->name);
    __pyx_v_self->name = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":252
 *             self.atomSerial = atomContent[6:11].strip()
 *             self.name = atomContent[12:16].strip()
 *             self.resname = atomContent[17:20].strip()             # <<<<<<<<<<<<<<
 *             self.resChain = atomContent[21]
 *             self.resnum = atomContent[22:26].strip()
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 252, __pyx_L1_error)
    }
    __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomContent, 17, 20); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 252, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->resname);
    __Pyx_DECREF(__pyx_v_self->resname);
    __pyx_v_self->resname = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":253
 *             self.name = atomContent[12:16].strip()
 *             self.resname = atomContent[17:20].strip()
 *             self.resChain = atomContent[21]             # <<<<<<<<<<<<<<
 *             self.resnum = atomContent[22:26].strip()
 *             self.x = float(atomContent[30:38])
 */
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_atomContent, 21, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 253, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->resChain);
    __Pyx_DECREF(__pyx_v_self->resChain);
    __pyx_v_self->resChain = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":254
 *             self.resname = atomContent[17:20].strip()
 *             self.resChain = atomContent[21]
 *             self.resnum = atomContent[22:26].strip()             # <<<<<<<<<<<<<<
 *             self.x = float(atomContent[30:38])
 *             self.y = float(atomContent[38:46])
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 254, __pyx_L1_error)
    }
    __pyx_t_7 = PySequence_GetSlice(__pyx_v_atomContent, 22, 26); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 254, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->resnum);
    __Pyx_DECREF(__pyx_v_self->resnum);
    __pyx_v_self->resnum = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":255
 *             self.resChain = atomContent[21]
 *             self.resnum = atomContent[22:26].strip()
 *             self.x = float(atomContent[30:38])             # <<<<<<<<<<<<<<
 *             self.y = float(atomContent[38:46])
 *             self.z = float(atomContent[46:54])
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 255, __pyx_L1_error)
    }
    __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomContent, 30, 38); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_AsDouble(__pyx_t_4); if (unlikely(__pyx_t_8 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_self->x = __pyx_t_8;

    /* "AdaptivePELE/atomset/atomset.pyx":256
 *             self.resnum = atomContent[22:26].strip()
 *             self.x = float(atomContent[30:38])
 *             self.y = float(atomContent[38:46])             # <<<<<<<<<<<<<<
 *             self.z = float(atomContent[46:54])
 * 
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 256, __pyx_L1_error)
    }
    __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomContent, 38, 46); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_AsDouble(__pyx_t_4); if (unlikely(__pyx_t_8 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_self->y = __pyx_t_8;

    /* "AdaptivePELE/atomset/atomset.pyx":257
 *             self.x = float(atomContent[30:38])
 *             self.y = float(atomContent[38:46])
 *             self.z = float(atomContent[46:54])             # <<<<<<<<<<<<<<
 * 
 *             self.type = re.sub(self._chargePattern, u"", atomContent[76:80]).strip().upper()
 */
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 257, __pyx_L1_error)
    }
    __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomContent, 46, 54); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_AsDouble(__pyx_t_4); if (unlikely(__pyx_t_8 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 257, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_self->z = __pyx_t_8;

    /* "AdaptivePELE/atomset/atomset.pyx":259
 *             self.z = float(atomContent[46:54])
 * 
 *             self.type = re.sub(self._chargePattern, u"", atomContent[76:80]).strip().upper()             # <<<<<<<<<<<<<<
 *             if self.type in self._ATOM_WEIGHTS:
 *                 self.mass = self._ATOM_WEIGHTS[self.type]
 */
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_re); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sub); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_chargePattern); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (unlikely(__pyx_v_atomContent == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 259, __pyx_L1_error)
    }
    __pyx_t_11 = PySequence_GetSlice(__pyx_v_atomContent, 76, 80); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = NULL;
    __pyx_t_13 = 0;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_12)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
        __pyx_t_13 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_10)) {
      PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_9, __pyx_kp_u_, __pyx_t_11};
      __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_13, 3+__pyx_t_13); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) {
      PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_t_9, __pyx_kp_u_, __pyx_t_11};
      __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_13, 3+__pyx_t_13); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    } else
    #endif
    {
      __pyx_t_14 = PyTuple_New(3+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      if (__pyx_t_12) {
        __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_12); __pyx_t_12 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_13, __pyx_t_9);
      __Pyx_INCREF(__pyx_kp_u_);
      __Pyx_GIVEREF(__pyx_kp_u_);
      PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_13, __pyx_kp_u_);
      __Pyx_GIVEREF(__pyx_t_11);
      PyTuple_SET_ITEM(__pyx_t_14, 2+__pyx_t_13, __pyx_t_11);
      __pyx_t_9 = 0;
      __pyx_t_11 = 0;
      __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    }
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_strip); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_6 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_10);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_upper); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_10, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_10);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 259, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->type);
    __Pyx_DECREF(__pyx_v_self->type);
    __pyx_v_self->type = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":260
 * 
 *             self.type = re.sub(self._chargePattern, u"", atomContent[76:80]).strip().upper()
 *             if self.type in self._ATOM_WEIGHTS:             # <<<<<<<<<<<<<<
 *                 self.mass = self._ATOM_WEIGHTS[self.type]
 *             else:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_self->type, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 260, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = (__pyx_t_1 != 0);
    if (__pyx_t_3) {

      /* "AdaptivePELE/atomset/atomset.pyx":261
 *             self.type = re.sub(self._chargePattern, u"", atomContent[76:80]).strip().upper()
 *             if self.type in self._ATOM_WEIGHTS:
 *                 self.mass = self._ATOM_WEIGHTS[self.type]             # <<<<<<<<<<<<<<
 *             else:
 *                 print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 261, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_self->type); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 261, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_10); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 261, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_v_self->mass = __pyx_t_8;

      /* "AdaptivePELE/atomset/atomset.pyx":260
 * 
 *             self.type = re.sub(self._chargePattern, u"", atomContent[76:80]).strip().upper()
 *             if self.type in self._ATOM_WEIGHTS:             # <<<<<<<<<<<<<<
 *                 self.mass = self._ATOM_WEIGHTS[self.type]
 *             else:
 */
      goto __pyx_L7;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":263
 *                 self.mass = self._ATOM_WEIGHTS[self.type]
 *             else:
 *                 print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")             # <<<<<<<<<<<<<<
 *                 self.mass = self._ATOM_WEIGHTS[self.name[0]]
 * 
 */
    /*else*/ {
      if (__Pyx_PrintOne(0, __pyx_kp_u_WARNING_Information_about_atom_t) < 0) __PYX_ERR(0, 263, __pyx_L1_error)

      /* "AdaptivePELE/atomset/atomset.pyx":264
 *             else:
 *                 print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")
 *                 self.mass = self._ATOM_WEIGHTS[self.name[0]]             # <<<<<<<<<<<<<<
 * 
 *             if atomContent.startswith(u'ATOM'):
 */
      __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_self->name, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_t_6); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 264, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_self->mass = __pyx_t_8;
    }
    __pyx_L7:;

    /* "AdaptivePELE/atomset/atomset.pyx":266
 *                 self.mass = self._ATOM_WEIGHTS[self.name[0]]
 * 
 *             if atomContent.startswith(u'ATOM'):             # <<<<<<<<<<<<<<
 *                 self.protein = True
 *             else:
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_atomContent, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_6 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_10, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_ATOM);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 266, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_3) {

      /* "AdaptivePELE/atomset/atomset.pyx":267
 * 
 *             if atomContent.startswith(u'ATOM'):
 *                 self.protein = True             # <<<<<<<<<<<<<<
 *             else:
 *                 self.protein = False
 */
      __pyx_v_self->protein = 1;

      /* "AdaptivePELE/atomset/atomset.pyx":266
 *                 self.mass = self._ATOM_WEIGHTS[self.name[0]]
 * 
 *             if atomContent.startswith(u'ATOM'):             # <<<<<<<<<<<<<<
 *                 self.protein = True
 *             else:
 */
      goto __pyx_L8;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":269
 *                 self.protein = True
 *             else:
 *                 self.protein = False             # <<<<<<<<<<<<<<
 * 
 *             self.id = self.atomSerial + u":" + self.name + u":" + self.resname
 */
    /*else*/ {
      __pyx_v_self->protein = 0;
    }
    __pyx_L8:;

    /* "AdaptivePELE/atomset/atomset.pyx":271
 *                 self.protein = False
 * 
 *             self.id = self.atomSerial + u":" + self.name + u":" + self.resname             # <<<<<<<<<<<<<<
 *             # self.id = self.atomSerial
 * 
 */
    __pyx_t_6 = PyNumber_Add(__pyx_v_self->atomSerial, __pyx_kp_u__2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = PyNumber_Add(__pyx_t_6, __pyx_v_self->name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_t_4, __pyx_kp_u__2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Add(__pyx_t_6, __pyx_v_self->resname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_self->id);
    __Pyx_DECREF(__pyx_v_self->id);
    __pyx_v_self->id = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":249
 *         self.type = u""
 *         # atomContent = atomContent.split()
 *         if len(atomContent) > 6 and (atomContent[:4] == u'ATOM' or atomContent[:6] == u'HETATM'):             # <<<<<<<<<<<<<<
 *             self.atomSerial = atomContent[6:11].strip()
 *             self.name = atomContent[12:16].strip()
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":235
 *                     u"PB": 207.2,
 *                     u"U": 238.03}
 *     def __init__(self, basestring atomContent=u""):             # <<<<<<<<<<<<<<
 *         """ Create an atom from a pdb line
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":274
 *             # self.id = self.atomSerial
 * 
 *     def __getstate__(self):             # <<<<<<<<<<<<<<
 *         # Copy the object's state from
 *         state = {u"atomSerial": self.atomSerial, u"name": self.name, u"x": self.x,
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_3__getstate__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_3__getstate__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getstate__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2__getstate__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2__getstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_v_state = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getstate__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":276
 *     def __getstate__(self):
 *         # Copy the object's state from
 *         state = {u"atomSerial": self.atomSerial, u"name": self.name, u"x": self.x,             # <<<<<<<<<<<<<<
 *                  u"y": self.y, u"z": self.z, u"mass": self.mass, u"type": self.type,
 *                  u"resname": self.resname, u"resChain": self.resChain,
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_atomSerial, __pyx_v_self->atomSerial) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_x, __pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":277
 *         # Copy the object's state from
 *         state = {u"atomSerial": self.atomSerial, u"name": self.name, u"x": self.x,
 *                  u"y": self.y, u"z": self.z, u"mass": self.mass, u"type": self.type,             # <<<<<<<<<<<<<<
 *                  u"resname": self.resname, u"resChain": self.resChain,
 *                  u"resnum": self.resnum, u"protein": self.protein, u"id": self.id}
 */
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_y, __pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_z, __pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->mass); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_mass, __pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_type, __pyx_v_self->type) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":278
 *         state = {u"atomSerial": self.atomSerial, u"name": self.name, u"x": self.x,
 *                  u"y": self.y, u"z": self.z, u"mass": self.mass, u"type": self.type,
 *                  u"resname": self.resname, u"resChain": self.resChain,             # <<<<<<<<<<<<<<
 *                  u"resnum": self.resnum, u"protein": self.protein, u"id": self.id}
 *         return state
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_resname, __pyx_v_self->resname) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_resChain, __pyx_v_self->resChain) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":279
 *                  u"y": self.y, u"z": self.z, u"mass": self.mass, u"type": self.type,
 *                  u"resname": self.resname, u"resChain": self.resChain,
 *                  u"resnum": self.resnum, u"protein": self.protein, u"id": self.id}             # <<<<<<<<<<<<<<
 *         return state
 * 
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_resnum, __pyx_v_self->resnum) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->protein); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_protein, __pyx_t_2) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_id, __pyx_v_self->id) < 0) __PYX_ERR(0, 276, __pyx_L1_error)
  __pyx_v_state = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":280
 *                  u"resname": self.resname, u"resChain": self.resChain,
 *                  u"resnum": self.resnum, u"protein": self.protein, u"id": self.id}
 *         return state             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_state);
  __pyx_r = __pyx_v_state;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":274
 *             # self.id = self.atomSerial
 * 
 *     def __getstate__(self):             # <<<<<<<<<<<<<<
 *         # Copy the object's state from
 *         state = {u"atomSerial": self.atomSerial, u"name": self.name, u"x": self.x,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__getstate__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":283
 * 
 * 
 *     def __setstate__(self, state):             # <<<<<<<<<<<<<<
 *         # Restore instance attributes
 *         self.atomSerial = state[u'atomSerial']
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_5__setstate__(PyObject *__pyx_v_self, PyObject *__pyx_v_state); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_5__setstate__(PyObject *__pyx_v_self, PyObject *__pyx_v_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4__setstate__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4__setstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  double __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":285
 *     def __setstate__(self, state):
 *         # Restore instance attributes
 *         self.atomSerial = state[u'atomSerial']             # <<<<<<<<<<<<<<
 *         self.name = state[u'name']
 *         self.resname = state[u'resname']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_atomSerial); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atomSerial);
  __Pyx_DECREF(__pyx_v_self->atomSerial);
  __pyx_v_self->atomSerial = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":286
 *         # Restore instance attributes
 *         self.atomSerial = state[u'atomSerial']
 *         self.name = state[u'name']             # <<<<<<<<<<<<<<
 *         self.resname = state[u'resname']
 *         self.resnum = state[u'resnum']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":287
 *         self.atomSerial = state[u'atomSerial']
 *         self.name = state[u'name']
 *         self.resname = state[u'resname']             # <<<<<<<<<<<<<<
 *         self.resnum = state[u'resnum']
 *         self.resChain = state[u'resChain']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_resname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resname);
  __Pyx_DECREF(__pyx_v_self->resname);
  __pyx_v_self->resname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":288
 *         self.name = state[u'name']
 *         self.resname = state[u'resname']
 *         self.resnum = state[u'resnum']             # <<<<<<<<<<<<<<
 *         self.resChain = state[u'resChain']
 *         self.type = state[u'type']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_resnum); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resnum);
  __Pyx_DECREF(__pyx_v_self->resnum);
  __pyx_v_self->resnum = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":289
 *         self.resname = state[u'resname']
 *         self.resnum = state[u'resnum']
 *         self.resChain = state[u'resChain']             # <<<<<<<<<<<<<<
 *         self.type = state[u'type']
 *         self.id = state[u'id']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_resChain); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resChain);
  __Pyx_DECREF(__pyx_v_self->resChain);
  __pyx_v_self->resChain = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":290
 *         self.resnum = state[u'resnum']
 *         self.resChain = state[u'resChain']
 *         self.type = state[u'type']             # <<<<<<<<<<<<<<
 *         self.id = state[u'id']
 *         self.mass = state[u'mass']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->type);
  __Pyx_DECREF(__pyx_v_self->type);
  __pyx_v_self->type = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":291
 *         self.resChain = state[u'resChain']
 *         self.type = state[u'type']
 *         self.id = state[u'id']             # <<<<<<<<<<<<<<
 *         self.mass = state[u'mass']
 *         self.x = state[u'x']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->id);
  __Pyx_DECREF(__pyx_v_self->id);
  __pyx_v_self->id = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":292
 *         self.type = state[u'type']
 *         self.id = state[u'id']
 *         self.mass = state[u'mass']             # <<<<<<<<<<<<<<
 *         self.x = state[u'x']
 *         self.y = state[u'y']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_mass); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->mass = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":293
 *         self.id = state[u'id']
 *         self.mass = state[u'mass']
 *         self.x = state[u'x']             # <<<<<<<<<<<<<<
 *         self.y = state[u'y']
 *         self.z = state[u'z']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->x = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":294
 *         self.mass = state[u'mass']
 *         self.x = state[u'x']
 *         self.y = state[u'y']             # <<<<<<<<<<<<<<
 *         self.z = state[u'z']
 *         self.protein = state[u'protein']
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->y = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":295
 *         self.x = state[u'x']
 *         self.y = state[u'y']
 *         self.z = state[u'z']             # <<<<<<<<<<<<<<
 *         self.protein = state[u'protein']
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->z = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":296
 *         self.y = state[u'y']
 *         self.z = state[u'z']
 *         self.protein = state[u'protein']             # <<<<<<<<<<<<<<
 * 
 *     def equivalentResname(self, resname):
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_protein); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->protein = __pyx_t_3;

  /* "AdaptivePELE/atomset/atomset.pyx":283
 * 
 * 
 *     def __setstate__(self, state):             # <<<<<<<<<<<<<<
 *         # Restore instance attributes
 *         self.atomSerial = state[u'atomSerial']
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__setstate__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":298
 *         self.protein = state[u'protein']
 * 
 *     def equivalentResname(self, resname):             # <<<<<<<<<<<<<<
 *         return _AMINO_ACID_CODES[self.resname] == _AMINO_ACID_CODES[resname]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7equivalentResname(PyObject *__pyx_v_self, PyObject *__pyx_v_resname); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7equivalentResname(PyObject *__pyx_v_self, PyObject *__pyx_v_resname) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("equivalentResname (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6equivalentResname(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_resname));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6equivalentResname(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_resname) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("equivalentResname", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":299
 * 
 *     def equivalentResname(self, resname):
 *         return _AMINO_ACID_CODES[self.resname] == _AMINO_ACID_CODES[resname]             # <<<<<<<<<<<<<<
 * 
 *     def set_properties(self, bint isProtein, basestring atomSerial, basestring atomName, basestring resName, basestring resNum, float x, float y, float z, basestring element, basestring resChain):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_AMINO_ACID_CODES); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_self->resname); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_AMINO_ACID_CODES); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_resname); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":298
 *         self.protein = state[u'protein']
 * 
 *     def equivalentResname(self, resname):             # <<<<<<<<<<<<<<
 *         return _AMINO_ACID_CODES[self.resname] == _AMINO_ACID_CODES[resname]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.equivalentResname", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":301
 *         return _AMINO_ACID_CODES[self.resname] == _AMINO_ACID_CODES[resname]
 * 
 *     def set_properties(self, bint isProtein, basestring atomSerial, basestring atomName, basestring resName, basestring resNum, float x, float y, float z, basestring element, basestring resChain):             # <<<<<<<<<<<<<<
 *         self.atomSerial = atomSerial
 *         self.name = atomName
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_9set_properties(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_9set_properties(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_v_isProtein;
  PyObject *__pyx_v_atomSerial = 0;
  PyObject *__pyx_v_atomName = 0;
  PyObject *__pyx_v_resName = 0;
  PyObject *__pyx_v_resNum = 0;
  float __pyx_v_x;
  float __pyx_v_y;
  float __pyx_v_z;
  PyObject *__pyx_v_element = 0;
  PyObject *__pyx_v_resChain = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_properties (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_isProtein,&__pyx_n_s_atomSerial,&__pyx_n_s_atomName,&__pyx_n_s_resName,&__pyx_n_s_resNum,&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,&__pyx_n_s_element,&__pyx_n_s_resChain,0};
    PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_isProtein)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomSerial)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 1); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomName)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 2); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resName)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 3); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resNum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 4); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 5); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 6); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 7); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 8); __PYX_ERR(0, 301, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  9:
        if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resChain)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, 9); __PYX_ERR(0, 301, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_properties") < 0)) __PYX_ERR(0, 301, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
      values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
      values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
      values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
    }
    __pyx_v_isProtein = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_isProtein == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L3_error)
    __pyx_v_atomSerial = ((PyObject*)values[1]);
    __pyx_v_atomName = ((PyObject*)values[2]);
    __pyx_v_resName = ((PyObject*)values[3]);
    __pyx_v_resNum = ((PyObject*)values[4]);
    __pyx_v_x = __pyx_PyFloat_AsFloat(values[5]); if (unlikely((__pyx_v_x == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L3_error)
    __pyx_v_y = __pyx_PyFloat_AsFloat(values[6]); if (unlikely((__pyx_v_y == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L3_error)
    __pyx_v_z = __pyx_PyFloat_AsFloat(values[7]); if (unlikely((__pyx_v_z == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L3_error)
    __pyx_v_element = ((PyObject*)values[8]);
    __pyx_v_resChain = ((PyObject*)values[9]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_properties", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 301, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.set_properties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomSerial), (&PyBaseString_Type), 1, "atomSerial", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomName), (&PyBaseString_Type), 1, "atomName", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resName), (&PyBaseString_Type), 1, "resName", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resNum), (&PyBaseString_Type), 1, "resNum", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), (&PyBaseString_Type), 1, "element", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resChain), (&PyBaseString_Type), 1, "resChain", 1))) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8set_properties(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), __pyx_v_isProtein, __pyx_v_atomSerial, __pyx_v_atomName, __pyx_v_resName, __pyx_v_resNum, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_element, __pyx_v_resChain);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8set_properties(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, int __pyx_v_isProtein, PyObject *__pyx_v_atomSerial, PyObject *__pyx_v_atomName, PyObject *__pyx_v_resName, PyObject *__pyx_v_resNum, float __pyx_v_x, float __pyx_v_y, float __pyx_v_z, PyObject *__pyx_v_element, PyObject *__pyx_v_resChain) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  double __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_properties", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":302
 * 
 *     def set_properties(self, bint isProtein, basestring atomSerial, basestring atomName, basestring resName, basestring resNum, float x, float y, float z, basestring element, basestring resChain):
 *         self.atomSerial = atomSerial             # <<<<<<<<<<<<<<
 *         self.name = atomName
 *         self.resname = resName
 */
  __Pyx_INCREF(__pyx_v_atomSerial);
  __Pyx_GIVEREF(__pyx_v_atomSerial);
  __Pyx_GOTREF(__pyx_v_self->atomSerial);
  __Pyx_DECREF(__pyx_v_self->atomSerial);
  __pyx_v_self->atomSerial = __pyx_v_atomSerial;

  /* "AdaptivePELE/atomset/atomset.pyx":303
 *     def set_properties(self, bint isProtein, basestring atomSerial, basestring atomName, basestring resName, basestring resNum, float x, float y, float z, basestring element, basestring resChain):
 *         self.atomSerial = atomSerial
 *         self.name = atomName             # <<<<<<<<<<<<<<
 *         self.resname = resName
 *         self.resChain = resChain
 */
  __Pyx_INCREF(__pyx_v_atomName);
  __Pyx_GIVEREF(__pyx_v_atomName);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_atomName;

  /* "AdaptivePELE/atomset/atomset.pyx":304
 *         self.atomSerial = atomSerial
 *         self.name = atomName
 *         self.resname = resName             # <<<<<<<<<<<<<<
 *         self.resChain = resChain
 *         self.resnum = resNum
 */
  __Pyx_INCREF(__pyx_v_resName);
  __Pyx_GIVEREF(__pyx_v_resName);
  __Pyx_GOTREF(__pyx_v_self->resname);
  __Pyx_DECREF(__pyx_v_self->resname);
  __pyx_v_self->resname = __pyx_v_resName;

  /* "AdaptivePELE/atomset/atomset.pyx":305
 *         self.name = atomName
 *         self.resname = resName
 *         self.resChain = resChain             # <<<<<<<<<<<<<<
 *         self.resnum = resNum
 *         self.x = x
 */
  __Pyx_INCREF(__pyx_v_resChain);
  __Pyx_GIVEREF(__pyx_v_resChain);
  __Pyx_GOTREF(__pyx_v_self->resChain);
  __Pyx_DECREF(__pyx_v_self->resChain);
  __pyx_v_self->resChain = __pyx_v_resChain;

  /* "AdaptivePELE/atomset/atomset.pyx":306
 *         self.resname = resName
 *         self.resChain = resChain
 *         self.resnum = resNum             # <<<<<<<<<<<<<<
 *         self.x = x
 *         self.y = y
 */
  __Pyx_INCREF(__pyx_v_resNum);
  __Pyx_GIVEREF(__pyx_v_resNum);
  __Pyx_GOTREF(__pyx_v_self->resnum);
  __Pyx_DECREF(__pyx_v_self->resnum);
  __pyx_v_self->resnum = __pyx_v_resNum;

  /* "AdaptivePELE/atomset/atomset.pyx":307
 *         self.resChain = resChain
 *         self.resnum = resNum
 *         self.x = x             # <<<<<<<<<<<<<<
 *         self.y = y
 *         self.z = z
 */
  __pyx_v_self->x = __pyx_v_x;

  /* "AdaptivePELE/atomset/atomset.pyx":308
 *         self.resnum = resNum
 *         self.x = x
 *         self.y = y             # <<<<<<<<<<<<<<
 *         self.z = z
 * 
 */
  __pyx_v_self->y = __pyx_v_y;

  /* "AdaptivePELE/atomset/atomset.pyx":309
 *         self.x = x
 *         self.y = y
 *         self.z = z             # <<<<<<<<<<<<<<
 * 
 *         self.type = element
 */
  __pyx_v_self->z = __pyx_v_z;

  /* "AdaptivePELE/atomset/atomset.pyx":311
 *         self.z = z
 * 
 *         self.type = element             # <<<<<<<<<<<<<<
 *         if self.type in self._ATOM_WEIGHTS:
 *             self.mass = self._ATOM_WEIGHTS[self.type]
 */
  __Pyx_INCREF(__pyx_v_element);
  __Pyx_GIVEREF(__pyx_v_element);
  __Pyx_GOTREF(__pyx_v_self->type);
  __Pyx_DECREF(__pyx_v_self->type);
  __pyx_v_self->type = __pyx_v_element;

  /* "AdaptivePELE/atomset/atomset.pyx":312
 * 
 *         self.type = element
 *         if self.type in self._ATOM_WEIGHTS:             # <<<<<<<<<<<<<<
 *             self.mass = self._ATOM_WEIGHTS[self.type]
 *         else:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_self->type, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "AdaptivePELE/atomset/atomset.pyx":313
 *         self.type = element
 *         if self.type in self._ATOM_WEIGHTS:
 *             self.mass = self._ATOM_WEIGHTS[self.type]             # <<<<<<<<<<<<<<
 *         else:
 *             print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_self->type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_5 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_self->mass = __pyx_t_5;

    /* "AdaptivePELE/atomset/atomset.pyx":312
 * 
 *         self.type = element
 *         if self.type in self._ATOM_WEIGHTS:             # <<<<<<<<<<<<<<
 *             self.mass = self._ATOM_WEIGHTS[self.type]
 *         else:
 */
    goto __pyx_L3;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":315
 *             self.mass = self._ATOM_WEIGHTS[self.type]
 *         else:
 *             print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")             # <<<<<<<<<<<<<<
 *             self.mass = self._ATOM_WEIGHTS[self.name[0]]
 * 
 */
  /*else*/ {
    if (__Pyx_PrintOne(0, __pyx_kp_u_WARNING_Information_about_atom_t) < 0) __PYX_ERR(0, 315, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":316
 *         else:
 *             print("WARNING!: Information about atom type not available, trying to guess from its name, mass properties might be wrong.")
 *             self.mass = self._ATOM_WEIGHTS[self.name[0]]             # <<<<<<<<<<<<<<
 * 
 *         self.protein = isProtein
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ATOM_WEIGHTS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_self->name, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_t_6); if (unlikely((__pyx_t_5 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_v_self->mass = __pyx_t_5;
  }
  __pyx_L3:;

  /* "AdaptivePELE/atomset/atomset.pyx":318
 *             self.mass = self._ATOM_WEIGHTS[self.name[0]]
 * 
 *         self.protein = isProtein             # <<<<<<<<<<<<<<
 * 
 *         self.id = self.atomSerial + u":" + self.name + u":" + self.resname
 */
  __pyx_v_self->protein = __pyx_v_isProtein;

  /* "AdaptivePELE/atomset/atomset.pyx":320
 *         self.protein = isProtein
 * 
 *         self.id = self.atomSerial + u":" + self.name + u":" + self.resname             # <<<<<<<<<<<<<<
 * 
 *     def isHeavyAtom(self):
 */
  __pyx_t_6 = PyNumber_Add(__pyx_v_self->atomSerial, __pyx_kp_u__2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = PyNumber_Add(__pyx_t_6, __pyx_v_self->name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_t_1, __pyx_kp_u__2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_6, __pyx_v_self->resname); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->id);
  __Pyx_DECREF(__pyx_v_self->id);
  __pyx_v_self->id = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":301
 *         return _AMINO_ACID_CODES[self.resname] == _AMINO_ACID_CODES[resname]
 * 
 *     def set_properties(self, bint isProtein, basestring atomSerial, basestring atomName, basestring resName, basestring resNum, float x, float y, float z, basestring element, basestring resChain):             # <<<<<<<<<<<<<<
 *         self.atomSerial = atomSerial
 *         self.name = atomName
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.set_properties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":322
 *         self.id = self.atomSerial + u":" + self.name + u":" + self.resname
 * 
 *     def isHeavyAtom(self):             # <<<<<<<<<<<<<<
 *        """
 *             Check if Atom is a heavy atom
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_11isHeavyAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_10isHeavyAtom[] = "\n            Check if Atom is a heavy atom\n\n            :returns: bool -- True if Atom is heavy atom, false otherwise\n       ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_11isHeavyAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isHeavyAtom (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10isHeavyAtom(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10isHeavyAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isHeavyAtom", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":328
 *             :returns: bool -- True if Atom is heavy atom, false otherwise
 *        """
 *        return self.type != 'H'             # <<<<<<<<<<<<<<
 * 
 *     def isProtein(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->type, __pyx_n_u_H, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 328, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":322
 *         self.id = self.atomSerial + u":" + self.name + u":" + self.resname
 * 
 *     def isHeavyAtom(self):             # <<<<<<<<<<<<<<
 *        """
 *             Check if Atom is a heavy atom
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.isHeavyAtom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":330
 *        return self.type != 'H'
 * 
 *     def isProtein(self):             # <<<<<<<<<<<<<<
 *         """
 *             Check if Atom is a protein atom
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_13isProtein(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_12isProtein[] = "\n            Check if Atom is a protein atom\n\n            :returns: bool -- True if Atom is a protein atom, false otherwise\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_13isProtein(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isProtein (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_12isProtein(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_12isProtein(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isProtein", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":336
 *             :returns: bool -- True if Atom is a protein atom, false otherwise
 *         """
 *         return self.protein             # <<<<<<<<<<<<<<
 * 
 *     def isHeteroAtom(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->protein); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":330
 *        return self.type != 'H'
 * 
 *     def isProtein(self):             # <<<<<<<<<<<<<<
 *         """
 *             Check if Atom is a protein atom
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.isProtein", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":338
 *         return self.protein
 * 
 *     def isHeteroAtom(self):             # <<<<<<<<<<<<<<
 *         """
 *             Check if Atom is an hetero atom
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_15isHeteroAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_14isHeteroAtom[] = "\n            Check if Atom is an hetero atom\n\n            :returns: bool -- True if Atom is an hetero atom, false otherwise\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_15isHeteroAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isHeteroAtom (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_14isHeteroAtom(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_14isHeteroAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isHeteroAtom", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":344
 *             :returns: bool -- True if Atom is an hetero atom, false otherwise
 *         """
 *         return not self.protein             # <<<<<<<<<<<<<<
 * 
 *     def printAtom(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((!(__pyx_v_self->protein != 0))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":338
 *         return self.protein
 * 
 *     def isHeteroAtom(self):             # <<<<<<<<<<<<<<
 *         """
 *             Check if Atom is an hetero atom
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.isHeteroAtom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":346
 *         return not self.protein
 * 
 *     def printAtom(self):             # <<<<<<<<<<<<<<
 *         """
 *             Print Atom information
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_17printAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_16printAtom[] = "\n            Print Atom information\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_17printAtom(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printAtom (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_16printAtom(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_16printAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printAtom", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":350
 *             Print Atom information
 *         """
 *         print self.atomSerial, self.name, self.resname, self.resChain, self.resnum, self.x, self.y, self.z, self.type, self.mass             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, Atom atom2, int op):
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->mass); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(10); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_v_self->atomSerial);
  __Pyx_GIVEREF(__pyx_v_self->atomSerial);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_self->atomSerial);
  __Pyx_INCREF(__pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_self->name);
  __Pyx_INCREF(__pyx_v_self->resname);
  __Pyx_GIVEREF(__pyx_v_self->resname);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_self->resname);
  __Pyx_INCREF(__pyx_v_self->resChain);
  __Pyx_GIVEREF(__pyx_v_self->resChain);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_self->resChain);
  __Pyx_INCREF(__pyx_v_self->resnum);
  __Pyx_GIVEREF(__pyx_v_self->resnum);
  PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_v_self->resnum);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 6, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->type);
  __Pyx_GIVEREF(__pyx_v_self->type);
  PyTuple_SET_ITEM(__pyx_t_5, 8, __pyx_v_self->type);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 9, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, __pyx_t_5, 1) < 0) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":346
 *         return not self.protein
 * 
 *     def printAtom(self):             # <<<<<<<<<<<<<<
 *         """
 *             Print Atom information
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.printAtom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":352
 *         print self.atomSerial, self.name, self.resname, self.resChain, self.resnum, self.x, self.y, self.z, self.type, self.mass
 * 
 *     def __richcmp__(self, Atom atom2, int op):             # <<<<<<<<<<<<<<
 *         if op == 2:
 *             #equality
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_19__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_atom2, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_19__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_atom2, int __pyx_v_op) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atom2), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom, 1, "atom2", 0))) __PYX_ERR(0, 352, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_18__richcmp__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_atom2), ((int)__pyx_v_op));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_18__richcmp__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom2, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__richcmp__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":353
 * 
 *     def __richcmp__(self, Atom atom2, int op):
 *         if op == 2:             # <<<<<<<<<<<<<<
 *             #equality
 *             if self.name != atom2.name:
 */
  switch (__pyx_v_op) {
    case 2:

    /* "AdaptivePELE/atomset/atomset.pyx":355
 *         if op == 2:
 *             #equality
 *             if self.name != atom2.name:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.atomSerial != atom2.atomSerial:
 */
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->name, __pyx_v_atom2->name, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 355, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "AdaptivePELE/atomset/atomset.pyx":356
 *             #equality
 *             if self.name != atom2.name:
 *                 return False             # <<<<<<<<<<<<<<
 *             if self.atomSerial != atom2.atomSerial:
 *                 return False
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":355
 *         if op == 2:
 *             #equality
 *             if self.name != atom2.name:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.atomSerial != atom2.atomSerial:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":357
 *             if self.name != atom2.name:
 *                 return False
 *             if self.atomSerial != atom2.atomSerial:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.protein and atom2.protein:
 */
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->atomSerial, __pyx_v_atom2->atomSerial, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 357, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":358
 *                 return False
 *             if self.atomSerial != atom2.atomSerial:
 *                 return False             # <<<<<<<<<<<<<<
 *             if self.protein and atom2.protein:
 *                 if not self.equivalentResname(atom2.resname):
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":357
 *             if self.name != atom2.name:
 *                 return False
 *             if self.atomSerial != atom2.atomSerial:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.protein and atom2.protein:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":359
 *             if self.atomSerial != atom2.atomSerial:
 *                 return False
 *             if self.protein and atom2.protein:             # <<<<<<<<<<<<<<
 *                 if not self.equivalentResname(atom2.resname):
 *                     return False
 */
    __pyx_t_2 = (__pyx_v_self->protein != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_2 = (__pyx_v_atom2->protein != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":360
 *                 return False
 *             if self.protein and atom2.protein:
 *                 if not self.equivalentResname(atom2.resname):             # <<<<<<<<<<<<<<
 *                     return False
 *             else:
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_equivalentResname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 360, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_atom2->resname) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_atom2->resname);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 360, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_2 = ((!__pyx_t_1) != 0);
      if (__pyx_t_2) {

        /* "AdaptivePELE/atomset/atomset.pyx":361
 *             if self.protein and atom2.protein:
 *                 if not self.equivalentResname(atom2.resname):
 *                     return False             # <<<<<<<<<<<<<<
 *             else:
 *                 if self.resname != atom2.resname:
 */
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(Py_False);
        __pyx_r = Py_False;
        goto __pyx_L0;

        /* "AdaptivePELE/atomset/atomset.pyx":360
 *                 return False
 *             if self.protein and atom2.protein:
 *                 if not self.equivalentResname(atom2.resname):             # <<<<<<<<<<<<<<
 *                     return False
 *             else:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":359
 *             if self.atomSerial != atom2.atomSerial:
 *                 return False
 *             if self.protein and atom2.protein:             # <<<<<<<<<<<<<<
 *                 if not self.equivalentResname(atom2.resname):
 *                     return False
 */
      goto __pyx_L5;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":363
 *                     return False
 *             else:
 *                 if self.resname != atom2.resname:             # <<<<<<<<<<<<<<
 *                     return False
 *             return True
 */
    /*else*/ {
      __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->resname, __pyx_v_atom2->resname, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 363, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_2 != 0);
      if (__pyx_t_1) {

        /* "AdaptivePELE/atomset/atomset.pyx":364
 *             else:
 *                 if self.resname != atom2.resname:
 *                     return False             # <<<<<<<<<<<<<<
 *             return True
 *         elif op == 3:
 */
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(Py_False);
        __pyx_r = Py_False;
        goto __pyx_L0;

        /* "AdaptivePELE/atomset/atomset.pyx":363
 *                     return False
 *             else:
 *                 if self.resname != atom2.resname:             # <<<<<<<<<<<<<<
 *                     return False
 *             return True
 */
      }
    }
    __pyx_L5:;

    /* "AdaptivePELE/atomset/atomset.pyx":365
 *                 if self.resname != atom2.resname:
 *                     return False
 *             return True             # <<<<<<<<<<<<<<
 *         elif op == 3:
 *             if self.name == atom2.name:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":353
 * 
 *     def __richcmp__(self, Atom atom2, int op):
 *         if op == 2:             # <<<<<<<<<<<<<<
 *             #equality
 *             if self.name != atom2.name:
 */
    break;
    case 3:

    /* "AdaptivePELE/atomset/atomset.pyx":367
 *             return True
 *         elif op == 3:
 *             if self.name == atom2.name:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.atomSerial == atom2.atomSerial:
 */
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->name, __pyx_v_atom2->name, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 367, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "AdaptivePELE/atomset/atomset.pyx":368
 *         elif op == 3:
 *             if self.name == atom2.name:
 *                 return False             # <<<<<<<<<<<<<<
 *             if self.atomSerial == atom2.atomSerial:
 *                 return False
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":367
 *             return True
 *         elif op == 3:
 *             if self.name == atom2.name:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.atomSerial == atom2.atomSerial:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":369
 *             if self.name == atom2.name:
 *                 return False
 *             if self.atomSerial == atom2.atomSerial:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.protein and atom2.protein:
 */
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->atomSerial, __pyx_v_atom2->atomSerial, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 369, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":370
 *                 return False
 *             if self.atomSerial == atom2.atomSerial:
 *                 return False             # <<<<<<<<<<<<<<
 *             if self.protein and atom2.protein:
 *                 if self.equivalentResname(atom2.resname):
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":369
 *             if self.name == atom2.name:
 *                 return False
 *             if self.atomSerial == atom2.atomSerial:             # <<<<<<<<<<<<<<
 *                 return False
 *             if self.protein and atom2.protein:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":371
 *             if self.atomSerial == atom2.atomSerial:
 *                 return False
 *             if self.protein and atom2.protein:             # <<<<<<<<<<<<<<
 *                 if self.equivalentResname(atom2.resname):
 *                     return False
 */
    __pyx_t_2 = (__pyx_v_self->protein != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_2 = (__pyx_v_atom2->protein != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L13_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":372
 *                 return False
 *             if self.protein and atom2.protein:
 *                 if self.equivalentResname(atom2.resname):             # <<<<<<<<<<<<<<
 *                     return False
 *             else:
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_equivalentResname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 372, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_atom2->resname) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_atom2->resname);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 372, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 372, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {

        /* "AdaptivePELE/atomset/atomset.pyx":373
 *             if self.protein and atom2.protein:
 *                 if self.equivalentResname(atom2.resname):
 *                     return False             # <<<<<<<<<<<<<<
 *             else:
 *                 if self.resname == atom2.resname:
 */
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(Py_False);
        __pyx_r = Py_False;
        goto __pyx_L0;

        /* "AdaptivePELE/atomset/atomset.pyx":372
 *                 return False
 *             if self.protein and atom2.protein:
 *                 if self.equivalentResname(atom2.resname):             # <<<<<<<<<<<<<<
 *                     return False
 *             else:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":371
 *             if self.atomSerial == atom2.atomSerial:
 *                 return False
 *             if self.protein and atom2.protein:             # <<<<<<<<<<<<<<
 *                 if self.equivalentResname(atom2.resname):
 *                     return False
 */
      goto __pyx_L12;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":375
 *                     return False
 *             else:
 *                 if self.resname == atom2.resname:             # <<<<<<<<<<<<<<
 *                     return False
 *             return True
 */
    /*else*/ {
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->resname, __pyx_v_atom2->resname, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 375, __pyx_L1_error)
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {

        /* "AdaptivePELE/atomset/atomset.pyx":376
 *             else:
 *                 if self.resname == atom2.resname:
 *                     return False             # <<<<<<<<<<<<<<
 *             return True
 *         elif op == 1:
 */
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(Py_False);
        __pyx_r = Py_False;
        goto __pyx_L0;

        /* "AdaptivePELE/atomset/atomset.pyx":375
 *                     return False
 *             else:
 *                 if self.resname == atom2.resname:             # <<<<<<<<<<<<<<
 *                     return False
 *             return True
 */
      }
    }
    __pyx_L12:;

    /* "AdaptivePELE/atomset/atomset.pyx":377
 *                 if self.resname == atom2.resname:
 *                     return False
 *             return True             # <<<<<<<<<<<<<<
 *         elif op == 1:
 *             if self.id == atom2.id:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":366
 *                     return False
 *             return True
 *         elif op == 3:             # <<<<<<<<<<<<<<
 *             if self.name == atom2.name:
 *                 return False
 */
    break;
    case 1:

    /* "AdaptivePELE/atomset/atomset.pyx":379
 *             return True
 *         elif op == 1:
 *             if self.id == atom2.id:             # <<<<<<<<<<<<<<
 *                 return True
 *             else:
 */
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->id, __pyx_v_atom2->id, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 379, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":380
 *         elif op == 1:
 *             if self.id == atom2.id:
 *                 return True             # <<<<<<<<<<<<<<
 *             else:
 *                 return self.serial < atom2.serial
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":379
 *             return True
 *         elif op == 1:
 *             if self.id == atom2.id:             # <<<<<<<<<<<<<<
 *                 return True
 *             else:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":382
 *                 return True
 *             else:
 *                 return self.serial < atom2.serial             # <<<<<<<<<<<<<<
 *         elif op == 5:
 *             if self.id == atom2.id:
 */
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serial); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom2), __pyx_n_s_serial); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 382, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 382, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L0;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":378
 *                     return False
 *             return True
 *         elif op == 1:             # <<<<<<<<<<<<<<
 *             if self.id == atom2.id:
 *                 return True
 */
    break;
    case 5:

    /* "AdaptivePELE/atomset/atomset.pyx":384
 *                 return self.serial < atom2.serial
 *         elif op == 5:
 *             if self.id == atom2.id:             # <<<<<<<<<<<<<<
 *                 return True
 *             else:
 */
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->id, __pyx_v_atom2->id, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 384, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "AdaptivePELE/atomset/atomset.pyx":385
 *         elif op == 5:
 *             if self.id == atom2.id:
 *                 return True             # <<<<<<<<<<<<<<
 *             else:
 *                 return self.serial > atom2.serial
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":384
 *                 return self.serial < atom2.serial
 *         elif op == 5:
 *             if self.id == atom2.id:             # <<<<<<<<<<<<<<
 *                 return True
 *             else:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":387
 *                 return True
 *             else:
 *                 return self.serial > atom2.serial             # <<<<<<<<<<<<<<
 *         elif op == 0:
 *             return self.serial < atom2.serial
 */
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serial); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom2), __pyx_n_s_serial); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 387, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":383
 *             else:
 *                 return self.serial < atom2.serial
 *         elif op == 5:             # <<<<<<<<<<<<<<
 *             if self.id == atom2.id:
 *                 return True
 */
    break;
    case 0:

    /* "AdaptivePELE/atomset/atomset.pyx":389
 *                 return self.serial > atom2.serial
 *         elif op == 0:
 *             return self.serial < atom2.serial             # <<<<<<<<<<<<<<
 *         elif op == 4:
 *             return self.serial > atom2.serial
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serial); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom2), __pyx_n_s_serial); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":388
 *             else:
 *                 return self.serial > atom2.serial
 *         elif op == 0:             # <<<<<<<<<<<<<<
 *             return self.serial < atom2.serial
 *         elif op == 4:
 */
    break;
    case 4:

    /* "AdaptivePELE/atomset/atomset.pyx":391
 *             return self.serial < atom2.serial
 *         elif op == 4:
 *             return self.serial > atom2.serial             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serial); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 391, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom2), __pyx_n_s_serial); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 391, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 391, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":390
 *         elif op == 0:
 *             return self.serial < atom2.serial
 *         elif op == 4:             # <<<<<<<<<<<<<<
 *             return self.serial > atom2.serial
 * 
 */
    break;
    default: break;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":352
 *         print self.atomSerial, self.name, self.resname, self.resChain, self.resnum, self.x, self.y, self.z, self.type, self.mass
 * 
 *     def __richcmp__(self, Atom atom2, int op):             # <<<<<<<<<<<<<<
 *         if op == 2:
 *             #equality
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":393
 *             return self.serial > atom2.serial
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,
 *                                                     self.resChain, self.resnum,
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_21__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_21__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_20__str__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_20__str__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":394
 * 
 *     def __str__(self):
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,             # <<<<<<<<<<<<<<
 *                                                     self.resChain, self.resnum,
 *                                                     self.x, self.y, self.z,
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(17); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->id), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->atomSerial), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_kp_u__4);

  /* "AdaptivePELE/atomset/atomset.pyx":395
 *     def __str__(self):
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,
 *                                                     self.resChain, self.resnum,             # <<<<<<<<<<<<<<
 *                                                     self.x, self.y, self.z,
 *                                                     self.type, self.mass)
 */
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->resChain), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->resnum), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__5);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__5);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_kp_u__5);

  /* "AdaptivePELE/atomset/atomset.pyx":396
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,
 *                                                     self.resChain, self.resnum,
 *                                                     self.x, self.y, self.z,             # <<<<<<<<<<<<<<
 *                                                     self.type, self.mass)
 * 
 */
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_Format(__pyx_t_4, __pyx_n_u_f); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__6);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__6);
  PyTuple_SET_ITEM(__pyx_t_1, 9, __pyx_kp_u__6);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_Format(__pyx_t_5, __pyx_n_u_f); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 10, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__6);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__6);
  PyTuple_SET_ITEM(__pyx_t_1, 11, __pyx_kp_u__6);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_Format(__pyx_t_4, __pyx_n_u_f); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 12, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__7);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__7);
  PyTuple_SET_ITEM(__pyx_t_1, 13, __pyx_kp_u__7);

  /* "AdaptivePELE/atomset/atomset.pyx":397
 *                                                     self.resChain, self.resnum,
 *                                                     self.x, self.y, self.z,
 *                                                     self.type, self.mass)             # <<<<<<<<<<<<<<
 * 
 *     def getAtomCoords(self):
 */
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Unicode(__pyx_v_self->type), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 14, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 15, __pyx_kp_u__4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->mass); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_Format(__pyx_t_5, __pyx_n_u_f); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 16, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":394
 * 
 *     def __str__(self):
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,             # <<<<<<<<<<<<<<
 *                                                     self.resChain, self.resnum,
 *                                                     self.x, self.y, self.z,
 */
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 17, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":393
 *             return self.serial > atom2.serial
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return u"%s: %s %s %s [%f, %f, %f] %s %f" % (self.id, self.atomSerial,
 *                                                     self.resChain, self.resnum,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":399
 *                                                     self.type, self.mass)
 * 
 *     def getAtomCoords(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the coordinates of the atom
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_23getAtomCoords(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_22getAtomCoords[] = "\n            Get the coordinates of the atom\n\n            :returns: numpy.Array -- Array with the coordinate of the atom\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_23getAtomCoords(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getAtomCoords (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_22getAtomCoords(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_22getAtomCoords(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getAtomCoords", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":405
 *             :returns: numpy.Array -- Array with the coordinate of the atom
 *         """
 *         return np.array([self.x, self.y, self.z])             # <<<<<<<<<<<<<<
 * 
 *     def squaredDistance(self, Atom atom2):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyList_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_2);
  PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_4);
  PyList_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyList_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":399
 *                                                     self.type, self.mass)
 * 
 *     def getAtomCoords(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the coordinates of the atom
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.getAtomCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":407
 *         return np.array([self.x, self.y, self.z])
 * 
 *     def squaredDistance(self, Atom atom2):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the squared distance between two atoms
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_25squaredDistance(PyObject *__pyx_v_self, PyObject *__pyx_v_atom2); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_24squaredDistance[] = "\n            Calculate the squared distance between two atoms\n\n            :param atom2: Second Atom to whom the distance will be calculated\n            :type atom2: Atom\n            :returns: float -- The distance between the atoms\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_25squaredDistance(PyObject *__pyx_v_self, PyObject *__pyx_v_atom2) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("squaredDistance (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atom2), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom, 1, "atom2", 0))) __PYX_ERR(0, 407, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_24squaredDistance(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_atom2));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_24squaredDistance(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom2) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("squaredDistance", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":415
 *             :returns: float -- The distance between the atoms
 *         """
 *         return (self.x - atom2.x)**2 + (self.y - atom2.y)**2 + (self.z - atom2.z)**2             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(((pow((__pyx_v_self->x - __pyx_v_atom2->x), 2.0) + pow((__pyx_v_self->y - __pyx_v_atom2->y), 2.0)) + pow((__pyx_v_self->z - __pyx_v_atom2->z), 2.0))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":407
 *         return np.array([self.x, self.y, self.z])
 * 
 *     def squaredDistance(self, Atom atom2):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the squared distance between two atoms
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.squaredDistance", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":2
 * cdef class Atom:
 *     cdef public basestring atomSerial, name, resname, resChain, resnum, type, id             # <<<<<<<<<<<<<<
 *     cdef public double x, y, z, mass
 *     cdef public bint protein
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->atomSerial);
  __pyx_r = __pyx_v_self->atomSerial;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atomSerial);
  __Pyx_DECREF(__pyx_v_self->atomSerial);
  __pyx_v_self->atomSerial = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.atomSerial.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->atomSerial);
  __Pyx_DECREF(__pyx_v_self->atomSerial);
  __pyx_v_self->atomSerial = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4name_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->resname);
  __pyx_r = __pyx_v_self->resname;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resname);
  __Pyx_DECREF(__pyx_v_self->resname);
  __pyx_v_self->resname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.resname.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->resname);
  __Pyx_DECREF(__pyx_v_self->resname);
  __pyx_v_self->resname = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->resChain);
  __pyx_r = __pyx_v_self->resChain;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resChain);
  __Pyx_DECREF(__pyx_v_self->resChain);
  __pyx_v_self->resChain = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.resChain.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->resChain);
  __Pyx_DECREF(__pyx_v_self->resChain);
  __pyx_v_self->resChain = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->resnum);
  __pyx_r = __pyx_v_self->resnum;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->resnum);
  __Pyx_DECREF(__pyx_v_self->resnum);
  __pyx_v_self->resnum = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.resnum.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->resnum);
  __Pyx_DECREF(__pyx_v_self->resnum);
  __pyx_v_self->resnum = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->type);
  __pyx_r = __pyx_v_self->type;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->type);
  __Pyx_DECREF(__pyx_v_self->type);
  __pyx_v_self->type = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4type_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->type);
  __Pyx_DECREF(__pyx_v_self->type);
  __pyx_v_self->type = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->id);
  __pyx_r = __pyx_v_self->id;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->id);
  __Pyx_DECREF(__pyx_v_self->id);
  __pyx_v_self->id = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_2id_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->id);
  __Pyx_DECREF(__pyx_v_self->id);
  __pyx_v_self->id = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":3
 * cdef class Atom:
 *     cdef public basestring atomSerial, name, resname, resChain, resnum, type, id
 *     cdef public double x, y, z, mass             # <<<<<<<<<<<<<<
 *     cdef public bint protein
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1x_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1y_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_1z_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->mass); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.mass.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L1_error)
  __pyx_v_self->mass = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.mass.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":4
 *     cdef public basestring atomSerial, name, resname, resChain, resnum, type, id
 *     cdef public double x, y, z, mass
 *     cdef public bint protein             # <<<<<<<<<<<<<<
 * 
 * cdef class PDB:
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->protein); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.protein.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 4, __pyx_L1_error)
  __pyx_v_self->protein = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.protein.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_27__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_27__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_26__reduce_cython__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_26__reduce_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.atomSerial, self.id, self.mass, self.name, self.protein, self.resChain, self.resname, self.resnum, self.type, self.x, self.y, self.z)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->mass); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->protein); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(12); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(__pyx_v_self->atomSerial);
  __Pyx_GIVEREF(__pyx_v_self->atomSerial);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_self->atomSerial);
  __Pyx_INCREF(__pyx_v_self->id);
  __Pyx_GIVEREF(__pyx_v_self->id);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_self->id);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->resChain);
  __Pyx_GIVEREF(__pyx_v_self->resChain);
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_v_self->resChain);
  __Pyx_INCREF(__pyx_v_self->resname);
  __Pyx_GIVEREF(__pyx_v_self->resname);
  PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_v_self->resname);
  __Pyx_INCREF(__pyx_v_self->resnum);
  __Pyx_GIVEREF(__pyx_v_self->resnum);
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_v_self->resnum);
  __Pyx_INCREF(__pyx_v_self->type);
  __Pyx_GIVEREF(__pyx_v_self->type);
  PyTuple_SET_ITEM(__pyx_t_6, 8, __pyx_v_self->type);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 10, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 11, __pyx_t_5);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.atomSerial, self.id, self.mass, self.name, self.protein, self.resChain, self.resname, self.resnum, self.type, self.x, self.y, self.z)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_6 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v__dict = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "(tree fragment)":7
 *     state = (self.atomSerial, self.id, self.mass, self.name, self.protein, self.resChain, self.resname, self.resnum, self.type, self.x, self.y, self.z)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_7 = (__pyx_v__dict != Py_None);
  __pyx_t_8 = (__pyx_t_7 != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__dict);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.atomSerial is not None or self.id is not None or self.name is not None or self.resChain is not None or self.resname is not None or self.resnum is not None or self.type is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.atomSerial, self.id, self.mass, self.name, self.protein, self.resChain, self.resname, self.resnum, self.type, self.x, self.y, self.z)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.atomSerial is not None or self.id is not None or self.name is not None or self.resChain is not None or self.resname is not None or self.resnum is not None or self.type is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, None), state
 */
  /*else*/ {
    __pyx_t_7 = (__pyx_v_self->atomSerial != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->id != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->name != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->resChain != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->resname != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    if (!__pyx_t_9) {
    } else {
      __pyx_t_8 = __pyx_t_9;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_9 = (__pyx_v_self->resnum != ((PyObject*)Py_None));
    __pyx_t_7 = (__pyx_t_9 != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_8 = __pyx_t_7;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_7 = (__pyx_v_self->type != ((PyObject*)Py_None));
    __pyx_t_9 = (__pyx_t_7 != 0);
    __pyx_t_8 = __pyx_t_9;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_8;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.atomSerial is not None or self.id is not None or self.name is not None or self.resChain is not None or self.resname is not None or self.resnum is not None or self.type is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, None), state
 *     else:
 */
  __pyx_t_8 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_8) {

    /* "(tree fragment)":13
 *         use_setstate = self.atomSerial is not None or self.id is not None or self.name is not None or self.resChain is not None or self.resname is not None or self.resnum is not None or self.type is not None
 *     if use_setstate:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Atom); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_14519438);
    __Pyx_GIVEREF(__pyx_int_14519438);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_14519438);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 2, Py_None);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_state);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.atomSerial is not None or self.id is not None or self.name is not None or self.resChain is not None or self.resname is not None or self.resnum is not None or self.type is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, None), state
 *     else:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_Atom__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Atom); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_14519438);
    __Pyx_GIVEREF(__pyx_int_14519438);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_14519438);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_state);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_Atom__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_29__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_29__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_28__setstate_cython__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4Atom_28__setstate_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_Atom__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_Atom__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_Atom, (type(self), 0x0dd8c8e, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_Atom__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.Atom.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":434
 * 
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         """
 *             Object that will contain the information of a PDB file. Has to call
 */

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB___init__[] = "\n            Object that will contain the information of a PDB file. Has to call\n            the initialise method to load the file\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_3PDB___init__;
#endif
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB___init__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB___init__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":439
 *             the initialise method to load the file
 *         """
 *         self.atoms = {}             # <<<<<<<<<<<<<<
 *         # {atomId: atom, ...}
 *         # Where atomId := serial:atomName:resName
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atoms);
  __Pyx_DECREF(__pyx_v_self->atoms);
  __pyx_v_self->atoms = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":442
 *         # {atomId: atom, ...}
 *         # Where atomId := serial:atomName:resName
 *         self.totalMass = 0             # <<<<<<<<<<<<<<
 *         # ensure every string is unicode
 *         self.pdb = None
 */
  __pyx_v_self->totalMass = 0.0;

  /* "AdaptivePELE/atomset/atomset.pyx":444
 *         self.totalMass = 0
 *         # ensure every string is unicode
 *         self.pdb = None             # <<<<<<<<<<<<<<
 *         self.com = None
 *         self.centroid = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = Py_None;

  /* "AdaptivePELE/atomset/atomset.pyx":445
 *         # ensure every string is unicode
 *         self.pdb = None
 *         self.com = None             # <<<<<<<<<<<<<<
 *         self.centroid = None
 *         self.ispdb = False
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->com);
  __Pyx_DECREF(__pyx_v_self->com);
  __pyx_v_self->com = ((PyObject*)Py_None);

  /* "AdaptivePELE/atomset/atomset.pyx":446
 *         self.pdb = None
 *         self.com = None
 *         self.centroid = None             # <<<<<<<<<<<<<<
 *         self.ispdb = False
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->centroid);
  __Pyx_DECREF(__pyx_v_self->centroid);
  __pyx_v_self->centroid = ((PyObject*)Py_None);

  /* "AdaptivePELE/atomset/atomset.pyx":447
 *         self.com = None
 *         self.centroid = None
 *         self.ispdb = False             # <<<<<<<<<<<<<<
 * 
 *         # Necessary for contactMaps
 */
  __pyx_v_self->ispdb = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":450
 * 
 *         # Necessary for contactMaps
 *         self.atomList = []             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, object other, int op):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atomList);
  __Pyx_DECREF(__pyx_v_self->atomList);
  __pyx_v_self->atomList = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":434
 * 
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         """
 *             Object that will contain the information of a PDB file. Has to call
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":452
 *         self.atomList = []
 * 
 *     def __richcmp__(self, object other, int op):             # <<<<<<<<<<<<<<
 *         """
 *             Compare two pdb strings, remark lines should be ignored and only the
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_2__richcmp__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((int)__pyx_v_op));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_2__richcmp__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_v_pdb1 = 0;
  PyObject *__pyx_v_pdb2 = 0;
  PyObject *__pyx_v_atom1 = NULL;
  PyObject *__pyx_v_atom2 = NULL;
  PyObject *__pyx_v_element = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__richcmp__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":458
 *         """
 *         cdef list pdb1, pdb2
 *         if op == 2:             # <<<<<<<<<<<<<<
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
  switch (__pyx_v_op) {
    case 2:

    /* "AdaptivePELE/atomset/atomset.pyx":459
 *         cdef list pdb1, pdb2
 *         if op == 2:
 *             if self.ispdb and other.ispdb:             # <<<<<<<<<<<<<<
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    __pyx_t_2 = (__pyx_v_self->ispdb != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_ispdb); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 459, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_1 = __pyx_t_2;
    __pyx_L4_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":460
 *         if op == 2:
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]             # <<<<<<<<<<<<<<
 *                 pdb2 = [element.strip() for element in other.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 return pdb1 == pdb2
 */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 460, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pdb, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 460, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_u__8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u__8);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
        __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 460, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_5))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 460, __pyx_L1_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 460, __pyx_L1_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          }
        } else {
          __pyx_t_4 = __pyx_t_8(__pyx_t_5);
          if (unlikely(!__pyx_t_4)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 460, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_XDECREF_SET(__pyx_v_element, __pyx_t_4);
        __pyx_t_4 = 0;
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_6, function);
          }
        }
        __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_9, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_ATOM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (!__pyx_t_2) {
        } else {
          __pyx_t_1 = __pyx_t_2;
          goto __pyx_L9_bool_binop_done;
        }
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_6, function);
          }
        }
        __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_9, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_HETATM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 460, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = __pyx_t_2;
        __pyx_L9_bool_binop_done:;
        if (__pyx_t_1) {
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 460, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_9 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
            __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6);
            if (likely(__pyx_t_9)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
              __Pyx_INCREF(__pyx_t_9);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_6, function);
            }
          }
          __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 460, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_pdb1 = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":461
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]             # <<<<<<<<<<<<<<
 *                 return pdb1 == pdb2
 *             else:
 */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 461, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_pdb); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 461, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_split); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 461, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_4, __pyx_kp_u__8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u__8);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
        __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 461, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_6))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 461, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 461, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          }
        } else {
          __pyx_t_5 = __pyx_t_8(__pyx_t_6);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 461, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_XDECREF_SET(__pyx_v_element, __pyx_t_5);
        __pyx_t_5 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_ATOM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (!__pyx_t_2) {
        } else {
          __pyx_t_1 = __pyx_t_2;
          goto __pyx_L14_bool_binop_done;
        }
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_HETATM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 461, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_1 = __pyx_t_2;
        __pyx_L14_bool_binop_done:;
        if (__pyx_t_1) {
          __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 461, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_9 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
            __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
            if (likely(__pyx_t_9)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
              __Pyx_INCREF(__pyx_t_9);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_4, function);
            }
          }
          __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 461, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 461, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_pdb2 = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":462
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 return pdb1 == pdb2             # <<<<<<<<<<<<<<
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_pdb1, __pyx_v_pdb2, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 462, __pyx_L1_error)
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":459
 *         cdef list pdb1, pdb2
 *         if op == 2:
 *             if self.ispdb and other.ispdb:             # <<<<<<<<<<<<<<
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":464
 *                 return pdb1 == pdb2
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):             # <<<<<<<<<<<<<<
 *                     if self.atoms[atom1] != other.atoms[atom2]:
 *                         return False
 */
    /*else*/ {
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_atomList); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 464, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_v_self->atomList);
      __Pyx_GIVEREF(__pyx_v_self->atomList);
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_self->atomList);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
        __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 464, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 464, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_6))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 464, __pyx_L1_error)
            #else
            __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 464, __pyx_L1_error)
            #else
            __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            #endif
          }
        } else {
          __pyx_t_3 = __pyx_t_8(__pyx_t_6);
          if (unlikely(!__pyx_t_3)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 464, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_3);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
          PyObject* sequence = __pyx_t_3;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 464, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          #else
          __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 464, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 464, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 464, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
          index = 0; __pyx_t_5 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_5)) goto __pyx_L18_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_5);
          index = 1; __pyx_t_4 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_4)) goto __pyx_L18_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 2) < 0) __PYX_ERR(0, 464, __pyx_L1_error)
          __pyx_t_10 = NULL;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L19_unpacking_done;
          __pyx_L18_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_10 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 464, __pyx_L1_error)
          __pyx_L19_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_atom1, __pyx_t_5);
        __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_atom2, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "AdaptivePELE/atomset/atomset.pyx":465
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] != other.atoms[atom2]:             # <<<<<<<<<<<<<<
 *                         return False
 *                 return True
 */
        if (unlikely(__pyx_v_self->atoms == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 465, __pyx_L1_error)
        }
        __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atom1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 465, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_atoms); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 465, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_atom2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 465, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 465, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 465, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (__pyx_t_1) {

          /* "AdaptivePELE/atomset/atomset.pyx":466
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] != other.atoms[atom2]:
 *                         return False             # <<<<<<<<<<<<<<
 *                 return True
 *         elif op == 3:
 */
          __Pyx_XDECREF(__pyx_r);
          __Pyx_INCREF(Py_False);
          __pyx_r = Py_False;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          goto __pyx_L0;

          /* "AdaptivePELE/atomset/atomset.pyx":465
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] != other.atoms[atom2]:             # <<<<<<<<<<<<<<
 *                         return False
 *                 return True
 */
        }

        /* "AdaptivePELE/atomset/atomset.pyx":464
 *                 return pdb1 == pdb2
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):             # <<<<<<<<<<<<<<
 *                     if self.atoms[atom1] != other.atoms[atom2]:
 *                         return False
 */
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":467
 *                     if self.atoms[atom1] != other.atoms[atom2]:
 *                         return False
 *                 return True             # <<<<<<<<<<<<<<
 *         elif op == 3:
 *             if self.ispdb and other.ispdb:
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      goto __pyx_L0;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":458
 *         """
 *         cdef list pdb1, pdb2
 *         if op == 2:             # <<<<<<<<<<<<<<
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split(u'\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    break;
    case 3:

    /* "AdaptivePELE/atomset/atomset.pyx":469
 *                 return True
 *         elif op == 3:
 *             if self.ispdb and other.ispdb:             # <<<<<<<<<<<<<<
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    __pyx_t_2 = (__pyx_v_self->ispdb != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L22_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_ispdb); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 469, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_1 = __pyx_t_2;
    __pyx_L22_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":470
 *         elif op == 3:
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]             # <<<<<<<<<<<<<<
 *                 pdb2 = [element.strip() for element in other.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 return pdb1 != pdb2
 */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 470, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pdb, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 470, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_3, __pyx_kp_u__8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u__8);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
        __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_8 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 470, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_5))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 470, __pyx_L1_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 470, __pyx_L1_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          }
        } else {
          __pyx_t_4 = __pyx_t_8(__pyx_t_5);
          if (unlikely(!__pyx_t_4)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 470, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_XDECREF_SET(__pyx_v_element, __pyx_t_4);
        __pyx_t_4 = 0;
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
          }
        }
        __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_9, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_u_ATOM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (!__pyx_t_2) {
        } else {
          __pyx_t_1 = __pyx_t_2;
          goto __pyx_L27_bool_binop_done;
        }
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
          }
        }
        __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_9, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_u_HETATM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = __pyx_t_2;
        __pyx_L27_bool_binop_done:;
        if (__pyx_t_1) {
          __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 470, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_9 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
            __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
            if (likely(__pyx_t_9)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
              __Pyx_INCREF(__pyx_t_9);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_3, function);
            }
          }
          __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 470, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_pdb1 = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":471
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]             # <<<<<<<<<<<<<<
 *                 return pdb1 != pdb2
 *             else:
 */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 471, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_pdb); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 471, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 471, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_u__8) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u__8);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
        __pyx_t_3 = __pyx_t_5; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 471, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_3))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 471, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 471, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          }
        } else {
          __pyx_t_5 = __pyx_t_8(__pyx_t_3);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 471, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_XDECREF_SET(__pyx_v_element, __pyx_t_5);
        __pyx_t_5 = 0;
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_ATOM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (!__pyx_t_2) {
        } else {
          __pyx_t_1 = __pyx_t_2;
          goto __pyx_L32_bool_binop_done;
        }
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_9)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_9);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_HETATM);
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 471, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_1 = __pyx_t_2;
        __pyx_L32_bool_binop_done:;
        if (__pyx_t_1) {
          __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_element, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 471, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_9 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
            __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
            if (likely(__pyx_t_9)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
              __Pyx_INCREF(__pyx_t_9);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_4, function);
            }
          }
          __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 471, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 471, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_pdb2 = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":472
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 return pdb1 != pdb2             # <<<<<<<<<<<<<<
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_6 = PyObject_RichCompare(__pyx_v_pdb1, __pyx_v_pdb2, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 472, __pyx_L1_error)
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L0;

      /* "AdaptivePELE/atomset/atomset.pyx":469
 *                 return True
 *         elif op == 3:
 *             if self.ispdb and other.ispdb:             # <<<<<<<<<<<<<<
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 *                 pdb2 = [element.strip() for element in other.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":474
 *                 return pdb1 != pdb2
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):             # <<<<<<<<<<<<<<
 *                     if self.atoms[atom1] == other.atoms[atom2]:
 *                         return False
 */
    /*else*/ {
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_atomList); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 474, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_self->atomList);
      __Pyx_GIVEREF(__pyx_v_self->atomList);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->atomList);
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) {
        __pyx_t_3 = __pyx_t_6; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 474, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 474, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      for (;;) {
        if (likely(!__pyx_t_8)) {
          if (likely(PyList_CheckExact(__pyx_t_3))) {
            if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_6); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 474, __pyx_L1_error)
            #else
            __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            #endif
          } else {
            if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_6); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 474, __pyx_L1_error)
            #else
            __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            #endif
          }
        } else {
          __pyx_t_6 = __pyx_t_8(__pyx_t_3);
          if (unlikely(!__pyx_t_6)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 474, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_6);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
          PyObject* sequence = __pyx_t_6;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 474, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          #else
          __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 474, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 474, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_9 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 474, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
          index = 0; __pyx_t_5 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_5)) goto __pyx_L36_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_5);
          index = 1; __pyx_t_4 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_4)) goto __pyx_L36_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 2) < 0) __PYX_ERR(0, 474, __pyx_L1_error)
          __pyx_t_10 = NULL;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L37_unpacking_done;
          __pyx_L36_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_10 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 474, __pyx_L1_error)
          __pyx_L37_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_atom1, __pyx_t_5);
        __pyx_t_5 = 0;
        __Pyx_XDECREF_SET(__pyx_v_atom2, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "AdaptivePELE/atomset/atomset.pyx":475
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] == other.atoms[atom2]:             # <<<<<<<<<<<<<<
 *                         return False
 *                 return True
 */
        if (unlikely(__pyx_v_self->atoms == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(0, 475, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atom1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 475, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_atoms); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 475, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_atom2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 475, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 475, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 475, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (__pyx_t_1) {

          /* "AdaptivePELE/atomset/atomset.pyx":476
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] == other.atoms[atom2]:
 *                         return False             # <<<<<<<<<<<<<<
 *                 return True
 *         else:
 */
          __Pyx_XDECREF(__pyx_r);
          __Pyx_INCREF(Py_False);
          __pyx_r = Py_False;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          goto __pyx_L0;

          /* "AdaptivePELE/atomset/atomset.pyx":475
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):
 *                     if self.atoms[atom1] == other.atoms[atom2]:             # <<<<<<<<<<<<<<
 *                         return False
 *                 return True
 */
        }

        /* "AdaptivePELE/atomset/atomset.pyx":474
 *                 return pdb1 != pdb2
 *             else:
 *                 for atom1, atom2 in zip(self.atomList, other.atomList):             # <<<<<<<<<<<<<<
 *                     if self.atoms[atom1] == other.atoms[atom2]:
 *                         return False
 */
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":477
 *                     if self.atoms[atom1] == other.atoms[atom2]:
 *                         return False
 *                 return True             # <<<<<<<<<<<<<<
 *         else:
 *             print "No boolean operator available for PDB apart from equality"
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      goto __pyx_L0;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":468
 *                         return False
 *                 return True
 *         elif op == 3:             # <<<<<<<<<<<<<<
 *             if self.ispdb and other.ispdb:
 *                 pdb1 = [element.strip() for element in self.pdb.split('\n') if element.startswith(u"ATOM") or element.startswith(u"HETATM")]
 */
    break;
    default:

    /* "AdaptivePELE/atomset/atomset.pyx":479
 *                 return True
 *         else:
 *             print "No boolean operator available for PDB apart from equality"             # <<<<<<<<<<<<<<
 * 
 *     def __getstate__(self):
 */
    if (__Pyx_PrintOne(0, __pyx_kp_u_No_boolean_operator_available_fo) < 0) __PYX_ERR(0, 479, __pyx_L1_error)
    break;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":452
 *         self.atomList = []
 * 
 *     def __richcmp__(self, object other, int op):             # <<<<<<<<<<<<<<
 *         """
 *             Compare two pdb strings, remark lines should be ignored and only the
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdb1);
  __Pyx_XDECREF(__pyx_v_pdb2);
  __Pyx_XDECREF(__pyx_v_atom1);
  __Pyx_XDECREF(__pyx_v_atom2);
  __Pyx_XDECREF(__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":481
 *             print "No boolean operator available for PDB apart from equality"
 * 
 *     def __getstate__(self):             # <<<<<<<<<<<<<<
 *         # Copy the object's state from
 *         state = {u"atoms": self.atoms, u"atomList": self.atomList,
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5__getstate__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5__getstate__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getstate__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_4__getstate__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_4__getstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_v_state = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getstate__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":483
 *     def __getstate__(self):
 *         # Copy the object's state from
 *         state = {u"atoms": self.atoms, u"atomList": self.atomList,             # <<<<<<<<<<<<<<
 *                  u"com": self.com, u"centroid": self.centroid,
 *                  u"totalMass": self.totalMass, u"pdb": self.pdb,
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_atoms, __pyx_v_self->atoms) < 0) __PYX_ERR(0, 483, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_atomList, __pyx_v_self->atomList) < 0) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":484
 *         # Copy the object's state from
 *         state = {u"atoms": self.atoms, u"atomList": self.atomList,
 *                  u"com": self.com, u"centroid": self.centroid,             # <<<<<<<<<<<<<<
 *                  u"totalMass": self.totalMass, u"pdb": self.pdb,
 *                  u"ispdb": self.ispdb}
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_com, __pyx_v_self->com) < 0) __PYX_ERR(0, 483, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_centroid, __pyx_v_self->centroid) < 0) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":485
 *         state = {u"atoms": self.atoms, u"atomList": self.atomList,
 *                  u"com": self.com, u"centroid": self.centroid,
 *                  u"totalMass": self.totalMass, u"pdb": self.pdb,             # <<<<<<<<<<<<<<
 *                  u"ispdb": self.ispdb}
 *         return state
 */
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_totalMass, __pyx_t_2) < 0) __PYX_ERR(0, 483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_pdb, __pyx_v_self->pdb) < 0) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":486
 *                  u"com": self.com, u"centroid": self.centroid,
 *                  u"totalMass": self.totalMass, u"pdb": self.pdb,
 *                  u"ispdb": self.ispdb}             # <<<<<<<<<<<<<<
 *         return state
 * 
 */
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->ispdb); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_ispdb, __pyx_t_2) < 0) __PYX_ERR(0, 483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":487
 *                  u"totalMass": self.totalMass, u"pdb": self.pdb,
 *                  u"ispdb": self.ispdb}
 *         return state             # <<<<<<<<<<<<<<
 * 
 *     def __setstate__(self, state):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_state);
  __pyx_r = __pyx_v_state;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":481
 *             print "No boolean operator available for PDB apart from equality"
 * 
 *     def __getstate__(self):             # <<<<<<<<<<<<<<
 *         # Copy the object's state from
 *         state = {u"atoms": self.atoms, u"atomList": self.atomList,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__getstate__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":489
 *         return state
 * 
 *     def __setstate__(self, state):             # <<<<<<<<<<<<<<
 *         # Restore instance attributes
 *         self.atoms = state[u'atoms']
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_7__setstate__(PyObject *__pyx_v_self, PyObject *__pyx_v_state); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_7__setstate__(PyObject *__pyx_v_self, PyObject *__pyx_v_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_6__setstate__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_6__setstate__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  double __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":491
 *     def __setstate__(self, state):
 *         # Restore instance attributes
 *         self.atoms = state[u'atoms']             # <<<<<<<<<<<<<<
 *         self.atomList = state[u'atomList']
 *         self.com = state.get(u'com')
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_atoms); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atoms);
  __Pyx_DECREF(__pyx_v_self->atoms);
  __pyx_v_self->atoms = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":492
 *         # Restore instance attributes
 *         self.atoms = state[u'atoms']
 *         self.atomList = state[u'atomList']             # <<<<<<<<<<<<<<
 *         self.com = state.get(u'com')
 *         self.centroid = state.get(u'centroid')
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_atomList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atomList);
  __Pyx_DECREF(__pyx_v_self->atomList);
  __pyx_v_self->atomList = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":493
 *         self.atoms = state[u'atoms']
 *         self.atomList = state[u'atomList']
 *         self.com = state.get(u'com')             # <<<<<<<<<<<<<<
 *         self.centroid = state.get(u'centroid')
 *         self.totalMass = state[u'totalMass']
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_state, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_n_u_com) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_com);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->com);
  __Pyx_DECREF(__pyx_v_self->com);
  __pyx_v_self->com = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":494
 *         self.atomList = state[u'atomList']
 *         self.com = state.get(u'com')
 *         self.centroid = state.get(u'centroid')             # <<<<<<<<<<<<<<
 *         self.totalMass = state[u'totalMass']
 *         self.pdb = state[u'pdb']
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_state, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_n_u_centroid) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_centroid);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->centroid);
  __Pyx_DECREF(__pyx_v_self->centroid);
  __pyx_v_self->centroid = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":495
 *         self.com = state.get(u'com')
 *         self.centroid = state.get(u'centroid')
 *         self.totalMass = state[u'totalMass']             # <<<<<<<<<<<<<<
 *         self.pdb = state[u'pdb']
 *         self.ispdb = state.get(u'ispdb', True)
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_totalMass); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_4 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 495, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->totalMass = __pyx_t_4;

  /* "AdaptivePELE/atomset/atomset.pyx":496
 *         self.centroid = state.get(u'centroid')
 *         self.totalMass = state[u'totalMass']
 *         self.pdb = state[u'pdb']             # <<<<<<<<<<<<<<
 *         self.ispdb = state.get(u'ispdb', True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_state, __pyx_n_u_pdb); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":497
 *         self.totalMass = state[u'totalMass']
 *         self.pdb = state[u'pdb']
 *         self.ispdb = state.get(u'ispdb', True)             # <<<<<<<<<<<<<<
 * 
 *     def isfromPDBFile(self):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_state, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->ispdb = __pyx_t_5;

  /* "AdaptivePELE/atomset/atomset.pyx":489
 *         return state
 * 
 *     def __setstate__(self, state):             # <<<<<<<<<<<<<<
 *         # Restore instance attributes
 *         self.atoms = state[u'atoms']
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__setstate__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":499
 *         self.ispdb = state.get(u'ispdb', True)
 * 
 *     def isfromPDBFile(self):             # <<<<<<<<<<<<<<
 *         return self.ispdb
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9isfromPDBFile(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9isfromPDBFile(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isfromPDBFile (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8isfromPDBFile(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8isfromPDBFile(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isfromPDBFile", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":500
 * 
 *     def isfromPDBFile(self):
 *         return self.ispdb             # <<<<<<<<<<<<<<
 * 
 *     def _initialisePDB(self, basestring PDBstr, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element="", dict extra_atoms={}):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->ispdb); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":499
 *         self.ispdb = state.get(u'ispdb', True)
 * 
 *     def isfromPDBFile(self):             # <<<<<<<<<<<<<<
 *         return self.ispdb
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.isfromPDBFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":502
 *         return self.ispdb
 * 
 *     def _initialisePDB(self, basestring PDBstr, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element="", dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a PDB file or a string with the PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_11_initialisePDB(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_10_initialisePDB[] = "\n            Load the information from a PDB file or a string with the PDB\n            contents\n\n            :param PDBstr: may be a path to the PDB file or a string with the contents of the PDB\n            :type PDBstr: basestring\n            :param heavyAtoms: wether to consider only heavy atoms (True if onl y heavy atoms have to be considered)\n            :type heavyAtoms: bool\n            :param resname: Residue name to select from the pdb (will only select the residues with that name)\n            :type resname: basestring\n            :param atomname: Residue name to select from the pdb (will only select the atoms with that name)\n            :type atomname: basestring\n            :param type: type of atoms to select: may be ALL, PROTEIN or HETERO\n            :type type: basestring\n            :param chain: Chain name to select from the pdb (will only select the atoms with that name)\n            :type chain: basestring\n            :param resnum: Residue number to select from the pdb (will only select the atoms with that name)\n            :type atomname: int\n            :raises: ValueError if the pdb contained no atoms\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_11_initialisePDB(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_PDBstr = 0;
  int __pyx_v_heavyAtoms;
  PyObject *__pyx_v_resname = 0;
  PyObject *__pyx_v_atomname = 0;
  PyObject *__pyx_v_type = 0;
  PyObject *__pyx_v_chain = 0;
  int __pyx_v_resnum;
  PyObject *__pyx_v_element = 0;
  PyObject *__pyx_v_extra_atoms = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_initialisePDB (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_PDBstr,&__pyx_n_s_heavyAtoms,&__pyx_n_s_resname,&__pyx_n_s_atomname,&__pyx_n_s_type,&__pyx_n_s_chain,&__pyx_n_s_resnum,&__pyx_n_s_element,&__pyx_n_s_extra_atoms,0};
    PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
    values[2] = ((PyObject*)__pyx_kp_u_);
    values[3] = ((PyObject*)__pyx_kp_u_);
    values[4] = ((PyObject*)__pyx_n_u_ALL);
    values[5] = ((PyObject*)__pyx_kp_u_);
    values[7] = ((PyObject*)__pyx_kp_u_);
    values[8] = __pyx_k__10;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDBstr)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_heavyAtoms);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resname);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomname);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type);
          if (value) { values[4] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chain);
          if (value) { values[5] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resnum);
          if (value) { values[6] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element);
          if (value) { values[7] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_extra_atoms);
          if (value) { values[8] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_initialisePDB") < 0)) __PYX_ERR(0, 502, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_PDBstr = ((PyObject*)values[0]);
    if (values[1]) {
      __pyx_v_heavyAtoms = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_heavyAtoms == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 502, __pyx_L3_error)
    } else {
      __pyx_v_heavyAtoms = ((int)1);
    }
    __pyx_v_resname = ((PyObject*)values[2]);
    __pyx_v_atomname = ((PyObject*)values[3]);
    __pyx_v_type = ((PyObject*)values[4]);
    __pyx_v_chain = ((PyObject*)values[5]);
    if (values[6]) {
      __pyx_v_resnum = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_resnum == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 502, __pyx_L3_error)
    } else {
      __pyx_v_resnum = ((int)0);
    }
    __pyx_v_element = ((PyObject*)values[7]);
    __pyx_v_extra_atoms = ((PyObject*)values[8]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_initialisePDB", 0, 1, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 502, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB._initialisePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_PDBstr), (&PyBaseString_Type), 1, "PDBstr", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resname), (&PyBaseString_Type), 1, "resname", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomname), (&PyBaseString_Type), 1, "atomname", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_type), (&PyBaseString_Type), 1, "type", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_chain), (&PyBaseString_Type), 1, "chain", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), (&PyBaseString_Type), 1, "element", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extra_atoms), (&PyDict_Type), 1, "extra_atoms", 1))) __PYX_ERR(0, 502, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_10_initialisePDB(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_PDBstr, __pyx_v_heavyAtoms, __pyx_v_resname, __pyx_v_atomname, __pyx_v_type, __pyx_v_chain, __pyx_v_resnum, __pyx_v_element, __pyx_v_extra_atoms);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_10_initialisePDB(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_PDBstr, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_extra_atoms) {
  PyObject *__pyx_v_PDBContent = 0;
  PyObject *__pyx_v_stringWithPDBContent = 0;
  int __pyx_v_pdb_lines;
  PyObject *__pyx_v_atomName = 0;
  PyObject *__pyx_v_resName = 0;
  PyObject *__pyx_v_atomLine = 0;
  PyObject *__pyx_v_resnumStr = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom = 0;
  PyObject *__pyx_v_CMAtoms = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_initialisePDB", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":528
 *         cdef basestring atomName, resName, atomLine, resnumStr
 *         cdef Atom atom
 *         if resnum == 0:             # <<<<<<<<<<<<<<
 *             resnumStr = u""
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_resnum == 0) != 0);
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":529
 *         cdef Atom atom
 *         if resnum == 0:
 *             resnumStr = u""             # <<<<<<<<<<<<<<
 *         else:
 *             resnumStr = u"%d" % (resnum)
 */
    __Pyx_INCREF(__pyx_kp_u_);
    __pyx_v_resnumStr = ((PyObject*)__pyx_kp_u_);

    /* "AdaptivePELE/atomset/atomset.pyx":528
 *         cdef basestring atomName, resName, atomLine, resnumStr
 *         cdef Atom atom
 *         if resnum == 0:             # <<<<<<<<<<<<<<
 *             resnumStr = u""
 *         else:
 */
    goto __pyx_L3;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":531
 *             resnumStr = u""
 *         else:
 *             resnumStr = u"%d" % (resnum)             # <<<<<<<<<<<<<<
 *         PDBContent = StringIO(readPDB(PDBstr))  # Using StringIO
 *         # creates a buffer that can handle a pdb file or a string containing
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_resnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_d, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_resnumStr = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "AdaptivePELE/atomset/atomset.pyx":532
 *         else:
 *             resnumStr = u"%d" % (resnum)
 *         PDBContent = StringIO(readPDB(PDBstr))  # Using StringIO             # <<<<<<<<<<<<<<
 *         # creates a buffer that can handle a pdb file or a string containing
 *         # the PDB
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_StringIO); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_readPDB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_PDBstr) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_PDBstr);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_PDBContent = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":535
 *         # creates a buffer that can handle a pdb file or a string containing
 *         # the PDB
 *         self.pdb = PDBContent.read()  # in case one wants to write it             # <<<<<<<<<<<<<<
 *         if extra_atoms != {}:
 *             CMAtoms = extra_atoms
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_PDBContent, __pyx_n_s_read); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":536
 *         # the PDB
 *         self.pdb = PDBContent.read()  # in case one wants to write it
 *         if extra_atoms != {}:             # <<<<<<<<<<<<<<
 *             CMAtoms = extra_atoms
 *         else:
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_extra_atoms, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":537
 *         self.pdb = PDBContent.read()  # in case one wants to write it
 *         if extra_atoms != {}:
 *             CMAtoms = extra_atoms             # <<<<<<<<<<<<<<
 *         else:
 *             CMAtoms = self.CMAtoms
 */
    __Pyx_INCREF(__pyx_v_extra_atoms);
    __pyx_v_CMAtoms = __pyx_v_extra_atoms;

    /* "AdaptivePELE/atomset/atomset.pyx":536
 *         # the PDB
 *         self.pdb = PDBContent.read()  # in case one wants to write it
 *         if extra_atoms != {}:             # <<<<<<<<<<<<<<
 *             CMAtoms = extra_atoms
 *         else:
 */
    goto __pyx_L4;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":539
 *             CMAtoms = extra_atoms
 *         else:
 *             CMAtoms = self.CMAtoms             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_CMAtoms); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_CMAtoms = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "AdaptivePELE/atomset/atomset.pyx":542
 * 
 * 
 *         stringWithPDBContent = self.pdb.split(u'\n')             # <<<<<<<<<<<<<<
 *         if len(stringWithPDBContent) < 2:
 *             # If the string got here and only contains one line means that is a
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pdb, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_u__8) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u__8);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 542, __pyx_L1_error)
  __pyx_v_stringWithPDBContent = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":543
 * 
 *         stringWithPDBContent = self.pdb.split(u'\n')
 *         if len(stringWithPDBContent) < 2:             # <<<<<<<<<<<<<<
 *             # If the string got here and only contains one line means that is a
 *             # path which does not exist
 */
  if (unlikely(__pyx_v_stringWithPDBContent == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 543, __pyx_L1_error)
  }
  __pyx_t_7 = PyList_GET_SIZE(__pyx_v_stringWithPDBContent); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 543, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_t_7 < 2) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "AdaptivePELE/atomset/atomset.pyx":546
 *             # If the string got here and only contains one line means that is a
 *             # path which does not exist
 *             raise ValueError("Input file not found!!")             # <<<<<<<<<<<<<<
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 546, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":543
 * 
 *         stringWithPDBContent = self.pdb.split(u'\n')
 *         if len(stringWithPDBContent) < 2:             # <<<<<<<<<<<<<<
 *             # If the string got here and only contains one line means that is a
 *             # path which does not exist
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":547
 *             # path which does not exist
 *             raise ValueError("Input file not found!!")
 *         pdb_lines = 0             # <<<<<<<<<<<<<<
 *         for atomLine in stringWithPDBContent:
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 */
  __pyx_v_pdb_lines = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":548
 *             raise ValueError("Input file not found!!")
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:             # <<<<<<<<<<<<<<
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 */
  if (unlikely(__pyx_v_stringWithPDBContent == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 548, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_v_stringWithPDBContent; __Pyx_INCREF(__pyx_t_2); __pyx_t_7 = 0;
  for (;;) {
    if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_2)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 548, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(0, 548, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_atomLine, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":549
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):             # <<<<<<<<<<<<<<
 *                 continue
 *             pdb_lines += 1
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_atomLine, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_ATOM);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_9 = ((!__pyx_t_8) != 0);
    if (__pyx_t_9) {
    } else {
      __pyx_t_1 = __pyx_t_9;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_atomLine, __pyx_n_s_startswith); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_u_HETATM);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_8 = ((!__pyx_t_9) != 0);
    __pyx_t_1 = __pyx_t_8;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":550
 *         for atomLine in stringWithPDBContent:
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue             # <<<<<<<<<<<<<<
 *             pdb_lines += 1
 *             if type == self._typeCM:
 */
      goto __pyx_L6_continue;

      /* "AdaptivePELE/atomset/atomset.pyx":549
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):             # <<<<<<<<<<<<<<
 *                 continue
 *             pdb_lines += 1
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":551
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 *             pdb_lines += 1             # <<<<<<<<<<<<<<
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()
 */
    __pyx_v_pdb_lines = (__pyx_v_pdb_lines + 1);

    /* "AdaptivePELE/atomset/atomset.pyx":552
 *                 continue
 *             pdb_lines += 1
 *             if type == self._typeCM:             # <<<<<<<<<<<<<<
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeCM); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 552, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":553
 *             pdb_lines += 1
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()             # <<<<<<<<<<<<<<
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:
 */
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 553, __pyx_L1_error)
      }
      __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomLine, 12, 16); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_strip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(0, 553, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_atomName, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":554
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()             # <<<<<<<<<<<<<<
 *                 if resName not in CMAtoms:
 *                     continue
 */
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 554, __pyx_L1_error)
      }
      __pyx_t_5 = PySequence_GetSlice(__pyx_v_atomLine, 17, 20); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(0, 554, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_resName, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":555
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 */
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_resName, __pyx_v_CMAtoms, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 555, __pyx_L1_error)
      __pyx_t_8 = (__pyx_t_1 != 0);
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":556
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":555
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":557
 *                 if resName not in CMAtoms:
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:             # <<<<<<<<<<<<<<
 *                     continue
 *             else:
 */
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_atomName, __pyx_n_u_CA, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 557, __pyx_L1_error)
      __pyx_t_9 = (__pyx_t_1 != 0);
      if (__pyx_t_9) {
      } else {
        __pyx_t_8 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_CMAtoms, __pyx_v_resName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 557, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_atomName, __pyx_t_3, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 557, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_8 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":558
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 *                     continue             # <<<<<<<<<<<<<<
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":557
 *                 if resName not in CMAtoms:
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:             # <<<<<<<<<<<<<<
 *                     continue
 *             else:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":552
 *                 continue
 *             pdb_lines += 1
 *             if type == self._typeCM:             # <<<<<<<<<<<<<<
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 */
      goto __pyx_L11;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":561
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 */
    /*else*/ {
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_resname, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 561, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_9 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_8 = __pyx_t_1;
        goto __pyx_L17_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 561, __pyx_L1_error)
      }
      __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomLine, 17, 20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_strip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_resname, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 561, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_9 = ((!__pyx_t_1) != 0);
      __pyx_t_8 = __pyx_t_9;
      __pyx_L17_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":562
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":561
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":563
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 */
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_atomname, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 563, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_9 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_8 = __pyx_t_1;
        goto __pyx_L20_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 563, __pyx_L1_error)
      }
      __pyx_t_5 = PySequence_GetSlice(__pyx_v_atomLine, 12, 16); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_atomname, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 563, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_9 = ((!__pyx_t_1) != 0);
      __pyx_t_8 = __pyx_t_9;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":564
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":563
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":565
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 */
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_chain, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 565, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_9 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_8 = __pyx_t_1;
        goto __pyx_L23_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 565, __pyx_L1_error)
      }
      __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomLine, 21, 22); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 565, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_strip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 565, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 565, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_chain, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 565, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_9 = ((!__pyx_t_1) != 0);
      __pyx_t_8 = __pyx_t_9;
      __pyx_L23_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":566
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":565
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":567
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if element != u"" and not atomLine[76:78].strip() == element:
 */
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_resnumStr, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 567, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_9 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_8 = __pyx_t_1;
        goto __pyx_L26_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 567, __pyx_L1_error)
      }
      __pyx_t_5 = PySequence_GetSlice(__pyx_v_atomLine, 22, 26); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 567, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 567, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 567, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_resnumStr, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 567, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_9 = ((!__pyx_t_1) != 0);
      __pyx_t_8 = __pyx_t_9;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":568
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if element != u"" and not atomLine[76:78].strip() == element:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":567
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if element != u"" and not atomLine[76:78].strip() == element:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":569
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 *                 if element != u"" and not atomLine[76:78].strip() == element:             # <<<<<<<<<<<<<<
 *                     continue
 * 
 */
      __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_element, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 569, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_9 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_8 = __pyx_t_1;
        goto __pyx_L29_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 569, __pyx_L1_error)
      }
      __pyx_t_4 = PySequence_GetSlice(__pyx_v_atomLine, 76, 78); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_strip); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_v_element, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_9 = ((!__pyx_t_1) != 0);
      __pyx_t_8 = __pyx_t_9;
      __pyx_L29_bool_binop_done:;
      if (__pyx_t_8) {

        /* "AdaptivePELE/atomset/atomset.pyx":570
 *                     continue
 *                 if element != u"" and not atomLine[76:78].strip() == element:
 *                     continue             # <<<<<<<<<<<<<<
 * 
 *             atom = Atom(atomLine)
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":569
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 *                 if element != u"" and not atomLine[76:78].strip() == element:             # <<<<<<<<<<<<<<
 *                     continue
 * 
 */
      }
    }
    __pyx_L11:;

    /* "AdaptivePELE/atomset/atomset.pyx":572
 *                     continue
 * 
 *             atom = Atom(atomLine)             # <<<<<<<<<<<<<<
 *             # Here atom will be not null, empty or not.
 *             # With "try", we prune empty atoms
 */
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom), __pyx_v_atomLine); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_atom, ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":575
 *             # Here atom will be not null, empty or not.
 *             # With "try", we prune empty atoms
 *             try:             # <<<<<<<<<<<<<<
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "AdaptivePELE/atomset/atomset.pyx":576
 *             # With "try", we prune empty atoms
 *             try:
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 *                         self.atoms.update({atom.id: atom})
 */
        __pyx_t_9 = ((!(__pyx_v_heavyAtoms != 0)) != 0);
        if (!__pyx_t_9) {
        } else {
          goto __pyx_L41_next_and;
        }
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isHeavyAtom); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 576, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 576, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 576, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (__pyx_t_9) {
        } else {
          __pyx_t_8 = __pyx_t_9;
          goto __pyx_L40_bool_binop_done;
        }
        __pyx_L41_next_and:;

        /* "AdaptivePELE/atomset/atomset.pyx":577
 *             try:
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):             # <<<<<<<<<<<<<<
 *                         self.atoms.update({atom.id: atom})
 *                         self.atomList.append(atom.id)
 */
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeAll); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (!__pyx_t_9) {
        } else {
          __pyx_t_8 = __pyx_t_9;
          goto __pyx_L40_bool_binop_done;
        }
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeCM); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (!__pyx_t_9) {
        } else {
          __pyx_t_8 = __pyx_t_9;
          goto __pyx_L40_bool_binop_done;
        }
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeProtein); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (!__pyx_t_9) {
          goto __pyx_L45_next_or;
        } else {
        }
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isProtein); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (!__pyx_t_9) {
        } else {
          __pyx_t_8 = __pyx_t_9;
          goto __pyx_L40_bool_binop_done;
        }
        __pyx_L45_next_or:;
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeHetero); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (__pyx_t_9) {
        } else {
          __pyx_t_8 = __pyx_t_9;
          goto __pyx_L40_bool_binop_done;
        }
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isHeteroAtom); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 577, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_8 = __pyx_t_9;
        __pyx_L40_bool_binop_done:;

        /* "AdaptivePELE/atomset/atomset.pyx":576
 *             # With "try", we prune empty atoms
 *             try:
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 *                         self.atoms.update({atom.id: atom})
 */
        if (__pyx_t_8) {

          /* "AdaptivePELE/atomset/atomset.pyx":578
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 *                         self.atoms.update({atom.id: atom})             # <<<<<<<<<<<<<<
 *                         self.atomList.append(atom.id)
 *             except:
 */
          __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->atoms, __pyx_n_s_update); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 578, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 578, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (PyDict_SetItem(__pyx_t_4, __pyx_v_atom->id, ((PyObject *)__pyx_v_atom)) < 0) __PYX_ERR(0, 578, __pyx_L31_error)
          __pyx_t_6 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
            __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
            if (likely(__pyx_t_6)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
              __Pyx_INCREF(__pyx_t_6);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_5, function);
            }
          }
          __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 578, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

          /* "AdaptivePELE/atomset/atomset.pyx":579
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 *                         self.atoms.update({atom.id: atom})
 *                         self.atomList.append(atom.id)             # <<<<<<<<<<<<<<
 *             except:
 *                 pass
 */
          if (unlikely(__pyx_v_self->atomList == Py_None)) {
            PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
            __PYX_ERR(0, 579, __pyx_L31_error)
          }
          __pyx_t_3 = __pyx_v_atom->id;
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_self->atomList, __pyx_t_3); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 579, __pyx_L31_error)
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

          /* "AdaptivePELE/atomset/atomset.pyx":576
 *             # With "try", we prune empty atoms
 *             try:
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 *                         self.atoms.update({atom.id: atom})
 */
        }

        /* "AdaptivePELE/atomset/atomset.pyx":575
 *             # Here atom will be not null, empty or not.
 *             # With "try", we prune empty atoms
 *             try:             # <<<<<<<<<<<<<<
 *                 if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                    (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 */
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L38_try_end;
      __pyx_L31_error:;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":580
 *                         self.atoms.update({atom.id: atom})
 *                         self.atomList.append(atom.id)
 *             except:             # <<<<<<<<<<<<<<
 *                 pass
 *         if pdb_lines == 0:
 */
      /*except:*/ {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L32_exception_handled;
      }
      __pyx_L32_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_L38_try_end:;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":548
 *             raise ValueError("Input file not found!!")
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:             # <<<<<<<<<<<<<<
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 */
    __pyx_L6_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":582
 *             except:
 *                 pass
 *         if pdb_lines == 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:
 */
  __pyx_t_8 = ((__pyx_v_pdb_lines == 0) != 0);
  if (unlikely(__pyx_t_8)) {

    /* "AdaptivePELE/atomset/atomset.pyx":583
 *                 pass
 *         if pdb_lines == 0:
 *             raise ValueError("Input pdb was malformed or empty!!")             # <<<<<<<<<<<<<<
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 583, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":582
 *             except:
 *                 pass
 *         if pdb_lines == 0:             # <<<<<<<<<<<<<<
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":584
 *         if pdb_lines == 0:
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:             # <<<<<<<<<<<<<<
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_self->atoms, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 584, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 584, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_8)) {

    /* "AdaptivePELE/atomset/atomset.pyx":585
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')             # <<<<<<<<<<<<<<
 * 
 *     def _initialiseXTC(self, np.ndarray[float, ndim=2] frame, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 585, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":584
 *         if pdb_lines == 0:
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:             # <<<<<<<<<<<<<<
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":502
 *         return self.ispdb
 * 
 *     def _initialisePDB(self, basestring PDBstr, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element="", dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a PDB file or a string with the PDB
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB._initialisePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_PDBContent);
  __Pyx_XDECREF(__pyx_v_stringWithPDBContent);
  __Pyx_XDECREF(__pyx_v_atomName);
  __Pyx_XDECREF(__pyx_v_resName);
  __Pyx_XDECREF(__pyx_v_atomLine);
  __Pyx_XDECREF(__pyx_v_resnumStr);
  __Pyx_XDECREF((PyObject *)__pyx_v_atom);
  __Pyx_XDECREF(__pyx_v_CMAtoms);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":587
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def _initialiseXTC(self, np.ndarray[float, ndim=2] frame, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a loaded XTC file into a  mdtraj Trajectory
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_13_initialiseXTC(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_12_initialiseXTC[] = "\n            Load the information from a loaded XTC file into a  mdtraj Trajectory\n\n            :param PDBstr: may be a path to the PDB file or a string with the contents of the PDB\n            :type PDBstr: basestring\n            :param heavyAtoms: wether to consider only heavy atoms (True if onl y heavy atoms have to be considered)\n            :type heavyAtoms: bool\n            :param resname: Residue name to select from the pdb (will only select the residues with that name)\n            :type resname: basestring\n            :param atomname: Residue name to select from the pdb (will only select the atoms with that name)\n            :type atomname: basestring\n            :param type: type of atoms to select: may be ALL, PROTEIN or HETERO\n            :type type: basestring\n            :param chain: Chain name to select from the pdb (will only select the atoms with that name)\n            :type chain: basestring\n            :param resnum: Residue number to select from the pdb (will only select the atoms with that name)\n            :type atomname: int\n            :raises: ValueError if the pdb contained no atoms\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_13_initialiseXTC(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_frame = 0;
  int __pyx_v_heavyAtoms;
  PyObject *__pyx_v_resname = 0;
  PyObject *__pyx_v_atomname = 0;
  PyObject *__pyx_v_type = 0;
  PyObject *__pyx_v_chain = 0;
  int __pyx_v_resnum;
  PyObject *__pyx_v_element = 0;
  PyObject *__pyx_v_topology = 0;
  PyObject *__pyx_v_extra_atoms = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_initialiseXTC (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_frame,&__pyx_n_s_heavyAtoms,&__pyx_n_s_resname,&__pyx_n_s_atomname,&__pyx_n_s_type,&__pyx_n_s_chain,&__pyx_n_s_resnum,&__pyx_n_s_element,&__pyx_n_s_topology,&__pyx_n_s_extra_atoms,0};
    PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
    values[2] = ((PyObject*)__pyx_kp_u_);
    values[3] = ((PyObject*)__pyx_kp_u_);
    values[4] = ((PyObject*)__pyx_n_u_ALL);
    values[5] = ((PyObject*)__pyx_kp_u_);
    values[7] = ((PyObject*)__pyx_kp_u_);
    values[8] = ((PyObject*)Py_None);
    values[9] = __pyx_k__14;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_frame)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_heavyAtoms);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resname);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomname);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type);
          if (value) { values[4] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chain);
          if (value) { values[5] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resnum);
          if (value) { values[6] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element);
          if (value) { values[7] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_topology);
          if (value) { values[8] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  9:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_extra_atoms);
          if (value) { values[9] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_initialiseXTC") < 0)) __PYX_ERR(0, 587, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_frame = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_heavyAtoms = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_heavyAtoms == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 587, __pyx_L3_error)
    } else {
      __pyx_v_heavyAtoms = ((int)1);
    }
    __pyx_v_resname = ((PyObject*)values[2]);
    __pyx_v_atomname = ((PyObject*)values[3]);
    __pyx_v_type = ((PyObject*)values[4]);
    __pyx_v_chain = ((PyObject*)values[5]);
    if (values[6]) {
      __pyx_v_resnum = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_resnum == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 587, __pyx_L3_error)
    } else {
      __pyx_v_resnum = ((int)0);
    }
    __pyx_v_element = ((PyObject*)values[7]);
    __pyx_v_topology = ((PyObject*)values[8]);
    __pyx_v_extra_atoms = ((PyObject*)values[9]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_initialiseXTC", 0, 1, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 587, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB._initialiseXTC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frame), __pyx_ptype_5numpy_ndarray, 1, "frame", 0))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resname), (&PyBaseString_Type), 1, "resname", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomname), (&PyBaseString_Type), 1, "atomname", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_type), (&PyBaseString_Type), 1, "type", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_chain), (&PyBaseString_Type), 1, "chain", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), (&PyBaseString_Type), 1, "element", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_topology), (&PyList_Type), 1, "topology", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extra_atoms), (&PyDict_Type), 1, "extra_atoms", 1))) __PYX_ERR(0, 587, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_12_initialiseXTC(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_frame, __pyx_v_heavyAtoms, __pyx_v_resname, __pyx_v_atomname, __pyx_v_type, __pyx_v_chain, __pyx_v_resnum, __pyx_v_element, __pyx_v_topology, __pyx_v_extra_atoms);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_12_initialiseXTC(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyArrayObject *__pyx_v_frame, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_topology, PyObject *__pyx_v_extra_atoms) {
  PyObject *__pyx_v_atomName = 0;
  PyObject *__pyx_v_resName = 0;
  PyObject *__pyx_v_atomLine = 0;
  PyObject *__pyx_v_resnumStr = 0;
  PyObject *__pyx_v_element_atom = 0;
  PyObject *__pyx_v_atomSerial = 0;
  PyObject *__pyx_v_resChain = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom = 0;
  int __pyx_v_isProtein;
  float __pyx_v_x;
  float __pyx_v_y;
  float __pyx_v_z;
  int __pyx_v_iatom;
  PyObject *__pyx_v_CMAtoms = NULL;
  PyObject *__pyx_v_resNum = NULL;
  __Pyx_LocalBuf_ND __pyx_pybuffernd_frame;
  __Pyx_Buffer __pyx_pybuffer_frame;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_initialiseXTC", 0);
  __pyx_pybuffer_frame.pybuffer.buf = NULL;
  __pyx_pybuffer_frame.refcount = 0;
  __pyx_pybuffernd_frame.data = NULL;
  __pyx_pybuffernd_frame.rcbuffer = &__pyx_pybuffer_frame;
  {
    __Pyx_BufFmt_StackElem __pyx_stack[1];
    if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_frame.rcbuffer->pybuffer, (PyObject*)__pyx_v_frame, &__Pyx_TypeInfo_float, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 587, __pyx_L1_error)
  }
  __pyx_pybuffernd_frame.diminfo[0].strides = __pyx_pybuffernd_frame.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_frame.diminfo[0].shape = __pyx_pybuffernd_frame.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_frame.diminfo[1].strides = __pyx_pybuffernd_frame.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_frame.diminfo[1].shape = __pyx_pybuffernd_frame.rcbuffer->pybuffer.shape[1];

  /* "AdaptivePELE/atomset/atomset.pyx":613
 *         cdef float x, y, z
 *         cdef int iatom
 *         if resnum == 0:             # <<<<<<<<<<<<<<
 *             resnumStr = u""
 *         else:
 */
  __pyx_t_1 = ((__pyx_v_resnum == 0) != 0);
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":614
 *         cdef int iatom
 *         if resnum == 0:
 *             resnumStr = u""             # <<<<<<<<<<<<<<
 *         else:
 *             resnumStr = u"%d" % (resnum)
 */
    __Pyx_INCREF(__pyx_kp_u_);
    __pyx_v_resnumStr = ((PyObject*)__pyx_kp_u_);

    /* "AdaptivePELE/atomset/atomset.pyx":613
 *         cdef float x, y, z
 *         cdef int iatom
 *         if resnum == 0:             # <<<<<<<<<<<<<<
 *             resnumStr = u""
 *         else:
 */
    goto __pyx_L3;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":616
 *             resnumStr = u""
 *         else:
 *             resnumStr = u"%d" % (resnum)             # <<<<<<<<<<<<<<
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it
 *         if len(frame) != len(topology):
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_resnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_d, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_resnumStr = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "AdaptivePELE/atomset/atomset.pyx":617
 *         else:
 *             resnumStr = u"%d" % (resnum)
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it             # <<<<<<<<<<<<<<
 *         if len(frame) != len(topology):
 *             raise ValueError("Input coordinates and topology do not match!!!")
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_join_PDB_lines); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_topology, ((PyObject *)__pyx_v_frame)};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_topology, ((PyObject *)__pyx_v_frame)};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_4) {
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
    }
    __Pyx_INCREF(__pyx_v_topology);
    __Pyx_GIVEREF(__pyx_v_topology);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_topology);
    __Pyx_INCREF(((PyObject *)__pyx_v_frame));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_frame));
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, ((PyObject *)__pyx_v_frame));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":618
 *             resnumStr = u"%d" % (resnum)
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it
 *         if len(frame) != len(topology):             # <<<<<<<<<<<<<<
 *             raise ValueError("Input coordinates and topology do not match!!!")
 *         if extra_atoms != {}:
 */
  __pyx_t_7 = PyObject_Length(((PyObject *)__pyx_v_frame)); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 618, __pyx_L1_error)
  if (unlikely(__pyx_v_topology == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 618, __pyx_L1_error)
  }
  __pyx_t_8 = PyList_GET_SIZE(__pyx_v_topology); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 618, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_t_7 != __pyx_t_8) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "AdaptivePELE/atomset/atomset.pyx":619
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it
 *         if len(frame) != len(topology):
 *             raise ValueError("Input coordinates and topology do not match!!!")             # <<<<<<<<<<<<<<
 *         if extra_atoms != {}:
 *             CMAtoms = extra_atoms
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 619, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":618
 *             resnumStr = u"%d" % (resnum)
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it
 *         if len(frame) != len(topology):             # <<<<<<<<<<<<<<
 *             raise ValueError("Input coordinates and topology do not match!!!")
 *         if extra_atoms != {}:
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":620
 *         if len(frame) != len(topology):
 *             raise ValueError("Input coordinates and topology do not match!!!")
 *         if extra_atoms != {}:             # <<<<<<<<<<<<<<
 *             CMAtoms = extra_atoms
 *         else:
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_extra_atoms, __pyx_t_3, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":621
 *             raise ValueError("Input coordinates and topology do not match!!!")
 *         if extra_atoms != {}:
 *             CMAtoms = extra_atoms             # <<<<<<<<<<<<<<
 *         else:
 *             CMAtoms = self.CMAtoms
 */
    __Pyx_INCREF(__pyx_v_extra_atoms);
    __pyx_v_CMAtoms = __pyx_v_extra_atoms;

    /* "AdaptivePELE/atomset/atomset.pyx":620
 *         if len(frame) != len(topology):
 *             raise ValueError("Input coordinates and topology do not match!!!")
 *         if extra_atoms != {}:             # <<<<<<<<<<<<<<
 *             CMAtoms = extra_atoms
 *         else:
 */
    goto __pyx_L5;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":623
 *             CMAtoms = extra_atoms
 *         else:
 *             CMAtoms = self.CMAtoms             # <<<<<<<<<<<<<<
 *         for iatom in range(len(topology)):
 *             atomLine = topology[iatom]
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_CMAtoms); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_CMAtoms = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L5:;

  /* "AdaptivePELE/atomset/atomset.pyx":624
 *         else:
 *             CMAtoms = self.CMAtoms
 *         for iatom in range(len(topology)):             # <<<<<<<<<<<<<<
 *             atomLine = topology[iatom]
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 */
  if (unlikely(__pyx_v_topology == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 624, __pyx_L1_error)
  }
  __pyx_t_8 = PyList_GET_SIZE(__pyx_v_topology); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 624, __pyx_L1_error)
  __pyx_t_7 = __pyx_t_8;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_7; __pyx_t_5+=1) {
    __pyx_v_iatom = __pyx_t_5;

    /* "AdaptivePELE/atomset/atomset.pyx":625
 *             CMAtoms = self.CMAtoms
 *         for iatom in range(len(topology)):
 *             atomLine = topology[iatom]             # <<<<<<<<<<<<<<
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 */
    if (unlikely(__pyx_v_topology == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 625, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_topology, __pyx_v_iatom, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 625, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_atomLine, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":626
 *         for iatom in range(len(topology)):
 *             atomLine = topology[iatom]
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):             # <<<<<<<<<<<<<<
 *                 continue
 *             if type == self._typeCM:
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_atomLine, __pyx_n_s_startswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_n_u_ATOM) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_u_ATOM);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_10 = ((!__pyx_t_9) != 0);
    if (__pyx_t_10) {
    } else {
      __pyx_t_1 = __pyx_t_10;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_atomLine, __pyx_n_s_startswith); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_n_u_HETATM) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_u_HETATM);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_9 = ((!__pyx_t_10) != 0);
    __pyx_t_1 = __pyx_t_9;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":627
 *             atomLine = topology[iatom]
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue             # <<<<<<<<<<<<<<
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()
 */
      goto __pyx_L6_continue;

      /* "AdaptivePELE/atomset/atomset.pyx":626
 *         for iatom in range(len(topology)):
 *             atomLine = topology[iatom]
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):             # <<<<<<<<<<<<<<
 *                 continue
 *             if type == self._typeCM:
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":628
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 *             if type == self._typeCM:             # <<<<<<<<<<<<<<
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeCM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 628, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 628, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "AdaptivePELE/atomset/atomset.pyx":629
 *                 continue
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()             # <<<<<<<<<<<<<<
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:
 */
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 629, __pyx_L1_error)
      }
      __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 12, 16); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 629, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 629, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 629, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 629, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_atomName, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":630
 *             if type == self._typeCM:
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()             # <<<<<<<<<<<<<<
 *                 if resName not in CMAtoms:
 *                     continue
 */
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 630, __pyx_L1_error)
      }
      __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomLine, 17, 20); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 630, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_resName, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":631
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 */
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_resName, __pyx_v_CMAtoms, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 631, __pyx_L1_error)
      __pyx_t_9 = (__pyx_t_1 != 0);
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":632
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":631
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 *                 if resName not in CMAtoms:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":633
 *                 if resName not in CMAtoms:
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:             # <<<<<<<<<<<<<<
 *                     continue
 *             else:
 */
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_atomName, __pyx_n_u_CA, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 633, __pyx_L1_error)
      __pyx_t_10 = (__pyx_t_1 != 0);
      if (__pyx_t_10) {
      } else {
        __pyx_t_9 = __pyx_t_10;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_CMAtoms, __pyx_v_resName); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 633, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_atomName, __pyx_t_2, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 633, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_9 = __pyx_t_10;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":634
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:
 *                     continue             # <<<<<<<<<<<<<<
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":633
 *                 if resName not in CMAtoms:
 *                     continue
 *                 if atomName != u"CA" and atomName != CMAtoms[resName]:             # <<<<<<<<<<<<<<
 *                     continue
 *             else:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":628
 *             if not atomLine.startswith(u"ATOM") and not atomLine.startswith(u"HETATM"):
 *                 continue
 *             if type == self._typeCM:             # <<<<<<<<<<<<<<
 *                 atomName = atomLine[12:16].strip()
 *                 resName = atomLine[17:20].strip()
 */
      goto __pyx_L11;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":637
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 */
    /*else*/ {
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_resname, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 637, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_10 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_9 = __pyx_t_1;
        goto __pyx_L17_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 637, __pyx_L1_error)
      }
      __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 17, 20); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_v_resname, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 637, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = ((!__pyx_t_1) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L17_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":638
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":637
 *             else:
 *                 # HUGE optimisation (not to create an atom each time ~ 2e-5 s/atom)
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":639
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 */
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_atomname, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 639, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_10 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_9 = __pyx_t_1;
        goto __pyx_L20_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 639, __pyx_L1_error)
      }
      __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomLine, 12, 16); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_v_atomname, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 639, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = ((!__pyx_t_1) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L20_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":640
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":639
 *                 if resname != u"" and not atomLine[17:20].strip() == resname:
 *                     continue
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":641
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 */
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_chain, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 641, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_10 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_9 = __pyx_t_1;
        goto __pyx_L23_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 641, __pyx_L1_error)
      }
      __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 21, 22); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 641, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 641, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 641, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_v_chain, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 641, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = ((!__pyx_t_1) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L23_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":642
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":641
 *                 if atomname != u"" and not atomLine[12:16].strip() == atomname:
 *                     continue
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":643
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if element != u"" and not atomLine[58:60].strip() == element:
 */
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_resnumStr, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 643, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_10 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_9 = __pyx_t_1;
        goto __pyx_L26_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 643, __pyx_L1_error)
      }
      __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomLine, 22, 26); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 643, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 643, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_v_resnumStr, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 643, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = ((!__pyx_t_1) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L26_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":644
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue             # <<<<<<<<<<<<<<
 *                 if element != u"" and not atomLine[58:60].strip() == element:
 *                     continue
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":643
 *                 if chain != u"" and not atomLine[21:22].strip() == chain:
 *                     continue
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:             # <<<<<<<<<<<<<<
 *                     continue
 *                 if element != u"" and not atomLine[58:60].strip() == element:
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":645
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 *                 if element != u"" and not atomLine[58:60].strip() == element:             # <<<<<<<<<<<<<<
 *                     continue
 *             isProtein = atomLine[:4] == u"ATOM"
 */
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_element, __pyx_kp_u_, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 645, __pyx_L1_error)
      __pyx_t_1 = (__pyx_t_10 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_9 = __pyx_t_1;
        goto __pyx_L29_bool_binop_done;
      }
      if (unlikely(__pyx_v_atomLine == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 645, __pyx_L1_error)
      }
      __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 58, 60); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 645, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 645, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 645, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_v_element, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 645, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = ((!__pyx_t_1) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L29_bool_binop_done:;
      if (__pyx_t_9) {

        /* "AdaptivePELE/atomset/atomset.pyx":646
 *                     continue
 *                 if element != u"" and not atomLine[58:60].strip() == element:
 *                     continue             # <<<<<<<<<<<<<<
 *             isProtein = atomLine[:4] == u"ATOM"
 *             atomSerial = atomLine[6:11].strip()
 */
        goto __pyx_L6_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":645
 *                 if resnumStr != u"" and not atomLine[22:26].strip() == resnumStr:
 *                     continue
 *                 if element != u"" and not atomLine[58:60].strip() == element:             # <<<<<<<<<<<<<<
 *                     continue
 *             isProtein = atomLine[:4] == u"ATOM"
 */
      }
    }
    __pyx_L11:;

    /* "AdaptivePELE/atomset/atomset.pyx":647
 *                 if element != u"" and not atomLine[58:60].strip() == element:
 *                     continue
 *             isProtein = atomLine[:4] == u"ATOM"             # <<<<<<<<<<<<<<
 *             atomSerial = atomLine[6:11].strip()
 *             atomName = atomLine[12:16].strip()
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 647, __pyx_L1_error)
    }
    __pyx_t_2 = PySequence_GetSlice(__pyx_v_atomLine, 0, 4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_ATOM, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_isProtein = __pyx_t_9;

    /* "AdaptivePELE/atomset/atomset.pyx":648
 *                     continue
 *             isProtein = atomLine[:4] == u"ATOM"
 *             atomSerial = atomLine[6:11].strip()             # <<<<<<<<<<<<<<
 *             atomName = atomLine[12:16].strip()
 *             resName = atomLine[17:20].strip()
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 648, __pyx_L1_error)
    }
    __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomLine, 6, 11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 648, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 648, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 648, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 648, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_atomSerial, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":649
 *             isProtein = atomLine[:4] == u"ATOM"
 *             atomSerial = atomLine[6:11].strip()
 *             atomName = atomLine[12:16].strip()             # <<<<<<<<<<<<<<
 *             resName = atomLine[17:20].strip()
 *             resNum = atomLine[22:26].strip()
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 649, __pyx_L1_error)
    }
    __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 12, 16); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_atomName, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":650
 *             atomSerial = atomLine[6:11].strip()
 *             atomName = atomLine[12:16].strip()
 *             resName = atomLine[17:20].strip()             # <<<<<<<<<<<<<<
 *             resNum = atomLine[22:26].strip()
 *             resChain = atomLine[21]
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 650, __pyx_L1_error)
    }
    __pyx_t_6 = PySequence_GetSlice(__pyx_v_atomLine, 17, 20); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_strip); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 650, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_resName, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":651
 *             atomName = atomLine[12:16].strip()
 *             resName = atomLine[17:20].strip()
 *             resNum = atomLine[22:26].strip()             # <<<<<<<<<<<<<<
 *             resChain = atomLine[21]
 *             x = frame[iatom, 0]
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 651, __pyx_L1_error)
    }
    __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 22, 26); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_resNum, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":652
 *             resName = atomLine[17:20].strip()
 *             resNum = atomLine[22:26].strip()
 *             resChain = atomLine[21]             # <<<<<<<<<<<<<<
 *             x = frame[iatom, 0]
 *             y = frame[iatom, 1]
 */
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_atomLine, 21, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 652, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_resChain, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":653
 *             resNum = atomLine[22:26].strip()
 *             resChain = atomLine[21]
 *             x = frame[iatom, 0]             # <<<<<<<<<<<<<<
 *             y = frame[iatom, 1]
 *             z = frame[iatom, 2]
 */
    __pyx_t_11 = __pyx_v_iatom;
    __pyx_t_12 = 0;
    __pyx_t_13 = -1;
    if (__pyx_t_11 < 0) {
      __pyx_t_11 += __pyx_pybuffernd_frame.diminfo[0].shape;
      if (unlikely(__pyx_t_11 < 0)) __pyx_t_13 = 0;
    } else if (unlikely(__pyx_t_11 >= __pyx_pybuffernd_frame.diminfo[0].shape)) __pyx_t_13 = 0;
    if (__pyx_t_12 < 0) {
      __pyx_t_12 += __pyx_pybuffernd_frame.diminfo[1].shape;
      if (unlikely(__pyx_t_12 < 0)) __pyx_t_13 = 1;
    } else if (unlikely(__pyx_t_12 >= __pyx_pybuffernd_frame.diminfo[1].shape)) __pyx_t_13 = 1;
    if (unlikely(__pyx_t_13 != -1)) {
      __Pyx_RaiseBufferIndexError(__pyx_t_13);
      __PYX_ERR(0, 653, __pyx_L1_error)
    }
    __pyx_v_x = (*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[1].strides));

    /* "AdaptivePELE/atomset/atomset.pyx":654
 *             resChain = atomLine[21]
 *             x = frame[iatom, 0]
 *             y = frame[iatom, 1]             # <<<<<<<<<<<<<<
 *             z = frame[iatom, 2]
 *             # due to the way the topology object is extracted the positions of
 */
    __pyx_t_12 = __pyx_v_iatom;
    __pyx_t_11 = 1;
    __pyx_t_13 = -1;
    if (__pyx_t_12 < 0) {
      __pyx_t_12 += __pyx_pybuffernd_frame.diminfo[0].shape;
      if (unlikely(__pyx_t_12 < 0)) __pyx_t_13 = 0;
    } else if (unlikely(__pyx_t_12 >= __pyx_pybuffernd_frame.diminfo[0].shape)) __pyx_t_13 = 0;
    if (__pyx_t_11 < 0) {
      __pyx_t_11 += __pyx_pybuffernd_frame.diminfo[1].shape;
      if (unlikely(__pyx_t_11 < 0)) __pyx_t_13 = 1;
    } else if (unlikely(__pyx_t_11 >= __pyx_pybuffernd_frame.diminfo[1].shape)) __pyx_t_13 = 1;
    if (unlikely(__pyx_t_13 != -1)) {
      __Pyx_RaiseBufferIndexError(__pyx_t_13);
      __PYX_ERR(0, 654, __pyx_L1_error)
    }
    __pyx_v_y = (*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_11, __pyx_pybuffernd_frame.diminfo[1].strides));

    /* "AdaptivePELE/atomset/atomset.pyx":655
 *             x = frame[iatom, 0]
 *             y = frame[iatom, 1]
 *             z = frame[iatom, 2]             # <<<<<<<<<<<<<<
 *             # due to the way the topology object is extracted the positions of
 *             # the element in 58-60
 */
    __pyx_t_11 = __pyx_v_iatom;
    __pyx_t_12 = 2;
    __pyx_t_13 = -1;
    if (__pyx_t_11 < 0) {
      __pyx_t_11 += __pyx_pybuffernd_frame.diminfo[0].shape;
      if (unlikely(__pyx_t_11 < 0)) __pyx_t_13 = 0;
    } else if (unlikely(__pyx_t_11 >= __pyx_pybuffernd_frame.diminfo[0].shape)) __pyx_t_13 = 0;
    if (__pyx_t_12 < 0) {
      __pyx_t_12 += __pyx_pybuffernd_frame.diminfo[1].shape;
      if (unlikely(__pyx_t_12 < 0)) __pyx_t_13 = 1;
    } else if (unlikely(__pyx_t_12 >= __pyx_pybuffernd_frame.diminfo[1].shape)) __pyx_t_13 = 1;
    if (unlikely(__pyx_t_13 != -1)) {
      __Pyx_RaiseBufferIndexError(__pyx_t_13);
      __PYX_ERR(0, 655, __pyx_L1_error)
    }
    __pyx_v_z = (*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_11, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[1].strides));

    /* "AdaptivePELE/atomset/atomset.pyx":658
 *             # due to the way the topology object is extracted the positions of
 *             # the element in 58-60
 *             element_atom = atomLine[58:60].strip().upper()             # <<<<<<<<<<<<<<
 *             atom = Atom()
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 */
    if (unlikely(__pyx_v_atomLine == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 658, __pyx_L1_error)
    }
    __pyx_t_3 = PySequence_GetSlice(__pyx_v_atomLine, 58, 60); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_strip); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_6 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_upper); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 658, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_element_atom, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":659
 *             # the element in 58-60
 *             element_atom = atomLine[58:60].strip().upper()
 *             atom = Atom()             # <<<<<<<<<<<<<<
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\
 */
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_atom, ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":660
 *             element_atom = atomLine[58:60].strip().upper()
 *             atom = Atom()
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)             # <<<<<<<<<<<<<<
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_set_properties); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_isProtein); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_14 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __pyx_t_15 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_15);
    __pyx_t_16 = NULL;
    __pyx_t_13 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_16 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_16)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_16);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_13 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[11] = {__pyx_t_16, __pyx_t_6, __pyx_v_atomSerial, __pyx_v_atomName, __pyx_v_resName, __pyx_v_resNum, __pyx_t_3, __pyx_t_14, __pyx_t_15, __pyx_v_element_atom, __pyx_v_resChain};
      __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_13, 10+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 660, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[11] = {__pyx_t_16, __pyx_t_6, __pyx_v_atomSerial, __pyx_v_atomName, __pyx_v_resName, __pyx_v_resNum, __pyx_t_3, __pyx_t_14, __pyx_t_15, __pyx_v_element_atom, __pyx_v_resChain};
      __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_13, 10+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 660, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
    } else
    #endif
    {
      __pyx_t_17 = PyTuple_New(10+__pyx_t_13); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 660, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_17);
      if (__pyx_t_16) {
        __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_16); __pyx_t_16 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_17, 0+__pyx_t_13, __pyx_t_6);
      __Pyx_INCREF(__pyx_v_atomSerial);
      __Pyx_GIVEREF(__pyx_v_atomSerial);
      PyTuple_SET_ITEM(__pyx_t_17, 1+__pyx_t_13, __pyx_v_atomSerial);
      __Pyx_INCREF(__pyx_v_atomName);
      __Pyx_GIVEREF(__pyx_v_atomName);
      PyTuple_SET_ITEM(__pyx_t_17, 2+__pyx_t_13, __pyx_v_atomName);
      __Pyx_INCREF(__pyx_v_resName);
      __Pyx_GIVEREF(__pyx_v_resName);
      PyTuple_SET_ITEM(__pyx_t_17, 3+__pyx_t_13, __pyx_v_resName);
      __Pyx_INCREF(__pyx_v_resNum);
      __Pyx_GIVEREF(__pyx_v_resNum);
      PyTuple_SET_ITEM(__pyx_t_17, 4+__pyx_t_13, __pyx_v_resNum);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_17, 5+__pyx_t_13, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_14);
      PyTuple_SET_ITEM(__pyx_t_17, 6+__pyx_t_13, __pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_15);
      PyTuple_SET_ITEM(__pyx_t_17, 7+__pyx_t_13, __pyx_t_15);
      __Pyx_INCREF(__pyx_v_element_atom);
      __Pyx_GIVEREF(__pyx_v_element_atom);
      PyTuple_SET_ITEM(__pyx_t_17, 8+__pyx_t_13, __pyx_v_element_atom);
      __Pyx_INCREF(__pyx_v_resChain);
      __Pyx_GIVEREF(__pyx_v_resChain);
      PyTuple_SET_ITEM(__pyx_t_17, 9+__pyx_t_13, __pyx_v_resChain);
      __pyx_t_6 = 0;
      __pyx_t_3 = 0;
      __pyx_t_14 = 0;
      __pyx_t_15 = 0;
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_17, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 660, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":661
 *             atom = Atom()
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 * 
 */
    __pyx_t_10 = ((!(__pyx_v_heavyAtoms != 0)) != 0);
    if (!__pyx_t_10) {
    } else {
      goto __pyx_L33_next_and;
    }
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isHeavyAtom); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_17 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_17)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_17);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_2 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 661, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L32_bool_binop_done;
    }
    __pyx_L33_next_and:;

    /* "AdaptivePELE/atomset/atomset.pyx":662
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):             # <<<<<<<<<<<<<<
 * 
 *                 self.atoms.update({atom.id: atom})
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeAll); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L32_bool_binop_done;
    }
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeCM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L32_bool_binop_done;
    }
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeProtein); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!__pyx_t_10) {
      goto __pyx_L37_next_or;
    } else {
    }
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isProtein); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_17 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_17)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_17);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_2 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (!__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L32_bool_binop_done;
    }
    __pyx_L37_next_or:;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_typeHetero); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_v_type, __pyx_t_2, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_10) {
    } else {
      __pyx_t_9 = __pyx_t_10;
      goto __pyx_L32_bool_binop_done;
    }
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_atom), __pyx_n_s_isHeteroAtom); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_17 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_17)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_17);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_2 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 662, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_9 = __pyx_t_10;
    __pyx_L32_bool_binop_done:;

    /* "AdaptivePELE/atomset/atomset.pyx":661
 *             atom = Atom()
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 * 
 */
    if (__pyx_t_9) {

      /* "AdaptivePELE/atomset/atomset.pyx":664
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 * 
 *                 self.atoms.update({atom.id: atom})             # <<<<<<<<<<<<<<
 *                 self.atomList.append(atom.id)
 *         if self.atoms == {}:
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->atoms, __pyx_n_s_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 664, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_17 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 664, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_17);
      if (PyDict_SetItem(__pyx_t_17, __pyx_v_atom->id, ((PyObject *)__pyx_v_atom)) < 0) __PYX_ERR(0, 664, __pyx_L1_error)
      __pyx_t_15 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_2 = (__pyx_t_15) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_15, __pyx_t_17) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_17);
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 664, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":665
 * 
 *                 self.atoms.update({atom.id: atom})
 *                 self.atomList.append(atom.id)             # <<<<<<<<<<<<<<
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 */
      if (unlikely(__pyx_v_self->atomList == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
        __PYX_ERR(0, 665, __pyx_L1_error)
      }
      __pyx_t_2 = __pyx_v_atom->id;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_self->atomList, __pyx_t_2); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(0, 665, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":661
 *             atom = Atom()
 *             atom.set_properties(isProtein, atomSerial, atomName, resName, resNum, x, y, z, element_atom, resChain)
 *             if (not heavyAtoms or atom.isHeavyAtom()) and\             # <<<<<<<<<<<<<<
 *                 (type == self._typeAll or type == self._typeCM or (type == self._typeProtein and atom.isProtein()) or (type == self._typeHetero and atom.isHeteroAtom())):
 * 
 */
    }
    __pyx_L6_continue:;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":666
 *                 self.atoms.update({atom.id: atom})
 *                 self.atomList.append(atom.id)
 *         if self.atoms == {}:             # <<<<<<<<<<<<<<
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyObject_RichCompare(__pyx_v_self->atoms, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(__pyx_t_9)) {

    /* "AdaptivePELE/atomset/atomset.pyx":667
 *                 self.atomList.append(atom.id)
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')             # <<<<<<<<<<<<<<
 * 
 *     def initialise(self, object coordinates, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 667, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":666
 *                 self.atoms.update({atom.id: atom})
 *                 self.atomList.append(atom.id)
 *         if self.atoms == {}:             # <<<<<<<<<<<<<<
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":587
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def _initialiseXTC(self, np.ndarray[float, ndim=2] frame, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a loaded XTC file into a  mdtraj Trajectory
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_frame.rcbuffer->pybuffer);
  __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB._initialiseXTC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  goto __pyx_L2;
  __pyx_L0:;
  __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_frame.rcbuffer->pybuffer);
  __pyx_L2:;
  __Pyx_XDECREF(__pyx_v_atomName);
  __Pyx_XDECREF(__pyx_v_resName);
  __Pyx_XDECREF(__pyx_v_atomLine);
  __Pyx_XDECREF(__pyx_v_resnumStr);
  __Pyx_XDECREF(__pyx_v_element_atom);
  __Pyx_XDECREF(__pyx_v_atomSerial);
  __Pyx_XDECREF(__pyx_v_resChain);
  __Pyx_XDECREF((PyObject *)__pyx_v_atom);
  __Pyx_XDECREF(__pyx_v_CMAtoms);
  __Pyx_XDECREF(__pyx_v_resNum);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":669
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def initialise(self, object coordinates, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Wrapper function
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_15initialise(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_14initialise[] = "\n            Wrapper function\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_15initialise(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinates = 0;
  int __pyx_v_heavyAtoms;
  PyObject *__pyx_v_resname = 0;
  PyObject *__pyx_v_atomname = 0;
  PyObject *__pyx_v_type = 0;
  PyObject *__pyx_v_chain = 0;
  int __pyx_v_resnum;
  PyObject *__pyx_v_element = 0;
  PyObject *__pyx_v_topology = 0;
  PyObject *__pyx_v_extra_atoms = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("initialise (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinates,&__pyx_n_s_heavyAtoms,&__pyx_n_s_resname,&__pyx_n_s_atomname,&__pyx_n_s_type,&__pyx_n_s_chain,&__pyx_n_s_resnum,&__pyx_n_s_element,&__pyx_n_s_topology,&__pyx_n_s_extra_atoms,0};
    PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
    values[2] = ((PyObject*)__pyx_kp_u_);
    values[3] = ((PyObject*)__pyx_kp_u_);
    values[4] = ((PyObject*)__pyx_n_u_ALL);
    values[5] = ((PyObject*)__pyx_kp_u_);
    values[7] = ((PyObject*)__pyx_kp_u_);
    values[8] = ((PyObject*)Py_None);
    values[9] = __pyx_k__16;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinates)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_heavyAtoms);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resname);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_atomname);
          if (value) { values[3] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type);
          if (value) { values[4] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_chain);
          if (value) { values[5] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  6:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_resnum);
          if (value) { values[6] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  7:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element);
          if (value) { values[7] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  8:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_topology);
          if (value) { values[8] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  9:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_extra_atoms);
          if (value) { values[9] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "initialise") < 0)) __PYX_ERR(0, 669, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        CYTHON_FALLTHROUGH;
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        CYTHON_FALLTHROUGH;
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        CYTHON_FALLTHROUGH;
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        CYTHON_FALLTHROUGH;
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_coordinates = values[0];
    if (values[1]) {
      __pyx_v_heavyAtoms = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_heavyAtoms == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 669, __pyx_L3_error)
    } else {
      __pyx_v_heavyAtoms = ((int)1);
    }
    __pyx_v_resname = ((PyObject*)values[2]);
    __pyx_v_atomname = ((PyObject*)values[3]);
    __pyx_v_type = ((PyObject*)values[4]);
    __pyx_v_chain = ((PyObject*)values[5]);
    if (values[6]) {
      __pyx_v_resnum = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_resnum == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 669, __pyx_L3_error)
    } else {
      __pyx_v_resnum = ((int)0);
    }
    __pyx_v_element = ((PyObject*)values[7]);
    __pyx_v_topology = ((PyObject*)values[8]);
    __pyx_v_extra_atoms = ((PyObject*)values[9]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("initialise", 0, 1, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 669, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.initialise", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_resname), (&PyBaseString_Type), 1, "resname", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_atomname), (&PyBaseString_Type), 1, "atomname", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_type), (&PyBaseString_Type), 1, "type", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_chain), (&PyBaseString_Type), 1, "chain", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), (&PyBaseString_Type), 1, "element", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_topology), (&PyList_Type), 1, "topology", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extra_atoms), (&PyDict_Type), 1, "extra_atoms", 1))) __PYX_ERR(0, 669, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_14initialise(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_coordinates, __pyx_v_heavyAtoms, __pyx_v_resname, __pyx_v_atomname, __pyx_v_type, __pyx_v_chain, __pyx_v_resnum, __pyx_v_element, __pyx_v_topology, __pyx_v_extra_atoms);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_14initialise(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_coordinates, int __pyx_v_heavyAtoms, PyObject *__pyx_v_resname, PyObject *__pyx_v_atomname, PyObject *__pyx_v_type, PyObject *__pyx_v_chain, int __pyx_v_resnum, PyObject *__pyx_v_element, PyObject *__pyx_v_topology, PyObject *__pyx_v_extra_atoms) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("initialise", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":673
 *             Wrapper function
 *         """
 *         if isinstance(coordinates, basestring):             # <<<<<<<<<<<<<<
 *             self.ispdb = True
 *             self._initialisePDB(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, extra_atoms=extra_atoms)
 */
  __pyx_t_1 = __Pyx_PyBaseString_Check(__pyx_v_coordinates); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "AdaptivePELE/atomset/atomset.pyx":674
 *         """
 *         if isinstance(coordinates, basestring):
 *             self.ispdb = True             # <<<<<<<<<<<<<<
 *             self._initialisePDB(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, extra_atoms=extra_atoms)
 *         else:
 */
    __pyx_v_self->ispdb = 1;

    /* "AdaptivePELE/atomset/atomset.pyx":675
 *         if isinstance(coordinates, basestring):
 *             self.ispdb = True
 *             self._initialisePDB(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, extra_atoms=extra_atoms)             # <<<<<<<<<<<<<<
 *         else:
 *             self.ispdb = False
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_initialisePDB); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_heavyAtoms); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_resnum); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_INCREF(__pyx_v_coordinates);
    __Pyx_GIVEREF(__pyx_v_coordinates);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_coordinates);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_resname);
    __Pyx_GIVEREF(__pyx_v_resname);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_resname);
    __Pyx_INCREF(__pyx_v_atomname);
    __Pyx_GIVEREF(__pyx_v_atomname);
    PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_atomname);
    __Pyx_INCREF(__pyx_v_type);
    __Pyx_GIVEREF(__pyx_v_type);
    PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_type);
    __Pyx_INCREF(__pyx_v_chain);
    __Pyx_GIVEREF(__pyx_v_chain);
    PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_v_chain);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_6, 6, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_element);
    __Pyx_GIVEREF(__pyx_v_element);
    PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_v_element);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_extra_atoms, __pyx_v_extra_atoms) < 0) __PYX_ERR(0, 675, __pyx_L1_error)
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":673
 *             Wrapper function
 *         """
 *         if isinstance(coordinates, basestring):             # <<<<<<<<<<<<<<
 *             self.ispdb = True
 *             self._initialisePDB(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, extra_atoms=extra_atoms)
 */
    goto __pyx_L3;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":677
 *             self._initialisePDB(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, extra_atoms=extra_atoms)
 *         else:
 *             self.ispdb = False             # <<<<<<<<<<<<<<
 *             self._initialiseXTC(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, topology=topology, extra_atoms=extra_atoms)
 * 
 */
  /*else*/ {
    __pyx_v_self->ispdb = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":678
 *         else:
 *             self.ispdb = False
 *             self._initialiseXTC(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, topology=topology, extra_atoms=extra_atoms)             # <<<<<<<<<<<<<<
 * 
 *     def computeTotalMass(self):
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_initialiseXTC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_heavyAtoms); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_resnum); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = PyTuple_New(8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_coordinates);
    __Pyx_GIVEREF(__pyx_v_coordinates);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_coordinates);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_INCREF(__pyx_v_resname);
    __Pyx_GIVEREF(__pyx_v_resname);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_resname);
    __Pyx_INCREF(__pyx_v_atomname);
    __Pyx_GIVEREF(__pyx_v_atomname);
    PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_atomname);
    __Pyx_INCREF(__pyx_v_type);
    __Pyx_GIVEREF(__pyx_v_type);
    PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_v_type);
    __Pyx_INCREF(__pyx_v_chain);
    __Pyx_GIVEREF(__pyx_v_chain);
    PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_v_chain);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_3, 6, __pyx_t_6);
    __Pyx_INCREF(__pyx_v_element);
    __Pyx_GIVEREF(__pyx_v_element);
    PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_v_element);
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_topology, __pyx_v_topology) < 0) __PYX_ERR(0, 678, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_extra_atoms, __pyx_v_extra_atoms) < 0) __PYX_ERR(0, 678, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_L3:;

  /* "AdaptivePELE/atomset/atomset.pyx":669
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def initialise(self, object coordinates, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Wrapper function
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.initialise", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":680
 *             self._initialiseXTC(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, topology=topology, extra_atoms=extra_atoms)
 * 
 *     def computeTotalMass(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the total mass of the PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_17computeTotalMass(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_16computeTotalMass[] = "\n            Calculate the total mass of the PDB\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_17computeTotalMass(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("computeTotalMass (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_16computeTotalMass(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_16computeTotalMass(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_v_atomNum;
  PyObject *__pyx_v_atom = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("computeTotalMass", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":685
 *         """
 *         cdef int atomNum
 *         self.totalMass = 0.0             # <<<<<<<<<<<<<<
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]
 */
  __pyx_v_self->totalMass = 0.0;

  /* "AdaptivePELE/atomset/atomset.pyx":686
 *         cdef int atomNum
 *         self.totalMass = 0.0
 *         for atomNum in range(len(self.atomList)):             # <<<<<<<<<<<<<<
 *             atom = self.atoms[self.atomList[atomNum]]
 *             self.totalMass += atom.mass
 */
  __pyx_t_1 = __pyx_v_self->atomList;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 686, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 686, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_atomNum = __pyx_t_4;

    /* "AdaptivePELE/atomset/atomset.pyx":687
 *         self.totalMass = 0.0
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]             # <<<<<<<<<<<<<<
 *             self.totalMass += atom.mass
 * 
 */
    if (unlikely(__pyx_v_self->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 687, __pyx_L1_error)
    }
    if (unlikely(__pyx_v_self->atomList == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 687, __pyx_L1_error)
    }
    __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->atomList, __pyx_v_atomNum, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF_SET(__pyx_v_atom, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":688
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]
 *             self.totalMass += atom.mass             # <<<<<<<<<<<<<<
 * 
 *     def printAtoms(self):
 */
    __pyx_t_5 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_mass); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_t_6); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 688, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_v_self->totalMass = __pyx_t_7;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":680
 *             self._initialiseXTC(coordinates, heavyAtoms, resname, atomname, type, chain, resnum, element, topology=topology, extra_atoms=extra_atoms)
 * 
 *     def computeTotalMass(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the total mass of the PDB
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.computeTotalMass", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_atom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":690
 *             self.totalMass += atom.mass
 * 
 *     def printAtoms(self):             # <<<<<<<<<<<<<<
 *         """
 *             Print Atom information for all the atoms in the PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_19printAtoms(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_18printAtoms[] = "\n            Print Atom information for all the atoms in the PDB\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_19printAtoms(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printAtoms (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_18printAtoms(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_18printAtoms(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_atom = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printAtoms", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":695
 *         """
 *         cdef Atom atom
 *         for atom in self.atoms.values():             # <<<<<<<<<<<<<<
 *             print atom  # atom.printAtom()
 * 
 */
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 695, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_Values(__pyx_v_self->atoms); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 695, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 695, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 695, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 695, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom))))) __PYX_ERR(0, 695, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_atom, ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":696
 *         cdef Atom atom
 *         for atom in self.atoms.values():
 *             print atom  # atom.printAtom()             # <<<<<<<<<<<<<<
 * 
 *     def getNumberOfAtoms(self):
 */
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_v_atom)) < 0) __PYX_ERR(0, 696, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":695
 *         """
 *         cdef Atom atom
 *         for atom in self.atoms.values():             # <<<<<<<<<<<<<<
 *             print atom  # atom.printAtom()
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":690
 *             self.totalMass += atom.mass
 * 
 *     def printAtoms(self):             # <<<<<<<<<<<<<<
 *         """
 *             Print Atom information for all the atoms in the PDB
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.printAtoms", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_atom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":698
 *             print atom  # atom.printAtom()
 * 
 *     def getNumberOfAtoms(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the number of Atoms in the PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_21getNumberOfAtoms(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_20getNumberOfAtoms[] = "\n            Get the number of Atoms in the PDB\n\n            :returns: int -- Number of atoms in the PDB\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_21getNumberOfAtoms(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getNumberOfAtoms (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_20getNumberOfAtoms(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_20getNumberOfAtoms(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getNumberOfAtoms", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":704
 *             :returns: int -- Number of atoms in the PDB
 *         """
 *         return len(self.atoms)             # <<<<<<<<<<<<<<
 * 
 *     def getAtom(self, atomId):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->atoms;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 704, __pyx_L1_error)
  }
  __pyx_t_2 = PyDict_Size(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":698
 *             print atom  # atom.printAtom()
 * 
 *     def getNumberOfAtoms(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the number of Atoms in the PDB
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.getNumberOfAtoms", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":706
 *         return len(self.atoms)
 * 
 *     def getAtom(self, atomId):             # <<<<<<<<<<<<<<
 *         """
 *             Get an Atom in the PDB by its id
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_23getAtom(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_22getAtom[] = "\n            Get an Atom in the PDB by its id\n\n            :param atomId: Id of the Atom (in the format \"atomserial:atomName:resname\")\n            :type atomId: basestring\n            :returns: int -- Number of atoms in the PDB\n            :raises: KeyError if the id is not in the PDB\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_23getAtom(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getAtom (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_22getAtom(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_atomId));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_22getAtom(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getAtom", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":715
 *             :raises: KeyError if the id is not in the PDB
 *         """
 *         return self.atoms[atomId]             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 715, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atomId); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":706
 *         return len(self.atoms)
 * 
 *     def getAtom(self, atomId):             # <<<<<<<<<<<<<<
 *         """
 *             Get an Atom in the PDB by its id
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.getAtom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":717
 *         return self.atoms[atomId]
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return len(self.atomList)
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_25__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_25__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_24__len__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_24__len__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":718
 * 
 *     def __len__(self):
 *         return len(self.atomList)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __pyx_v_self->atomList;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 718, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":717
 *         return self.atoms[atomId]
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return len(self.atomList)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":721
 * 
 * 
 *     def __getitem__(self, atomId):             # <<<<<<<<<<<<<<
 *         return self.atoms[atomId]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_27__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_27__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_26__getitem__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_atomId));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_26__getitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":722
 * 
 *     def __getitem__(self, atomId):
 *         return self.atoms[atomId]             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, atomId, atom):
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 722, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atomId); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":721
 * 
 * 
 *     def __getitem__(self, atomId):             # <<<<<<<<<<<<<<
 *         return self.atoms[atomId]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":724
 *         return self.atoms[atomId]
 * 
 *     def __setitem__(self, atomId, atom):             # <<<<<<<<<<<<<<
 *         self.atoms[atomId] = atom
 * 
 */

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_29__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId, PyObject *__pyx_v_atom); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_29__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId, PyObject *__pyx_v_atom) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_28__setitem__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_atomId), ((PyObject *)__pyx_v_atom));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_28__setitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId, PyObject *__pyx_v_atom) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":725
 * 
 *     def __setitem__(self, atomId, atom):
 *         self.atoms[atomId] = atom             # <<<<<<<<<<<<<<
 * 
 *     def __delitem__(self, atomId):
 */
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 725, __pyx_L1_error)
  }
  if (unlikely(PyDict_SetItem(__pyx_v_self->atoms, __pyx_v_atomId, __pyx_v_atom) < 0)) __PYX_ERR(0, 725, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":724
 *         return self.atoms[atomId]
 * 
 *     def __setitem__(self, atomId, atom):             # <<<<<<<<<<<<<<
 *         self.atoms[atomId] = atom
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":727
 *         self.atoms[atomId] = atom
 * 
 *     def __delitem__(self, atomId):             # <<<<<<<<<<<<<<
 *         self.atoms.pop(atomId)
 *         self.atomList.remove(atomId)
 */

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_31__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_31__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_atomId) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_30__delitem__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_atomId));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_30__delitem__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_atomId) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__delitem__", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":728
 * 
 *     def __delitem__(self, atomId):
 *         self.atoms.pop(atomId)             # <<<<<<<<<<<<<<
 *         self.atomList.remove(atomId)
 * 
 */
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "pop");
    __PYX_ERR(0, 728, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_Pop(__pyx_v_self->atoms, __pyx_v_atomId, ((PyObject *)NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":729
 *     def __delitem__(self, atomId):
 *         self.atoms.pop(atomId)
 *         self.atomList.remove(atomId)             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->atomList, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_atomId) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_atomId);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":727
 *         self.atoms[atomId] = atom
 * 
 *     def __delitem__(self, atomId):             # <<<<<<<<<<<<<<
 *         self.atoms.pop(atomId)
 *         self.atomList.remove(atomId)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_12AdaptivePELE_7atomset_7atomset_3PDB_34generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "AdaptivePELE/atomset/atomset.pyx":731
 *         self.atomList.remove(atomId)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         for atomId in self.atomList:
 *             yield self.atoms[atomId]
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_33__iter__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_33__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_32__iter__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_32__iter__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);
  __pyx_cur_scope = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)__pyx_tp_new_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__(__pyx_ptype_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__, __pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 731, __pyx_L1_error)
  } else {
    __Pyx_GOTREF(__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_12AdaptivePELE_7atomset_7atomset_3PDB_34generator, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_iter, __pyx_n_s_PDB___iter, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!gen)) __PYX_ERR(0, 731, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF(((PyObject *)__pyx_cur_scope));
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_12AdaptivePELE_7atomset_7atomset_3PDB_34generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *__pyx_cur_scope = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 731, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":732
 * 
 *     def __iter__(self):
 *         for atomId in self.atomList:             # <<<<<<<<<<<<<<
 *             yield self.atoms[atomId]
 * 
 */
  if (unlikely(__pyx_cur_scope->__pyx_v_self->atomList == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 732, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_cur_scope->__pyx_v_self->atomList; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 732, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_atomId);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_atomId, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":733
 *     def __iter__(self):
 *         for atomId in self.atomList:
 *             yield self.atoms[atomId]             # <<<<<<<<<<<<<<
 * 
 *     def updateCoords(self, newCoords):
 */
    if (unlikely(__pyx_cur_scope->__pyx_v_self->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 733, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_cur_scope->__pyx_v_self->atoms, __pyx_cur_scope->__pyx_v_atomId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 733, __pyx_L1_error)

    /* "AdaptivePELE/atomset/atomset.pyx":732
 * 
 *     def __iter__(self):
 *         for atomId in self.atomList:             # <<<<<<<<<<<<<<
 *             yield self.atoms[atomId]
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "AdaptivePELE/atomset/atomset.pyx":731
 *         self.atomList.remove(atomId)
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         for atomId in self.atomList:
 *             yield self.atoms[atomId]
 */

  /* function exit code */
  PyErr_SetNone(PyExc_StopIteration);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":735
 *             yield self.atoms[atomId]
 * 
 *     def updateCoords(self, newCoords):             # <<<<<<<<<<<<<<
 *         for atom, coords in zip(self.atomList, newCoords):
 *             atomObj = self.atoms[atom]
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_36updateCoords(PyObject *__pyx_v_self, PyObject *__pyx_v_newCoords); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_36updateCoords(PyObject *__pyx_v_self, PyObject *__pyx_v_newCoords) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("updateCoords (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_35updateCoords(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_newCoords));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_35updateCoords(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_newCoords) {
  PyObject *__pyx_v_atom = NULL;
  PyObject *__pyx_v_coords = NULL;
  PyObject *__pyx_v_atomObj = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("updateCoords", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":736
 * 
 *     def updateCoords(self, newCoords):
 *         for atom, coords in zip(self.atomList, newCoords):             # <<<<<<<<<<<<<<
 *             atomObj = self.atoms[atom]
 *             atomObj.x = coords[0]
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->atomList);
  __Pyx_GIVEREF(__pyx_v_self->atomList);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->atomList);
  __Pyx_INCREF(__pyx_v_newCoords);
  __Pyx_GIVEREF(__pyx_v_newCoords);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_newCoords);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
    __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 736, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 736, __pyx_L1_error)
        #else
        __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
      } else {
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 736, __pyx_L1_error)
        #else
        __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
      }
    } else {
      __pyx_t_2 = __pyx_t_4(__pyx_t_1);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 736, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_2);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 736, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 736, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 736, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
      index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(0, 736, __pyx_L1_error)
      __pyx_t_8 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 736, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_atom, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_coords, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":737
 *     def updateCoords(self, newCoords):
 *         for atom, coords in zip(self.atomList, newCoords):
 *             atomObj = self.atoms[atom]             # <<<<<<<<<<<<<<
 *             atomObj.x = coords[0]
 *             atomObj.y = coords[1]
 */
    if (unlikely(__pyx_v_self->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 737, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atom); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 737, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_atomObj, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":738
 *         for atom, coords in zip(self.atomList, newCoords):
 *             atomObj = self.atoms[atom]
 *             atomObj.x = coords[0]             # <<<<<<<<<<<<<<
 *             atomObj.y = coords[1]
 *             atomObj.z = coords[2]
 */
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_coords, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_atomObj, __pyx_n_s_x, __pyx_t_2) < 0) __PYX_ERR(0, 738, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":739
 *             atomObj = self.atoms[atom]
 *             atomObj.x = coords[0]
 *             atomObj.y = coords[1]             # <<<<<<<<<<<<<<
 *             atomObj.z = coords[2]
 * 
 */
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_coords, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_atomObj, __pyx_n_s_y, __pyx_t_2) < 0) __PYX_ERR(0, 739, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":740
 *             atomObj.x = coords[0]
 *             atomObj.y = coords[1]
 *             atomObj.z = coords[2]             # <<<<<<<<<<<<<<
 * 
 *     def extractCOM(self):
 */
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_coords, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_atomObj, __pyx_n_s_z, __pyx_t_2) < 0) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":736
 * 
 *     def updateCoords(self, newCoords):
 *         for atom, coords in zip(self.atomList, newCoords):             # <<<<<<<<<<<<<<
 *             atomObj = self.atoms[atom]
 *             atomObj.x = coords[0]
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":735
 *             yield self.atoms[atomId]
 * 
 *     def updateCoords(self, newCoords):             # <<<<<<<<<<<<<<
 *         for atom, coords in zip(self.atomList, newCoords):
 *             atomObj = self.atoms[atom]
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.updateCoords", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_atom);
  __Pyx_XDECREF(__pyx_v_coords);
  __Pyx_XDECREF(__pyx_v_atomObj);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":742
 *             atomObj.z = coords[2]
 * 
 *     def extractCOM(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the PDB's center of mass
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_38extractCOM(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_37extractCOM[] = "\n            Calculate the PDB's center of mass\n\n            :returns: list -- List with the center of mass coordinates\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_38extractCOM(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("extractCOM (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_37extractCOM(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_37extractCOM(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_v_COM = 0;
  PyObject *__pyx_v_atomName = NULL;
  PyObject *__pyx_v_atom = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("extractCOM", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":748
 *             :returns: list -- List with the center of mass coordinates
 *         """
 *         if not self.totalMass:             # <<<<<<<<<<<<<<
 *             self.computeTotalMass()
 *         cdef list COM
 */
  __pyx_t_1 = ((!(__pyx_v_self->totalMass != 0)) != 0);
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":749
 *         """
 *         if not self.totalMass:
 *             self.computeTotalMass()             # <<<<<<<<<<<<<<
 *         cdef list COM
 *         cdef int atomNum
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_computeTotalMass); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 749, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":748
 *             :returns: list -- List with the center of mass coordinates
 *         """
 *         if not self.totalMass:             # <<<<<<<<<<<<<<
 *             self.computeTotalMass()
 *         cdef list COM
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":752
 *         cdef list COM
 *         cdef int atomNum
 *         COM = [0., 0., 0.]             # <<<<<<<<<<<<<<
 *         for atomName in self.atoms:
 *             atom = self.atoms[atomName]
 */
  __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_float_0_);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_2, 1, __pyx_float_0_);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_2, 2, __pyx_float_0_);
  __pyx_v_COM = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":753
 *         cdef int atomNum
 *         COM = [0., 0., 0.]
 *         for atomName in self.atoms:             # <<<<<<<<<<<<<<
 *             atom = self.atoms[atomName]
 *             COM[0] += atom.mass * atom.x
 */
  __pyx_t_5 = 0;
  if (unlikely(__pyx_v_self->atoms == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 753, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_self->atoms, 1, ((PyObject *)NULL), (&__pyx_t_6), (&__pyx_t_7)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2);
  __pyx_t_2 = __pyx_t_3;
  __pyx_t_3 = 0;
  while (1) {
    __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_6, &__pyx_t_5, &__pyx_t_3, NULL, NULL, __pyx_t_7);
    if (unlikely(__pyx_t_8 == 0)) break;
    if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_atomName, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":754
 *         COM = [0., 0., 0.]
 *         for atomName in self.atoms:
 *             atom = self.atoms[atomName]             # <<<<<<<<<<<<<<
 *             COM[0] += atom.mass * atom.x
 *             COM[1] += atom.mass * atom.y
 */
    if (unlikely(__pyx_v_self->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 754, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_v_atomName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_atom, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":755
 *         for atomName in self.atoms:
 *             atom = self.atoms[atomName]
 *             COM[0] += atom.mass * atom.x             # <<<<<<<<<<<<<<
 *             COM[1] += atom.mass * atom.y
 *             COM[2] += atom.mass * atom.z
 */
    __pyx_t_9 = 0;
    __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_9, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_mass); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_x); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = PyNumber_Multiply(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_t_3, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_9, __pyx_t_10, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":756
 *             atom = self.atoms[atomName]
 *             COM[0] += atom.mass * atom.x
 *             COM[1] += atom.mass * atom.y             # <<<<<<<<<<<<<<
 *             COM[2] += atom.mass * atom.z
 * 
 */
    __pyx_t_9 = 1;
    __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_9, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_mass); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_y); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyNumber_Multiply(__pyx_t_11, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_t_10, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_9, __pyx_t_3, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 756, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":757
 *             COM[0] += atom.mass * atom.x
 *             COM[1] += atom.mass * atom.y
 *             COM[2] += atom.mass * atom.z             # <<<<<<<<<<<<<<
 * 
 *         COM[0] /= self.totalMass
 */
    __pyx_t_9 = 2;
    __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_9, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_mass); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_z); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = PyNumber_Multiply(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_t_3, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_9, __pyx_t_10, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 757, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":759
 *             COM[2] += atom.mass * atom.z
 * 
 *         COM[0] /= self.totalMass             # <<<<<<<<<<<<<<
 *         COM[1] /= self.totalMass
 *         COM[2] /= self.totalMass
 */
  __pyx_t_6 = 0;
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_10 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_2, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_6, __pyx_t_11, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":760
 * 
 *         COM[0] /= self.totalMass
 *         COM[1] /= self.totalMass             # <<<<<<<<<<<<<<
 *         COM[2] /= self.totalMass
 *         self.com = COM
 */
  __pyx_t_6 = 1;
  __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_10 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_2 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_11, __pyx_t_10); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_6, __pyx_t_2, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":761
 *         COM[0] /= self.totalMass
 *         COM[1] /= self.totalMass
 *         COM[2] /= self.totalMass             # <<<<<<<<<<<<<<
 *         self.com = COM
 *         return COM
 */
  __pyx_t_6 = 2;
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_COM, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_10 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_2, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_COM, __pyx_t_6, __pyx_t_11, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":762
 *         COM[1] /= self.totalMass
 *         COM[2] /= self.totalMass
 *         self.com = COM             # <<<<<<<<<<<<<<
 *         return COM
 * 
 */
  __Pyx_INCREF(__pyx_v_COM);
  __Pyx_GIVEREF(__pyx_v_COM);
  __Pyx_GOTREF(__pyx_v_self->com);
  __Pyx_DECREF(__pyx_v_self->com);
  __pyx_v_self->com = __pyx_v_COM;

  /* "AdaptivePELE/atomset/atomset.pyx":763
 *         COM[2] /= self.totalMass
 *         self.com = COM
 *         return COM             # <<<<<<<<<<<<<<
 * 
 *     def getCOM(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_COM);
  __pyx_r = __pyx_v_COM;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":742
 *             atomObj.z = coords[2]
 * 
 *     def extractCOM(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the PDB's center of mass
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.extractCOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_COM);
  __Pyx_XDECREF(__pyx_v_atomName);
  __Pyx_XDECREF(__pyx_v_atom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":765
 *         return COM
 * 
 *     def getCOM(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the PDB's center of mass
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_40getCOM(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_39getCOM[] = "\n            Get the PDB's center of mass\n\n            :returns: list -- List with the center of mass coordinates\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_40getCOM(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getCOM (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_39getCOM(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_39getCOM(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getCOM", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":771
 *             :returns: list -- List with the center of mass coordinates
 *         """
 *         if self.com is None:             # <<<<<<<<<<<<<<
 *             return self.extractCOM()
 *         else:
 */
  __pyx_t_1 = (__pyx_v_self->com == ((PyObject*)Py_None));
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "AdaptivePELE/atomset/atomset.pyx":772
 *         """
 *         if self.com is None:
 *             return self.extractCOM()             # <<<<<<<<<<<<<<
 *         else:
 *             return self.com
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extractCOM); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":771
 *             :returns: list -- List with the center of mass coordinates
 *         """
 *         if self.com is None:             # <<<<<<<<<<<<<<
 *             return self.extractCOM()
 *         else:
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":774
 *             return self.extractCOM()
 *         else:
 *             return self.com             # <<<<<<<<<<<<<<
 * 
 *     def extractCentroid(self):
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->com);
    __pyx_r = __pyx_v_self->com;
    goto __pyx_L0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":765
 *         return COM
 * 
 *     def getCOM(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the PDB's center of mass
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.getCOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":776
 *             return self.com
 * 
 *     def extractCentroid(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the PDB centroid
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_42extractCentroid(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_41extractCentroid[] = "\n            Calculate the PDB centroid\n\n            :returns: List -- List with the centroid coordinates\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_42extractCentroid(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("extractCentroid (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_41extractCentroid(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_41extractCentroid(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_v_centroid = 0;
  double __pyx_v_n;
  int __pyx_v_atomNum;
  PyObject *__pyx_v_atom = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("extractCentroid", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":785
 *         cdef double n
 *         cdef int atomNum
 *         centroid = [0., 0., 0.]             # <<<<<<<<<<<<<<
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]
 */
  __pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_float_0_);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_float_0_);
  __Pyx_INCREF(__pyx_float_0_);
  __Pyx_GIVEREF(__pyx_float_0_);
  PyList_SET_ITEM(__pyx_t_1, 2, __pyx_float_0_);
  __pyx_v_centroid = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":786
 *         cdef int atomNum
 *         centroid = [0., 0., 0.]
 *         for atomNum in range(len(self.atomList)):             # <<<<<<<<<<<<<<
 *             atom = self.atoms[self.atomList[atomNum]]
 *             centroid[0] += atom.x
 */
  __pyx_t_1 = __pyx_v_self->atomList;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 786, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 786, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_atomNum = __pyx_t_4;

    /* "AdaptivePELE/atomset/atomset.pyx":787
 *         centroid = [0., 0., 0.]
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]             # <<<<<<<<<<<<<<
 *             centroid[0] += atom.x
 *             centroid[1] += atom.y
 */
    if (unlikely(__pyx_v_self->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 787, __pyx_L1_error)
    }
    if (unlikely(__pyx_v_self->atomList == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 787, __pyx_L1_error)
    }
    __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_self->atomList, __pyx_v_atomNum, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_self->atoms, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF_SET(__pyx_v_atom, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":788
 *         for atomNum in range(len(self.atomList)):
 *             atom = self.atoms[self.atomList[atomNum]]
 *             centroid[0] += atom.x             # <<<<<<<<<<<<<<
 *             centroid[1] += atom.y
 *             centroid[2] += atom.z
 */
    __pyx_t_6 = 0;
    __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_6, __pyx_t_7, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 788, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":789
 *             atom = self.atoms[self.atomList[atomNum]]
 *             centroid[0] += atom.x
 *             centroid[1] += atom.y             # <<<<<<<<<<<<<<
 *             centroid[2] += atom.z
 * 
 */
    __pyx_t_6 = 1;
    __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_6, __pyx_t_5, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":790
 *             centroid[0] += atom.x
 *             centroid[1] += atom.y
 *             centroid[2] += atom.z             # <<<<<<<<<<<<<<
 * 
 *         n = float(len(self.atoms))
 */
    __pyx_t_6 = 2;
    __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_6, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_atom, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_6, __pyx_t_7, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":792
 *             centroid[2] += atom.z
 * 
 *         n = float(len(self.atoms))             # <<<<<<<<<<<<<<
 *         centroid[0] /= n
 *         centroid[1] /= n
 */
  __pyx_t_7 = __pyx_v_self->atoms;
  __Pyx_INCREF(__pyx_t_7);
  if (unlikely(__pyx_t_7 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 792, __pyx_L1_error)
  }
  __pyx_t_2 = PyDict_Size(__pyx_t_7); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 792, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_v_n = ((double)__pyx_t_2);

  /* "AdaptivePELE/atomset/atomset.pyx":793
 * 
 *         n = float(len(self.atoms))
 *         centroid[0] /= n             # <<<<<<<<<<<<<<
 *         centroid[1] /= n
 *         centroid[2] /= n
 */
  __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_2, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_2, __pyx_t_5, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":794
 *         n = float(len(self.atoms))
 *         centroid[0] /= n
 *         centroid[1] /= n             # <<<<<<<<<<<<<<
 *         centroid[2] /= n
 *         self.centroid = centroid
 */
  __pyx_t_2 = 1;
  __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_2, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_2, __pyx_t_7, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 794, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":795
 *         centroid[0] /= n
 *         centroid[1] /= n
 *         centroid[2] /= n             # <<<<<<<<<<<<<<
 *         self.centroid = centroid
 *         return centroid
 */
  __pyx_t_2 = 2;
  __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_centroid, __pyx_t_2, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyNumber_InPlaceDivide(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__Pyx_SetItemInt(__pyx_v_centroid, __pyx_t_2, __pyx_t_5, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1) < 0)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":796
 *         centroid[1] /= n
 *         centroid[2] /= n
 *         self.centroid = centroid             # <<<<<<<<<<<<<<
 *         return centroid
 * 
 */
  __Pyx_INCREF(__pyx_v_centroid);
  __Pyx_GIVEREF(__pyx_v_centroid);
  __Pyx_GOTREF(__pyx_v_self->centroid);
  __Pyx_DECREF(__pyx_v_self->centroid);
  __pyx_v_self->centroid = __pyx_v_centroid;

  /* "AdaptivePELE/atomset/atomset.pyx":797
 *         centroid[2] /= n
 *         self.centroid = centroid
 *         return centroid             # <<<<<<<<<<<<<<
 * 
 *     def getCentroid(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_centroid);
  __pyx_r = __pyx_v_centroid;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":776
 *             return self.com
 * 
 *     def extractCentroid(self):             # <<<<<<<<<<<<<<
 *         """
 *             Calculate the PDB centroid
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.extractCentroid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_centroid);
  __Pyx_XDECREF(__pyx_v_atom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":799
 *         return centroid
 * 
 *     def getCentroid(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the PDB's centroid
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_44getCentroid(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_43getCentroid[] = "\n            Get the PDB's centroid\n\n            :returns: list -- List with the centroid coordinates\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_44getCentroid(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getCentroid (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_43getCentroid(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_43getCentroid(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("getCentroid", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":805
 *             :returns: list -- List with the centroid coordinates
 *         """
 *         if self.centroid is None:             # <<<<<<<<<<<<<<
 *             return self.extractCentroid()
 *         else:
 */
  __pyx_t_1 = (__pyx_v_self->centroid == ((PyObject*)Py_None));
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "AdaptivePELE/atomset/atomset.pyx":806
 *         """
 *         if self.centroid is None:
 *             return self.extractCentroid()             # <<<<<<<<<<<<<<
 *         else:
 *             return self.centroid
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extractCentroid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 806, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 806, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":805
 *             :returns: list -- List with the centroid coordinates
 *         """
 *         if self.centroid is None:             # <<<<<<<<<<<<<<
 *             return self.extractCentroid()
 *         else:
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":808
 *             return self.extractCentroid()
 *         else:
 *             return self.centroid             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->centroid);
    __pyx_r = __pyx_v_self->centroid;
    goto __pyx_L0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":799
 *         return centroid
 * 
 *     def getCentroid(self):             # <<<<<<<<<<<<<<
 *         """
 *             Get the PDB's centroid
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.getCentroid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":813
 *     @cython.boundscheck(False)
 *     @cython.wraparound(False)
 *     def join_PDB_lines(self, list topology, np.ndarray[float, ndim=2] frame):             # <<<<<<<<<<<<<<
 *         cdef basestring prevLine = None
 *         cdef basestring temp = u"%.3f"
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_46join_PDB_lines(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_46join_PDB_lines(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_topology = 0;
  PyArrayObject *__pyx_v_frame = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("join_PDB_lines (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_topology,&__pyx_n_s_frame,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_topology)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_frame)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("join_PDB_lines", 1, 2, 2, 1); __PYX_ERR(0, 813, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "join_PDB_lines") < 0)) __PYX_ERR(0, 813, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_topology = ((PyObject*)values[0]);
    __pyx_v_frame = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("join_PDB_lines", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 813, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.join_PDB_lines", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_topology), (&PyList_Type), 1, "topology", 1))) __PYX_ERR(0, 813, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frame), __pyx_ptype_5numpy_ndarray, 1, "frame", 0))) __PYX_ERR(0, 813, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_45join_PDB_lines(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_topology, __pyx_v_frame);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_45join_PDB_lines(CYTHON_UNUSED struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_topology, PyArrayObject *__pyx_v_frame) {
  PyObject *__pyx_v_prevLine = 0;
  PyObject *__pyx_v_temp = 0;
  PyObject *__pyx_v_pdb = 0;
  PyObject *__pyx_v_line = 0;
  unsigned int __pyx_v_natoms;
  unsigned int __pyx_v_i;
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_v_y = NULL;
  PyObject *__pyx_v_z = NULL;
  __Pyx_LocalBuf_ND __pyx_pybuffernd_frame;
  __Pyx_Buffer __pyx_pybuffer_frame;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  unsigned int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  size_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("join_PDB_lines", 0);
  __pyx_pybuffer_frame.pybuffer.buf = NULL;
  __pyx_pybuffer_frame.refcount = 0;
  __pyx_pybuffernd_frame.data = NULL;
  __pyx_pybuffernd_frame.rcbuffer = &__pyx_pybuffer_frame;
  {
    __Pyx_BufFmt_StackElem __pyx_stack[1];
    if (unlikely(__Pyx_GetBufferAndValidate(&__pyx_pybuffernd_frame.rcbuffer->pybuffer, (PyObject*)__pyx_v_frame, &__Pyx_TypeInfo_float, PyBUF_FORMAT| PyBUF_STRIDES, 2, 0, __pyx_stack) == -1)) __PYX_ERR(0, 813, __pyx_L1_error)
  }
  __pyx_pybuffernd_frame.diminfo[0].strides = __pyx_pybuffernd_frame.rcbuffer->pybuffer.strides[0]; __pyx_pybuffernd_frame.diminfo[0].shape = __pyx_pybuffernd_frame.rcbuffer->pybuffer.shape[0]; __pyx_pybuffernd_frame.diminfo[1].strides = __pyx_pybuffernd_frame.rcbuffer->pybuffer.strides[1]; __pyx_pybuffernd_frame.diminfo[1].shape = __pyx_pybuffernd_frame.rcbuffer->pybuffer.shape[1];

  /* "AdaptivePELE/atomset/atomset.pyx":814
 *     @cython.wraparound(False)
 *     def join_PDB_lines(self, list topology, np.ndarray[float, ndim=2] frame):
 *         cdef basestring prevLine = None             # <<<<<<<<<<<<<<
 *         cdef basestring temp = u"%.3f"
 *         cdef list pdb = []
 */
  __Pyx_INCREF(Py_None);
  __pyx_v_prevLine = ((PyObject*)Py_None);

  /* "AdaptivePELE/atomset/atomset.pyx":815
 *     def join_PDB_lines(self, list topology, np.ndarray[float, ndim=2] frame):
 *         cdef basestring prevLine = None
 *         cdef basestring temp = u"%.3f"             # <<<<<<<<<<<<<<
 *         cdef list pdb = []
 *         cdef basestring line
 */
  __Pyx_INCREF(__pyx_kp_u_3f);
  __pyx_v_temp = ((PyObject*)__pyx_kp_u_3f);

  /* "AdaptivePELE/atomset/atomset.pyx":816
 *         cdef basestring prevLine = None
 *         cdef basestring temp = u"%.3f"
 *         cdef list pdb = []             # <<<<<<<<<<<<<<
 *         cdef basestring line
 *         cdef unsigned int natoms = len(topology)
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_pdb = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":818
 *         cdef list pdb = []
 *         cdef basestring line
 *         cdef unsigned int natoms = len(topology)             # <<<<<<<<<<<<<<
 *         cdef unsigned int i
 *         for i in range(natoms):
 */
  if (unlikely(__pyx_v_topology == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 818, __pyx_L1_error)
  }
  __pyx_t_2 = PyList_GET_SIZE(__pyx_v_topology); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 818, __pyx_L1_error)
  __pyx_v_natoms = __pyx_t_2;

  /* "AdaptivePELE/atomset/atomset.pyx":820
 *         cdef unsigned int natoms = len(topology)
 *         cdef unsigned int i
 *         for i in range(natoms):             # <<<<<<<<<<<<<<
 *             line = topology[i]
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):
 */
  __pyx_t_3 = __pyx_v_natoms;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "AdaptivePELE/atomset/atomset.pyx":821
 *         cdef unsigned int i
 *         for i in range(natoms):
 *             line = topology[i]             # <<<<<<<<<<<<<<
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):
 *                 pdb.append(u"TER\n")
 */
    if (unlikely(__pyx_v_topology == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 821, __pyx_L1_error)
    }
    if (!(likely(__Pyx_PyBaseString_CheckExact(PyList_GET_ITEM(__pyx_v_topology, __pyx_v_i)))||((PyList_GET_ITEM(__pyx_v_topology, __pyx_v_i)) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(PyList_GET_ITEM(__pyx_v_topology, __pyx_v_i))->tp_name), 0))) __PYX_ERR(0, 821, __pyx_L1_error)
    __pyx_t_1 = PyList_GET_ITEM(__pyx_v_topology, __pyx_v_i);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_line, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":822
 *         for i in range(natoms):
 *             line = topology[i]
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):             # <<<<<<<<<<<<<<
 *                 pdb.append(u"TER\n")
 *             x = (temp % frame[i, 0]).rjust(8)
 */
    __pyx_t_7 = (__pyx_v_prevLine != ((PyObject*)Py_None));
    __pyx_t_8 = (__pyx_t_7 != 0);
    if (__pyx_t_8) {
    } else {
      __pyx_t_6 = __pyx_t_8;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_prevLine, 21, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_line, 21, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 822, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = PyObject_RichCompare(__pyx_t_1, __pyx_t_9, Py_NE); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 822, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 822, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (!__pyx_t_8) {
    } else {
      __pyx_t_6 = __pyx_t_8;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_8 = (__pyx_f_12AdaptivePELE_7atomset_7atomset_check_add_TER(__pyx_v_prevLine, __pyx_v_line) != 0);
    __pyx_t_6 = __pyx_t_8;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_6) {

      /* "AdaptivePELE/atomset/atomset.pyx":823
 *             line = topology[i]
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):
 *                 pdb.append(u"TER\n")             # <<<<<<<<<<<<<<
 *             x = (temp % frame[i, 0]).rjust(8)
 *             y = (temp % frame[i, 1]).rjust(8)
 */
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_pdb, __pyx_n_u_TER); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 823, __pyx_L1_error)

      /* "AdaptivePELE/atomset/atomset.pyx":822
 *         for i in range(natoms):
 *             line = topology[i]
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):             # <<<<<<<<<<<<<<
 *                 pdb.append(u"TER\n")
 *             x = (temp % frame[i, 0]).rjust(8)
 */
    }

    /* "AdaptivePELE/atomset/atomset.pyx":824
 *             if prevLine is not None and (prevLine[21] != line[21] or check_add_TER(prevLine, line)):
 *                 pdb.append(u"TER\n")
 *             x = (temp % frame[i, 0]).rjust(8)             # <<<<<<<<<<<<<<
 *             y = (temp % frame[i, 1]).rjust(8)
 *             z = (temp % frame[i, 2]).rjust(8)
 */
    __pyx_t_12 = __pyx_v_i;
    __pyx_t_13 = 0;
    __pyx_t_9 = PyFloat_FromDouble((*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_13, __pyx_pybuffernd_frame.diminfo[1].strides))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 824, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_1 = PyNumber_Remainder(__pyx_v_temp, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_rjust); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 824, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_10 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_1, __pyx_int_8) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_int_8);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 824, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF_SET(__pyx_v_x, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":825
 *                 pdb.append(u"TER\n")
 *             x = (temp % frame[i, 0]).rjust(8)
 *             y = (temp % frame[i, 1]).rjust(8)             # <<<<<<<<<<<<<<
 *             z = (temp % frame[i, 2]).rjust(8)
 *             prevLine = line
 */
    __pyx_t_12 = __pyx_v_i;
    __pyx_t_13 = 1;
    __pyx_t_9 = PyFloat_FromDouble((*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_13, __pyx_pybuffernd_frame.diminfo[1].strides))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_1 = PyNumber_Remainder(__pyx_v_temp, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_rjust); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_10 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_1, __pyx_int_8) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_int_8);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF_SET(__pyx_v_y, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":826
 *             x = (temp % frame[i, 0]).rjust(8)
 *             y = (temp % frame[i, 1]).rjust(8)
 *             z = (temp % frame[i, 2]).rjust(8)             # <<<<<<<<<<<<<<
 *             prevLine = line
 *             pdb.append(line % (x, y, z))
 */
    __pyx_t_12 = __pyx_v_i;
    __pyx_t_13 = 2;
    __pyx_t_9 = PyFloat_FromDouble((*__Pyx_BufPtrStrided2d(float *, __pyx_pybuffernd_frame.rcbuffer->pybuffer.buf, __pyx_t_12, __pyx_pybuffernd_frame.diminfo[0].strides, __pyx_t_13, __pyx_pybuffernd_frame.diminfo[1].strides))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_1 = PyNumber_Remainder(__pyx_v_temp, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_rjust); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_10 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_1, __pyx_int_8) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_int_8);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF_SET(__pyx_v_z, __pyx_t_10);
    __pyx_t_10 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":827
 *             y = (temp % frame[i, 1]).rjust(8)
 *             z = (temp % frame[i, 2]).rjust(8)
 *             prevLine = line             # <<<<<<<<<<<<<<
 *             pdb.append(line % (x, y, z))
 *         return "".join(pdb)
 */
    __Pyx_INCREF(__pyx_v_line);
    __Pyx_DECREF_SET(__pyx_v_prevLine, __pyx_v_line);

    /* "AdaptivePELE/atomset/atomset.pyx":828
 *             z = (temp % frame[i, 2]).rjust(8)
 *             prevLine = line
 *             pdb.append(line % (x, y, z))             # <<<<<<<<<<<<<<
 *         return "".join(pdb)
 * 
 */
    __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_INCREF(__pyx_v_x);
    __Pyx_GIVEREF(__pyx_v_x);
    PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_x);
    __Pyx_INCREF(__pyx_v_y);
    __Pyx_GIVEREF(__pyx_v_y);
    PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_y);
    __Pyx_INCREF(__pyx_v_z);
    __Pyx_GIVEREF(__pyx_v_z);
    PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_z);
    __pyx_t_9 = PyNumber_Remainder(__pyx_v_line, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_pdb, __pyx_t_9); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 828, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":829
 *             prevLine = line
 *             pdb.append(line % (x, y, z))
 *         return "".join(pdb)             # <<<<<<<<<<<<<<
 * 
 *     def get_pdb_string(self, int model_num=1):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = PyUnicode_Join(__pyx_kp_u_, __pyx_v_pdb); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":813
 *     @cython.boundscheck(False)
 *     @cython.wraparound(False)
 *     def join_PDB_lines(self, list topology, np.ndarray[float, ndim=2] frame):             # <<<<<<<<<<<<<<
 *         cdef basestring prevLine = None
 *         cdef basestring temp = u"%.3f"
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  { PyObject *__pyx_type, *__pyx_value, *__pyx_tb;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);
    __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_frame.rcbuffer->pybuffer);
  __Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.join_PDB_lines", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  goto __pyx_L2;
  __pyx_L0:;
  __Pyx_SafeReleaseBuffer(&__pyx_pybuffernd_frame.rcbuffer->pybuffer);
  __pyx_L2:;
  __Pyx_XDECREF(__pyx_v_prevLine);
  __Pyx_XDECREF(__pyx_v_temp);
  __Pyx_XDECREF(__pyx_v_pdb);
  __Pyx_XDECREF(__pyx_v_line);
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_y);
  __Pyx_XDECREF(__pyx_v_z);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":831
 *         return "".join(pdb)
 * 
 *     def get_pdb_string(self, int model_num=1):             # <<<<<<<<<<<<<<
 *         if self.ispdb:
 *             return self.pdb
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_48get_pdb_string(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_48get_pdb_string(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_v_model_num;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_pdb_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_model_num,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_model_num);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get_pdb_string") < 0)) __PYX_ERR(0, 831, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_model_num = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_model_num == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L3_error)
    } else {
      __pyx_v_model_num = ((int)1);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_pdb_string", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 831, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.get_pdb_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_47get_pdb_string(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_model_num);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_47get_pdb_string(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, int __pyx_v_model_num) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_pdb_string", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":832
 * 
 *     def get_pdb_string(self, int model_num=1):
 *         if self.ispdb:             # <<<<<<<<<<<<<<
 *             return self.pdb
 *         else:
 */
  __pyx_t_1 = (__pyx_v_self->ispdb != 0);
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":833
 *     def get_pdb_string(self, int model_num=1):
 *         if self.ispdb:
 *             return self.pdb             # <<<<<<<<<<<<<<
 *         else:
 *             return "".join([u"MODEL    %4d\n" % model_num, self.pdb, u"ENDMDL\n", u"END\n"])
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->pdb);
    __pyx_r = __pyx_v_self->pdb;
    goto __pyx_L0;

    /* "AdaptivePELE/atomset/atomset.pyx":832
 * 
 *     def get_pdb_string(self, int model_num=1):
 *         if self.ispdb:             # <<<<<<<<<<<<<<
 *             return self.pdb
 *         else:
 */
  }

  /* "AdaptivePELE/atomset/atomset.pyx":835
 *             return self.pdb
 *         else:
 *             return "".join([u"MODEL    %4d\n" % model_num, self.pdb, u"ENDMDL\n", u"END\n"])             # <<<<<<<<<<<<<<
 * 
 *     def writePDB(self, basestring path, int model_num=1):
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_model_num); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_MODEL_4d, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyList_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_INCREF(__pyx_v_self->pdb);
    __Pyx_GIVEREF(__pyx_v_self->pdb);
    PyList_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->pdb);
    __Pyx_INCREF(__pyx_n_u_ENDMDL);
    __Pyx_GIVEREF(__pyx_n_u_ENDMDL);
    PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_u_ENDMDL);
    __Pyx_INCREF(__pyx_n_u_END);
    __Pyx_GIVEREF(__pyx_n_u_END);
    PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_u_END);
    __pyx_t_3 = 0;
    __pyx_t_3 = PyUnicode_Join(__pyx_kp_u_, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":831
 *         return "".join(pdb)
 * 
 *     def get_pdb_string(self, int model_num=1):             # <<<<<<<<<<<<<<
 *         if self.ispdb:
 *             return self.pdb
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.get_pdb_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":837
 *             return "".join([u"MODEL    %4d\n" % model_num, self.pdb, u"ENDMDL\n", u"END\n"])
 * 
 *     def writePDB(self, basestring path, int model_num=1):             # <<<<<<<<<<<<<<
 *         """
 *             Write the pdb contents of the file from wich the PDB object was
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_50writePDB(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_49writePDB[] = "\n            Write the pdb contents of the file from wich the PDB object was\n            created\n\n            :param path: Path of the file where to write the pdb\n            :type path: basestring\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_50writePDB(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_path = 0;
  int __pyx_v_model_num;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("writePDB (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_path,&__pyx_n_s_model_num,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_model_num);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "writePDB") < 0)) __PYX_ERR(0, 837, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_path = ((PyObject*)values[0]);
    if (values[1]) {
      __pyx_v_model_num = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_model_num == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 837, __pyx_L3_error)
    } else {
      __pyx_v_model_num = ((int)1);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("writePDB", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 837, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.writePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyBaseString_Type), 1, "path", 1))) __PYX_ERR(0, 837, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_49writePDB(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_path, __pyx_v_model_num);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_49writePDB(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_path, int __pyx_v_model_num) {
  PyObject *__pyx_v_fileHandle = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("writePDB", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":846
 *         """
 *         cdef object fileHandle, atom
 *         if self.ispdb:             # <<<<<<<<<<<<<<
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 *                 # in old simulations it will fail without the unicode
 */
  __pyx_t_1 = (__pyx_v_self->ispdb != 0);
  if (__pyx_t_1) {

    /* "AdaptivePELE/atomset/atomset.pyx":847
 *         cdef object fileHandle, atom
 *         if self.ispdb:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:             # <<<<<<<<<<<<<<
 *                 # in old simulations it will fail without the unicode
 *                 fileHandle.write(unicode(self.pdb))
 */
    /*with:*/ {
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_path);
      __Pyx_GIVEREF(__pyx_v_path);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_path);
      __Pyx_INCREF(__pyx_n_u_w);
      __Pyx_GIVEREF(__pyx_n_u_w);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_n_u_w);
      __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_encoding, __pyx_kp_u_utf_8) < 0) __PYX_ERR(0, 847, __pyx_L1_error)
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_5, __pyx_n_s_exit); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 847, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PyObject_LookupSpecial(__pyx_t_5, __pyx_n_s_enter); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 847, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_2)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 847, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      /*try:*/ {
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_9);
          /*try:*/ {
            __pyx_v_fileHandle = __pyx_t_3;
            __pyx_t_3 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":849
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 *                 # in old simulations it will fail without the unicode
 *                 fileHandle.write(unicode(self.pdb))             # <<<<<<<<<<<<<<
 *         else:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 */
            __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_fileHandle, __pyx_n_s_write); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 849, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_v_self->pdb); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_2 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
              __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
              if (likely(__pyx_t_2)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
                __Pyx_INCREF(__pyx_t_2);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_5, function);
              }
            }
            __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4);
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":847
 *         cdef object fileHandle, atom
 *         if self.ispdb:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:             # <<<<<<<<<<<<<<
 *                 # in old simulations it will fail without the unicode
 *                 fileHandle.write(unicode(self.pdb))
 */
          }
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L13_try_end;
          __pyx_L8_error:;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          /*except:*/ {
            __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.writePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 847, __pyx_L10_except_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_2 = PyTuple_Pack(3, __pyx_t_3, __pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L10_except_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_2, NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 847, __pyx_L10_except_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            if (__pyx_t_1 < 0) __PYX_ERR(0, 847, __pyx_L10_except_error)
            __pyx_t_11 = ((!(__pyx_t_1 != 0)) != 0);
            if (__pyx_t_11) {
              __Pyx_GIVEREF(__pyx_t_3);
              __Pyx_GIVEREF(__pyx_t_5);
              __Pyx_XGIVEREF(__pyx_t_4);
              __Pyx_ErrRestoreWithState(__pyx_t_3, __pyx_t_5, __pyx_t_4);
              __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0; 
              __PYX_ERR(0, 847, __pyx_L10_except_error)
            }
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            goto __pyx_L9_exception_handled;
          }
          __pyx_L10_except_error:;
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
          goto __pyx_L1_error;
          __pyx_L9_exception_handled:;
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
          __pyx_L13_try_end:;
        }
      }
      /*finally:*/ {
        /*normal exit:*/{
          if (__pyx_t_6) {
            __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__17, NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 847, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          }
          goto __pyx_L7;
        }
        __pyx_L7:;
      }
      goto __pyx_L17;
      __pyx_L4_error:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L1_error;
      __pyx_L17:;
    }

    /* "AdaptivePELE/atomset/atomset.pyx":846
 *         """
 *         cdef object fileHandle, atom
 *         if self.ispdb:             # <<<<<<<<<<<<<<
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 *                 # in old simulations it will fail without the unicode
 */
    goto __pyx_L3;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":851
 *                 fileHandle.write(unicode(self.pdb))
 *         else:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:             # <<<<<<<<<<<<<<
 *                 fileHandle.write(u"MODEL    %4d\n" % model_num)
 *                 fileHandle.write(self.pdb)
 */
  /*else*/ {
    /*with:*/ {
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_open); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_path);
      __Pyx_GIVEREF(__pyx_v_path);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_path);
      __Pyx_INCREF(__pyx_n_u_w);
      __Pyx_GIVEREF(__pyx_n_u_w);
      PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_n_u_w);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_encoding, __pyx_kp_u_utf_8) < 0) __PYX_ERR(0, 851, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_2, __pyx_n_s_exit); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyObject_LookupSpecial(__pyx_t_2, __pyx_n_s_enter); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 851, __pyx_L18_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 851, __pyx_L18_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      /*try:*/ {
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_8, &__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_7);
          /*try:*/ {
            __pyx_v_fileHandle = __pyx_t_5;
            __pyx_t_5 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":852
 *         else:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 *                 fileHandle.write(u"MODEL    %4d\n" % model_num)             # <<<<<<<<<<<<<<
 *                 fileHandle.write(self.pdb)
 *                 fileHandle.write(u"ENDMDL\n")
 */
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fileHandle, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 852, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_model_num); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 852, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_MODEL_4d, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 852, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __pyx_t_3 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
              __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
              if (likely(__pyx_t_3)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
                __Pyx_INCREF(__pyx_t_3);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_2, function);
              }
            }
            __pyx_t_5 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 852, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":853
 *             with open(path, 'w', encoding="utf-8") as fileHandle:
 *                 fileHandle.write(u"MODEL    %4d\n" % model_num)
 *                 fileHandle.write(self.pdb)             # <<<<<<<<<<<<<<
 *                 fileHandle.write(u"ENDMDL\n")
 *                 fileHandle.write(u"END\n")
 */
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fileHandle, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 853, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_4 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
              __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
              if (likely(__pyx_t_4)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
                __Pyx_INCREF(__pyx_t_4);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_2, function);
              }
            }
            __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v_self->pdb) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->pdb);
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 853, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":854
 *                 fileHandle.write(u"MODEL    %4d\n" % model_num)
 *                 fileHandle.write(self.pdb)
 *                 fileHandle.write(u"ENDMDL\n")             # <<<<<<<<<<<<<<
 *                 fileHandle.write(u"END\n")
 * 
 */
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fileHandle, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 854, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_4 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
              __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
              if (likely(__pyx_t_4)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
                __Pyx_INCREF(__pyx_t_4);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_2, function);
              }
            }
            __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_n_u_ENDMDL) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_ENDMDL);
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 854, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":855
 *                 fileHandle.write(self.pdb)
 *                 fileHandle.write(u"ENDMDL\n")
 *                 fileHandle.write(u"END\n")             # <<<<<<<<<<<<<<
 * 
 *     def countContacts(self, basestring ligandResname, int contactThresholdDistance, int ligandResnum=0, basestring ligandChain=u""):
 */
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_fileHandle, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_4 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
              __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
              if (likely(__pyx_t_4)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
                __Pyx_INCREF(__pyx_t_4);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_2, function);
              }
            }
            __pyx_t_5 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_n_u_END) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_END);
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 855, __pyx_L22_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

            /* "AdaptivePELE/atomset/atomset.pyx":851
 *                 fileHandle.write(unicode(self.pdb))
 *         else:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:             # <<<<<<<<<<<<<<
 *                 fileHandle.write(u"MODEL    %4d\n" % model_num)
 *                 fileHandle.write(self.pdb)
 */
          }
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          goto __pyx_L27_try_end;
          __pyx_L22_error:;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          /*except:*/ {
            __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.writePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_2, &__pyx_t_4) < 0) __PYX_ERR(0, 851, __pyx_L24_except_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_3 = PyTuple_Pack(3, __pyx_t_5, __pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 851, __pyx_L24_except_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 851, __pyx_L24_except_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            if (__pyx_t_11 < 0) __PYX_ERR(0, 851, __pyx_L24_except_error)
            __pyx_t_1 = ((!(__pyx_t_11 != 0)) != 0);
            if (__pyx_t_1) {
              __Pyx_GIVEREF(__pyx_t_5);
              __Pyx_GIVEREF(__pyx_t_2);
              __Pyx_XGIVEREF(__pyx_t_4);
              __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_2, __pyx_t_4);
              __pyx_t_5 = 0; __pyx_t_2 = 0; __pyx_t_4 = 0; 
              __PYX_ERR(0, 851, __pyx_L24_except_error)
            }
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            goto __pyx_L23_exception_handled;
          }
          __pyx_L24_except_error:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7);
          goto __pyx_L1_error;
          __pyx_L23_exception_handled:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_8, __pyx_t_7);
          __pyx_L27_try_end:;
        }
      }
      /*finally:*/ {
        /*normal exit:*/{
          if (__pyx_t_6) {
            __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_tuple__17, NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 851, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          goto __pyx_L21;
        }
        __pyx_L21:;
      }
      goto __pyx_L31;
      __pyx_L18_error:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L1_error;
      __pyx_L31:;
    }
  }
  __pyx_L3:;

  /* "AdaptivePELE/atomset/atomset.pyx":837
 *             return "".join([u"MODEL    %4d\n" % model_num, self.pdb, u"ENDMDL\n", u"END\n"])
 * 
 *     def writePDB(self, basestring path, int model_num=1):             # <<<<<<<<<<<<<<
 *         """
 *             Write the pdb contents of the file from wich the PDB object was
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.writePDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_fileHandle);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":857
 *                 fileHandle.write(u"END\n")
 * 
 *     def countContacts(self, basestring ligandResname, int contactThresholdDistance, int ligandResnum=0, basestring ligandChain=u""):             # <<<<<<<<<<<<<<
 *         """
 *             Count the number of alpha carbons that are in contact with the
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_52countContacts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_51countContacts[] = "\n            Count the number of alpha carbons that are in contact with the\n            protein (i.e. less than contactThresholdDistance Amstrogms away)\n\n            :param ligandResname: Residue name of the ligand in the PDB\n            :type ligandResname: basestring\n            :param contactThresholdDistance: Maximum distance at which two atoms are considered in contanct (in Angstroms)\n            :type contactThresholdDistance: int\n            :returns: int -- The number of alpha carbons in contact with the ligand\n        ";
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_52countContacts(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ligandResname = 0;
  int __pyx_v_contactThresholdDistance;
  int __pyx_v_ligandResnum;
  PyObject *__pyx_v_ligandChain = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("countContacts (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ligandResname,&__pyx_n_s_contactThresholdDistance,&__pyx_n_s_ligandResnum,&__pyx_n_s_ligandChain,0};
    PyObject* values[4] = {0,0,0,0};
    values[3] = ((PyObject*)__pyx_kp_u_);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ligandResname)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_contactThresholdDistance)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("countContacts", 0, 2, 4, 1); __PYX_ERR(0, 857, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ligandResnum);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ligandChain);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "countContacts") < 0)) __PYX_ERR(0, 857, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_ligandResname = ((PyObject*)values[0]);
    __pyx_v_contactThresholdDistance = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_contactThresholdDistance == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 857, __pyx_L3_error)
    if (values[2]) {
      __pyx_v_ligandResnum = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_ligandResnum == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 857, __pyx_L3_error)
    } else {
      __pyx_v_ligandResnum = ((int)0);
    }
    __pyx_v_ligandChain = ((PyObject*)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("countContacts", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 857, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.countContacts", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ligandResname), (&PyBaseString_Type), 1, "ligandResname", 1))) __PYX_ERR(0, 857, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ligandChain), (&PyBaseString_Type), 1, "ligandChain", 1))) __PYX_ERR(0, 857, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_51countContacts(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), __pyx_v_ligandResname, __pyx_v_contactThresholdDistance, __pyx_v_ligandResnum, __pyx_v_ligandChain);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_51countContacts(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_ligandResname, int __pyx_v_contactThresholdDistance, int __pyx_v_ligandResnum, PyObject *__pyx_v_ligandChain) {
  double __pyx_v_contactThresholdDistance2;
  double __pyx_v_dist2;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_ligandPDB = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_alphaCarbonsPDB = 0;
  PyObject *__pyx_v_contacts = 0;
  int __pyx_v_rowind;
  int __pyx_v_colind;
  PyObject *__pyx_v_proteinAtomId = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_ligandAtom = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v_proteinAtom = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  double __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("countContacts", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":869
 *         """
 *         cdef double contactThresholdDistance2,dist2
 *         contactThresholdDistance2= contactThresholdDistance**2             # <<<<<<<<<<<<<<
 * 
 *         cdef PDB ligandPDB, alphaCarbonsPDB
 */
  __pyx_v_contactThresholdDistance2 = __Pyx_pow_long(((long)__pyx_v_contactThresholdDistance), 2);

  /* "AdaptivePELE/atomset/atomset.pyx":873
 *         cdef PDB ligandPDB, alphaCarbonsPDB
 * 
 *         ligandPDB = PDB()             # <<<<<<<<<<<<<<
 *         ligandPDB.initialise(self.pdb, resname=ligandResname, resnum=ligandResnum, chain=ligandChain, heavyAtoms=True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ligandPDB = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":874
 * 
 *         ligandPDB = PDB()
 *         ligandPDB.initialise(self.pdb, resname=ligandResname, resnum=ligandResnum, chain=ligandChain, heavyAtoms=True)             # <<<<<<<<<<<<<<
 * 
 *         alphaCarbonsPDB = PDB()
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ligandPDB), __pyx_n_s_initialise); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->pdb);
  __Pyx_GIVEREF(__pyx_v_self->pdb);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->pdb);
  __pyx_t_3 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_resname, __pyx_v_ligandResname) < 0) __PYX_ERR(0, 874, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_ligandResnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_resnum, __pyx_t_4) < 0) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_chain, __pyx_v_ligandChain) < 0) __PYX_ERR(0, 874, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_heavyAtoms, Py_True) < 0) __PYX_ERR(0, 874, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":876
 *         ligandPDB.initialise(self.pdb, resname=ligandResname, resnum=ligandResnum, chain=ligandChain, heavyAtoms=True)
 * 
 *         alphaCarbonsPDB = PDB()             # <<<<<<<<<<<<<<
 *         alphaCarbonsPDB.initialise(self.pdb, element=u"C",
 *                                    atomname=u"CA")
 */
  __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_alphaCarbonsPDB = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":877
 * 
 *         alphaCarbonsPDB = PDB()
 *         alphaCarbonsPDB.initialise(self.pdb, element=u"C",             # <<<<<<<<<<<<<<
 *                                    atomname=u"CA")
 *         # count contacts
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_alphaCarbonsPDB), __pyx_n_s_initialise); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->pdb);
  __Pyx_GIVEREF(__pyx_v_self->pdb);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->pdb);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_element, __pyx_n_u_C) < 0) __PYX_ERR(0, 877, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_atomname, __pyx_n_u_CA) < 0) __PYX_ERR(0, 877, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":880
 *                                    atomname=u"CA")
 *         # count contacts
 *         cdef set contacts = set([])             # <<<<<<<<<<<<<<
 *         cdef int rowind, colind
 *         cdef basestring proteinAtomId
 */
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_contacts = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":885
 *         cdef Atom ligandAtom, proteinAtom
 *         # can be optimised with cell list
 *         for rowind in range(len(ligandPDB.atomList)):             # <<<<<<<<<<<<<<
 *             ligandAtom = ligandPDB.atoms[ligandPDB.atomList[rowind]]
 *             for colind in range(len(alphaCarbonsPDB.atomList)):
 */
  __pyx_t_1 = __pyx_v_ligandPDB->atomList;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 885, __pyx_L1_error)
  }
  __pyx_t_5 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_6 = __pyx_t_5;
  for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
    __pyx_v_rowind = __pyx_t_7;

    /* "AdaptivePELE/atomset/atomset.pyx":886
 *         # can be optimised with cell list
 *         for rowind in range(len(ligandPDB.atomList)):
 *             ligandAtom = ligandPDB.atoms[ligandPDB.atomList[rowind]]             # <<<<<<<<<<<<<<
 *             for colind in range(len(alphaCarbonsPDB.atomList)):
 *                 proteinAtomId = alphaCarbonsPDB.atomList[colind]
 */
    if (unlikely(__pyx_v_ligandPDB->atoms == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 886, __pyx_L1_error)
    }
    if (unlikely(__pyx_v_ligandPDB->atomList == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 886, __pyx_L1_error)
    }
    __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_ligandPDB->atomList, __pyx_v_rowind, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 886, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_ligandPDB->atoms, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 886, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom))))) __PYX_ERR(0, 886, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_ligandAtom, ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":887
 *         for rowind in range(len(ligandPDB.atomList)):
 *             ligandAtom = ligandPDB.atoms[ligandPDB.atomList[rowind]]
 *             for colind in range(len(alphaCarbonsPDB.atomList)):             # <<<<<<<<<<<<<<
 *                 proteinAtomId = alphaCarbonsPDB.atomList[colind]
 *                 if proteinAtomId in ligandPDB.atoms:
 */
    __pyx_t_2 = __pyx_v_alphaCarbonsPDB->atomList;
    __Pyx_INCREF(__pyx_t_2);
    if (unlikely(__pyx_t_2 == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(0, 887, __pyx_L1_error)
    }
    __pyx_t_8 = PyList_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 887, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_9 = __pyx_t_8;
    for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
      __pyx_v_colind = __pyx_t_10;

      /* "AdaptivePELE/atomset/atomset.pyx":888
 *             ligandAtom = ligandPDB.atoms[ligandPDB.atomList[rowind]]
 *             for colind in range(len(alphaCarbonsPDB.atomList)):
 *                 proteinAtomId = alphaCarbonsPDB.atomList[colind]             # <<<<<<<<<<<<<<
 *                 if proteinAtomId in ligandPDB.atoms:
 *                     # skip CA atoms that are present in the ligand, useful when
 */
      if (unlikely(__pyx_v_alphaCarbonsPDB->atomList == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 888, __pyx_L1_error)
      }
      __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_alphaCarbonsPDB->atomList, __pyx_v_colind, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 888, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_proteinAtomId, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":889
 *             for colind in range(len(alphaCarbonsPDB.atomList)):
 *                 proteinAtomId = alphaCarbonsPDB.atomList[colind]
 *                 if proteinAtomId in ligandPDB.atoms:             # <<<<<<<<<<<<<<
 *                     # skip CA atoms that are present in the ligand, useful when
 *                     # working with protein-protein complexes and using one of
 */
      if (unlikely(__pyx_v_ligandPDB->atoms == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
        __PYX_ERR(0, 889, __pyx_L1_error)
      }
      __pyx_t_11 = (__Pyx_PyDict_ContainsTF(__pyx_v_proteinAtomId, __pyx_v_ligandPDB->atoms, Py_EQ)); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 889, __pyx_L1_error)
      __pyx_t_12 = (__pyx_t_11 != 0);
      if (__pyx_t_12) {

        /* "AdaptivePELE/atomset/atomset.pyx":893
 *                     # working with protein-protein complexes and using one of
 *                     # the proteins as ligand
 *                     continue             # <<<<<<<<<<<<<<
 *                 proteinAtom = alphaCarbonsPDB.atoms[proteinAtomId]
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)
 */
        goto __pyx_L5_continue;

        /* "AdaptivePELE/atomset/atomset.pyx":889
 *             for colind in range(len(alphaCarbonsPDB.atomList)):
 *                 proteinAtomId = alphaCarbonsPDB.atomList[colind]
 *                 if proteinAtomId in ligandPDB.atoms:             # <<<<<<<<<<<<<<
 *                     # skip CA atoms that are present in the ligand, useful when
 *                     # working with protein-protein complexes and using one of
 */
      }

      /* "AdaptivePELE/atomset/atomset.pyx":894
 *                     # the proteins as ligand
 *                     continue
 *                 proteinAtom = alphaCarbonsPDB.atoms[proteinAtomId]             # <<<<<<<<<<<<<<
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)
 *                 if (dist2 - contactThresholdDistance2) < 0.1:
 */
      if (unlikely(__pyx_v_alphaCarbonsPDB->atoms == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 894, __pyx_L1_error)
      }
      __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_alphaCarbonsPDB->atoms, __pyx_v_proteinAtomId); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 894, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom))))) __PYX_ERR(0, 894, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_proteinAtom, ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "AdaptivePELE/atomset/atomset.pyx":895
 *                     continue
 *                 proteinAtom = alphaCarbonsPDB.atoms[proteinAtomId]
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)             # <<<<<<<<<<<<<<
 *                 if (dist2 - contactThresholdDistance2) < 0.1:
 *                     contacts.update([proteinAtomId])
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_ligandAtom), __pyx_n_s_squaredDistance); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 895, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_1, function);
        }
      }
      __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, ((PyObject *)__pyx_v_proteinAtom)) : __Pyx_PyObject_CallOneArg(__pyx_t_1, ((PyObject *)__pyx_v_proteinAtom));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 895, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_13 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_dist2 = __pyx_t_13;

      /* "AdaptivePELE/atomset/atomset.pyx":896
 *                 proteinAtom = alphaCarbonsPDB.atoms[proteinAtomId]
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)
 *                 if (dist2 - contactThresholdDistance2) < 0.1:             # <<<<<<<<<<<<<<
 *                     contacts.update([proteinAtomId])
 * 
 */
      __pyx_t_12 = (((__pyx_v_dist2 - __pyx_v_contactThresholdDistance2) < 0.1) != 0);
      if (__pyx_t_12) {

        /* "AdaptivePELE/atomset/atomset.pyx":897
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)
 *                 if (dist2 - contactThresholdDistance2) < 0.1:
 *                     contacts.update([proteinAtomId])             # <<<<<<<<<<<<<<
 * 
 *         return len(contacts)
 */
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_proteinAtomId);
        __Pyx_GIVEREF(__pyx_v_proteinAtomId);
        PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_proteinAtomId);
        __pyx_t_1 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PySet_Type_update, __pyx_v_contacts, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "AdaptivePELE/atomset/atomset.pyx":896
 *                 proteinAtom = alphaCarbonsPDB.atoms[proteinAtomId]
 *                 dist2 = ligandAtom.squaredDistance(proteinAtom)
 *                 if (dist2 - contactThresholdDistance2) < 0.1:             # <<<<<<<<<<<<<<
 *                     contacts.update([proteinAtomId])
 * 
 */
      }
      __pyx_L5_continue:;
    }
  }

  /* "AdaptivePELE/atomset/atomset.pyx":899
 *                     contacts.update([proteinAtomId])
 * 
 *         return len(contacts)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = PySet_GET_SIZE(__pyx_v_contacts); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 899, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":857
 *                 fileHandle.write(u"END\n")
 * 
 *     def countContacts(self, basestring ligandResname, int contactThresholdDistance, int ligandResnum=0, basestring ligandChain=u""):             # <<<<<<<<<<<<<<
 *         """
 *             Count the number of alpha carbons that are in contact with the
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.countContacts", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_ligandPDB);
  __Pyx_XDECREF((PyObject *)__pyx_v_alphaCarbonsPDB);
  __Pyx_XDECREF(__pyx_v_contacts);
  __Pyx_XDECREF(__pyx_v_proteinAtomId);
  __Pyx_XDECREF((PyObject *)__pyx_v_ligandAtom);
  __Pyx_XDECREF((PyObject *)__pyx_v_proteinAtom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":7
 * 
 * cdef class PDB:
 *     cdef public dict atoms             # <<<<<<<<<<<<<<
 *     cdef public list atomList, com, centroid
 *     cdef public double totalMass
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->atoms);
  __pyx_r = __pyx_v_self->atoms;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 7, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atoms);
  __Pyx_DECREF(__pyx_v_self->atoms);
  __pyx_v_self->atoms = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.atoms.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->atoms);
  __Pyx_DECREF(__pyx_v_self->atoms);
  __pyx_v_self->atoms = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":8
 * cdef class PDB:
 *     cdef public dict atoms
 *     cdef public list atomList, com, centroid             # <<<<<<<<<<<<<<
 *     cdef public double totalMass
 *     cdef public object pdb
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->atomList);
  __pyx_r = __pyx_v_self->atomList;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 8, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->atomList);
  __Pyx_DECREF(__pyx_v_self->atomList);
  __pyx_v_self->atomList = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.atomList.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->atomList);
  __Pyx_DECREF(__pyx_v_self->atomList);
  __pyx_v_self->atomList = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->com);
  __pyx_r = __pyx_v_self->com;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 8, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->com);
  __Pyx_DECREF(__pyx_v_self->com);
  __pyx_v_self->com = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.com.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3com_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->com);
  __Pyx_DECREF(__pyx_v_self->com);
  __pyx_v_self->com = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->centroid);
  __pyx_r = __pyx_v_self->centroid;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 8, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->centroid);
  __Pyx_DECREF(__pyx_v_self->centroid);
  __pyx_v_self->centroid = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.centroid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->centroid);
  __Pyx_DECREF(__pyx_v_self->centroid);
  __pyx_v_self->centroid = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":9
 *     cdef public dict atoms
 *     cdef public list atomList, com, centroid
 *     cdef public double totalMass             # <<<<<<<<<<<<<<
 *     cdef public object pdb
 *     cdef public bint ispdb
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.totalMass.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(1, 9, __pyx_L1_error)
  __pyx_v_self->totalMass = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.totalMass.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":10
 *     cdef public list atomList, com, centroid
 *     cdef public double totalMass
 *     cdef public object pdb             # <<<<<<<<<<<<<<
 *     cdef public bint ispdb
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->pdb);
  __pyx_r = __pyx_v_self->pdb;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_4__del__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_4__del__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->pdb);
  __Pyx_DECREF(__pyx_v_self->pdb);
  __pyx_v_self->pdb = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pxd":11
 *     cdef public double totalMass
 *     cdef public object pdb
 *     cdef public bint ispdb             # <<<<<<<<<<<<<<
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb___get__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb___get__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->ispdb); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.ispdb.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_2__set__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_2__set__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 11, __pyx_L1_error)
  __pyx_v_self->ispdb = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.ispdb.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_54__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_54__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_53__reduce_cython__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_53__reduce_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self.atomList, self.atoms, self.centroid, self.com, self.ispdb, self.pdb, self.totalMass)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->ispdb); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->totalMass); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->atomList);
  __Pyx_GIVEREF(__pyx_v_self->atomList);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->atomList);
  __Pyx_INCREF(__pyx_v_self->atoms);
  __Pyx_GIVEREF(__pyx_v_self->atoms);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->atoms);
  __Pyx_INCREF(__pyx_v_self->centroid);
  __Pyx_GIVEREF(__pyx_v_self->centroid);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_self->centroid);
  __Pyx_INCREF(__pyx_v_self->com);
  __Pyx_GIVEREF(__pyx_v_self->com);
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_self->com);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->pdb);
  __Pyx_GIVEREF(__pyx_v_self->pdb);
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_v_self->pdb);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 6, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self.atomList, self.atoms, self.centroid, self.com, self.ispdb, self.pdb, self.totalMass)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None:
 *         state += (_dict,)
 */
  __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v__dict = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":7
 *     state = (self.atomList, self.atoms, self.centroid, self.com, self.ispdb, self.pdb, self.totalMass)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
  __pyx_t_4 = (__pyx_v__dict != Py_None);
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (__pyx_t_5) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
 */
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict);
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self.atomList is not None or self.atoms is not None or self.centroid is not None or self.com is not None or self.pdb is not None
 */
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self.atomList, self.atoms, self.centroid, self.com, self.ispdb, self.pdb, self.totalMass)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
 */
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self.atomList is not None or self.atoms is not None or self.centroid is not None or self.com is not None or self.pdb is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, None), state
 */
  /*else*/ {
    __pyx_t_4 = (__pyx_v_self->atomList != ((PyObject*)Py_None));
    __pyx_t_6 = (__pyx_t_4 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->atoms != ((PyObject*)Py_None));
    __pyx_t_4 = (__pyx_t_6 != 0);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_5 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->centroid != ((PyObject*)Py_None));
    __pyx_t_6 = (__pyx_t_4 != 0);
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = (__pyx_v_self->com != ((PyObject*)Py_None));
    __pyx_t_4 = (__pyx_t_6 != 0);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_5 = __pyx_t_4;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_self->pdb != Py_None);
    __pyx_t_6 = (__pyx_t_4 != 0);
    __pyx_t_5 = __pyx_t_6;
    __pyx_L4_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_5;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.atomList is not None or self.atoms is not None or self.centroid is not None or self.com is not None or self.pdb is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, None), state
 *     else:
 */
  __pyx_t_5 = (__pyx_v_use_setstate != 0);
  if (__pyx_t_5) {

    /* "(tree fragment)":13
 *         use_setstate = self.atomList is not None or self.atoms is not None or self.centroid is not None or self.com is not None or self.pdb is not None
 *     if use_setstate:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, state)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pyx_unpickle_PDB); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_120783956);
    __Pyx_GIVEREF(__pyx_int_120783956);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_120783956);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self.atomList is not None or self.atoms is not None or self.centroid is not None or self.com is not None or self.pdb is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, None), state
 *     else:
 */
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, None), state
 *     else:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_PDB__set_state(self, __pyx_state)
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_pyx_unpickle_PDB); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_INCREF(__pyx_int_120783956);
    __Pyx_GIVEREF(__pyx_int_120783956);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_120783956);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_PDB__set_state(self, __pyx_state)
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_56__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_56__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_55__setstate_cython__(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_3PDB_55__setstate_cython__(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_PDB__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
 */
  if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 17, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_PDB__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_PDB, (type(self), 0x7330454, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_PDB__set_state(self, __pyx_state)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.PDB.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":902
 * 
 * 
 * def computeCOMDifference(PDB1, PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the difference between the center of mass of two PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_1computeCOMDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_computeCOMDifference[] = "\n        Compute the difference between the center of mass of two PDB\n\n        :param PDB1: First PDB with which the RMSD will be calculated\n        :type PDB1: PDB\n        :param PDB2: First PDB with which the RMSD will be calculated\n        :type PDB2: PDB\n        :returns: float -- The distance between the centers of mass between two PDB\n    ";
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_1computeCOMDifference = {"computeCOMDifference", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_1computeCOMDifference, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_computeCOMDifference};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_1computeCOMDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_PDB1 = 0;
  PyObject *__pyx_v_PDB2 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("computeCOMDifference (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_PDB1,&__pyx_n_s_PDB2,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB1)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB2)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("computeCOMDifference", 1, 2, 2, 1); __PYX_ERR(0, 902, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "computeCOMDifference") < 0)) __PYX_ERR(0, 902, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_PDB1 = values[0];
    __pyx_v_PDB2 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("computeCOMDifference", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 902, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeCOMDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_computeCOMDifference(__pyx_self, __pyx_v_PDB1, __pyx_v_PDB2);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_computeCOMDifference(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_PDB1, PyObject *__pyx_v_PDB2) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("computeCOMDifference", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":912
 *         :returns: float -- The distance between the centers of mass between two PDB
 *     """
 *     return np.sqrt(computeCOMSquaredDifference(PDB1, PDB2))             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sqrt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_computeCOMSquaredDifference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_PDB1, __pyx_v_PDB2};
    __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 912, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_2);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_PDB1, __pyx_v_PDB2};
    __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 912, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_2);
  } else
  #endif
  {
    __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 912, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_v_PDB1);
    __Pyx_GIVEREF(__pyx_v_PDB1);
    PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_PDB1);
    __Pyx_INCREF(__pyx_v_PDB2);
    __Pyx_GIVEREF(__pyx_v_PDB2);
    PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_PDB2);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 912, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":902
 * 
 * 
 * def computeCOMDifference(PDB1, PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the difference between the center of mass of two PDB
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeCOMDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":915
 * 
 * 
 * def computeCOMSquaredDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the squared difference between the center of mass of two PDB
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3computeCOMSquaredDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_2computeCOMSquaredDifference[] = "\n        Compute the squared difference between the center of mass of two PDB\n\n        :param PDB1: First PDB with which the RMSD will be calculated\n        :type PDB1: PDB\n        :param PDB2: First PDB with which the RMSD will be calculated\n        :type PDB2: PDB\n        :returns: float -- The squared distance between the centers of mass between two PDB\n    ";
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_3computeCOMSquaredDifference = {"computeCOMSquaredDifference", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3computeCOMSquaredDifference, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_2computeCOMSquaredDifference};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_3computeCOMSquaredDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1 = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("computeCOMSquaredDifference (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_PDB1,&__pyx_n_s_PDB2,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB1)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB2)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("computeCOMSquaredDifference", 1, 2, 2, 1); __PYX_ERR(0, 915, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "computeCOMSquaredDifference") < 0)) __PYX_ERR(0, 915, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_PDB1 = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)values[0]);
    __pyx_v_PDB2 = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("computeCOMSquaredDifference", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 915, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeCOMSquaredDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_PDB1), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB, 1, "PDB1", 0))) __PYX_ERR(0, 915, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_PDB2), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB, 1, "PDB2", 0))) __PYX_ERR(0, 915, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_2computeCOMSquaredDifference(__pyx_self, __pyx_v_PDB1, __pyx_v_PDB2);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_2computeCOMSquaredDifference(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2) {
  PyObject *__pyx_v_COM1 = 0;
  PyObject *__pyx_v_COM2 = 0;
  PyObject *__pyx_v_dx = NULL;
  PyObject *__pyx_v_dy = NULL;
  PyObject *__pyx_v_dz = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("computeCOMSquaredDifference", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":926
 *     """
 *     cdef list COM1, COM2
 *     COM1 = PDB1.getCOM()             # <<<<<<<<<<<<<<
 *     COM2 = PDB2.getCOM()
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_PDB1), __pyx_n_s_getCOM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 926, __pyx_L1_error)
  __pyx_v_COM1 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":927
 *     cdef list COM1, COM2
 *     COM1 = PDB1.getCOM()
 *     COM2 = PDB2.getCOM()             # <<<<<<<<<<<<<<
 * 
 *     dx = COM1[0] - COM2[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_PDB2), __pyx_n_s_getCOM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 927, __pyx_L1_error)
  __pyx_v_COM2 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":929
 *     COM2 = PDB2.getCOM()
 * 
 *     dx = COM1[0] - COM2[0]             # <<<<<<<<<<<<<<
 *     dy = COM1[1] - COM2[1]
 *     dz = COM1[2] - COM2[2]
 */
  if (unlikely(__pyx_v_COM1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 929, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_COM1, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(__pyx_v_COM2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 929, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_COM2, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dx = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":930
 * 
 *     dx = COM1[0] - COM2[0]
 *     dy = COM1[1] - COM2[1]             # <<<<<<<<<<<<<<
 *     dz = COM1[2] - COM2[2]
 * 
 */
  if (unlikely(__pyx_v_COM1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 930, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_COM1, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely(__pyx_v_COM2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 930, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_COM2, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dy = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":931
 *     dx = COM1[0] - COM2[0]
 *     dy = COM1[1] - COM2[1]
 *     dz = COM1[2] - COM2[2]             # <<<<<<<<<<<<<<
 * 
 *     return dx*dx + dy*dy + dz*dz
 */
  if (unlikely(__pyx_v_COM1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 931, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_COM1, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(__pyx_v_COM2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 931, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_COM2, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dz = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":933
 *     dz = COM1[2] - COM2[2]
 * 
 *     return dx*dx + dy*dy + dz*dz             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyNumber_Multiply(__pyx_v_dx, __pyx_v_dx); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_dy, __pyx_v_dy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_dz, __pyx_v_dz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":915
 * 
 * 
 * def computeCOMSquaredDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the squared difference between the center of mass of two PDB
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeCOMSquaredDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_COM1);
  __Pyx_XDECREF(__pyx_v_COM2);
  __Pyx_XDECREF(__pyx_v_dx);
  __Pyx_XDECREF(__pyx_v_dy);
  __Pyx_XDECREF(__pyx_v_dz);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":936
 * 
 * 
 * def computeSquaredCentroidDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the centroid squared difference between two PDBs
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_5computeSquaredCentroidDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_4computeSquaredCentroidDifference[] = "\n        Compute the centroid squared difference between two PDBs\n\n        :param PDB1: First PDB\n        :type PDB1: PDB\n        :param PDB2: Second PDB\n        :type PDB2: PDB\n        :returns: float -- The squared centroid distance between two PDB\n    ";
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_5computeSquaredCentroidDifference = {"computeSquaredCentroidDifference", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_5computeSquaredCentroidDifference, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4computeSquaredCentroidDifference};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_5computeSquaredCentroidDifference(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1 = 0;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2 = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("computeSquaredCentroidDifference (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_PDB1,&__pyx_n_s_PDB2,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB1)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_PDB2)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("computeSquaredCentroidDifference", 1, 2, 2, 1); __PYX_ERR(0, 936, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "computeSquaredCentroidDifference") < 0)) __PYX_ERR(0, 936, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_PDB1 = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)values[0]);
    __pyx_v_PDB2 = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("computeSquaredCentroidDifference", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 936, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeSquaredCentroidDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_PDB1), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB, 1, "PDB1", 0))) __PYX_ERR(0, 936, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_PDB2), __pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB, 1, "PDB2", 0))) __PYX_ERR(0, 936, __pyx_L1_error)
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_4computeSquaredCentroidDifference(__pyx_self, __pyx_v_PDB1, __pyx_v_PDB2);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_4computeSquaredCentroidDifference(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB1, struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v_PDB2) {
  PyObject *__pyx_v_centroid1 = 0;
  PyObject *__pyx_v_centroid2 = 0;
  PyObject *__pyx_v_dx = NULL;
  PyObject *__pyx_v_dy = NULL;
  PyObject *__pyx_v_dz = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("computeSquaredCentroidDifference", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":947
 *     """
 *     cdef list centroid1, centroid2
 *     centroid1 = PDB1.getCentroid()             # <<<<<<<<<<<<<<
 *     centroid2 = PDB2.getCentroid()
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_PDB1), __pyx_n_s_getCentroid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 947, __pyx_L1_error)
  __pyx_v_centroid1 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":948
 *     cdef list centroid1, centroid2
 *     centroid1 = PDB1.getCentroid()
 *     centroid2 = PDB2.getCentroid()             # <<<<<<<<<<<<<<
 * 
 *     dx = centroid1[0] - centroid2[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_PDB2), __pyx_n_s_getCentroid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 948, __pyx_L1_error)
  __pyx_v_centroid2 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":950
 *     centroid2 = PDB2.getCentroid()
 * 
 *     dx = centroid1[0] - centroid2[0]             # <<<<<<<<<<<<<<
 *     dy = centroid1[1] - centroid2[1]
 *     dz = centroid1[2] - centroid2[2]
 */
  if (unlikely(__pyx_v_centroid1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 950, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_centroid1, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(__pyx_v_centroid2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 950, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_centroid2, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dx = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":951
 * 
 *     dx = centroid1[0] - centroid2[0]
 *     dy = centroid1[1] - centroid2[1]             # <<<<<<<<<<<<<<
 *     dz = centroid1[2] - centroid2[2]
 * 
 */
  if (unlikely(__pyx_v_centroid1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 951, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_centroid1, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely(__pyx_v_centroid2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 951, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_centroid2, 1, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dy = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":952
 *     dx = centroid1[0] - centroid2[0]
 *     dy = centroid1[1] - centroid2[1]
 *     dz = centroid1[2] - centroid2[2]             # <<<<<<<<<<<<<<
 * 
 *     return dx*dx + dy*dy + dz*dz
 */
  if (unlikely(__pyx_v_centroid1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 952, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_centroid1, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(__pyx_v_centroid2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 952, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_centroid2, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_dz = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":954
 *     dz = centroid1[2] - centroid2[2]
 * 
 *     return dx*dx + dy*dy + dz*dz             # <<<<<<<<<<<<<<
 * 
 * def readPDB(pdbfile):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyNumber_Multiply(__pyx_v_dx, __pyx_v_dx); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_dy, __pyx_v_dy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_dz, __pyx_v_dz); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "AdaptivePELE/atomset/atomset.pyx":936
 * 
 * 
 * def computeSquaredCentroidDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the centroid squared difference between two PDBs
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.computeSquaredCentroidDifference", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_centroid1);
  __Pyx_XDECREF(__pyx_v_centroid2);
  __Pyx_XDECREF(__pyx_v_dx);
  __Pyx_XDECREF(__pyx_v_dy);
  __Pyx_XDECREF(__pyx_v_dz);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "AdaptivePELE/atomset/atomset.pyx":956
 *     return dx*dx + dy*dy + dz*dz
 * 
 * def readPDB(pdbfile):             # <<<<<<<<<<<<<<
 *     """
 *         Helper function, parses a string with PDB content or the path of a pdb file into a string
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_7readPDB(PyObject *__pyx_self, PyObject *__pyx_v_pdbfile); /*proto*/
static char __pyx_doc_12AdaptivePELE_7atomset_7atomset_6readPDB[] = "\n        Helper function, parses a string with PDB content or the path of a pdb file into a string\n\n        :param pdbfile: A string with PDB content or the path of a pdb file\n        :type pdbfile: basestring\n        :returns: basestring -- A string with PDB content\n    ";
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_7readPDB = {"readPDB", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_7readPDB, METH_O, __pyx_doc_12AdaptivePELE_7atomset_7atomset_6readPDB};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_7readPDB(PyObject *__pyx_self, PyObject *__pyx_v_pdbfile) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("readPDB (wrapper)", 0);
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_6readPDB(__pyx_self, ((PyObject *)__pyx_v_pdbfile));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_6readPDB(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pdbfile) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("readPDB", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":964
 *         :returns: basestring -- A string with PDB content
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return open(str(pdbfile), "rt").read()
 *     except IOError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "AdaptivePELE/atomset/atomset.pyx":965
 *     """
 *     try:
 *         return open(str(pdbfile), "rt").read()             # <<<<<<<<<<<<<<
 *     except IOError:
 *         return pdbfile
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_open); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), __pyx_v_pdbfile); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 965, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = NULL;
      __pyx_t_9 = 0;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
          __pyx_t_9 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_6)) {
        PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_n_u_rt};
        __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 965, __pyx_L3_error)
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
        PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_n_u_rt};
        __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 965, __pyx_L3_error)
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      } else
      #endif
      {
        __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 965, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (__pyx_t_8) {
          __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL;
        }
        __Pyx_GIVEREF(__pyx_t_7);
        PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_t_7);
        __Pyx_INCREF(__pyx_n_u_rt);
        __Pyx_GIVEREF(__pyx_n_u_rt);
        PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_n_u_rt);
        __pyx_t_7 = 0;
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 965, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_read); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 965, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "AdaptivePELE/atomset/atomset.pyx":964
 *         :returns: basestring -- A string with PDB content
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return open(str(pdbfile), "rt").read()
 *     except IOError:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "AdaptivePELE/atomset/atomset.pyx":966
 *     try:
 *         return open(str(pdbfile), "rt").read()
 *     except IOError:             # <<<<<<<<<<<<<<
 *         return pdbfile
 */
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_IOError);
    if (__pyx_t_9) {
      __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.readPDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_5) < 0) __PYX_ERR(0, 966, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);

      /* "AdaptivePELE/atomset/atomset.pyx":967
 *         return open(str(pdbfile), "rt").read()
 *     except IOError:
 *         return pdbfile             # <<<<<<<<<<<<<<
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_pdbfile);
      __pyx_r = __pyx_v_pdbfile;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L6_except_return;
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "AdaptivePELE/atomset/atomset.pyx":964
 *         :returns: basestring -- A string with PDB content
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return open(str(pdbfile), "rt").read()
 *     except IOError:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "AdaptivePELE/atomset/atomset.pyx":956
 *     return dx*dx + dy*dy + dz*dz
 * 
 * def readPDB(pdbfile):             # <<<<<<<<<<<<<<
 *     """
 *         Helper function, parses a string with PDB content or the path of a pdb file into a string
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.readPDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_Atom(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_9__pyx_unpickle_Atom(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_9__pyx_unpickle_Atom = {"__pyx_unpickle_Atom", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_9__pyx_unpickle_Atom, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_9__pyx_unpickle_Atom(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_Atom (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Atom", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Atom", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_Atom") < 0)) __PYX_ERR(2, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_Atom", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_Atom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_8__pyx_unpickle_Atom(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_8__pyx_unpickle_Atom(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_Atom", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0dd8c8e:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x0dd8c8e) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0dd8c8e:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 *     __pyx_result = Atom.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, -1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x0dd8c8e:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = Atom.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x0d, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(2, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x0dd8c8e:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 *     __pyx_result = Atom.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 *     __pyx_result = Atom.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = Atom.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_Atom__set_state(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x0dd8c8e = (atomSerial, id, mass, name, protein, resChain, resname, resnum, type, x, y, z))" % __pyx_checksum)
 *     __pyx_result = Atom.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_Atom(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_Atom", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_Atom__set_state(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  double __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_Atom__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[12])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->atomSerial);
  __Pyx_DECREF(__pyx_v___pyx_result->atomSerial);
  __pyx_v___pyx_result->atomSerial = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->id);
  __Pyx_DECREF(__pyx_v___pyx_result->id);
  __pyx_v___pyx_result->id = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->mass = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->name);
  __Pyx_DECREF(__pyx_v___pyx_result->name);
  __pyx_v___pyx_result->name = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->protein = __pyx_t_3;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->resChain);
  __Pyx_DECREF(__pyx_v___pyx_result->resChain);
  __pyx_v___pyx_result->resChain = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->resname);
  __Pyx_DECREF(__pyx_v___pyx_result->resname);
  __pyx_v___pyx_result->resname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 7, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->resnum);
  __Pyx_DECREF(__pyx_v___pyx_result->resnum);
  __pyx_v___pyx_result->resnum = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 8, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->type);
  __Pyx_DECREF(__pyx_v___pyx_result->type);
  __pyx_v___pyx_result->type = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 9, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->x = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 10, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->y = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 11, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_2 == (double)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->z = __pyx_t_2;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[12])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(2, 13, __pyx_L1_error)
  }
  __pyx_t_4 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_4 > 12) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_3 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_3 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "(tree fragment)":14
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[12])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(2, 14, __pyx_L1_error)
    }
    __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 12, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[12])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_Atom__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __pyx_unpickle_PDB(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

/* Python wrapper */
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_11__pyx_unpickle_PDB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_12AdaptivePELE_7atomset_7atomset_11__pyx_unpickle_PDB = {"__pyx_unpickle_PDB", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_11__pyx_unpickle_PDB, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_12AdaptivePELE_7atomset_7atomset_11__pyx_unpickle_PDB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_PDB (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PDB", 1, 3, 3, 1); __PYX_ERR(2, 1, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PDB", 1, 3, 3, 2); __PYX_ERR(2, 1, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__pyx_unpickle_PDB") < 0)) __PYX_ERR(2, 1, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 1, __pyx_L3_error)
    __pyx_v___pyx_state = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PDB", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_PDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_12AdaptivePELE_7atomset_7atomset_10__pyx_unpickle_PDB(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_12AdaptivePELE_7atomset_7atomset_10__pyx_unpickle_PDB(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_PickleError = 0;
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_PDB", 0);

  /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7330454:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 */
  __pyx_t_1 = ((__pyx_v___pyx_checksum != 0x7330454) != 0);
  if (__pyx_t_1) {

    /* "(tree fragment)":5
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7330454:
 *         from pickle import PickleError as __pyx_PickleError             # <<<<<<<<<<<<<<
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 *     __pyx_result = PDB.__new__(__pyx_type)
 */
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_n_s_PickleError);
    __Pyx_GIVEREF(__pyx_n_s_PickleError);
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
    __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, -1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v___pyx_PickleError = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":6
 *     if __pyx_checksum != 0x7330454:
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)             # <<<<<<<<<<<<<<
 *     __pyx_result = PDB.__new__(__pyx_type)
 *     if __pyx_state is not None:
 */
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0x73, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_INCREF(__pyx_v___pyx_PickleError);
    __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 6, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(2, 6, __pyx_L1_error)

    /* "(tree fragment)":4
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 *     if __pyx_checksum != 0x7330454:             # <<<<<<<<<<<<<<
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 */
  }

  /* "(tree fragment)":7
 *         from pickle import PickleError as __pyx_PickleError
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 *     __pyx_result = PDB.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB), __pyx_n_s_new); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v___pyx_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 *     __pyx_result = PDB.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (__pyx_t_6) {

    /* "(tree fragment)":9
 *     __pyx_result = PDB.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):
 */
    if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(2, 9, __pyx_L1_error)
    __pyx_t_3 = __pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_PDB__set_state(((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "(tree fragment)":8
 *         raise __pyx_PickleError("Incompatible checksums (%s vs 0x7330454 = (atomList, atoms, centroid, com, ispdb, pdb, totalMass))" % __pyx_checksum)
 *     __pyx_result = PDB.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 *     return __pyx_result
 */
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_PDB(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_PDB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_PickleError);
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

static PyObject *__pyx_f_12AdaptivePELE_7atomset_7atomset___pyx_unpickle_PDB__set_state(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  double __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_PDB__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->atomList);
  __Pyx_DECREF(__pyx_v___pyx_result->atomList);
  __pyx_v___pyx_result->atomList = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->atoms);
  __Pyx_DECREF(__pyx_v___pyx_result->atoms);
  __pyx_v___pyx_result->atoms = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->centroid);
  __Pyx_DECREF(__pyx_v___pyx_result->centroid);
  __pyx_v___pyx_result->centroid = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->com);
  __Pyx_DECREF(__pyx_v___pyx_result->com);
  __pyx_v___pyx_result->com = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->ispdb = __pyx_t_2;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->pdb);
  __Pyx_DECREF(__pyx_v___pyx_result->pdb);
  __pyx_v___pyx_result->pdb = __pyx_t_1;
  __pyx_t_1 = 0;
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(2, 12, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_3 == (double)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->totalMass = __pyx_t_3;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  if (unlikely(__pyx_v___pyx_state == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(2, 13, __pyx_L1_error)
  }
  __pyx_t_4 = PyTuple_GET_SIZE(__pyx_v___pyx_state); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_t_5 = ((__pyx_t_4 > 7) != 0);
  if (__pyx_t_5) {
  } else {
    __pyx_t_2 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_5 != 0);
  __pyx_t_2 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "(tree fragment)":14
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 *         __pyx_result.__dict__.update(__pyx_state[7])             # <<<<<<<<<<<<<<
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_update); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(2, 14, __pyx_L1_error)
    }
    __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 7, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "(tree fragment)":13
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):             # <<<<<<<<<<<<<<
 *         __pyx_result.__dict__.update(__pyx_state[7])
 */
  }

  /* "(tree fragment)":11
 *         __pyx_unpickle_PDB__set_state(<PDB> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_PDB__set_state(PDB __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.atomList = __pyx_state[0]; __pyx_result.atoms = __pyx_state[1]; __pyx_result.centroid = __pyx_state[2]; __pyx_result.com = __pyx_state[3]; __pyx_result.ispdb = __pyx_state[4]; __pyx_result.pdb = __pyx_state[5]; __pyx_result.totalMass = __pyx_state[6]
 *     if len(__pyx_state) > 7 and hasattr(__pyx_result, '__dict__'):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("AdaptivePELE.atomset.atomset.__pyx_unpickle_PDB__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":734
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":735
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 *     return PyArray_MultiIterNew(1, <void*>a)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":734
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":737
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":738
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":737
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":740
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":741
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":740
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":743
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":744
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":743
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":746
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":747
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)             # <<<<<<<<<<<<<<
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":746
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":749
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":750
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
  if (__pyx_t_1) {

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":751
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape             # <<<<<<<<<<<<<<
 *     else:
 *         return ()
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
    __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
    goto __pyx_L0;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":750
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):
 *     if PyDataType_HASSUBARRAY(d):             # <<<<<<<<<<<<<<
 *         return <tuple>d.subarray.shape
 *     else:
 */
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":753
 *         return <tuple>d.subarray.shape
 *     else:
 *         return ()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_empty_tuple);
    __pyx_r = __pyx_empty_tuple;
    goto __pyx_L0;
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":749
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline tuple PyDataType_SHAPE(dtype d):             # <<<<<<<<<<<<<<
 *     if PyDataType_HASSUBARRAY(d):
 *         return <tuple>d.subarray.shape
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":868
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_array_base", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":869
 * 
 * cdef inline void set_array_base(ndarray arr, object base):
 *     Py_INCREF(base) # important to do this before stealing the reference below!             # <<<<<<<<<<<<<<
 *     PyArray_SetBaseObject(arr, base)
 * 
 */
  Py_INCREF(__pyx_v_base);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":870
 * cdef inline void set_array_base(ndarray arr, object base):
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object get_array_base(ndarray arr):
 */
  (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":868
 *     int _import_umath() except -1
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *     Py_INCREF(base) # important to do this before stealing the reference below!
 *     PyArray_SetBaseObject(arr, base)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":872
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
  PyObject *__pyx_v_base;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("get_array_base", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":873
 * 
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)             # <<<<<<<<<<<<<<
 *     if base is NULL:
 *         return None
 */
  __pyx_v_base = PyArray_BASE(__pyx_v_arr);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":874
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
  if (__pyx_t_1) {

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":875
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     return <object>base
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":874
 * cdef inline object get_array_base(ndarray arr):
 *     base = PyArray_BASE(arr)
 *     if base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return <object>base
 */
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":876
 *     if base is NULL:
 *         return None
 *     return <object>base             # <<<<<<<<<<<<<<
 * 
 * # Versions of the import_* functions which are more suitable for
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_base));
  __pyx_r = ((PyObject *)__pyx_v_base);
  goto __pyx_L0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":872
 *     PyArray_SetBaseObject(arr, base)
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     base = PyArray_BASE(arr)
 *     if base is NULL:
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":880
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         __pyx_import_array()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_array", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":881
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":882
 * cdef inline int import_array() except -1:
 *     try:
 *         __pyx_import_array()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")
 */
      __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(3, 882, __pyx_L3_error)

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":881
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":883
 *     try:
 *         __pyx_import_array()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 883, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":884
 *         __pyx_import_array()
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 884, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(3, 884, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":881
 * # Cython code.
 * cdef inline int import_array() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         __pyx_import_array()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":880
 * # Versions of the import_* functions which are more suitable for
 * # Cython code.
 * cdef inline int import_array() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         __pyx_import_array()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":886
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_umath", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":887
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":888
 * cdef inline int import_umath() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(3, 888, __pyx_L3_error)

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":887
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":889
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 889, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":890
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 890, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(3, 890, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":887
 * 
 * cdef inline int import_umath() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":886
 *         raise ImportError("numpy.core.multiarray failed to import")
 * 
 * cdef inline int import_umath() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":892
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("import_ufunc", 0);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":893
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":894
 * cdef inline int import_ufunc() except -1:
 *     try:
 *         _import_umath()             # <<<<<<<<<<<<<<
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")
 */
      __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(3, 894, __pyx_L3_error)

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":893
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":895
 *     try:
 *         _import_umath()
 *     except Exception:             # <<<<<<<<<<<<<<
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 */
    __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
    if (__pyx_t_4) {
      __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 895, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":896
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef extern from *:
 */
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 896, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(3, 896, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":893
 * 
 * cdef inline int import_ufunc() except -1:
 *     try:             # <<<<<<<<<<<<<<
 *         _import_umath()
 *     except Exception:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":892
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset_Atom(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)o);
  p->atomSerial = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->name = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->resname = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->resChain = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->resnum = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->type = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->id = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset_Atom(PyObject *o) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  Py_CLEAR(p->atomSerial);
  Py_CLEAR(p->name);
  Py_CLEAR(p->resname);
  Py_CLEAR(p->resChain);
  Py_CLEAR(p->resnum);
  Py_CLEAR(p->type);
  Py_CLEAR(p->id);
  (*Py_TYPE(o)->tp_free)(o);
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_atomSerial(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_atomSerial(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_10atomSerial_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4name_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resname(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resname(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7resname_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resChain(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resChain(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_8resChain_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resnum(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resnum(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_6resnum_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4type_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_2id_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_mass(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_mass(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_4mass_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_protein(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_protein(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7protein_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_12AdaptivePELE_7atomset_7atomset_Atom[] = {
  {"__getstate__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_3__getstate__, METH_NOARGS, 0},
  {"__setstate__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_5__setstate__, METH_O, 0},
  {"equivalentResname", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_7equivalentResname, METH_O, 0},
  {"set_properties", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_9set_properties, METH_VARARGS|METH_KEYWORDS, 0},
  {"isHeavyAtom", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_11isHeavyAtom, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_10isHeavyAtom},
  {"isProtein", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_13isProtein, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_12isProtein},
  {"isHeteroAtom", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_15isHeteroAtom, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_14isHeteroAtom},
  {"printAtom", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_17printAtom, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_16printAtom},
  {"getAtomCoords", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_23getAtomCoords, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_22getAtomCoords},
  {"squaredDistance", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_25squaredDistance, METH_O, __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom_24squaredDistance},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_27__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_29__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_12AdaptivePELE_7atomset_7atomset_Atom[] = {
  {(char *)"atomSerial", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_atomSerial, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_atomSerial, (char *)0, 0},
  {(char *)"name", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_name, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_name, (char *)0, 0},
  {(char *)"resname", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resname, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resname, (char *)0, 0},
  {(char *)"resChain", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resChain, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resChain, (char *)0, 0},
  {(char *)"resnum", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_resnum, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_resnum, (char *)0, 0},
  {(char *)"type", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_type, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_type, (char *)0, 0},
  {(char *)"id", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_id, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_id, (char *)0, 0},
  {(char *)"x", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_x, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_y, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_z, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_z, (char *)0, 0},
  {(char *)"mass", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_mass, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_mass, (char *)0, 0},
  {(char *)"protein", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_4Atom_protein, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_4Atom_protein, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_12AdaptivePELE_7atomset_7atomset_Atom = {
  PyVarObject_HEAD_INIT(0, 0)
  "AdaptivePELE.atomset.atomset.Atom", /*tp_name*/
  sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_Atom), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset_Atom, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_21__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_19__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_12AdaptivePELE_7atomset_7atomset_Atom, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_12AdaptivePELE_7atomset_7atomset_Atom, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_4Atom_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_12AdaptivePELE_7atomset_7atomset_Atom, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset_PDB(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)o);
  p->atoms = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->atomList = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->com = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->centroid = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->pdb = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset_PDB(PyObject *o) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->atoms);
  Py_CLEAR(p->atomList);
  Py_CLEAR(p->com);
  Py_CLEAR(p->centroid);
  Py_CLEAR(p->pdb);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_12AdaptivePELE_7atomset_7atomset_PDB(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)o;
  if (p->atoms) {
    e = (*v)(p->atoms, a); if (e) return e;
  }
  if (p->atomList) {
    e = (*v)(p->atomList, a); if (e) return e;
  }
  if (p->com) {
    e = (*v)(p->com, a); if (e) return e;
  }
  if (p->centroid) {
    e = (*v)(p->centroid, a); if (e) return e;
  }
  if (p->pdb) {
    e = (*v)(p->pdb, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_12AdaptivePELE_7atomset_7atomset_PDB(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB *)o;
  tmp = ((PyObject*)p->atoms);
  p->atoms = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->atomList);
  p->atomList = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->com);
  p->com = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->centroid);
  p->centroid = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->pdb);
  p->pdb = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
static PyObject *__pyx_sq_item_12AdaptivePELE_7atomset_7atomset_PDB(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_12AdaptivePELE_7atomset_7atomset_PDB(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_29__setitem__(o, i, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_31__delitem__(o, i);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_atoms(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_atoms(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5atoms_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_atomList(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_atomList(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8atomList_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_com(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_com(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3com_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_centroid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_centroid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_8centroid_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_totalMass(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_totalMass(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9totalMass_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_pdb(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_pdb(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_3__set__(o, v);
  }
  else {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3pdb_5__del__(o);
  }
}

static PyObject *__pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_ispdb(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_1__get__(o);
}

static int __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_ispdb(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5ispdb_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_12AdaptivePELE_7atomset_7atomset_PDB[] = {
  {"__getstate__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_5__getstate__, METH_NOARGS, 0},
  {"__setstate__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_7__setstate__, METH_O, 0},
  {"isfromPDBFile", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_9isfromPDBFile, METH_NOARGS, 0},
  {"_initialisePDB", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_11_initialisePDB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_10_initialisePDB},
  {"_initialiseXTC", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_13_initialiseXTC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_12_initialiseXTC},
  {"initialise", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_15initialise, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_14initialise},
  {"computeTotalMass", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_17computeTotalMass, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_16computeTotalMass},
  {"printAtoms", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_19printAtoms, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_18printAtoms},
  {"getNumberOfAtoms", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_21getNumberOfAtoms, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_20getNumberOfAtoms},
  {"getAtom", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_23getAtom, METH_O, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_22getAtom},
  {"updateCoords", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_36updateCoords, METH_O, 0},
  {"extractCOM", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_38extractCOM, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_37extractCOM},
  {"getCOM", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_40getCOM, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_39getCOM},
  {"extractCentroid", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_42extractCentroid, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_41extractCentroid},
  {"getCentroid", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_44getCentroid, METH_NOARGS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_43getCentroid},
  {"join_PDB_lines", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_46join_PDB_lines, METH_VARARGS|METH_KEYWORDS, 0},
  {"get_pdb_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_48get_pdb_string, METH_VARARGS|METH_KEYWORDS, 0},
  {"writePDB", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_50writePDB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_49writePDB},
  {"countContacts", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_52countContacts, METH_VARARGS|METH_KEYWORDS, __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB_51countContacts},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_54__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_56__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_12AdaptivePELE_7atomset_7atomset_PDB[] = {
  {(char *)"atoms", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_atoms, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_atoms, (char *)0, 0},
  {(char *)"atomList", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_atomList, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_atomList, (char *)0, 0},
  {(char *)"com", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_com, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_com, (char *)0, 0},
  {(char *)"centroid", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_centroid, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_centroid, (char *)0, 0},
  {(char *)"totalMass", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_totalMass, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_totalMass, (char *)0, 0},
  {(char *)"pdb", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_pdb, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_pdb, (char *)0, 0},
  {(char *)"ispdb", __pyx_getprop_12AdaptivePELE_7atomset_7atomset_3PDB_ispdb, __pyx_setprop_12AdaptivePELE_7atomset_7atomset_3PDB_ispdb, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_PDB = {
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_25__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_12AdaptivePELE_7atomset_7atomset_PDB, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_PDB = {
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_25__len__, /*mp_length*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_27__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_12AdaptivePELE_7atomset_7atomset_PDB, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_12AdaptivePELE_7atomset_7atomset_PDB = {
  PyVarObject_HEAD_INIT(0, 0)
  "AdaptivePELE.atomset.atomset.PDB", /*tp_name*/
  sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset_PDB), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_PDB, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_PDB, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_traverse*/
  __pyx_tp_clear_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_clear*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_3__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_33__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_12AdaptivePELE_7atomset_7atomset_3PDB_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_12AdaptivePELE_7atomset_7atomset_PDB, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *__pyx_freelist_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__[8];
static int __pyx_freecount_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ = 0;

static PyObject *__pyx_tp_new_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__)))) {
    o = (PyObject*)__pyx_freelist_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__[--__pyx_freecount_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__];
    memset(o, 0, sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__));
    (void) PyObject_INIT(o, t);
    PyObject_GC_Track(o);
  } else {
    o = (*t->tp_alloc)(t, 0);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__(PyObject *o) {
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_atomId);
  Py_CLEAR(p->__pyx_v_self);
  Py_CLEAR(p->__pyx_t_0);
  if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__)))) {
    __pyx_freelist_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__[__pyx_freecount_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__++] = ((struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)o);
  } else {
    (*Py_TYPE(o)->tp_free)(o);
  }
}

static int __pyx_tp_traverse_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *p = (struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ *)o;
  if (p->__pyx_v_atomId) {
    e = (*v)(p->__pyx_v_atomId, a); if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}

static PyTypeObject __pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ = {
  PyVarObject_HEAD_INIT(0, 0)
  "AdaptivePELE.atomset.atomset.__pyx_scope_struct____iter__", /*tp_name*/
  sizeof(struct __pyx_obj_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_atomset(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_atomset},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "atomset",
    0, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* m_size */
  #else
    -1, /* m_size */
  #endif
    __pyx_methods /* m_methods */,
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    __pyx_moduledef_slots, /* m_slots */
  #else
    NULL, /* m_reload */
  #endif
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0},
  {&__pyx_kp_u_00C, __pyx_k_00C, sizeof(__pyx_k_00C), 0, 1, 0, 0},
  {&__pyx_kp_u_01W, __pyx_k_01W, sizeof(__pyx_k_01W), 0, 1, 0, 0},
  {&__pyx_kp_u_02K, __pyx_k_02K, sizeof(__pyx_k_02K), 0, 1, 0, 0},
  {&__pyx_kp_u_02L, __pyx_k_02L, sizeof(__pyx_k_02L), 0, 1, 0, 0},
  {&__pyx_kp_u_03Y, __pyx_k_03Y, sizeof(__pyx_k_03Y), 0, 1, 0, 0},
  {&__pyx_kp_u_07O, __pyx_k_07O, sizeof(__pyx_k_07O), 0, 1, 0, 0},
  {&__pyx_kp_u_08P, __pyx_k_08P, sizeof(__pyx_k_08P), 0, 1, 0, 0},
  {&__pyx_kp_u_0A0, __pyx_k_0A0, sizeof(__pyx_k_0A0), 0, 1, 0, 0},
  {&__pyx_kp_u_0A1, __pyx_k_0A1, sizeof(__pyx_k_0A1), 0, 1, 0, 0},
  {&__pyx_kp_u_0A2, __pyx_k_0A2, sizeof(__pyx_k_0A2), 0, 1, 0, 0},
  {&__pyx_kp_u_0A8, __pyx_k_0A8, sizeof(__pyx_k_0A8), 0, 1, 0, 0},
  {&__pyx_kp_u_0AA, __pyx_k_0AA, sizeof(__pyx_k_0AA), 0, 1, 0, 0},
  {&__pyx_kp_u_0AB, __pyx_k_0AB, sizeof(__pyx_k_0AB), 0, 1, 0, 0},
  {&__pyx_kp_u_0AC, __pyx_k_0AC, sizeof(__pyx_k_0AC), 0, 1, 0, 0},
  {&__pyx_kp_u_0AF, __pyx_k_0AF, sizeof(__pyx_k_0AF), 0, 1, 0, 0},
  {&__pyx_kp_u_0AG, __pyx_k_0AG, sizeof(__pyx_k_0AG), 0, 1, 0, 0},
  {&__pyx_kp_u_0AH, __pyx_k_0AH, sizeof(__pyx_k_0AH), 0, 1, 0, 0},
  {&__pyx_kp_u_0AK, __pyx_k_0AK, sizeof(__pyx_k_0AK), 0, 1, 0, 0},
  {&__pyx_kp_u_0BN, __pyx_k_0BN, sizeof(__pyx_k_0BN), 0, 1, 0, 0},
  {&__pyx_kp_u_0CS, __pyx_k_0CS, sizeof(__pyx_k_0CS), 0, 1, 0, 0},
  {&__pyx_kp_u_0E5, __pyx_k_0E5, sizeof(__pyx_k_0E5), 0, 1, 0, 0},
  {&__pyx_kp_u_0EA, __pyx_k_0EA, sizeof(__pyx_k_0EA), 0, 1, 0, 0},
  {&__pyx_kp_u_0FL, __pyx_k_0FL, sizeof(__pyx_k_0FL), 0, 1, 0, 0},
  {&__pyx_kp_u_0NC, __pyx_k_0NC, sizeof(__pyx_k_0NC), 0, 1, 0, 0},
  {&__pyx_kp_u_0WZ, __pyx_k_0WZ, sizeof(__pyx_k_0WZ), 0, 1, 0, 0},
  {&__pyx_kp_u_0Y8, __pyx_k_0Y8, sizeof(__pyx_k_0Y8), 0, 1, 0, 0},
  {&__pyx_kp_u_0_9, __pyx_k_0_9, sizeof(__pyx_k_0_9), 0, 1, 0, 0},
  {&__pyx_kp_u_143, __pyx_k_143, sizeof(__pyx_k_143), 0, 1, 0, 0},
  {&__pyx_kp_u_193, __pyx_k_193, sizeof(__pyx_k_193), 0, 1, 0, 0},
  {&__pyx_kp_u_1OP, __pyx_k_1OP, sizeof(__pyx_k_1OP), 0, 1, 0, 0},
  {&__pyx_kp_u_1PA, __pyx_k_1PA, sizeof(__pyx_k_1PA), 0, 1, 0, 0},
  {&__pyx_kp_u_1PI, __pyx_k_1PI, sizeof(__pyx_k_1PI), 0, 1, 0, 0},
  {&__pyx_kp_u_1TQ, __pyx_k_1TQ, sizeof(__pyx_k_1TQ), 0, 1, 0, 0},
  {&__pyx_kp_u_1TY, __pyx_k_1TY, sizeof(__pyx_k_1TY), 0, 1, 0, 0},
  {&__pyx_kp_u_1X6, __pyx_k_1X6, sizeof(__pyx_k_1X6), 0, 1, 0, 0},
  {&__pyx_kp_u_200, __pyx_k_200, sizeof(__pyx_k_200), 0, 1, 0, 0},
  {&__pyx_kp_u_23F, __pyx_k_23F, sizeof(__pyx_k_23F), 0, 1, 0, 0},
  {&__pyx_kp_u_23S, __pyx_k_23S, sizeof(__pyx_k_23S), 0, 1, 0, 0},
  {&__pyx_kp_u_26B, __pyx_k_26B, sizeof(__pyx_k_26B), 0, 1, 0, 0},
  {&__pyx_kp_u_2AD, __pyx_k_2AD, sizeof(__pyx_k_2AD), 0, 1, 0, 0},
  {&__pyx_kp_u_2AG, __pyx_k_2AG, sizeof(__pyx_k_2AG), 0, 1, 0, 0},
  {&__pyx_kp_u_2AO, __pyx_k_2AO, sizeof(__pyx_k_2AO), 0, 1, 0, 0},
  {&__pyx_kp_u_2AS, __pyx_k_2AS, sizeof(__pyx_k_2AS), 0, 1, 0, 0},
  {&__pyx_kp_u_2CO, __pyx_k_2CO, sizeof(__pyx_k_2CO), 0, 1, 0, 0},
  {&__pyx_kp_u_2DO, __pyx_k_2DO, sizeof(__pyx_k_2DO), 0, 1, 0, 0},
  {&__pyx_kp_u_2FM, __pyx_k_2FM, sizeof(__pyx_k_2FM), 0, 1, 0, 0},
  {&__pyx_kp_u_2HF, __pyx_k_2HF, sizeof(__pyx_k_2HF), 0, 1, 0, 0},
  {&__pyx_kp_u_2KK, __pyx_k_2KK, sizeof(__pyx_k_2KK), 0, 1, 0, 0},
  {&__pyx_kp_u_2KP, __pyx_k_2KP, sizeof(__pyx_k_2KP), 0, 1, 0, 0},
  {&__pyx_kp_u_2LU, __pyx_k_2LU, sizeof(__pyx_k_2LU), 0, 1, 0, 0},
  {&__pyx_kp_u_2ML, __pyx_k_2ML, sizeof(__pyx_k_2ML), 0, 1, 0, 0},
  {&__pyx_kp_u_2MR, __pyx_k_2MR, sizeof(__pyx_k_2MR), 0, 1, 0, 0},
  {&__pyx_kp_u_2MT, __pyx_k_2MT, sizeof(__pyx_k_2MT), 0, 1, 0, 0},
  {&__pyx_kp_u_2OR, __pyx_k_2OR, sizeof(__pyx_k_2OR), 0, 1, 0, 0},
  {&__pyx_kp_u_2PI, __pyx_k_2PI, sizeof(__pyx_k_2PI), 0, 1, 0, 0},
  {&__pyx_kp_u_2QZ, __pyx_k_2QZ, sizeof(__pyx_k_2QZ), 0, 1, 0, 0},
  {&__pyx_kp_u_2R3, __pyx_k_2R3, sizeof(__pyx_k_2R3), 0, 1, 0, 0},
  {&__pyx_kp_u_2SI, __pyx_k_2SI, sizeof(__pyx_k_2SI), 0, 1, 0, 0},
  {&__pyx_kp_u_2TL, __pyx_k_2TL, sizeof(__pyx_k_2TL), 0, 1, 0, 0},
  {&__pyx_kp_u_2TY, __pyx_k_2TY, sizeof(__pyx_k_2TY), 0, 1, 0, 0},
  {&__pyx_kp_u_2VA, __pyx_k_2VA, sizeof(__pyx_k_2VA), 0, 1, 0, 0},
  {&__pyx_kp_u_2XA, __pyx_k_2XA, sizeof(__pyx_k_2XA), 0, 1, 0, 0},
  {&__pyx_kp_u_32S, __pyx_k_32S, sizeof(__pyx_k_32S), 0, 1, 0, 0},
  {&__pyx_kp_u_32T, __pyx_k_32T, sizeof(__pyx_k_32T), 0, 1, 0, 0},
  {&__pyx_kp_u_33X, __pyx_k_33X, sizeof(__pyx_k_33X), 0, 1, 0, 0},
  {&__pyx_kp_u_3AH, __pyx_k_3AH, sizeof(__pyx_k_3AH), 0, 1, 0, 0},
  {&__pyx_kp_u_3AR, __pyx_k_3AR, sizeof(__pyx_k_3AR), 0, 1, 0, 0},
  {&__pyx_kp_u_3CF, __pyx_k_3CF, sizeof(__pyx_k_3CF), 0, 1, 0, 0},
  {&__pyx_kp_u_3GA, __pyx_k_3GA, sizeof(__pyx_k_3GA), 0, 1, 0, 0},
  {&__pyx_kp_u_3MD, __pyx_k_3MD, sizeof(__pyx_k_3MD), 0, 1, 0, 0},
  {&__pyx_kp_u_3NF, __pyx_k_3NF, sizeof(__pyx_k_3NF), 0, 1, 0, 0},
  {&__pyx_kp_u_3QN, __pyx_k_3QN, sizeof(__pyx_k_3QN), 0, 1, 0, 0},
  {&__pyx_kp_u_3TY, __pyx_k_3TY, sizeof(__pyx_k_3TY), 0, 1, 0, 0},
  {&__pyx_kp_u_3XH, __pyx_k_3XH, sizeof(__pyx_k_3XH), 0, 1, 0, 0},
  {&__pyx_kp_u_3f, __pyx_k_3f, sizeof(__pyx_k_3f), 0, 1, 0, 0},
  {&__pyx_kp_u_4BF, __pyx_k_4BF, sizeof(__pyx_k_4BF), 0, 1, 0, 0},
  {&__pyx_kp_u_4CF, __pyx_k_4CF, sizeof(__pyx_k_4CF), 0, 1, 0, 0},
  {&__pyx_kp_u_4CY, __pyx_k_4CY, sizeof(__pyx_k_4CY), 0, 1, 0, 0},
  {&__pyx_kp_u_4DP, __pyx_k_4DP, sizeof(__pyx_k_4DP), 0, 1, 0, 0},
  {&__pyx_kp_u_4FB, __pyx_k_4FB, sizeof(__pyx_k_4FB), 0, 1, 0, 0},
  {&__pyx_kp_u_4FW, __pyx_k_4FW, sizeof(__pyx_k_4FW), 0, 1, 0, 0},
  {&__pyx_kp_u_4HT, __pyx_k_4HT, sizeof(__pyx_k_4HT), 0, 1, 0, 0},
  {&__pyx_kp_u_4IN, __pyx_k_4IN, sizeof(__pyx_k_4IN), 0, 1, 0, 0},
  {&__pyx_kp_u_4MM, __pyx_k_4MM, sizeof(__pyx_k_4MM), 0, 1, 0, 0},
  {&__pyx_kp_u_4PH, __pyx_k_4PH, sizeof(__pyx_k_4PH), 0, 1, 0, 0},
  {&__pyx_kp_u_4U7, __pyx_k_4U7, sizeof(__pyx_k_4U7), 0, 1, 0, 0},
  {&__pyx_kp_u_56A, __pyx_k_56A, sizeof(__pyx_k_56A), 0, 1, 0, 0},
  {&__pyx_kp_u_5AB, __pyx_k_5AB, sizeof(__pyx_k_5AB), 0, 1, 0, 0},
  {&__pyx_kp_u_5CS, __pyx_k_5CS, sizeof(__pyx_k_5CS), 0, 1, 0, 0},
  {&__pyx_kp_u_5CW, __pyx_k_5CW, sizeof(__pyx_k_5CW), 0, 1, 0, 0},
  {&__pyx_kp_u_5HP, __pyx_k_5HP, sizeof(__pyx_k_5HP), 0, 1, 0, 0},
  {&__pyx_kp_u_6CL, __pyx_k_6CL, sizeof(__pyx_k_6CL), 0, 1, 0, 0},
  {&__pyx_kp_u_6CW, __pyx_k_6CW, sizeof(__pyx_k_6CW), 0, 1, 0, 0},
  {&__pyx_kp_u_6GL, __pyx_k_6GL, sizeof(__pyx_k_6GL), 0, 1, 0, 0},
  {&__pyx_kp_u_6HN, __pyx_k_6HN, sizeof(__pyx_k_6HN), 0, 1, 0, 0},
  {&__pyx_kp_u_7JA, __pyx_k_7JA, sizeof(__pyx_k_7JA), 0, 1, 0, 0},
  {&__pyx_kp_u_9NE, __pyx_k_9NE, sizeof(__pyx_k_9NE), 0, 1, 0, 0},
  {&__pyx_kp_u_9NF, __pyx_k_9NF, sizeof(__pyx_k_9NF), 0, 1, 0, 0},
  {&__pyx_kp_u_9NR, __pyx_k_9NR, sizeof(__pyx_k_9NR), 0, 1, 0, 0},
  {&__pyx_kp_u_9NV, __pyx_k_9NV, sizeof(__pyx_k_9NV), 0, 1, 0, 0},
  {&__pyx_n_u_A, __pyx_k_A, sizeof(__pyx_k_A), 0, 1, 0, 1},
  {&__pyx_n_u_A5N, __pyx_k_A5N, sizeof(__pyx_k_A5N), 0, 1, 0, 1},
  {&__pyx_n_u_A66, __pyx_k_A66, sizeof(__pyx_k_A66), 0, 1, 0, 1},
  {&__pyx_n_u_AA3, __pyx_k_AA3, sizeof(__pyx_k_AA3), 0, 1, 0, 1},
  {&__pyx_n_u_AA4, __pyx_k_AA4, sizeof(__pyx_k_AA4), 0, 1, 0, 1},
  {&__pyx_n_u_AAR, __pyx_k_AAR, sizeof(__pyx_k_AAR), 0, 1, 0, 1},
  {&__pyx_n_u_AB7, __pyx_k_AB7, sizeof(__pyx_k_AB7), 0, 1, 0, 1},
  {&__pyx_n_u_ABA, __pyx_k_ABA, sizeof(__pyx_k_ABA), 0, 1, 0, 1},
  {&__pyx_n_u_ACB, __pyx_k_ACB, sizeof(__pyx_k_ACB), 0, 1, 0, 1},
  {&__pyx_n_u_ACE, __pyx_k_ACE, sizeof(__pyx_k_ACE), 0, 1, 0, 1},
  {&__pyx_n_u_ACL, __pyx_k_ACL, sizeof(__pyx_k_ACL), 0, 1, 0, 1},
  {&__pyx_n_u_ADD, __pyx_k_ADD, sizeof(__pyx_k_ADD), 0, 1, 0, 1},
  {&__pyx_n_u_AEA, __pyx_k_AEA, sizeof(__pyx_k_AEA), 0, 1, 0, 1},
  {&__pyx_n_u_AEI, __pyx_k_AEI, sizeof(__pyx_k_AEI), 0, 1, 0, 1},
  {&__pyx_n_u_AFA, __pyx_k_AFA, sizeof(__pyx_k_AFA), 0, 1, 0, 1},
  {&__pyx_n_u_AG, __pyx_k_AG, sizeof(__pyx_k_AG), 0, 1, 0, 1},
  {&__pyx_n_u_AGM, __pyx_k_AGM, sizeof(__pyx_k_AGM), 0, 1, 0, 1},
  {&__pyx_n_u_AGT, __pyx_k_AGT, sizeof(__pyx_k_AGT), 0, 1, 0, 1},
  {&__pyx_n_u_AHB, __pyx_k_AHB, sizeof(__pyx_k_AHB), 0, 1, 0, 1},
  {&__pyx_n_u_AHH, __pyx_k_AHH, sizeof(__pyx_k_AHH), 0, 1, 0, 1},
  {&__pyx_n_u_AHO, __pyx_k_AHO, sizeof(__pyx_k_AHO), 0, 1, 0, 1},
  {&__pyx_n_u_AHP, __pyx_k_AHP, sizeof(__pyx_k_AHP), 0, 1, 0, 1},
  {&__pyx_n_u_AHS, __pyx_k_AHS, sizeof(__pyx_k_AHS), 0, 1, 0, 1},
  {&__pyx_n_u_AHT, __pyx_k_AHT, sizeof(__pyx_k_AHT), 0, 1, 0, 1},
  {&__pyx_n_u_AIB, __pyx_k_AIB, sizeof(__pyx_k_AIB), 0, 1, 0, 1},
  {&__pyx_n_u_AKL, __pyx_k_AKL, sizeof(__pyx_k_AKL), 0, 1, 0, 1},
  {&__pyx_n_u_AKZ, __pyx_k_AKZ, sizeof(__pyx_k_AKZ), 0, 1, 0, 1},
  {&__pyx_n_u_AL, __pyx_k_AL, sizeof(__pyx_k_AL), 0, 1, 0, 1},
  {&__pyx_n_u_ALA, __pyx_k_ALA, sizeof(__pyx_k_ALA), 0, 1, 0, 1},
  {&__pyx_n_u_ALC, __pyx_k_ALC, sizeof(__pyx_k_ALC), 0, 1, 0, 1},
  {&__pyx_n_u_ALL, __pyx_k_ALL, sizeof(__pyx_k_ALL), 0, 1, 0, 1},
  {&__pyx_n_u_ALM, __pyx_k_ALM, sizeof(__pyx_k_ALM), 0, 1, 0, 1},
  {&__pyx_n_u_ALN, __pyx_k_ALN, sizeof(__pyx_k_ALN), 0, 1, 0, 1},
  {&__pyx_n_u_ALO, __pyx_k_ALO, sizeof(__pyx_k_ALO), 0, 1, 0, 1},
  {&__pyx_n_u_ALS, __pyx_k_ALS, sizeof(__pyx_k_ALS), 0, 1, 0, 1},
  {&__pyx_n_u_ALT, __pyx_k_ALT, sizeof(__pyx_k_ALT), 0, 1, 0, 1},
  {&__pyx_n_u_ALV, __pyx_k_ALV, sizeof(__pyx_k_ALV), 0, 1, 0, 1},
  {&__pyx_n_u_ALY, __pyx_k_ALY, sizeof(__pyx_k_ALY), 0, 1, 0, 1},
  {&__pyx_n_s_AMINO_ACID_CODES, __pyx_k_AMINO_ACID_CODES, sizeof(__pyx_k_AMINO_ACID_CODES), 0, 0, 1, 1},
  {&__pyx_n_u_AN8, __pyx_k_AN8, sizeof(__pyx_k_AN8), 0, 1, 0, 1},
  {&__pyx_n_u_APE, __pyx_k_APE, sizeof(__pyx_k_APE), 0, 1, 0, 1},
  {&__pyx_n_u_APH, __pyx_k_APH, sizeof(__pyx_k_APH), 0, 1, 0, 1},
  {&__pyx_n_u_API, __pyx_k_API, sizeof(__pyx_k_API), 0, 1, 0, 1},
  {&__pyx_n_u_APK, __pyx_k_APK, sizeof(__pyx_k_APK), 0, 1, 0, 1},
  {&__pyx_n_u_APM, __pyx_k_APM, sizeof(__pyx_k_APM), 0, 1, 0, 1},
  {&__pyx_n_u_APP, __pyx_k_APP, sizeof(__pyx_k_APP), 0, 1, 0, 1},
  {&__pyx_n_u_AR, __pyx_k_AR, sizeof(__pyx_k_AR), 0, 1, 0, 1},
  {&__pyx_n_u_AR2, __pyx_k_AR2, sizeof(__pyx_k_AR2), 0, 1, 0, 1},
  {&__pyx_n_u_AR4, __pyx_k_AR4, sizeof(__pyx_k_AR4), 0, 1, 0, 1},
  {&__pyx_n_u_AR7, __pyx_k_AR7, sizeof(__pyx_k_AR7), 0, 1, 0, 1},
  {&__pyx_n_u_ARG, __pyx_k_ARG, sizeof(__pyx_k_ARG), 0, 1, 0, 1},
  {&__pyx_n_u_ARM, __pyx_k_ARM, sizeof(__pyx_k_ARM), 0, 1, 0, 1},
  {&__pyx_n_u_ARO, __pyx_k_ARO, sizeof(__pyx_k_ARO), 0, 1, 0, 1},
  {&__pyx_n_u_ARV, __pyx_k_ARV, sizeof(__pyx_k_ARV), 0, 1, 0, 1},
  {&__pyx_n_u_AS, __pyx_k_AS, sizeof(__pyx_k_AS), 0, 1, 0, 1},
  {&__pyx_n_u_AS2, __pyx_k_AS2, sizeof(__pyx_k_AS2), 0, 1, 0, 1},
  {&__pyx_n_u_AS9, __pyx_k_AS9, sizeof(__pyx_k_AS9), 0, 1, 0, 1},
  {&__pyx_n_u_ASA, __pyx_k_ASA, sizeof(__pyx_k_ASA), 0, 1, 0, 1},
  {&__pyx_n_u_ASB, __pyx_k_ASB, sizeof(__pyx_k_ASB), 0, 1, 0, 1},
  {&__pyx_n_u_ASI, __pyx_k_ASI, sizeof(__pyx_k_ASI), 0, 1, 0, 1},
  {&__pyx_n_u_ASK, __pyx_k_ASK, sizeof(__pyx_k_ASK), 0, 1, 0, 1},
  {&__pyx_n_u_ASL, __pyx_k_ASL, sizeof(__pyx_k_ASL), 0, 1, 0, 1},
  {&__pyx_n_u_ASM, __pyx_k_ASM, sizeof(__pyx_k_ASM), 0, 1, 0, 1},
  {&__pyx_n_u_ASN, __pyx_k_ASN, sizeof(__pyx_k_ASN), 0, 1, 0, 1},
  {&__pyx_n_u_ASP, __pyx_k_ASP, sizeof(__pyx_k_ASP), 0, 1, 0, 1},
  {&__pyx_n_u_ASQ, __pyx_k_ASQ, sizeof(__pyx_k_ASQ), 0, 1, 0, 1},
  {&__pyx_n_u_ASX, __pyx_k_ASX, sizeof(__pyx_k_ASX), 0, 1, 0, 1},
  {&__pyx_n_u_ATOM, __pyx_k_ATOM, sizeof(__pyx_k_ATOM), 0, 1, 0, 1},
  {&__pyx_n_s_ATOM_LINE_TEMPLATE, __pyx_k_ATOM_LINE_TEMPLATE, sizeof(__pyx_k_ATOM_LINE_TEMPLATE), 0, 0, 1, 1},
  {&__pyx_n_s_ATOM_WEIGHTS, __pyx_k_ATOM_WEIGHTS, sizeof(__pyx_k_ATOM_WEIGHTS), 0, 0, 1, 1},
  {&__pyx_n_u_AU, __pyx_k_AU, sizeof(__pyx_k_AU), 0, 1, 0, 1},
  {&__pyx_n_u_AVN, __pyx_k_AVN, sizeof(__pyx_k_AVN), 0, 1, 0, 1},
  {&__pyx_n_u_AYA, __pyx_k_AYA, sizeof(__pyx_k_AYA), 0, 1, 0, 1},
  {&__pyx_n_u_AZK, __pyx_k_AZK, sizeof(__pyx_k_AZK), 0, 1, 0, 1},
  {&__pyx_n_u_AZS, __pyx_k_AZS, sizeof(__pyx_k_AZS), 0, 1, 0, 1},
  {&__pyx_n_u_AZY, __pyx_k_AZY, sizeof(__pyx_k_AZY), 0, 1, 0, 1},
  {&__pyx_n_s_AdaptivePELE_atomset_atomset, __pyx_k_AdaptivePELE_atomset_atomset, sizeof(__pyx_k_AdaptivePELE_atomset_atomset), 0, 0, 1, 1},
  {&__pyx_kp_s_AdaptivePELE_atomset_atomset_pyx, __pyx_k_AdaptivePELE_atomset_atomset_pyx, sizeof(__pyx_k_AdaptivePELE_atomset_atomset_pyx), 0, 0, 1, 0},
  {&__pyx_n_s_Atom, __pyx_k_Atom, sizeof(__pyx_k_Atom), 0, 0, 1, 1},
  {&__pyx_n_u_B, __pyx_k_B, sizeof(__pyx_k_B), 0, 1, 0, 1},
  {&__pyx_n_u_B1F, __pyx_k_B1F, sizeof(__pyx_k_B1F), 0, 1, 0, 1},
  {&__pyx_n_u_B2A, __pyx_k_B2A, sizeof(__pyx_k_B2A), 0, 1, 0, 1},
  {&__pyx_n_u_B2F, __pyx_k_B2F, sizeof(__pyx_k_B2F), 0, 1, 0, 1},
  {&__pyx_n_u_B2I, __pyx_k_B2I, sizeof(__pyx_k_B2I), 0, 1, 0, 1},
  {&__pyx_n_u_B2V, __pyx_k_B2V, sizeof(__pyx_k_B2V), 0, 1, 0, 1},
  {&__pyx_n_u_B3A, __pyx_k_B3A, sizeof(__pyx_k_B3A), 0, 1, 0, 1},
  {&__pyx_n_u_B3D, __pyx_k_B3D, sizeof(__pyx_k_B3D), 0, 1, 0, 1},
  {&__pyx_n_u_B3E, __pyx_k_B3E, sizeof(__pyx_k_B3E), 0, 1, 0, 1},
  {&__pyx_n_u_B3K, __pyx_k_B3K, sizeof(__pyx_k_B3K), 0, 1, 0, 1},
  {&__pyx_n_u_B3L, __pyx_k_B3L, sizeof(__pyx_k_B3L), 0, 1, 0, 1},
  {&__pyx_n_u_B3M, __pyx_k_B3M, sizeof(__pyx_k_B3M), 0, 1, 0, 1},
  {&__pyx_n_u_B3Q, __pyx_k_B3Q, sizeof(__pyx_k_B3Q), 0, 1, 0, 1},
  {&__pyx_n_u_B3S, __pyx_k_B3S, sizeof(__pyx_k_B3S), 0, 1, 0, 1},
  {&__pyx_n_u_B3T, __pyx_k_B3T, sizeof(__pyx_k_B3T), 0, 1, 0, 1},
  {&__pyx_n_u_B3U, __pyx_k_B3U, sizeof(__pyx_k_B3U), 0, 1, 0, 1},
  {&__pyx_n_u_B3X, __pyx_k_B3X, sizeof(__pyx_k_B3X), 0, 1, 0, 1},
  {&__pyx_n_u_B3Y, __pyx_k_B3Y, sizeof(__pyx_k_B3Y), 0, 1, 0, 1},
  {&__pyx_n_u_BA, __pyx_k_BA, sizeof(__pyx_k_BA), 0, 1, 0, 1},
  {&__pyx_n_u_BB6, __pyx_k_BB6, sizeof(__pyx_k_BB6), 0, 1, 0, 1},
  {&__pyx_n_u_BB7, __pyx_k_BB7, sizeof(__pyx_k_BB7), 0, 1, 0, 1},
  {&__pyx_n_u_BB8, __pyx_k_BB8, sizeof(__pyx_k_BB8), 0, 1, 0, 1},
  {&__pyx_n_u_BB9, __pyx_k_BB9, sizeof(__pyx_k_BB9), 0, 1, 0, 1},
  {&__pyx_n_u_BBC, __pyx_k_BBC, sizeof(__pyx_k_BBC), 0, 1, 0, 1},
  {&__pyx_n_u_BCS, __pyx_k_BCS, sizeof(__pyx_k_BCS), 0, 1, 0, 1},
  {&__pyx_n_u_BE, __pyx_k_BE, sizeof(__pyx_k_BE), 0, 1, 0, 1},
  {&__pyx_n_u_BE2, __pyx_k_BE2, sizeof(__pyx_k_BE2), 0, 1, 0, 1},
  {&__pyx_n_u_BFD, __pyx_k_BFD, sizeof(__pyx_k_BFD), 0, 1, 0, 1},
  {&__pyx_n_u_BG1, __pyx_k_BG1, sizeof(__pyx_k_BG1), 0, 1, 0, 1},
  {&__pyx_n_u_BH2, __pyx_k_BH2, sizeof(__pyx_k_BH2), 0, 1, 0, 1},
  {&__pyx_n_u_BHD, __pyx_k_BHD, sizeof(__pyx_k_BHD), 0, 1, 0, 1},
  {&__pyx_n_u_BIF, __pyx_k_BIF, sizeof(__pyx_k_BIF), 0, 1, 0, 1},
  {&__pyx_n_u_BIL, __pyx_k_BIL, sizeof(__pyx_k_BIL), 0, 1, 0, 1},
  {&__pyx_n_u_BIU, __pyx_k_BIU, sizeof(__pyx_k_BIU), 0, 1, 0, 1},
  {&__pyx_n_u_BJH, __pyx_k_BJH, sizeof(__pyx_k_BJH), 0, 1, 0, 1},
  {&__pyx_n_u_BL2, __pyx_k_BL2, sizeof(__pyx_k_BL2), 0, 1, 0, 1},
  {&__pyx_n_u_BLE, __pyx_k_BLE, sizeof(__pyx_k_BLE), 0, 1, 0, 1},
  {&__pyx_n_u_BLY, __pyx_k_BLY, sizeof(__pyx_k_BLY), 0, 1, 0, 1},
  {&__pyx_n_u_BMT, __pyx_k_BMT, sizeof(__pyx_k_BMT), 0, 1, 0, 1},
  {&__pyx_n_u_BNN, __pyx_k_BNN, sizeof(__pyx_k_BNN), 0, 1, 0, 1},
  {&__pyx_n_u_BNO, __pyx_k_BNO, sizeof(__pyx_k_BNO), 0, 1, 0, 1},
  {&__pyx_n_u_BOR, __pyx_k_BOR, sizeof(__pyx_k_BOR), 0, 1, 0, 1},
  {&__pyx_n_u_BPE, __pyx_k_BPE, sizeof(__pyx_k_BPE), 0, 1, 0, 1},
  {&__pyx_n_u_BR, __pyx_k_BR, sizeof(__pyx_k_BR), 0, 1, 0, 1},
  {&__pyx_n_u_BSE, __pyx_k_BSE, sizeof(__pyx_k_BSE), 0, 1, 0, 1},
  {&__pyx_n_u_BTA, __pyx_k_BTA, sizeof(__pyx_k_BTA), 0, 1, 0, 1},
  {&__pyx_n_u_BTC, __pyx_k_BTC, sizeof(__pyx_k_BTC), 0, 1, 0, 1},
  {&__pyx_n_u_BTR, __pyx_k_BTR, sizeof(__pyx_k_BTR), 0, 1, 0, 1},
  {&__pyx_n_u_BUC, __pyx_k_BUC, sizeof(__pyx_k_BUC), 0, 1, 0, 1},
  {&__pyx_n_u_BUG, __pyx_k_BUG, sizeof(__pyx_k_BUG), 0, 1, 0, 1},
  {&__pyx_n_u_C, __pyx_k_C, sizeof(__pyx_k_C), 0, 1, 0, 1},
  {&__pyx_n_u_C1X, __pyx_k_C1X, sizeof(__pyx_k_C1X), 0, 1, 0, 1},
  {&__pyx_n_u_C22, __pyx_k_C22, sizeof(__pyx_k_C22), 0, 1, 0, 1},
  {&__pyx_n_u_C3Y, __pyx_k_C3Y, sizeof(__pyx_k_C3Y), 0, 1, 0, 1},
  {&__pyx_n_u_C4R, __pyx_k_C4R, sizeof(__pyx_k_C4R), 0, 1, 0, 1},
  {&__pyx_n_u_C5C, __pyx_k_C5C, sizeof(__pyx_k_C5C), 0, 1, 0, 1},
  {&__pyx_n_u_C66, __pyx_k_C66, sizeof(__pyx_k_C66), 0, 1, 0, 1},
  {&__pyx_n_u_C6C, __pyx_k_C6C, sizeof(__pyx_k_C6C), 0, 1, 0, 1},
  {&__pyx_n_u_CA, __pyx_k_CA, sizeof(__pyx_k_CA), 0, 1, 0, 1},
  {&__pyx_n_u_CAF, __pyx_k_CAF, sizeof(__pyx_k_CAF), 0, 1, 0, 1},
  {&__pyx_n_u_CAL, __pyx_k_CAL, sizeof(__pyx_k_CAL), 0, 1, 0, 1},
  {&__pyx_n_u_CAS, __pyx_k_CAS, sizeof(__pyx_k_CAS), 0, 1, 0, 1},
  {&__pyx_n_u_CAV, __pyx_k_CAV, sizeof(__pyx_k_CAV), 0, 1, 0, 1},
  {&__pyx_n_u_CAY, __pyx_k_CAY, sizeof(__pyx_k_CAY), 0, 1, 0, 1},
  {&__pyx_n_u_CCL, __pyx_k_CCL, sizeof(__pyx_k_CCL), 0, 1, 0, 1},
  {&__pyx_n_u_CCS, __pyx_k_CCS, sizeof(__pyx_k_CCS), 0, 1, 0, 1},
  {&__pyx_n_u_CD, __pyx_k_CD, sizeof(__pyx_k_CD), 0, 1, 0, 1},
  {&__pyx_n_u_CDE, __pyx_k_CDE, sizeof(__pyx_k_CDE), 0, 1, 0, 1},
  {&__pyx_n_u_CDV, __pyx_k_CDV, sizeof(__pyx_k_CDV), 0, 1, 0, 1},
  {&__pyx_n_u_CE1, __pyx_k_CE1, sizeof(__pyx_k_CE1), 0, 1, 0, 1},
  {&__pyx_n_u_CEA, __pyx_k_CEA, sizeof(__pyx_k_CEA), 0, 1, 0, 1},
  {&__pyx_n_u_CGA, __pyx_k_CGA, sizeof(__pyx_k_CGA), 0, 1, 0, 1},
  {&__pyx_n_u_CGU, __pyx_k_CGU, sizeof(__pyx_k_CGU), 0, 1, 0, 1},
  {&__pyx_n_u_CH2, __pyx_k_CH2, sizeof(__pyx_k_CH2), 0, 1, 0, 1},
  {&__pyx_n_u_CHF, __pyx_k_CHF, sizeof(__pyx_k_CHF), 0, 1, 0, 1},
  {&__pyx_n_u_CHG, __pyx_k_CHG, sizeof(__pyx_k_CHG), 0, 1, 0, 1},
  {&__pyx_n_u_CHP, __pyx_k_CHP, sizeof(__pyx_k_CHP), 0, 1, 0, 1},
  {&__pyx_n_u_CHS, __pyx_k_CHS, sizeof(__pyx_k_CHS), 0, 1, 0, 1},
  {&__pyx_n_u_CIR, __pyx_k_CIR, sizeof(__pyx_k_CIR), 0, 1, 0, 1},
  {&__pyx_n_u_CL, __pyx_k_CL, sizeof(__pyx_k_CL), 0, 1, 0, 1},
  {&__pyx_n_u_CLE, __pyx_k_CLE, sizeof(__pyx_k_CLE), 0, 1, 0, 1},
  {&__pyx_n_u_CLG, __pyx_k_CLG, sizeof(__pyx_k_CLG), 0, 1, 0, 1},
  {&__pyx_n_u_CLH, __pyx_k_CLH, sizeof(__pyx_k_CLH), 0, 1, 0, 1},
  {&__pyx_n_u_CM, __pyx_k_CM, sizeof(__pyx_k_CM), 0, 1, 0, 1},
  {&__pyx_n_s_CMAtoms, __pyx_k_CMAtoms, sizeof(__pyx_k_CMAtoms), 0, 0, 1, 1},
  {&__pyx_n_u_CME, __pyx_k_CME, sizeof(__pyx_k_CME), 0, 1, 0, 1},
  {&__pyx_n_u_CMH, __pyx_k_CMH, sizeof(__pyx_k_CMH), 0, 1, 0, 1},
  {&__pyx_n_u_CML, __pyx_k_CML, sizeof(__pyx_k_CML), 0, 1, 0, 1},
  {&__pyx_n_u_CMT, __pyx_k_CMT, sizeof(__pyx_k_CMT), 0, 1, 0, 1},
  {&__pyx_n_u_CO, __pyx_k_CO, sizeof(__pyx_k_CO), 0, 1, 0, 1},
  {&__pyx_n_s_COM1, __pyx_k_COM1, sizeof(__pyx_k_COM1), 0, 0, 1, 1},
  {&__pyx_n_s_COM2, __pyx_k_COM2, sizeof(__pyx_k_COM2), 0, 0, 1, 1},
  {&__pyx_n_u_CPC, __pyx_k_CPC, sizeof(__pyx_k_CPC), 0, 1, 0, 1},
  {&__pyx_n_u_CPI, __pyx_k_CPI, sizeof(__pyx_k_CPI), 0, 1, 0, 1},
  {&__pyx_n_u_CR, __pyx_k_CR, sizeof(__pyx_k_CR), 0, 1, 0, 1},
  {&__pyx_n_u_CR5, __pyx_k_CR5, sizeof(__pyx_k_CR5), 0, 1, 0, 1},
  {&__pyx_n_u_CS, __pyx_k_CS, sizeof(__pyx_k_CS), 0, 1, 0, 1},
  {&__pyx_n_u_CS0, __pyx_k_CS0, sizeof(__pyx_k_CS0), 0, 1, 0, 1},
  {&__pyx_n_u_CS1, __pyx_k_CS1, sizeof(__pyx_k_CS1), 0, 1, 0, 1},
  {&__pyx_n_u_CS3, __pyx_k_CS3, sizeof(__pyx_k_CS3), 0, 1, 0, 1},
  {&__pyx_n_u_CS4, __pyx_k_CS4, sizeof(__pyx_k_CS4), 0, 1, 0, 1},
  {&__pyx_n_u_CSA, __pyx_k_CSA, sizeof(__pyx_k_CSA), 0, 1, 0, 1},
  {&__pyx_n_u_CSB, __pyx_k_CSB, sizeof(__pyx_k_CSB), 0, 1, 0, 1},
  {&__pyx_n_u_CSD, __pyx_k_CSD, sizeof(__pyx_k_CSD), 0, 1, 0, 1},
  {&__pyx_n_u_CSE, __pyx_k_CSE, sizeof(__pyx_k_CSE), 0, 1, 0, 1},
  {&__pyx_n_u_CSJ, __pyx_k_CSJ, sizeof(__pyx_k_CSJ), 0, 1, 0, 1},
  {&__pyx_n_u_CSO, __pyx_k_CSO, sizeof(__pyx_k_CSO), 0, 1, 0, 1},
  {&__pyx_n_u_CSP, __pyx_k_CSP, sizeof(__pyx_k_CSP), 0, 1, 0, 1},
  {&__pyx_n_u_CSR, __pyx_k_CSR, sizeof(__pyx_k_CSR), 0, 1, 0, 1},
  {&__pyx_n_u_CSS, __pyx_k_CSS, sizeof(__pyx_k_CSS), 0, 1, 0, 1},
  {&__pyx_n_u_CSU, __pyx_k_CSU, sizeof(__pyx_k_CSU), 0, 1, 0, 1},
  {&__pyx_n_u_CSW, __pyx_k_CSW, sizeof(__pyx_k_CSW), 0, 1, 0, 1},
  {&__pyx_n_u_CSX, __pyx_k_CSX, sizeof(__pyx_k_CSX), 0, 1, 0, 1},
  {&__pyx_n_u_CSZ, __pyx_k_CSZ, sizeof(__pyx_k_CSZ), 0, 1, 0, 1},
  {&__pyx_n_u_CTE, __pyx_k_CTE, sizeof(__pyx_k_CTE), 0, 1, 0, 1},
  {&__pyx_n_u_CTH, __pyx_k_CTH, sizeof(__pyx_k_CTH), 0, 1, 0, 1},
  {&__pyx_n_u_CU, __pyx_k_CU, sizeof(__pyx_k_CU), 0, 1, 0, 1},
  {&__pyx_n_u_CUC, __pyx_k_CUC, sizeof(__pyx_k_CUC), 0, 1, 0, 1},
  {&__pyx_n_u_CWR, __pyx_k_CWR, sizeof(__pyx_k_CWR), 0, 1, 0, 1},
  {&__pyx_n_u_CXM, __pyx_k_CXM, sizeof(__pyx_k_CXM), 0, 1, 0, 1},
  {&__pyx_n_u_CY0, __pyx_k_CY0, sizeof(__pyx_k_CY0), 0, 1, 0, 1},
  {&__pyx_n_u_CY1, __pyx_k_CY1, sizeof(__pyx_k_CY1), 0, 1, 0, 1},
  {&__pyx_n_u_CY3, __pyx_k_CY3, sizeof(__pyx_k_CY3), 0, 1, 0, 1},
  {&__pyx_n_u_CY4, __pyx_k_CY4, sizeof(__pyx_k_CY4), 0, 1, 0, 1},
  {&__pyx_n_u_CYA, __pyx_k_CYA, sizeof(__pyx_k_CYA), 0, 1, 0, 1},
  {&__pyx_n_u_CYD, __pyx_k_CYD, sizeof(__pyx_k_CYD), 0, 1, 0, 1},
  {&__pyx_n_u_CYF, __pyx_k_CYF, sizeof(__pyx_k_CYF), 0, 1, 0, 1},
  {&__pyx_n_u_CYG, __pyx_k_CYG, sizeof(__pyx_k_CYG), 0, 1, 0, 1},
  {&__pyx_n_u_CYJ, __pyx_k_CYJ, sizeof(__pyx_k_CYJ), 0, 1, 0, 1},
  {&__pyx_n_u_CYM, __pyx_k_CYM, sizeof(__pyx_k_CYM), 0, 1, 0, 1},
  {&__pyx_n_u_CYQ, __pyx_k_CYQ, sizeof(__pyx_k_CYQ), 0, 1, 0, 1},
  {&__pyx_n_u_CYR, __pyx_k_CYR, sizeof(__pyx_k_CYR), 0, 1, 0, 1},
  {&__pyx_n_u_CYS, __pyx_k_CYS, sizeof(__pyx_k_CYS), 0, 1, 0, 1},
  {&__pyx_n_u_CYT, __pyx_k_CYT, sizeof(__pyx_k_CYT), 0, 1, 0, 1},
  {&__pyx_n_u_CZ, __pyx_k_CZ, sizeof(__pyx_k_CZ), 0, 1, 0, 1},
  {&__pyx_n_u_CZ2, __pyx_k_CZ2, sizeof(__pyx_k_CZ2), 0, 1, 0, 1},
  {&__pyx_n_u_CZZ, __pyx_k_CZZ, sizeof(__pyx_k_CZZ), 0, 1, 0, 1},
  {&__pyx_n_u_D, __pyx_k_D, sizeof(__pyx_k_D), 0, 1, 0, 1},
  {&__pyx_n_u_D11, __pyx_k_D11, sizeof(__pyx_k_D11), 0, 1, 0, 1},
  {&__pyx_n_u_D3P, __pyx_k_D3P, sizeof(__pyx_k_D3P), 0, 1, 0, 1},
  {&__pyx_n_u_D4P, __pyx_k_D4P, sizeof(__pyx_k_D4P), 0, 1, 0, 1},
  {&__pyx_n_u_DA2, __pyx_k_DA2, sizeof(__pyx_k_DA2), 0, 1, 0, 1},
  {&__pyx_n_u_DAB, __pyx_k_DAB, sizeof(__pyx_k_DAB), 0, 1, 0, 1},
  {&__pyx_n_u_DAH, __pyx_k_DAH, sizeof(__pyx_k_DAH), 0, 1, 0, 1},
  {&__pyx_n_u_DAL, __pyx_k_DAL, sizeof(__pyx_k_DAL), 0, 1, 0, 1},
  {&__pyx_n_u_DAR, __pyx_k_DAR, sizeof(__pyx_k_DAR), 0, 1, 0, 1},
  {&__pyx_n_u_DAS, __pyx_k_DAS, sizeof(__pyx_k_DAS), 0, 1, 0, 1},
  {&__pyx_n_u_DBB, __pyx_k_DBB, sizeof(__pyx_k_DBB), 0, 1, 0, 1},
  {&__pyx_n_u_DBS, __pyx_k_DBS, sizeof(__pyx_k_DBS), 0, 1, 0, 1},
  {&__pyx_n_u_DBU, __pyx_k_DBU, sizeof(__pyx_k_DBU), 0, 1, 0, 1},
  {&__pyx_n_u_DBY, __pyx_k_DBY, sizeof(__pyx_k_DBY), 0, 1, 0, 1},
  {&__pyx_n_u_DBZ, __pyx_k_DBZ, sizeof(__pyx_k_DBZ), 0, 1, 0, 1},
  {&__pyx_n_u_DC2, __pyx_k_DC2, sizeof(__pyx_k_DC2), 0, 1, 0, 1},
  {&__pyx_n_u_DCL, __pyx_k_DCL, sizeof(__pyx_k_DCL), 0, 1, 0, 1},
  {&__pyx_n_u_DCY, __pyx_k_DCY, sizeof(__pyx_k_DCY), 0, 1, 0, 1},
  {&__pyx_n_u_DDE, __pyx_k_DDE, sizeof(__pyx_k_DDE), 0, 1, 0, 1},
  {&__pyx_n_u_DFI, __pyx_k_DFI, sizeof(__pyx_k_DFI), 0, 1, 0, 1},
  {&__pyx_n_u_DFO, __pyx_k_DFO, sizeof(__pyx_k_DFO), 0, 1, 0, 1},
  {&__pyx_n_u_DGH, __pyx_k_DGH, sizeof(__pyx_k_DGH), 0, 1, 0, 1},
  {&__pyx_n_u_DGL, __pyx_k_DGL, sizeof(__pyx_k_DGL), 0, 1, 0, 1},
  {&__pyx_n_u_DGN, __pyx_k_DGN, sizeof(__pyx_k_DGN), 0, 1, 0, 1},
  {&__pyx_n_u_DHA, __pyx_k_DHA, sizeof(__pyx_k_DHA), 0, 1, 0, 1},
  {&__pyx_n_u_DHI, __pyx_k_DHI, sizeof(__pyx_k_DHI), 0, 1, 0, 1},
  {&__pyx_n_u_DHL, __pyx_k_DHL, sizeof(__pyx_k_DHL), 0, 1, 0, 1},
  {&__pyx_n_u_DHN, __pyx_k_DHN, sizeof(__pyx_k_DHN), 0, 1, 0, 1},
  {&__pyx_n_u_DHP, __pyx_k_DHP, sizeof(__pyx_k_DHP), 0, 1, 0, 1},
  {&__pyx_n_u_DHV, __pyx_k_DHV, sizeof(__pyx_k_DHV), 0, 1, 0, 1},
  {&__pyx_n_u_DI7, __pyx_k_DI7, sizeof(__pyx_k_DI7), 0, 1, 0, 1},
  {&__pyx_n_u_DIL, __pyx_k_DIL, sizeof(__pyx_k_DIL), 0, 1, 0, 1},
  {&__pyx_n_u_DIR, __pyx_k_DIR, sizeof(__pyx_k_DIR), 0, 1, 0, 1},
  {&__pyx_n_u_DIV, __pyx_k_DIV, sizeof(__pyx_k_DIV), 0, 1, 0, 1},
  {&__pyx_n_u_DLE, __pyx_k_DLE, sizeof(__pyx_k_DLE), 0, 1, 0, 1},
  {&__pyx_n_u_DLS, __pyx_k_DLS, sizeof(__pyx_k_DLS), 0, 1, 0, 1},
  {&__pyx_n_u_DLY, __pyx_k_DLY, sizeof(__pyx_k_DLY), 0, 1, 0, 1},
  {&__pyx_n_u_DM0, __pyx_k_DM0, sizeof(__pyx_k_DM0), 0, 1, 0, 1},
  {&__pyx_n_u_DMH, __pyx_k_DMH, sizeof(__pyx_k_DMH), 0, 1, 0, 1},
  {&__pyx_n_u_DMK, __pyx_k_DMK, sizeof(__pyx_k_DMK), 0, 1, 0, 1},
  {&__pyx_n_u_DMT, __pyx_k_DMT, sizeof(__pyx_k_DMT), 0, 1, 0, 1},
  {&__pyx_n_u_DNE, __pyx_k_DNE, sizeof(__pyx_k_DNE), 0, 1, 0, 1},
  {&__pyx_n_u_DNL, __pyx_k_DNL, sizeof(__pyx_k_DNL), 0, 1, 0, 1},
  {&__pyx_n_u_DNP, __pyx_k_DNP, sizeof(__pyx_k_DNP), 0, 1, 0, 1},
  {&__pyx_n_u_DNS, __pyx_k_DNS, sizeof(__pyx_k_DNS), 0, 1, 0, 1},
  {&__pyx_n_u_DOA, __pyx_k_DOA, sizeof(__pyx_k_DOA), 0, 1, 0, 1},
  {&__pyx_n_u_DOH, __pyx_k_DOH, sizeof(__pyx_k_DOH), 0, 1, 0, 1},
  {&__pyx_n_u_DON, __pyx_k_DON, sizeof(__pyx_k_DON), 0, 1, 0, 1},
  {&__pyx_n_u_DPL, __pyx_k_DPL, sizeof(__pyx_k_DPL), 0, 1, 0, 1},
  {&__pyx_n_u_DPN, __pyx_k_DPN, sizeof(__pyx_k_DPN), 0, 1, 0, 1},
  {&__pyx_n_u_DPP, __pyx_k_DPP, sizeof(__pyx_k_DPP), 0, 1, 0, 1},
  {&__pyx_n_u_DPQ, __pyx_k_DPQ, sizeof(__pyx_k_DPQ), 0, 1, 0, 1},
  {&__pyx_n_u_DPR, __pyx_k_DPR, sizeof(__pyx_k_DPR), 0, 1, 0, 1},
  {&__pyx_n_u_DSE, __pyx_k_DSE, sizeof(__pyx_k_DSE), 0, 1, 0, 1},
  {&__pyx_n_u_DSG, __pyx_k_DSG, sizeof(__pyx_k_DSG), 0, 1, 0, 1},
  {&__pyx_n_u_DSN, __pyx_k_DSN, sizeof(__pyx_k_DSN), 0, 1, 0, 1},
  {&__pyx_n_u_DSP, __pyx_k_DSP, sizeof(__pyx_k_DSP), 0, 1, 0, 1},
  {&__pyx_n_u_DTH, __pyx_k_DTH, sizeof(__pyx_k_DTH), 0, 1, 0, 1},
  {&__pyx_n_u_DTR, __pyx_k_DTR, sizeof(__pyx_k_DTR), 0, 1, 0, 1},
  {&__pyx_n_u_DTY, __pyx_k_DTY, sizeof(__pyx_k_DTY), 0, 1, 0, 1},
  {&__pyx_n_u_DVA, __pyx_k_DVA, sizeof(__pyx_k_DVA), 0, 1, 0, 1},
  {&__pyx_n_u_DYS, __pyx_k_DYS, sizeof(__pyx_k_DYS), 0, 1, 0, 1},
  {&__pyx_n_u_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 1, 0, 1},
  {&__pyx_n_u_ECC, __pyx_k_ECC, sizeof(__pyx_k_ECC), 0, 1, 0, 1},
  {&__pyx_n_u_EFC, __pyx_k_EFC, sizeof(__pyx_k_EFC), 0, 1, 0, 1},
  {&__pyx_n_u_EHP, __pyx_k_EHP, sizeof(__pyx_k_EHP), 0, 1, 0, 1},
  {&__pyx_n_u_END, __pyx_k_END, sizeof(__pyx_k_END), 0, 1, 0, 1},
  {&__pyx_n_u_ENDMDL, __pyx_k_ENDMDL, sizeof(__pyx_k_ENDMDL), 0, 1, 0, 1},
  {&__pyx_n_u_ESB, __pyx_k_ESB, sizeof(__pyx_k_ESB), 0, 1, 0, 1},
  {&__pyx_n_u_ESC, __pyx_k_ESC, sizeof(__pyx_k_ESC), 0, 1, 0, 1},
  {&__pyx_n_u_EU, __pyx_k_EU, sizeof(__pyx_k_EU), 0, 1, 0, 1},
  {&__pyx_n_u_EXY, __pyx_k_EXY, sizeof(__pyx_k_EXY), 0, 1, 0, 1},
  {&__pyx_n_u_EYS, __pyx_k_EYS, sizeof(__pyx_k_EYS), 0, 1, 0, 1},
  {&__pyx_n_u_F, __pyx_k_F, sizeof(__pyx_k_F), 0, 1, 0, 1},
  {&__pyx_n_u_F2F, __pyx_k_F2F, sizeof(__pyx_k_F2F), 0, 1, 0, 1},
  {&__pyx_n_u_FAK, __pyx_k_FAK, sizeof(__pyx_k_FAK), 0, 1, 0, 1},
  {&__pyx_n_u_FB5, __pyx_k_FB5, sizeof(__pyx_k_FB5), 0, 1, 0, 1},
  {&__pyx_n_u_FB6, __pyx_k_FB6, sizeof(__pyx_k_FB6), 0, 1, 0, 1},
  {&__pyx_n_u_FCL, __pyx_k_FCL, sizeof(__pyx_k_FCL), 0, 1, 0, 1},
  {&__pyx_n_u_FE, __pyx_k_FE, sizeof(__pyx_k_FE), 0, 1, 0, 1},
  {&__pyx_n_u_FGA, __pyx_k_FGA, sizeof(__pyx_k_FGA), 0, 1, 0, 1},
  {&__pyx_n_u_FGL, __pyx_k_FGL, sizeof(__pyx_k_FGL), 0, 1, 0, 1},
  {&__pyx_n_u_FGP, __pyx_k_FGP, sizeof(__pyx_k_FGP), 0, 1, 0, 1},
  {&__pyx_n_u_FH7, __pyx_k_FH7, sizeof(__pyx_k_FH7), 0, 1, 0, 1},
  {&__pyx_n_u_FHL, __pyx_k_FHL, sizeof(__pyx_k_FHL), 0, 1, 0, 1},
  {&__pyx_n_u_FHO, __pyx_k_FHO, sizeof(__pyx_k_FHO), 0, 1, 0, 1},
  {&__pyx_n_u_FLA, __pyx_k_FLA, sizeof(__pyx_k_FLA), 0, 1, 0, 1},
  {&__pyx_n_u_FLE, __pyx_k_FLE, sizeof(__pyx_k_FLE), 0, 1, 0, 1},
  {&__pyx_n_u_FLT, __pyx_k_FLT, sizeof(__pyx_k_FLT), 0, 1, 0, 1},
  {&__pyx_n_u_FME, __pyx_k_FME, sizeof(__pyx_k_FME), 0, 1, 0, 1},
  {&__pyx_n_u_FOE, __pyx_k_FOE, sizeof(__pyx_k_FOE), 0, 1, 0, 1},
  {&__pyx_n_u_FP9, __pyx_k_FP9, sizeof(__pyx_k_FP9), 0, 1, 0, 1},
  {&__pyx_n_u_FRD, __pyx_k_FRD, sizeof(__pyx_k_FRD), 0, 1, 0, 1},
  {&__pyx_n_u_FT6, __pyx_k_FT6, sizeof(__pyx_k_FT6), 0, 1, 0, 1},
  {&__pyx_n_u_FTR, __pyx_k_FTR, sizeof(__pyx_k_FTR), 0, 1, 0, 1},
  {&__pyx_n_u_FTY, __pyx_k_FTY, sizeof(__pyx_k_FTY), 0, 1, 0, 1},
  {&__pyx_n_u_FVA, __pyx_k_FVA, sizeof(__pyx_k_FVA), 0, 1, 0, 1},
  {&__pyx_n_u_FZN, __pyx_k_FZN, sizeof(__pyx_k_FZN), 0, 1, 0, 1},
  {&__pyx_n_u_G, __pyx_k_G, sizeof(__pyx_k_G), 0, 1, 0, 1},
  {&__pyx_n_u_GA, __pyx_k_GA, sizeof(__pyx_k_GA), 0, 1, 0, 1},
  {&__pyx_n_u_GAU, __pyx_k_GAU, sizeof(__pyx_k_GAU), 0, 1, 0, 1},
  {&__pyx_n_u_GCM, __pyx_k_GCM, sizeof(__pyx_k_GCM), 0, 1, 0, 1},
  {&__pyx_n_u_GD, __pyx_k_GD, sizeof(__pyx_k_GD), 0, 1, 0, 1},
  {&__pyx_n_u_GE, __pyx_k_GE, sizeof(__pyx_k_GE), 0, 1, 0, 1},
  {&__pyx_n_u_GFT, __pyx_k_GFT, sizeof(__pyx_k_GFT), 0, 1, 0, 1},
  {&__pyx_n_u_GGL, __pyx_k_GGL, sizeof(__pyx_k_GGL), 0, 1, 0, 1},
  {&__pyx_n_u_GHG, __pyx_k_GHG, sizeof(__pyx_k_GHG), 0, 1, 0, 1},
  {&__pyx_n_u_GHP, __pyx_k_GHP, sizeof(__pyx_k_GHP), 0, 1, 0, 1},
  {&__pyx_n_u_GL3, __pyx_k_GL3, sizeof(__pyx_k_GL3), 0, 1, 0, 1},
  {&__pyx_n_u_GLH, __pyx_k_GLH, sizeof(__pyx_k_GLH), 0, 1, 0, 1},
  {&__pyx_n_u_GLJ, __pyx_k_GLJ, sizeof(__pyx_k_GLJ), 0, 1, 0, 1},
  {&__pyx_n_u_GLK, __pyx_k_GLK, sizeof(__pyx_k_GLK), 0, 1, 0, 1},
  {&__pyx_n_u_GLM, __pyx_k_GLM, sizeof(__pyx_k_GLM), 0, 1, 0, 1},
  {&__pyx_n_u_GLN, __pyx_k_GLN, sizeof(__pyx_k_GLN), 0, 1, 0, 1},
  {&__pyx_n_u_GLQ, __pyx_k_GLQ, sizeof(__pyx_k_GLQ), 0, 1, 0, 1},
  {&__pyx_n_u_GLU, __pyx_k_GLU, sizeof(__pyx_k_GLU), 0, 1, 0, 1},
  {&__pyx_n_u_GLX, __pyx_k_GLX, sizeof(__pyx_k_GLX), 0, 1, 0, 1},
  {&__pyx_n_u_GLY, __pyx_k_GLY, sizeof(__pyx_k_GLY), 0, 1, 0, 1},
  {&__pyx_n_u_GLZ, __pyx_k_GLZ, sizeof(__pyx_k_GLZ), 0, 1, 0, 1},
  {&__pyx_n_u_GMA, __pyx_k_GMA, sizeof(__pyx_k_GMA), 0, 1, 0, 1},
  {&__pyx_n_u_GND, __pyx_k_GND, sizeof(__pyx_k_GND), 0, 1, 0, 1},
  {&__pyx_n_u_GPL, __pyx_k_GPL, sizeof(__pyx_k_GPL), 0, 1, 0, 1},
  {&__pyx_n_u_GSC, __pyx_k_GSC, sizeof(__pyx_k_GSC), 0, 1, 0, 1},
  {&__pyx_n_u_GSU, __pyx_k_GSU, sizeof(__pyx_k_GSU), 0, 1, 0, 1},
  {&__pyx_n_u_GT9, __pyx_k_GT9, sizeof(__pyx_k_GT9), 0, 1, 0, 1},
  {&__pyx_n_u_GVL, __pyx_k_GVL, sizeof(__pyx_k_GVL), 0, 1, 0, 1},
  {&__pyx_n_u_H, __pyx_k_H, sizeof(__pyx_k_H), 0, 1, 0, 1},
  {&__pyx_n_u_H14, __pyx_k_H14, sizeof(__pyx_k_H14), 0, 1, 0, 1},
  {&__pyx_n_u_H5M, __pyx_k_H5M, sizeof(__pyx_k_H5M), 0, 1, 0, 1},
  {&__pyx_n_u_HAC, __pyx_k_HAC, sizeof(__pyx_k_HAC), 0, 1, 0, 1},
  {&__pyx_n_u_HAR, __pyx_k_HAR, sizeof(__pyx_k_HAR), 0, 1, 0, 1},
  {&__pyx_n_u_HBN, __pyx_k_HBN, sizeof(__pyx_k_HBN), 0, 1, 0, 1},
  {&__pyx_n_u_HCS, __pyx_k_HCS, sizeof(__pyx_k_HCS), 0, 1, 0, 1},
  {&__pyx_n_u_HE, __pyx_k_HE, sizeof(__pyx_k_HE), 0, 1, 0, 1},
  {&__pyx_n_u_HETATM, __pyx_k_HETATM, sizeof(__pyx_k_HETATM), 0, 1, 0, 1},
  {&__pyx_n_u_HETERO, __pyx_k_HETERO, sizeof(__pyx_k_HETERO), 0, 1, 0, 1},
  {&__pyx_n_u_HFA, __pyx_k_HFA, sizeof(__pyx_k_HFA), 0, 1, 0, 1},
  {&__pyx_n_u_HG, __pyx_k_HG, sizeof(__pyx_k_HG), 0, 1, 0, 1},
  {&__pyx_n_u_HGL, __pyx_k_HGL, sizeof(__pyx_k_HGL), 0, 1, 0, 1},
  {&__pyx_n_u_HHI, __pyx_k_HHI, sizeof(__pyx_k_HHI), 0, 1, 0, 1},
  {&__pyx_n_u_HIA, __pyx_k_HIA, sizeof(__pyx_k_HIA), 0, 1, 0, 1},
  {&__pyx_n_u_HIC, __pyx_k_HIC, sizeof(__pyx_k_HIC), 0, 1, 0, 1},
  {&__pyx_n_u_HID, __pyx_k_HID, sizeof(__pyx_k_HID), 0, 1, 0, 1},
  {&__pyx_n_u_HIE, __pyx_k_HIE, sizeof(__pyx_k_HIE), 0, 1, 0, 1},
  {&__pyx_n_u_HIP, __pyx_k_HIP, sizeof(__pyx_k_HIP), 0, 1, 0, 1},
  {&__pyx_n_u_HIQ, __pyx_k_HIQ, sizeof(__pyx_k_HIQ), 0, 1, 0, 1},
  {&__pyx_n_u_HIS, __pyx_k_HIS, sizeof(__pyx_k_HIS), 0, 1, 0, 1},
  {&__pyx_n_u_HL2, __pyx_k_HL2, sizeof(__pyx_k_HL2), 0, 1, 0, 1},
  {&__pyx_n_u_HLU, __pyx_k_HLU, sizeof(__pyx_k_HLU), 0, 1, 0, 1},
  {&__pyx_n_u_HMR, __pyx_k_HMR, sizeof(__pyx_k_HMR), 0, 1, 0, 1},
  {&__pyx_n_u_HOH, __pyx_k_HOH, sizeof(__pyx_k_HOH), 0, 1, 0, 1},
  {&__pyx_n_u_HPC, __pyx_k_HPC, sizeof(__pyx_k_HPC), 0, 1, 0, 1},
  {&__pyx_n_u_HPE, __pyx_k_HPE, sizeof(__pyx_k_HPE), 0, 1, 0, 1},
  {&__pyx_n_u_HPH, __pyx_k_HPH, sizeof(__pyx_k_HPH), 0, 1, 0, 1},
  {&__pyx_n_u_HPQ, __pyx_k_HPQ, sizeof(__pyx_k_HPQ), 0, 1, 0, 1},
  {&__pyx_n_u_HQA, __pyx_k_HQA, sizeof(__pyx_k_HQA), 0, 1, 0, 1},
  {&__pyx_n_u_HRG, __pyx_k_HRG, sizeof(__pyx_k_HRG), 0, 1, 0, 1},
  {&__pyx_n_u_HRP, __pyx_k_HRP, sizeof(__pyx_k_HRP), 0, 1, 0, 1},
  {&__pyx_n_u_HS8, __pyx_k_HS8, sizeof(__pyx_k_HS8), 0, 1, 0, 1},
  {&__pyx_n_u_HS9, __pyx_k_HS9, sizeof(__pyx_k_HS9), 0, 1, 0, 1},
  {&__pyx_n_u_HSE, __pyx_k_HSE, sizeof(__pyx_k_HSE), 0, 1, 0, 1},
  {&__pyx_n_u_HSL, __pyx_k_HSL, sizeof(__pyx_k_HSL), 0, 1, 0, 1},
  {&__pyx_n_u_HSO, __pyx_k_HSO, sizeof(__pyx_k_HSO), 0, 1, 0, 1},
  {&__pyx_n_u_HTI, __pyx_k_HTI, sizeof(__pyx_k_HTI), 0, 1, 0, 1},
  {&__pyx_n_u_HTN, __pyx_k_HTN, sizeof(__pyx_k_HTN), 0, 1, 0, 1},
  {&__pyx_n_u_HTR, __pyx_k_HTR, sizeof(__pyx_k_HTR), 0, 1, 0, 1},
  {&__pyx_n_u_HV5, __pyx_k_HV5, sizeof(__pyx_k_HV5), 0, 1, 0, 1},
  {&__pyx_n_u_HVA, __pyx_k_HVA, sizeof(__pyx_k_HVA), 0, 1, 0, 1},
  {&__pyx_n_u_HY3, __pyx_k_HY3, sizeof(__pyx_k_HY3), 0, 1, 0, 1},
  {&__pyx_n_u_HYP, __pyx_k_HYP, sizeof(__pyx_k_HYP), 0, 1, 0, 1},
  {&__pyx_n_u_HZP, __pyx_k_HZP, sizeof(__pyx_k_HZP), 0, 1, 0, 1},
  {&__pyx_n_u_I, __pyx_k_I, sizeof(__pyx_k_I), 0, 1, 0, 1},
  {&__pyx_n_u_I2M, __pyx_k_I2M, sizeof(__pyx_k_I2M), 0, 1, 0, 1},
  {&__pyx_n_u_I58, __pyx_k_I58, sizeof(__pyx_k_I58), 0, 1, 0, 1},
  {&__pyx_n_u_IAM, __pyx_k_IAM, sizeof(__pyx_k_IAM), 0, 1, 0, 1},
  {&__pyx_n_u_IAR, __pyx_k_IAR, sizeof(__pyx_k_IAR), 0, 1, 0, 1},
  {&__pyx_n_u_IAS, __pyx_k_IAS, sizeof(__pyx_k_IAS), 0, 1, 0, 1},
  {&__pyx_n_u_IEL, __pyx_k_IEL, sizeof(__pyx_k_IEL), 0, 1, 0, 1},
  {&__pyx_n_u_IGL, __pyx_k_IGL, sizeof(__pyx_k_IGL), 0, 1, 0, 1},
  {&__pyx_n_u_IIL, __pyx_k_IIL, sizeof(__pyx_k_IIL), 0, 1, 0, 1},
  {&__pyx_n_u_ILE, __pyx_k_ILE, sizeof(__pyx_k_ILE), 0, 1, 0, 1},
  {&__pyx_n_u_ILG, __pyx_k_ILG, sizeof(__pyx_k_ILG), 0, 1, 0, 1},
  {&__pyx_n_u_ILX, __pyx_k_ILX, sizeof(__pyx_k_ILX), 0, 1, 0, 1},
  {&__pyx_n_u_IML, __pyx_k_IML, sizeof(__pyx_k_IML), 0, 1, 0, 1},
  {&__pyx_n_u_IN, __pyx_k_IN, sizeof(__pyx_k_IN), 0, 1, 0, 1},
  {&__pyx_n_s_IOError, __pyx_k_IOError, sizeof(__pyx_k_IOError), 0, 0, 1, 1},
  {&__pyx_n_u_IOY, __pyx_k_IOY, sizeof(__pyx_k_IOY), 0, 1, 0, 1},
  {&__pyx_n_u_IPG, __pyx_k_IPG, sizeof(__pyx_k_IPG), 0, 1, 0, 1},
  {&__pyx_n_u_IR, __pyx_k_IR, sizeof(__pyx_k_IR), 0, 1, 0, 1},
  {&__pyx_n_u_IT1, __pyx_k_IT1, sizeof(__pyx_k_IT1), 0, 1, 0, 1},
  {&__pyx_n_u_IYR, __pyx_k_IYR, sizeof(__pyx_k_IYR), 0, 1, 0, 1},
  {&__pyx_n_u_IYT, __pyx_k_IYT, sizeof(__pyx_k_IYT), 0, 1, 0, 1},
  {&__pyx_n_u_IZO, __pyx_k_IZO, sizeof(__pyx_k_IZO), 0, 1, 0, 1},
  {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x0d, __pyx_k_Incompatible_checksums_s_vs_0x0d, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x0d), 0, 0, 1, 0},
  {&__pyx_kp_s_Incompatible_checksums_s_vs_0x73, __pyx_k_Incompatible_checksums_s_vs_0x73, sizeof(__pyx_k_Incompatible_checksums_s_vs_0x73), 0, 0, 1, 0},
  {&__pyx_kp_u_Input_coordinates_and_topology_d, __pyx_k_Input_coordinates_and_topology_d, sizeof(__pyx_k_Input_coordinates_and_topology_d), 0, 1, 0, 0},
  {&__pyx_kp_u_Input_file_not_found, __pyx_k_Input_file_not_found, sizeof(__pyx_k_Input_file_not_found), 0, 1, 0, 0},
  {&__pyx_kp_u_Input_pdb_was_malformed_or_empty, __pyx_k_Input_pdb_was_malformed_or_empty, sizeof(__pyx_k_Input_pdb_was_malformed_or_empty), 0, 1, 0, 0},
  {&__pyx_n_u_JJJ, __pyx_k_JJJ, sizeof(__pyx_k_JJJ), 0, 1, 0, 1},
  {&__pyx_n_u_JJK, __pyx_k_JJK, sizeof(__pyx_k_JJK), 0, 1, 0, 1},
  {&__pyx_n_u_JJL, __pyx_k_JJL, sizeof(__pyx_k_JJL), 0, 1, 0, 1},
  {&__pyx_n_u_K, __pyx_k_K, sizeof(__pyx_k_K), 0, 1, 0, 1},
  {&__pyx_n_u_K1R, __pyx_k_K1R, sizeof(__pyx_k_K1R), 0, 1, 0, 1},
  {&__pyx_n_u_KCX, __pyx_k_KCX, sizeof(__pyx_k_KCX), 0, 1, 0, 1},
  {&__pyx_n_u_KGC, __pyx_k_KGC, sizeof(__pyx_k_KGC), 0, 1, 0, 1},
  {&__pyx_n_u_KNB, __pyx_k_KNB, sizeof(__pyx_k_KNB), 0, 1, 0, 1},
  {&__pyx_n_u_KOR, __pyx_k_KOR, sizeof(__pyx_k_KOR), 0, 1, 0, 1},
  {&__pyx_n_u_KPI, __pyx_k_KPI, sizeof(__pyx_k_KPI), 0, 1, 0, 1},
  {&__pyx_n_u_KR, __pyx_k_KR, sizeof(__pyx_k_KR), 0, 1, 0, 1},
  {&__pyx_n_u_KST, __pyx_k_KST, sizeof(__pyx_k_KST), 0, 1, 0, 1},
  {&__pyx_n_u_KYN, __pyx_k_KYN, sizeof(__pyx_k_KYN), 0, 1, 0, 1},
  {&__pyx_n_u_KYQ, __pyx_k_KYQ, sizeof(__pyx_k_KYQ), 0, 1, 0, 1},
  {&__pyx_n_u_L, __pyx_k_L, sizeof(__pyx_k_L), 0, 1, 0, 1},
  {&__pyx_n_u_L2A, __pyx_k_L2A, sizeof(__pyx_k_L2A), 0, 1, 0, 1},
  {&__pyx_n_u_LA2, __pyx_k_LA2, sizeof(__pyx_k_LA2), 0, 1, 0, 1},
  {&__pyx_n_u_LAA, __pyx_k_LAA, sizeof(__pyx_k_LAA), 0, 1, 0, 1},
  {&__pyx_n_u_LAL, __pyx_k_LAL, sizeof(__pyx_k_LAL), 0, 1, 0, 1},
  {&__pyx_n_u_LBY, __pyx_k_LBY, sizeof(__pyx_k_LBY), 0, 1, 0, 1},
  {&__pyx_n_u_LCK, __pyx_k_LCK, sizeof(__pyx_k_LCK), 0, 1, 0, 1},
  {&__pyx_n_u_LCX, __pyx_k_LCX, sizeof(__pyx_k_LCX), 0, 1, 0, 1},
  {&__pyx_n_u_LCZ, __pyx_k_LCZ, sizeof(__pyx_k_LCZ), 0, 1, 0, 1},
  {&__pyx_n_u_LDH, __pyx_k_LDH, sizeof(__pyx_k_LDH), 0, 1, 0, 1},
  {&__pyx_n_u_LED, __pyx_k_LED, sizeof(__pyx_k_LED), 0, 1, 0, 1},
  {&__pyx_n_u_LEF, __pyx_k_LEF, sizeof(__pyx_k_LEF), 0, 1, 0, 1},
  {&__pyx_n_u_LEH, __pyx_k_LEH, sizeof(__pyx_k_LEH), 0, 1, 0, 1},
  {&__pyx_n_u_LEI, __pyx_k_LEI, sizeof(__pyx_k_LEI), 0, 1, 0, 1},
  {&__pyx_n_u_LEM, __pyx_k_LEM, sizeof(__pyx_k_LEM), 0, 1, 0, 1},
  {&__pyx_n_u_LEN, __pyx_k_LEN, sizeof(__pyx_k_LEN), 0, 1, 0, 1},
  {&__pyx_n_u_LET, __pyx_k_LET, sizeof(__pyx_k_LET), 0, 1, 0, 1},
  {&__pyx_n_u_LEU, __pyx_k_LEU, sizeof(__pyx_k_LEU), 0, 1, 0, 1},
  {&__pyx_n_u_LEX, __pyx_k_LEX, sizeof(__pyx_k_LEX), 0, 1, 0, 1},
  {&__pyx_n_u_LHC, __pyx_k_LHC, sizeof(__pyx_k_LHC), 0, 1, 0, 1},
  {&__pyx_n_u_LI, __pyx_k_LI, sizeof(__pyx_k_LI), 0, 1, 0, 1},
  {&__pyx_n_u_LLP, __pyx_k_LLP, sizeof(__pyx_k_LLP), 0, 1, 0, 1},
  {&__pyx_n_u_LLY, __pyx_k_LLY, sizeof(__pyx_k_LLY), 0, 1, 0, 1},
  {&__pyx_n_u_LME, __pyx_k_LME, sizeof(__pyx_k_LME), 0, 1, 0, 1},
  {&__pyx_n_u_LMF, __pyx_k_LMF, sizeof(__pyx_k_LMF), 0, 1, 0, 1},
  {&__pyx_n_u_LMQ, __pyx_k_LMQ, sizeof(__pyx_k_LMQ), 0, 1, 0, 1},
  {&__pyx_n_u_LP6, __pyx_k_LP6, sizeof(__pyx_k_LP6), 0, 1, 0, 1},
  {&__pyx_n_u_LPD, __pyx_k_LPD, sizeof(__pyx_k_LPD), 0, 1, 0, 1},
  {&__pyx_n_u_LPG, __pyx_k_LPG, sizeof(__pyx_k_LPG), 0, 1, 0, 1},
  {&__pyx_n_u_LPL, __pyx_k_LPL, sizeof(__pyx_k_LPL), 0, 1, 0, 1},
  {&__pyx_n_u_LPS, __pyx_k_LPS, sizeof(__pyx_k_LPS), 0, 1, 0, 1},
  {&__pyx_n_u_LSO, __pyx_k_LSO, sizeof(__pyx_k_LSO), 0, 1, 0, 1},
  {&__pyx_n_u_LTA, __pyx_k_LTA, sizeof(__pyx_k_LTA), 0, 1, 0, 1},
  {&__pyx_n_u_LTR, __pyx_k_LTR, sizeof(__pyx_k_LTR), 0, 1, 0, 1},
  {&__pyx_n_u_LVG, __pyx_k_LVG, sizeof(__pyx_k_LVG), 0, 1, 0, 1},
  {&__pyx_n_u_LVN, __pyx_k_LVN, sizeof(__pyx_k_LVN), 0, 1, 0, 1},
  {&__pyx_n_u_LYF, __pyx_k_LYF, sizeof(__pyx_k_LYF), 0, 1, 0, 1},
  {&__pyx_n_u_LYK, __pyx_k_LYK, sizeof(__pyx_k_LYK), 0, 1, 0, 1},
  {&__pyx_n_u_LYM, __pyx_k_LYM, sizeof(__pyx_k_LYM), 0, 1, 0, 1},
  {&__pyx_n_u_LYN, __pyx_k_LYN, sizeof(__pyx_k_LYN), 0, 1, 0, 1},
  {&__pyx_n_u_LYR, __pyx_k_LYR, sizeof(__pyx_k_LYR), 0, 1, 0, 1},
  {&__pyx_n_u_LYS, __pyx_k_LYS, sizeof(__pyx_k_LYS), 0, 1, 0, 1},
  {&__pyx_n_u_LYX, __pyx_k_LYX, sizeof(__pyx_k_LYX), 0, 1, 0, 1},
  {&__pyx_n_u_LYZ, __pyx_k_LYZ, sizeof(__pyx_k_LYZ), 0, 1, 0, 1},
  {&__pyx_n_u_M, __pyx_k_M, sizeof(__pyx_k_M), 0, 1, 0, 1},
  {&__pyx_n_u_M0H, __pyx_k_M0H, sizeof(__pyx_k_M0H), 0, 1, 0, 1},
  {&__pyx_n_u_M2L, __pyx_k_M2L, sizeof(__pyx_k_M2L), 0, 1, 0, 1},
  {&__pyx_n_u_M2S, __pyx_k_M2S, sizeof(__pyx_k_M2S), 0, 1, 0, 1},
  {&__pyx_n_u_M30, __pyx_k_M30, sizeof(__pyx_k_M30), 0, 1, 0, 1},
  {&__pyx_n_u_M3L, __pyx_k_M3L, sizeof(__pyx_k_M3L), 0, 1, 0, 1},
  {&__pyx_n_u_MA, __pyx_k_MA, sizeof(__pyx_k_MA), 0, 1, 0, 1},
  {&__pyx_n_u_MAA, __pyx_k_MAA, sizeof(__pyx_k_MAA), 0, 1, 0, 1},
  {&__pyx_n_u_MAI, __pyx_k_MAI, sizeof(__pyx_k_MAI), 0, 1, 0, 1},
  {&__pyx_n_u_MBQ, __pyx_k_MBQ, sizeof(__pyx_k_MBQ), 0, 1, 0, 1},
  {&__pyx_n_u_MC1, __pyx_k_MC1, sizeof(__pyx_k_MC1), 0, 1, 0, 1},
  {&__pyx_n_u_MCG, __pyx_k_MCG, sizeof(__pyx_k_MCG), 0, 1, 0, 1},
  {&__pyx_n_u_MCL, __pyx_k_MCL, sizeof(__pyx_k_MCL), 0, 1, 0, 1},
  {&__pyx_n_u_MCS, __pyx_k_MCS, sizeof(__pyx_k_MCS), 0, 1, 0, 1},
  {&__pyx_n_u_MD3, __pyx_k_MD3, sizeof(__pyx_k_MD3), 0, 1, 0, 1},
  {&__pyx_n_u_MD6, __pyx_k_MD6, sizeof(__pyx_k_MD6), 0, 1, 0, 1},
  {&__pyx_n_u_MDF, __pyx_k_MDF, sizeof(__pyx_k_MDF), 0, 1, 0, 1},
  {&__pyx_n_u_MDH, __pyx_k_MDH, sizeof(__pyx_k_MDH), 0, 1, 0, 1},
  {&__pyx_n_u_MEA, __pyx_k_MEA, sizeof(__pyx_k_MEA), 0, 1, 0, 1},
  {&__pyx_n_u_MED, __pyx_k_MED, sizeof(__pyx_k_MED), 0, 1, 0, 1},
  {&__pyx_n_u_MEG, __pyx_k_MEG, sizeof(__pyx_k_MEG), 0, 1, 0, 1},
  {&__pyx_n_u_MEN, __pyx_k_MEN, sizeof(__pyx_k_MEN), 0, 1, 0, 1},
  {&__pyx_n_u_MEQ, __pyx_k_MEQ, sizeof(__pyx_k_MEQ), 0, 1, 0, 1},
  {&__pyx_n_u_MET, __pyx_k_MET, sizeof(__pyx_k_MET), 0, 1, 0, 1},
  {&__pyx_n_u_MEU, __pyx_k_MEU, sizeof(__pyx_k_MEU), 0, 1, 0, 1},
  {&__pyx_n_u_MF3, __pyx_k_MF3, sizeof(__pyx_k_MF3), 0, 1, 0, 1},
  {&__pyx_n_u_MG, __pyx_k_MG, sizeof(__pyx_k_MG), 0, 1, 0, 1},
  {&__pyx_n_u_MGG, __pyx_k_MGG, sizeof(__pyx_k_MGG), 0, 1, 0, 1},
  {&__pyx_n_u_MGN, __pyx_k_MGN, sizeof(__pyx_k_MGN), 0, 1, 0, 1},
  {&__pyx_n_u_MGY, __pyx_k_MGY, sizeof(__pyx_k_MGY), 0, 1, 0, 1},
  {&__pyx_n_u_MHL, __pyx_k_MHL, sizeof(__pyx_k_MHL), 0, 1, 0, 1},
  {&__pyx_n_u_MHO, __pyx_k_MHO, sizeof(__pyx_k_MHO), 0, 1, 0, 1},
  {&__pyx_n_u_MHS, __pyx_k_MHS, sizeof(__pyx_k_MHS), 0, 1, 0, 1},
  {&__pyx_n_u_MIS, __pyx_k_MIS, sizeof(__pyx_k_MIS), 0, 1, 0, 1},
  {&__pyx_n_u_MK8, __pyx_k_MK8, sizeof(__pyx_k_MK8), 0, 1, 0, 1},
  {&__pyx_n_u_ML3, __pyx_k_ML3, sizeof(__pyx_k_ML3), 0, 1, 0, 1},
  {&__pyx_n_u_MLE, __pyx_k_MLE, sizeof(__pyx_k_MLE), 0, 1, 0, 1},
  {&__pyx_n_u_MLL, __pyx_k_MLL, sizeof(__pyx_k_MLL), 0, 1, 0, 1},
  {&__pyx_n_u_MLY, __pyx_k_MLY, sizeof(__pyx_k_MLY), 0, 1, 0, 1},
  {&__pyx_n_u_MLZ, __pyx_k_MLZ, sizeof(__pyx_k_MLZ), 0, 1, 0, 1},
  {&__pyx_n_u_MME, __pyx_k_MME, sizeof(__pyx_k_MME), 0, 1, 0, 1},
  {&__pyx_n_u_MMO, __pyx_k_MMO, sizeof(__pyx_k_MMO), 0, 1, 0, 1},
  {&__pyx_n_u_MN, __pyx_k_MN, sizeof(__pyx_k_MN), 0, 1, 0, 1},
  {&__pyx_n_u_MND, __pyx_k_MND, sizeof(__pyx_k_MND), 0, 1, 0, 1},
  {&__pyx_n_u_MNL, __pyx_k_MNL, sizeof(__pyx_k_MNL), 0, 1, 0, 1},
  {&__pyx_n_u_MNV, __pyx_k_MNV, sizeof(__pyx_k_MNV), 0, 1, 0, 1},
  {&__pyx_n_u_MO, __pyx_k_MO, sizeof(__pyx_k_MO), 0, 1, 0, 1},
  {&__pyx_n_u_MOD, __pyx_k_MOD, sizeof(__pyx_k_MOD), 0, 1, 0, 1},
  {&__pyx_kp_u_MODEL_4d, __pyx_k_MODEL_4d, sizeof(__pyx_k_MODEL_4d), 0, 1, 0, 0},
  {&__pyx_n_u_MP8, __pyx_k_MP8, sizeof(__pyx_k_MP8), 0, 1, 0, 1},
  {&__pyx_n_u_MPH, __pyx_k_MPH, sizeof(__pyx_k_MPH), 0, 1, 0, 1},
  {&__pyx_n_u_MPJ, __pyx_k_MPJ, sizeof(__pyx_k_MPJ), 0, 1, 0, 1},
  {&__pyx_n_u_MPQ, __pyx_k_MPQ, sizeof(__pyx_k_MPQ), 0, 1, 0, 1},
  {&__pyx_n_u_MSA, __pyx_k_MSA, sizeof(__pyx_k_MSA), 0, 1, 0, 1},
  {&__pyx_n_u_MSE, __pyx_k_MSE, sizeof(__pyx_k_MSE), 0, 1, 0, 1},
  {&__pyx_n_u_MSL, __pyx_k_MSL, sizeof(__pyx_k_MSL), 0, 1, 0, 1},
  {&__pyx_n_u_MSO, __pyx_k_MSO, sizeof(__pyx_k_MSO), 0, 1, 0, 1},
  {&__pyx_n_u_MSP, __pyx_k_MSP, sizeof(__pyx_k_MSP), 0, 1, 0, 1},
  {&__pyx_n_u_MT2, __pyx_k_MT2, sizeof(__pyx_k_MT2), 0, 1, 0, 1},
  {&__pyx_n_u_MTY, __pyx_k_MTY, sizeof(__pyx_k_MTY), 0, 1, 0, 1},
  {&__pyx_n_u_MVA, __pyx_k_MVA, sizeof(__pyx_k_MVA), 0, 1, 0, 1},
  {&__pyx_n_u_N, __pyx_k_N, sizeof(__pyx_k_N), 0, 1, 0, 1},
  {&__pyx_n_u_N10, __pyx_k_N10, sizeof(__pyx_k_N10), 0, 1, 0, 1},
  {&__pyx_n_u_N2C, __pyx_k_N2C, sizeof(__pyx_k_N2C), 0, 1, 0, 1},
  {&__pyx_n_u_N7P, __pyx_k_N7P, sizeof(__pyx_k_N7P), 0, 1, 0, 1},
  {&__pyx_n_u_N80, __pyx_k_N80, sizeof(__pyx_k_N80), 0, 1, 0, 1},
  {&__pyx_n_u_N8P, __pyx_k_N8P, sizeof(__pyx_k_N8P), 0, 1, 0, 1},
  {&__pyx_n_u_NA, __pyx_k_NA, sizeof(__pyx_k_NA), 0, 1, 0, 1},
  {&__pyx_n_u_NA8, __pyx_k_NA8, sizeof(__pyx_k_NA8), 0, 1, 0, 1},
  {&__pyx_n_u_NAL, __pyx_k_NAL, sizeof(__pyx_k_NAL), 0, 1, 0, 1},
  {&__pyx_n_u_NAM, __pyx_k_NAM, sizeof(__pyx_k_NAM), 0, 1, 0, 1},
  {&__pyx_n_u_NB, __pyx_k_NB, sizeof(__pyx_k_NB), 0, 1, 0, 1},
  {&__pyx_n_u_NB8, __pyx_k_NB8, sizeof(__pyx_k_NB8), 0, 1, 0, 1},
  {&__pyx_n_u_NBQ, __pyx_k_NBQ, sizeof(__pyx_k_NBQ), 0, 1, 0, 1},
  {&__pyx_n_u_NC1, __pyx_k_NC1, sizeof(__pyx_k_NC1), 0, 1, 0, 1},
  {&__pyx_n_u_NCB, __pyx_k_NCB, sizeof(__pyx_k_NCB), 0, 1, 0, 1},
  {&__pyx_n_u_NCY, __pyx_k_NCY, sizeof(__pyx_k_NCY), 0, 1, 0, 1},
  {&__pyx_n_u_NDF, __pyx_k_NDF, sizeof(__pyx_k_NDF), 0, 1, 0, 1},
  {&__pyx_n_u_NE, __pyx_k_NE, sizeof(__pyx_k_NE), 0, 1, 0, 1},
  {&__pyx_n_u_NEM, __pyx_k_NEM, sizeof(__pyx_k_NEM), 0, 1, 0, 1},
  {&__pyx_n_u_NEP, __pyx_k_NEP, sizeof(__pyx_k_NEP), 0, 1, 0, 1},
  {&__pyx_n_u_NFA, __pyx_k_NFA, sizeof(__pyx_k_NFA), 0, 1, 0, 1},
  {&__pyx_n_u_NHL, __pyx_k_NHL, sizeof(__pyx_k_NHL), 0, 1, 0, 1},
  {&__pyx_n_u_NI, __pyx_k_NI, sizeof(__pyx_k_NI), 0, 1, 0, 1},
  {&__pyx_n_u_NIY, __pyx_k_NIY, sizeof(__pyx_k_NIY), 0, 1, 0, 1},
  {&__pyx_n_u_NLE, __pyx_k_NLE, sizeof(__pyx_k_NLE), 0, 1, 0, 1},
  {&__pyx_n_u_NLN, __pyx_k_NLN, sizeof(__pyx_k_NLN), 0, 1, 0, 1},
  {&__pyx_n_u_NLO, __pyx_k_NLO, sizeof(__pyx_k_NLO), 0, 1, 0, 1},
  {&__pyx_n_u_NLP, __pyx_k_NLP, sizeof(__pyx_k_NLP), 0, 1, 0, 1},
  {&__pyx_n_u_NLQ, __pyx_k_NLQ, sizeof(__pyx_k_NLQ), 0, 1, 0, 1},
  {&__pyx_n_u_NMC, __pyx_k_NMC, sizeof(__pyx_k_NMC), 0, 1, 0, 1},
  {&__pyx_n_u_NME, __pyx_k_NME, sizeof(__pyx_k_NME), 0, 1, 0, 1},
  {&__pyx_n_u_NMM, __pyx_k_NMM, sizeof(__pyx_k_NMM), 0, 1, 0, 1},
  {&__pyx_n_u_NNH, __pyx_k_NNH, sizeof(__pyx_k_NNH), 0, 1, 0, 1},
  {&__pyx_n_u_NPH, __pyx_k_NPH, sizeof(__pyx_k_NPH), 0, 1, 0, 1},
  {&__pyx_n_u_NPI, __pyx_k_NPI, sizeof(__pyx_k_NPI), 0, 1, 0, 1},
  {&__pyx_n_u_NSK, __pyx_k_NSK, sizeof(__pyx_k_NSK), 0, 1, 0, 1},
  {&__pyx_n_u_NTR, __pyx_k_NTR, sizeof(__pyx_k_NTR), 0, 1, 0, 1},
  {&__pyx_n_u_NTY, __pyx_k_NTY, sizeof(__pyx_k_NTY), 0, 1, 0, 1},
  {&__pyx_n_u_NVA, __pyx_k_NVA, sizeof(__pyx_k_NVA), 0, 1, 0, 1},
  {&__pyx_n_u_NYS, __pyx_k_NYS, sizeof(__pyx_k_NYS), 0, 1, 0, 1},
  {&__pyx_n_u_NZ, __pyx_k_NZ, sizeof(__pyx_k_NZ), 0, 1, 0, 1},
  {&__pyx_n_u_NZH, __pyx_k_NZH, sizeof(__pyx_k_NZH), 0, 1, 0, 1},
  {&__pyx_kp_u_No_boolean_operator_available_fo, __pyx_k_No_boolean_operator_available_fo, sizeof(__pyx_k_No_boolean_operator_available_fo), 0, 1, 0, 0},
  {&__pyx_kp_u_Nothing_found_in_the_input_coord, __pyx_k_Nothing_found_in_the_input_coord, sizeof(__pyx_k_Nothing_found_in_the_input_coord), 0, 1, 0, 0},
  {&__pyx_n_u_O, __pyx_k_O, sizeof(__pyx_k_O), 0, 1, 0, 1},
  {&__pyx_n_u_O12, __pyx_k_O12, sizeof(__pyx_k_O12), 0, 1, 0, 1},
  {&__pyx_n_u_OAR, __pyx_k_OAR, sizeof(__pyx_k_OAR), 0, 1, 0, 1},
  {&__pyx_n_u_OAS, __pyx_k_OAS, sizeof(__pyx_k_OAS), 0, 1, 0, 1},
  {&__pyx_n_u_OBF, __pyx_k_OBF, sizeof(__pyx_k_OBF), 0, 1, 0, 1},
  {&__pyx_n_u_OBS, __pyx_k_OBS, sizeof(__pyx_k_OBS), 0, 1, 0, 1},
  {&__pyx_n_u_OCS, __pyx_k_OCS, sizeof(__pyx_k_OCS), 0, 1, 0, 1},
  {&__pyx_n_u_OCY, __pyx_k_OCY, sizeof(__pyx_k_OCY), 0, 1, 0, 1},
  {&__pyx_n_u_OD1, __pyx_k_OD1, sizeof(__pyx_k_OD1), 0, 1, 0, 1},
  {&__pyx_n_u_OE1, __pyx_k_OE1, sizeof(__pyx_k_OE1), 0, 1, 0, 1},
  {&__pyx_n_u_OH, __pyx_k_OH, sizeof(__pyx_k_OH), 0, 1, 0, 1},
  {&__pyx_n_u_OHI, __pyx_k_OHI, sizeof(__pyx_k_OHI), 0, 1, 0, 1},
  {&__pyx_n_u_OHS, __pyx_k_OHS, sizeof(__pyx_k_OHS), 0, 1, 0, 1},
  {&__pyx_n_u_OIC, __pyx_k_OIC, sizeof(__pyx_k_OIC), 0, 1, 0, 1},
  {&__pyx_n_u_OLE, __pyx_k_OLE, sizeof(__pyx_k_OLE), 0, 1, 0, 1},
  {&__pyx_n_u_OLT, __pyx_k_OLT, sizeof(__pyx_k_OLT), 0, 1, 0, 1},
  {&__pyx_n_u_OLZ, __pyx_k_OLZ, sizeof(__pyx_k_OLZ), 0, 1, 0, 1},
  {&__pyx_n_u_OMT, __pyx_k_OMT, sizeof(__pyx_k_OMT), 0, 1, 0, 1},
  {&__pyx_n_u_ONH, __pyx_k_ONH, sizeof(__pyx_k_ONH), 0, 1, 0, 1},
  {&__pyx_n_u_ONL, __pyx_k_ONL, sizeof(__pyx_k_ONL), 0, 1, 0, 1},
  {&__pyx_n_u_OPR, __pyx_k_OPR, sizeof(__pyx_k_OPR), 0, 1, 0, 1},
  {&__pyx_n_u_ORN, __pyx_k_ORN, sizeof(__pyx_k_ORN), 0, 1, 0, 1},
  {&__pyx_n_u_ORQ, __pyx_k_ORQ, sizeof(__pyx_k_ORQ), 0, 1, 0, 1},
  {&__pyx_n_u_OSE, __pyx_k_OSE, sizeof(__pyx_k_OSE), 0, 1, 0, 1},
  {&__pyx_n_u_OTB, __pyx_k_OTB, sizeof(__pyx_k_OTB), 0, 1, 0, 1},
  {&__pyx_n_u_OTH, __pyx_k_OTH, sizeof(__pyx_k_OTH), 0, 1, 0, 1},
  {&__pyx_n_u_OXX, __pyx_k_OXX, sizeof(__pyx_k_OXX), 0, 1, 0, 1},
  {&__pyx_n_u_P, __pyx_k_P, sizeof(__pyx_k_P), 0, 1, 0, 1},
  {&__pyx_n_u_P1L, __pyx_k_P1L, sizeof(__pyx_k_P1L), 0, 1, 0, 1},
  {&__pyx_n_u_P2Y, __pyx_k_P2Y, sizeof(__pyx_k_P2Y), 0, 1, 0, 1},
  {&__pyx_n_u_PAQ, __pyx_k_PAQ, sizeof(__pyx_k_PAQ), 0, 1, 0, 1},
  {&__pyx_n_u_PAS, __pyx_k_PAS, sizeof(__pyx_k_PAS), 0, 1, 0, 1},
  {&__pyx_n_u_PAT, __pyx_k_PAT, sizeof(__pyx_k_PAT), 0, 1, 0, 1},
  {&__pyx_n_u_PAU, __pyx_k_PAU, sizeof(__pyx_k_PAU), 0, 1, 0, 1},
  {&__pyx_n_u_PB, __pyx_k_PB, sizeof(__pyx_k_PB), 0, 1, 0, 1},
  {&__pyx_n_u_PBB, __pyx_k_PBB, sizeof(__pyx_k_PBB), 0, 1, 0, 1},
  {&__pyx_n_u_PBF, __pyx_k_PBF, sizeof(__pyx_k_PBF), 0, 1, 0, 1},
  {&__pyx_n_u_PCA, __pyx_k_PCA, sizeof(__pyx_k_PCA), 0, 1, 0, 1},
  {&__pyx_n_u_PCC, __pyx_k_PCC, sizeof(__pyx_k_PCC), 0, 1, 0, 1},
  {&__pyx_n_u_PCE, __pyx_k_PCE, sizeof(__pyx_k_PCE), 0, 1, 0, 1},
  {&__pyx_n_u_PCS, __pyx_k_PCS, sizeof(__pyx_k_PCS), 0, 1, 0, 1},
  {&__pyx_n_u_PD, __pyx_k_PD, sizeof(__pyx_k_PD), 0, 1, 0, 1},
  {&__pyx_n_s_PDB, __pyx_k_PDB, sizeof(__pyx_k_PDB), 0, 0, 1, 1},
  {&__pyx_n_s_PDB1, __pyx_k_PDB1, sizeof(__pyx_k_PDB1), 0, 0, 1, 1},
  {&__pyx_n_s_PDB2, __pyx_k_PDB2, sizeof(__pyx_k_PDB2), 0, 0, 1, 1},
  {&__pyx_n_s_PDB___iter, __pyx_k_PDB___iter, sizeof(__pyx_k_PDB___iter), 0, 0, 1, 1},
  {&__pyx_n_s_PDBstr, __pyx_k_PDBstr, sizeof(__pyx_k_PDBstr), 0, 0, 1, 1},
  {&__pyx_n_u_PDL, __pyx_k_PDL, sizeof(__pyx_k_PDL), 0, 1, 0, 1},
  {&__pyx_n_u_PEC, __pyx_k_PEC, sizeof(__pyx_k_PEC), 0, 1, 0, 1},
  {&__pyx_n_u_PF5, __pyx_k_PF5, sizeof(__pyx_k_PF5), 0, 1, 0, 1},
  {&__pyx_n_u_PFF, __pyx_k_PFF, sizeof(__pyx_k_PFF), 0, 1, 0, 1},
  {&__pyx_n_u_PFX, __pyx_k_PFX, sizeof(__pyx_k_PFX), 0, 1, 0, 1},
  {&__pyx_n_u_PG1, __pyx_k_PG1, sizeof(__pyx_k_PG1), 0, 1, 0, 1},
  {&__pyx_n_u_PG9, __pyx_k_PG9, sizeof(__pyx_k_PG9), 0, 1, 0, 1},
  {&__pyx_n_u_PGL, __pyx_k_PGL, sizeof(__pyx_k_PGL), 0, 1, 0, 1},
  {&__pyx_n_u_PGY, __pyx_k_PGY, sizeof(__pyx_k_PGY), 0, 1, 0, 1},
  {&__pyx_n_u_PH6, __pyx_k_PH6, sizeof(__pyx_k_PH6), 0, 1, 0, 1},
  {&__pyx_n_u_PHA, __pyx_k_PHA, sizeof(__pyx_k_PHA), 0, 1, 0, 1},
  {&__pyx_n_u_PHD, __pyx_k_PHD, sizeof(__pyx_k_PHD), 0, 1, 0, 1},
  {&__pyx_n_u_PHE, __pyx_k_PHE, sizeof(__pyx_k_PHE), 0, 1, 0, 1},
  {&__pyx_n_u_PHI, __pyx_k_PHI, sizeof(__pyx_k_PHI), 0, 1, 0, 1},
  {&__pyx_n_u_PHL, __pyx_k_PHL, sizeof(__pyx_k_PHL), 0, 1, 0, 1},
  {&__pyx_n_u_PHM, __pyx_k_PHM, sizeof(__pyx_k_PHM), 0, 1, 0, 1},
  {&__pyx_n_u_PIV, __pyx_k_PIV, sizeof(__pyx_k_PIV), 0, 1, 0, 1},
  {&__pyx_n_u_PLE, __pyx_k_PLE, sizeof(__pyx_k_PLE), 0, 1, 0, 1},
  {&__pyx_n_u_PM3, __pyx_k_PM3, sizeof(__pyx_k_PM3), 0, 1, 0, 1},
  {&__pyx_n_u_POM, __pyx_k_POM, sizeof(__pyx_k_POM), 0, 1, 0, 1},
  {&__pyx_n_u_PPN, __pyx_k_PPN, sizeof(__pyx_k_PPN), 0, 1, 0, 1},
  {&__pyx_n_u_PR, __pyx_k_PR, sizeof(__pyx_k_PR), 0, 1, 0, 1},
  {&__pyx_n_u_PR3, __pyx_k_PR3, sizeof(__pyx_k_PR3), 0, 1, 0, 1},
  {&__pyx_n_u_PR9, __pyx_k_PR9, sizeof(__pyx_k_PR9), 0, 1, 0, 1},
  {&__pyx_n_u_PRO, __pyx_k_PRO, sizeof(__pyx_k_PRO), 0, 1, 0, 1},
  {&__pyx_n_u_PROTEIN, __pyx_k_PROTEIN, sizeof(__pyx_k_PROTEIN), 0, 1, 0, 1},
  {&__pyx_n_u_PRS, __pyx_k_PRS, sizeof(__pyx_k_PRS), 0, 1, 0, 1},
  {&__pyx_n_u_PSA, __pyx_k_PSA, sizeof(__pyx_k_PSA), 0, 1, 0, 1},
  {&__pyx_n_u_PSH, __pyx_k_PSH, sizeof(__pyx_k_PSH), 0, 1, 0, 1},
  {&__pyx_n_u_PT, __pyx_k_PT, sizeof(__pyx_k_PT), 0, 1, 0, 1},
  {&__pyx_n_u_PTA, __pyx_k_PTA, sizeof(__pyx_k_PTA), 0, 1, 0, 1},
  {&__pyx_n_u_PTH, __pyx_k_PTH, sizeof(__pyx_k_PTH), 0, 1, 0, 1},
  {&__pyx_n_u_PTM, __pyx_k_PTM, sizeof(__pyx_k_PTM), 0, 1, 0, 1},
  {&__pyx_n_u_PTR, __pyx_k_PTR, sizeof(__pyx_k_PTR), 0, 1, 0, 1},
  {&__pyx_n_u_PVH, __pyx_k_PVH, sizeof(__pyx_k_PVH), 0, 1, 0, 1},
  {&__pyx_n_u_PVL, __pyx_k_PVL, sizeof(__pyx_k_PVL), 0, 1, 0, 1},
  {&__pyx_n_u_PYA, __pyx_k_PYA, sizeof(__pyx_k_PYA), 0, 1, 0, 1},
  {&__pyx_n_u_PYL, __pyx_k_PYL, sizeof(__pyx_k_PYL), 0, 1, 0, 1},
  {&__pyx_n_u_PYX, __pyx_k_PYX, sizeof(__pyx_k_PYX), 0, 1, 0, 1},
  {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
  {&__pyx_n_u_Q, __pyx_k_Q, sizeof(__pyx_k_Q), 0, 1, 0, 1},
  {&__pyx_n_u_QCS, __pyx_k_QCS, sizeof(__pyx_k_QCS), 0, 1, 0, 1},
  {&__pyx_n_u_QMM, __pyx_k_QMM, sizeof(__pyx_k_QMM), 0, 1, 0, 1},
  {&__pyx_n_u_QPA, __pyx_k_QPA, sizeof(__pyx_k_QPA), 0, 1, 0, 1},
  {&__pyx_n_u_QPH, __pyx_k_QPH, sizeof(__pyx_k_QPH), 0, 1, 0, 1},
  {&__pyx_n_u_R, __pyx_k_R, sizeof(__pyx_k_R), 0, 1, 0, 1},
  {&__pyx_n_u_R1A, __pyx_k_R1A, sizeof(__pyx_k_R1A), 0, 1, 0, 1},
  {&__pyx_n_u_R4K, __pyx_k_R4K, sizeof(__pyx_k_R4K), 0, 1, 0, 1},
  {&__pyx_n_u_RB, __pyx_k_RB, sizeof(__pyx_k_RB), 0, 1, 0, 1},
  {&__pyx_n_u_RE0, __pyx_k_RE0, sizeof(__pyx_k_RE0), 0, 1, 0, 1},
  {&__pyx_n_u_RE3, __pyx_k_RE3, sizeof(__pyx_k_RE3), 0, 1, 0, 1},
  {&__pyx_n_s_REGEX_PATTERN, __pyx_k_REGEX_PATTERN, sizeof(__pyx_k_REGEX_PATTERN), 0, 0, 1, 1},
  {&__pyx_n_u_RH, __pyx_k_RH, sizeof(__pyx_k_RH), 0, 1, 0, 1},
  {&__pyx_n_u_RON, __pyx_k_RON, sizeof(__pyx_k_RON), 0, 1, 0, 1},
  {&__pyx_n_u_RU, __pyx_k_RU, sizeof(__pyx_k_RU), 0, 1, 0, 1},
  {&__pyx_n_u_RVX, __pyx_k_RVX, sizeof(__pyx_k_RVX), 0, 1, 0, 1},
  {&__pyx_n_u_RZ4, __pyx_k_RZ4, sizeof(__pyx_k_RZ4), 0, 1, 0, 1},
  {&__pyx_n_u_S, __pyx_k_S, sizeof(__pyx_k_S), 0, 1, 0, 1},
  {&__pyx_n_u_S1H, __pyx_k_S1H, sizeof(__pyx_k_S1H), 0, 1, 0, 1},
  {&__pyx_n_u_S2C, __pyx_k_S2C, sizeof(__pyx_k_S2C), 0, 1, 0, 1},
  {&__pyx_n_u_S2D, __pyx_k_S2D, sizeof(__pyx_k_S2D), 0, 1, 0, 1},
  {&__pyx_n_u_S2P, __pyx_k_S2P, sizeof(__pyx_k_S2P), 0, 1, 0, 1},
  {&__pyx_n_u_SAC, __pyx_k_SAC, sizeof(__pyx_k_SAC), 0, 1, 0, 1},
  {&__pyx_n_u_SAH, __pyx_k_SAH, sizeof(__pyx_k_SAH), 0, 1, 0, 1},
  {&__pyx_n_u_SAR, __pyx_k_SAR, sizeof(__pyx_k_SAR), 0, 1, 0, 1},
  {&__pyx_n_u_SB, __pyx_k_SB, sizeof(__pyx_k_SB), 0, 1, 0, 1},
  {&__pyx_n_u_SBL, __pyx_k_SBL, sizeof(__pyx_k_SBL), 0, 1, 0, 1},
  {&__pyx_n_u_SC, __pyx_k_SC, sizeof(__pyx_k_SC), 0, 1, 0, 1},
  {&__pyx_n_u_SCH, __pyx_k_SCH, sizeof(__pyx_k_SCH), 0, 1, 0, 1},
  {&__pyx_n_u_SCS, __pyx_k_SCS, sizeof(__pyx_k_SCS), 0, 1, 0, 1},
  {&__pyx_n_u_SCY, __pyx_k_SCY, sizeof(__pyx_k_SCY), 0, 1, 0, 1},
  {&__pyx_n_u_SD2, __pyx_k_SD2, sizeof(__pyx_k_SD2), 0, 1, 0, 1},
  {&__pyx_n_u_SDP, __pyx_k_SDP, sizeof(__pyx_k_SDP), 0, 1, 0, 1},
  {&__pyx_n_u_SE, __pyx_k_SE, sizeof(__pyx_k_SE), 0, 1, 0, 1},
  {&__pyx_n_u_SE7, __pyx_k_SE7, sizeof(__pyx_k_SE7), 0, 1, 0, 1},
  {&__pyx_n_u_SEB, __pyx_k_SEB, sizeof(__pyx_k_SEB), 0, 1, 0, 1},
  {&__pyx_n_u_SEC, __pyx_k_SEC, sizeof(__pyx_k_SEC), 0, 1, 0, 1},
  {&__pyx_n_u_SEG, __pyx_k_SEG, sizeof(__pyx_k_SEG), 0, 1, 0, 1},
  {&__pyx_n_u_SEL, __pyx_k_SEL, sizeof(__pyx_k_SEL), 0, 1, 0, 1},
  {&__pyx_n_u_SEM, __pyx_k_SEM, sizeof(__pyx_k_SEM), 0, 1, 0, 1},
  {&__pyx_n_u_SEN, __pyx_k_SEN, sizeof(__pyx_k_SEN), 0, 1, 0, 1},
  {&__pyx_n_u_SEP, __pyx_k_SEP, sizeof(__pyx_k_SEP), 0, 1, 0, 1},
  {&__pyx_n_u_SER, __pyx_k_SER, sizeof(__pyx_k_SER), 0, 1, 0, 1},
  {&__pyx_n_u_SET, __pyx_k_SET, sizeof(__pyx_k_SET), 0, 1, 0, 1},
  {&__pyx_n_u_SGB, __pyx_k_SGB, sizeof(__pyx_k_SGB), 0, 1, 0, 1},
  {&__pyx_n_u_SHC, __pyx_k_SHC, sizeof(__pyx_k_SHC), 0, 1, 0, 1},
  {&__pyx_n_u_SHP, __pyx_k_SHP, sizeof(__pyx_k_SHP), 0, 1, 0, 1},
  {&__pyx_n_u_SHR, __pyx_k_SHR, sizeof(__pyx_k_SHR), 0, 1, 0, 1},
  {&__pyx_n_u_SI, __pyx_k_SI, sizeof(__pyx_k_SI), 0, 1, 0, 1},
  {&__pyx_n_u_SIB, __pyx_k_SIB, sizeof(__pyx_k_SIB), 0, 1, 0, 1},
  {&__pyx_n_u_SLR, __pyx_k_SLR, sizeof(__pyx_k_SLR), 0, 1, 0, 1},
  {&__pyx_n_u_SLZ, __pyx_k_SLZ, sizeof(__pyx_k_SLZ), 0, 1, 0, 1},
  {&__pyx_n_u_SMC, __pyx_k_SMC, sizeof(__pyx_k_SMC), 0, 1, 0, 1},
  {&__pyx_n_u_SME, __pyx_k_SME, sizeof(__pyx_k_SME), 0, 1, 0, 1},
  {&__pyx_n_u_SMF, __pyx_k_SMF, sizeof(__pyx_k_SMF), 0, 1, 0, 1},
  {&__pyx_n_u_SN, __pyx_k_SN, sizeof(__pyx_k_SN), 0, 1, 0, 1},
  {&__pyx_n_u_SNC, __pyx_k_SNC, sizeof(__pyx_k_SNC), 0, 1, 0, 1},
  {&__pyx_n_u_SNN, __pyx_k_SNN, sizeof(__pyx_k_SNN), 0, 1, 0, 1},
  {&__pyx_n_u_SOC, __pyx_k_SOC, sizeof(__pyx_k_SOC), 0, 1, 0, 1},
  {&__pyx_n_u_SOY, __pyx_k_SOY, sizeof(__pyx_k_SOY), 0, 1, 0, 1},
  {&__pyx_n_u_SR, __pyx_k_SR, sizeof(__pyx_k_SR), 0, 1, 0, 1},
  {&__pyx_n_u_SRZ, __pyx_k_SRZ, sizeof(__pyx_k_SRZ), 0, 1, 0, 1},
  {&__pyx_n_u_STY, __pyx_k_STY, sizeof(__pyx_k_STY), 0, 1, 0, 1},
  {&__pyx_n_u_SUB, __pyx_k_SUB, sizeof(__pyx_k_SUB), 0, 1, 0, 1},
  {&__pyx_n_u_SUN, __pyx_k_SUN, sizeof(__pyx_k_SUN), 0, 1, 0, 1},
  {&__pyx_n_u_SVA, __pyx_k_SVA, sizeof(__pyx_k_SVA), 0, 1, 0, 1},
  {&__pyx_n_u_SVV, __pyx_k_SVV, sizeof(__pyx_k_SVV), 0, 1, 0, 1},
  {&__pyx_n_u_SVW, __pyx_k_SVW, sizeof(__pyx_k_SVW), 0, 1, 0, 1},
  {&__pyx_n_u_SVX, __pyx_k_SVX, sizeof(__pyx_k_SVX), 0, 1, 0, 1},
  {&__pyx_n_u_SVY, __pyx_k_SVY, sizeof(__pyx_k_SVY), 0, 1, 0, 1},
  {&__pyx_n_u_SVZ, __pyx_k_SVZ, sizeof(__pyx_k_SVZ), 0, 1, 0, 1},
  {&__pyx_n_u_SYS, __pyx_k_SYS, sizeof(__pyx_k_SYS), 0, 1, 0, 1},
  {&__pyx_n_s_StringIO, __pyx_k_StringIO, sizeof(__pyx_k_StringIO), 0, 0, 1, 1},
  {&__pyx_n_u_T, __pyx_k_T, sizeof(__pyx_k_T), 0, 1, 0, 1},
  {&__pyx_n_u_T11, __pyx_k_T11, sizeof(__pyx_k_T11), 0, 1, 0, 1},
  {&__pyx_n_u_T66, __pyx_k_T66, sizeof(__pyx_k_T66), 0, 1, 0, 1},
  {&__pyx_n_u_TA4, __pyx_k_TA4, sizeof(__pyx_k_TA4), 0, 1, 0, 1},
  {&__pyx_n_u_TAV, __pyx_k_TAV, sizeof(__pyx_k_TAV), 0, 1, 0, 1},
  {&__pyx_n_u_TB, __pyx_k_TB, sizeof(__pyx_k_TB), 0, 1, 0, 1},
  {&__pyx_n_u_TBG, __pyx_k_TBG, sizeof(__pyx_k_TBG), 0, 1, 0, 1},
  {&__pyx_n_u_TBM, __pyx_k_TBM, sizeof(__pyx_k_TBM), 0, 1, 0, 1},
  {&__pyx_n_u_TC, __pyx_k_TC, sizeof(__pyx_k_TC), 0, 1, 0, 1},
  {&__pyx_n_u_TCQ, __pyx_k_TCQ, sizeof(__pyx_k_TCQ), 0, 1, 0, 1},
  {&__pyx_n_u_TCR, __pyx_k_TCR, sizeof(__pyx_k_TCR), 0, 1, 0, 1},
  {&__pyx_n_u_TDD, __pyx_k_TDD, sizeof(__pyx_k_TDD), 0, 1, 0, 1},
  {&__pyx_n_u_TE, __pyx_k_TE, sizeof(__pyx_k_TE), 0, 1, 0, 1},
  {&__pyx_n_u_TER, __pyx_k_TER, sizeof(__pyx_k_TER), 0, 1, 0, 1},
  {&__pyx_n_u_TFQ, __pyx_k_TFQ, sizeof(__pyx_k_TFQ), 0, 1, 0, 1},
  {&__pyx_n_u_TH6, __pyx_k_TH6, sizeof(__pyx_k_TH6), 0, 1, 0, 1},
  {&__pyx_n_u_THC, __pyx_k_THC, sizeof(__pyx_k_THC), 0, 1, 0, 1},
  {&__pyx_n_u_THO, __pyx_k_THO, sizeof(__pyx_k_THO), 0, 1, 0, 1},
  {&__pyx_n_u_THR, __pyx_k_THR, sizeof(__pyx_k_THR), 0, 1, 0, 1},
  {&__pyx_n_u_THZ, __pyx_k_THZ, sizeof(__pyx_k_THZ), 0, 1, 0, 1},
  {&__pyx_n_u_TI, __pyx_k_TI, sizeof(__pyx_k_TI), 0, 1, 0, 1},
  {&__pyx_n_u_TIH, __pyx_k_TIH, sizeof(__pyx_k_TIH), 0, 1, 0, 1},
  {&__pyx_n_u_TMB, __pyx_k_TMB, sizeof(__pyx_k_TMB), 0, 1, 0, 1},
  {&__pyx_n_u_TMD, __pyx_k_TMD, sizeof(__pyx_k_TMD), 0, 1, 0, 1},
  {&__pyx_n_u_TNB, __pyx_k_TNB, sizeof(__pyx_k_TNB), 0, 1, 0, 1},
  {&__pyx_n_u_TNR, __pyx_k_TNR, sizeof(__pyx_k_TNR), 0, 1, 0, 1},
  {&__pyx_n_u_TOQ, __pyx_k_TOQ, sizeof(__pyx_k_TOQ), 0, 1, 0, 1},
  {&__pyx_n_u_TPH, __pyx_k_TPH, sizeof(__pyx_k_TPH), 0, 1, 0, 1},
  {&__pyx_n_u_TPL, __pyx_k_TPL, sizeof(__pyx_k_TPL), 0, 1, 0, 1},
  {&__pyx_n_u_TPO, __pyx_k_TPO, sizeof(__pyx_k_TPO), 0, 1, 0, 1},
  {&__pyx_n_u_TPQ, __pyx_k_TPQ, sizeof(__pyx_k_TPQ), 0, 1, 0, 1},
  {&__pyx_n_u_TQI, __pyx_k_TQI, sizeof(__pyx_k_TQI), 0, 1, 0, 1},
  {&__pyx_n_u_TQQ, __pyx_k_TQQ, sizeof(__pyx_k_TQQ), 0, 1, 0, 1},
  {&__pyx_n_u_TRF, __pyx_k_TRF, sizeof(__pyx_k_TRF), 0, 1, 0, 1},
  {&__pyx_n_u_TRG, __pyx_k_TRG, sizeof(__pyx_k_TRG), 0, 1, 0, 1},
  {&__pyx_n_u_TRN, __pyx_k_TRN, sizeof(__pyx_k_TRN), 0, 1, 0, 1},
  {&__pyx_n_u_TRO, __pyx_k_TRO, sizeof(__pyx_k_TRO), 0, 1, 0, 1},
  {&__pyx_n_u_TRP, __pyx_k_TRP, sizeof(__pyx_k_TRP), 0, 1, 0, 1},
  {&__pyx_n_u_TRQ, __pyx_k_TRQ, sizeof(__pyx_k_TRQ), 0, 1, 0, 1},
  {&__pyx_n_u_TRW, __pyx_k_TRW, sizeof(__pyx_k_TRW), 0, 1, 0, 1},
  {&__pyx_n_u_TRX, __pyx_k_TRX, sizeof(__pyx_k_TRX), 0, 1, 0, 1},
  {&__pyx_n_u_TRY, __pyx_k_TRY, sizeof(__pyx_k_TRY), 0, 1, 0, 1},
  {&__pyx_n_u_TST, __pyx_k_TST, sizeof(__pyx_k_TST), 0, 1, 0, 1},
  {&__pyx_n_u_TTQ, __pyx_k_TTQ, sizeof(__pyx_k_TTQ), 0, 1, 0, 1},
  {&__pyx_n_u_TTS, __pyx_k_TTS, sizeof(__pyx_k_TTS), 0, 1, 0, 1},
  {&__pyx_n_u_TXY, __pyx_k_TXY, sizeof(__pyx_k_TXY), 0, 1, 0, 1},
  {&__pyx_n_u_TY1, __pyx_k_TY1, sizeof(__pyx_k_TY1), 0, 1, 0, 1},
  {&__pyx_n_u_TY2, __pyx_k_TY2, sizeof(__pyx_k_TY2), 0, 1, 0, 1},
  {&__pyx_n_u_TY3, __pyx_k_TY3, sizeof(__pyx_k_TY3), 0, 1, 0, 1},
  {&__pyx_n_u_TY5, __pyx_k_TY5, sizeof(__pyx_k_TY5), 0, 1, 0, 1},
  {&__pyx_n_u_TYB, __pyx_k_TYB, sizeof(__pyx_k_TYB), 0, 1, 0, 1},
  {&__pyx_n_u_TYI, __pyx_k_TYI, sizeof(__pyx_k_TYI), 0, 1, 0, 1},
  {&__pyx_n_u_TYJ, __pyx_k_TYJ, sizeof(__pyx_k_TYJ), 0, 1, 0, 1},
  {&__pyx_n_u_TYN, __pyx_k_TYN, sizeof(__pyx_k_TYN), 0, 1, 0, 1},
  {&__pyx_n_u_TYO, __pyx_k_TYO, sizeof(__pyx_k_TYO), 0, 1, 0, 1},
  {&__pyx_n_u_TYQ, __pyx_k_TYQ, sizeof(__pyx_k_TYQ), 0, 1, 0, 1},
  {&__pyx_n_u_TYR, __pyx_k_TYR, sizeof(__pyx_k_TYR), 0, 1, 0, 1},
  {&__pyx_n_u_TYS, __pyx_k_TYS, sizeof(__pyx_k_TYS), 0, 1, 0, 1},
  {&__pyx_n_u_TYT, __pyx_k_TYT, sizeof(__pyx_k_TYT), 0, 1, 0, 1},
  {&__pyx_n_u_TYW, __pyx_k_TYW, sizeof(__pyx_k_TYW), 0, 1, 0, 1},
  {&__pyx_n_u_TYX, __pyx_k_TYX, sizeof(__pyx_k_TYX), 0, 1, 0, 1},
  {&__pyx_n_u_TYY, __pyx_k_TYY, sizeof(__pyx_k_TYY), 0, 1, 0, 1},
  {&__pyx_n_u_TZB, __pyx_k_TZB, sizeof(__pyx_k_TZB), 0, 1, 0, 1},
  {&__pyx_n_u_TZO, __pyx_k_TZO, sizeof(__pyx_k_TZO), 0, 1, 0, 1},
  {&__pyx_n_u_U, __pyx_k_U, sizeof(__pyx_k_U), 0, 1, 0, 1},
  {&__pyx_n_u_UMA, __pyx_k_UMA, sizeof(__pyx_k_UMA), 0, 1, 0, 1},
  {&__pyx_n_u_UN1, __pyx_k_UN1, sizeof(__pyx_k_UN1), 0, 1, 0, 1},
  {&__pyx_n_u_UN2, __pyx_k_UN2, sizeof(__pyx_k_UN2), 0, 1, 0, 1},
  {&__pyx_n_u_UNK, __pyx_k_UNK, sizeof(__pyx_k_UNK), 0, 1, 0, 1},
  {&__pyx_n_u_V, __pyx_k_V, sizeof(__pyx_k_V), 0, 1, 0, 1},
  {&__pyx_n_u_VAD, __pyx_k_VAD, sizeof(__pyx_k_VAD), 0, 1, 0, 1},
  {&__pyx_n_u_VAF, __pyx_k_VAF, sizeof(__pyx_k_VAF), 0, 1, 0, 1},
  {&__pyx_n_u_VAL, __pyx_k_VAL, sizeof(__pyx_k_VAL), 0, 1, 0, 1},
  {&__pyx_n_u_VB1, __pyx_k_VB1, sizeof(__pyx_k_VB1), 0, 1, 0, 1},
  {&__pyx_n_u_VDL, __pyx_k_VDL, sizeof(__pyx_k_VDL), 0, 1, 0, 1},
  {&__pyx_n_u_VLL, __pyx_k_VLL, sizeof(__pyx_k_VLL), 0, 1, 0, 1},
  {&__pyx_n_u_VLM, __pyx_k_VLM, sizeof(__pyx_k_VLM), 0, 1, 0, 1},
  {&__pyx_n_u_VMS, __pyx_k_VMS, sizeof(__pyx_k_VMS), 0, 1, 0, 1},
  {&__pyx_n_u_VOL, __pyx_k_VOL, sizeof(__pyx_k_VOL), 0, 1, 0, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_n_u_W, __pyx_k_W, sizeof(__pyx_k_W), 0, 1, 0, 1},
  {&__pyx_kp_u_WARNING_Information_about_atom_t, __pyx_k_WARNING_Information_about_atom_t, sizeof(__pyx_k_WARNING_Information_about_atom_t), 0, 1, 0, 0},
  {&__pyx_n_u_WLU, __pyx_k_WLU, sizeof(__pyx_k_WLU), 0, 1, 0, 1},
  {&__pyx_n_u_WPA, __pyx_k_WPA, sizeof(__pyx_k_WPA), 0, 1, 0, 1},
  {&__pyx_n_u_WRP, __pyx_k_WRP, sizeof(__pyx_k_WRP), 0, 1, 0, 1},
  {&__pyx_n_u_WVL, __pyx_k_WVL, sizeof(__pyx_k_WVL), 0, 1, 0, 1},
  {&__pyx_n_u_X, __pyx_k_X, sizeof(__pyx_k_X), 0, 1, 0, 1},
  {&__pyx_n_u_X2W, __pyx_k_X2W, sizeof(__pyx_k_X2W), 0, 1, 0, 1},
  {&__pyx_n_u_XCN, __pyx_k_XCN, sizeof(__pyx_k_XCN), 0, 1, 0, 1},
  {&__pyx_n_u_XCP, __pyx_k_XCP, sizeof(__pyx_k_XCP), 0, 1, 0, 1},
  {&__pyx_n_u_XDT, __pyx_k_XDT, sizeof(__pyx_k_XDT), 0, 1, 0, 1},
  {&__pyx_n_u_XE, __pyx_k_XE, sizeof(__pyx_k_XE), 0, 1, 0, 1},
  {&__pyx_n_u_XPL, __pyx_k_XPL, sizeof(__pyx_k_XPL), 0, 1, 0, 1},
  {&__pyx_n_u_XPR, __pyx_k_XPR, sizeof(__pyx_k_XPR), 0, 1, 0, 1},
  {&__pyx_n_u_XSN, __pyx_k_XSN, sizeof(__pyx_k_XSN), 0, 1, 0, 1},
  {&__pyx_n_u_XX1, __pyx_k_XX1, sizeof(__pyx_k_XX1), 0, 1, 0, 1},
  {&__pyx_n_u_Y, __pyx_k_Y, sizeof(__pyx_k_Y), 0, 1, 0, 1},
  {&__pyx_n_u_YCM, __pyx_k_YCM, sizeof(__pyx_k_YCM), 0, 1, 0, 1},
  {&__pyx_n_u_YOF, __pyx_k_YOF, sizeof(__pyx_k_YOF), 0, 1, 0, 1},
  {&__pyx_n_u_YTH, __pyx_k_YTH, sizeof(__pyx_k_YTH), 0, 1, 0, 1},
  {&__pyx_n_u_Z, __pyx_k_Z, sizeof(__pyx_k_Z), 0, 1, 0, 1},
  {&__pyx_n_u_Z01, __pyx_k_Z01, sizeof(__pyx_k_Z01), 0, 1, 0, 1},
  {&__pyx_n_u_ZAL, __pyx_k_ZAL, sizeof(__pyx_k_ZAL), 0, 1, 0, 1},
  {&__pyx_n_u_ZCL, __pyx_k_ZCL, sizeof(__pyx_k_ZCL), 0, 1, 0, 1},
  {&__pyx_n_u_ZFB, __pyx_k_ZFB, sizeof(__pyx_k_ZFB), 0, 1, 0, 1},
  {&__pyx_n_u_ZN, __pyx_k_ZN, sizeof(__pyx_k_ZN), 0, 1, 0, 1},
  {&__pyx_n_u_ZR, __pyx_k_ZR, sizeof(__pyx_k_ZR), 0, 1, 0, 1},
  {&__pyx_n_u_ZU0, __pyx_k_ZU0, sizeof(__pyx_k_ZU0), 0, 1, 0, 1},
  {&__pyx_n_u_ZZJ, __pyx_k_ZZJ, sizeof(__pyx_k_ZZJ), 0, 1, 0, 1},
  {&__pyx_kp_u__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 1, 0, 0},
  {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0},
  {&__pyx_kp_u__4, __pyx_k__4, sizeof(__pyx_k__4), 0, 1, 0, 0},
  {&__pyx_kp_u__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 1, 0, 0},
  {&__pyx_kp_u__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 1, 0, 0},
  {&__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0},
  {&__pyx_kp_u__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 1, 0, 0},
  {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
  {&__pyx_n_s_array, __pyx_k_array, sizeof(__pyx_k_array), 0, 0, 1, 1},
  {&__pyx_n_s_atomContent, __pyx_k_atomContent, sizeof(__pyx_k_atomContent), 0, 0, 1, 1},
  {&__pyx_n_s_atomList, __pyx_k_atomList, sizeof(__pyx_k_atomList), 0, 0, 1, 1},
  {&__pyx_n_u_atomList, __pyx_k_atomList, sizeof(__pyx_k_atomList), 0, 1, 0, 1},
  {&__pyx_n_s_atomName, __pyx_k_atomName, sizeof(__pyx_k_atomName), 0, 0, 1, 1},
  {&__pyx_n_s_atomSerial, __pyx_k_atomSerial, sizeof(__pyx_k_atomSerial), 0, 0, 1, 1},
  {&__pyx_n_u_atomSerial, __pyx_k_atomSerial, sizeof(__pyx_k_atomSerial), 0, 1, 0, 1},
  {&__pyx_n_s_atomname, __pyx_k_atomname, sizeof(__pyx_k_atomname), 0, 0, 1, 1},
  {&__pyx_n_s_atoms, __pyx_k_atoms, sizeof(__pyx_k_atoms), 0, 0, 1, 1},
  {&__pyx_n_u_atoms, __pyx_k_atoms, sizeof(__pyx_k_atoms), 0, 1, 0, 1},
  {&__pyx_n_u_centroid, __pyx_k_centroid, sizeof(__pyx_k_centroid), 0, 1, 0, 1},
  {&__pyx_n_s_centroid1, __pyx_k_centroid1, sizeof(__pyx_k_centroid1), 0, 0, 1, 1},
  {&__pyx_n_s_centroid2, __pyx_k_centroid2, sizeof(__pyx_k_centroid2), 0, 0, 1, 1},
  {&__pyx_n_s_chain, __pyx_k_chain, sizeof(__pyx_k_chain), 0, 0, 1, 1},
  {&__pyx_n_s_chargePattern, __pyx_k_chargePattern, sizeof(__pyx_k_chargePattern), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1},
  {&__pyx_n_u_com, __pyx_k_com, sizeof(__pyx_k_com), 0, 1, 0, 1},
  {&__pyx_n_s_compile, __pyx_k_compile, sizeof(__pyx_k_compile), 0, 0, 1, 1},
  {&__pyx_n_s_computeCOMDifference, __pyx_k_computeCOMDifference, sizeof(__pyx_k_computeCOMDifference), 0, 0, 1, 1},
  {&__pyx_n_s_computeCOMSquaredDifference, __pyx_k_computeCOMSquaredDifference, sizeof(__pyx_k_computeCOMSquaredDifference), 0, 0, 1, 1},
  {&__pyx_n_s_computeSquaredCentroidDifference, __pyx_k_computeSquaredCentroidDifference, sizeof(__pyx_k_computeSquaredCentroidDifference), 0, 0, 1, 1},
  {&__pyx_n_s_computeTotalMass, __pyx_k_computeTotalMass, sizeof(__pyx_k_computeTotalMass), 0, 0, 1, 1},
  {&__pyx_n_s_contactThresholdDistance, __pyx_k_contactThresholdDistance, sizeof(__pyx_k_contactThresholdDistance), 0, 0, 1, 1},
  {&__pyx_n_s_coordinates, __pyx_k_coordinates, sizeof(__pyx_k_coordinates), 0, 0, 1, 1},
  {&__pyx_kp_u_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 1, 0, 0},
  {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
  {&__pyx_n_s_dx, __pyx_k_dx, sizeof(__pyx_k_dx), 0, 0, 1, 1},
  {&__pyx_n_s_dy, __pyx_k_dy, sizeof(__pyx_k_dy), 0, 0, 1, 1},
  {&__pyx_n_s_dz, __pyx_k_dz, sizeof(__pyx_k_dz), 0, 0, 1, 1},
  {&__pyx_n_s_element, __pyx_k_element, sizeof(__pyx_k_element), 0, 0, 1, 1},
  {&__pyx_n_u_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 1, 0, 1},
  {&__pyx_n_s_encoding, __pyx_k_encoding, sizeof(__pyx_k_encoding), 0, 0, 1, 1},
  {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1},
  {&__pyx_n_s_enter, __pyx_k_enter, sizeof(__pyx_k_enter), 0, 0, 1, 1},
  {&__pyx_n_s_equivalentResname, __pyx_k_equivalentResname, sizeof(__pyx_k_equivalentResname), 0, 0, 1, 1},
  {&__pyx_n_s_exit, __pyx_k_exit, sizeof(__pyx_k_exit), 0, 0, 1, 1},
  {&__pyx_n_s_extra_atoms, __pyx_k_extra_atoms, sizeof(__pyx_k_extra_atoms), 0, 0, 1, 1},
  {&__pyx_n_s_extractCOM, __pyx_k_extractCOM, sizeof(__pyx_k_extractCOM), 0, 0, 1, 1},
  {&__pyx_n_s_extractCentroid, __pyx_k_extractCentroid, sizeof(__pyx_k_extractCentroid), 0, 0, 1, 1},
  {&__pyx_n_u_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 1, 0, 1},
  {&__pyx_n_s_file, __pyx_k_file, sizeof(__pyx_k_file), 0, 0, 1, 1},
  {&__pyx_n_s_frame, __pyx_k_frame, sizeof(__pyx_k_frame), 0, 0, 1, 1},
  {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {&__pyx_n_s_getCOM, __pyx_k_getCOM, sizeof(__pyx_k_getCOM), 0, 0, 1, 1},
  {&__pyx_n_s_getCentroid, __pyx_k_getCentroid, sizeof(__pyx_k_getCentroid), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_n_s_heavyAtoms, __pyx_k_heavyAtoms, sizeof(__pyx_k_heavyAtoms), 0, 0, 1, 1},
  {&__pyx_n_u_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 1, 0, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_initialise, __pyx_k_initialise, sizeof(__pyx_k_initialise), 0, 0, 1, 1},
  {&__pyx_n_s_initialisePDB, __pyx_k_initialisePDB, sizeof(__pyx_k_initialisePDB), 0, 0, 1, 1},
  {&__pyx_n_s_initialiseXTC, __pyx_k_initialiseXTC, sizeof(__pyx_k_initialiseXTC), 0, 0, 1, 1},
  {&__pyx_n_s_io, __pyx_k_io, sizeof(__pyx_k_io), 0, 0, 1, 1},
  {&__pyx_n_s_isHeavyAtom, __pyx_k_isHeavyAtom, sizeof(__pyx_k_isHeavyAtom), 0, 0, 1, 1},
  {&__pyx_n_s_isHeteroAtom, __pyx_k_isHeteroAtom, sizeof(__pyx_k_isHeteroAtom), 0, 0, 1, 1},
  {&__pyx_n_s_isProtein, __pyx_k_isProtein, sizeof(__pyx_k_isProtein), 0, 0, 1, 1},
  {&__pyx_n_s_ispdb, __pyx_k_ispdb, sizeof(__pyx_k_ispdb), 0, 0, 1, 1},
  {&__pyx_n_u_ispdb, __pyx_k_ispdb, sizeof(__pyx_k_ispdb), 0, 1, 0, 1},
  {&__pyx_n_s_iter, __pyx_k_iter, sizeof(__pyx_k_iter), 0, 0, 1, 1},
  {&__pyx_n_s_join_PDB_lines, __pyx_k_join_PDB_lines, sizeof(__pyx_k_join_PDB_lines), 0, 0, 1, 1},
  {&__pyx_n_s_ligandChain, __pyx_k_ligandChain, sizeof(__pyx_k_ligandChain), 0, 0, 1, 1},
  {&__pyx_n_s_ligandResname, __pyx_k_ligandResname, sizeof(__pyx_k_ligandResname), 0, 0, 1, 1},
  {&__pyx_n_s_ligandResnum, __pyx_k_ligandResnum, sizeof(__pyx_k_ligandResnum), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_mass, __pyx_k_mass, sizeof(__pyx_k_mass), 0, 0, 1, 1},
  {&__pyx_n_u_mass, __pyx_k_mass, sizeof(__pyx_k_mass), 0, 1, 0, 1},
  {&__pyx_n_s_model_num, __pyx_k_model_num, sizeof(__pyx_k_model_num), 0, 0, 1, 1},
  {&__pyx_n_u_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 1, 0, 1},
  {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {&__pyx_n_s_new, __pyx_k_new, sizeof(__pyx_k_new), 0, 0, 1, 1},
  {&__pyx_n_s_np, __pyx_k_np, sizeof(__pyx_k_np), 0, 0, 1, 1},
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
  {&__pyx_kp_u_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to, sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 1, 0, 0},
  {&__pyx_kp_u_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor, sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 1, 0, 0},
  {&__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1},
  {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1},
  {&__pyx_n_s_pdb, __pyx_k_pdb, sizeof(__pyx_k_pdb), 0, 0, 1, 1},
  {&__pyx_n_u_pdb, __pyx_k_pdb, sizeof(__pyx_k_pdb), 0, 1, 0, 1},
  {&__pyx_n_s_pdbfile, __pyx_k_pdbfile, sizeof(__pyx_k_pdbfile), 0, 0, 1, 1},
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
  {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1},
  {&__pyx_n_s_print, __pyx_k_print, sizeof(__pyx_k_print), 0, 0, 1, 1},
  {&__pyx_n_u_protein, __pyx_k_protein, sizeof(__pyx_k_protein), 0, 1, 0, 1},
  {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError, sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum, sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_result, __pyx_k_pyx_result, sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_type, __pyx_k_pyx_type, sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_Atom, __pyx_k_pyx_unpickle_Atom, sizeof(__pyx_k_pyx_unpickle_Atom), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_unpickle_PDB, __pyx_k_pyx_unpickle_PDB, sizeof(__pyx_k_pyx_unpickle_PDB), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_re, __pyx_k_re, sizeof(__pyx_k_re), 0, 0, 1, 1},
  {&__pyx_n_s_read, __pyx_k_read, sizeof(__pyx_k_read), 0, 0, 1, 1},
  {&__pyx_n_s_readPDB, __pyx_k_readPDB, sizeof(__pyx_k_readPDB), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
  {&__pyx_n_s_remove, __pyx_k_remove, sizeof(__pyx_k_remove), 0, 0, 1, 1},
  {&__pyx_n_s_resChain, __pyx_k_resChain, sizeof(__pyx_k_resChain), 0, 0, 1, 1},
  {&__pyx_n_u_resChain, __pyx_k_resChain, sizeof(__pyx_k_resChain), 0, 1, 0, 1},
  {&__pyx_n_s_resName, __pyx_k_resName, sizeof(__pyx_k_resName), 0, 0, 1, 1},
  {&__pyx_n_s_resNum, __pyx_k_resNum, sizeof(__pyx_k_resNum), 0, 0, 1, 1},
  {&__pyx_n_s_resname, __pyx_k_resname, sizeof(__pyx_k_resname), 0, 0, 1, 1},
  {&__pyx_n_u_resname, __pyx_k_resname, sizeof(__pyx_k_resname), 0, 1, 0, 1},
  {&__pyx_n_s_resnum, __pyx_k_resnum, sizeof(__pyx_k_resnum), 0, 0, 1, 1},
  {&__pyx_n_u_resnum, __pyx_k_resnum, sizeof(__pyx_k_resnum), 0, 1, 0, 1},
  {&__pyx_n_s_rjust, __pyx_k_rjust, sizeof(__pyx_k_rjust), 0, 0, 1, 1},
  {&__pyx_n_u_rt, __pyx_k_rt, sizeof(__pyx_k_rt), 0, 1, 0, 1},
  {&__pyx_kp_u_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s, __pyx_k_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s, sizeof(__pyx_k_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s), 0, 1, 0, 0},
  {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1},
  {&__pyx_n_s_serial, __pyx_k_serial, sizeof(__pyx_k_serial), 0, 0, 1, 1},
  {&__pyx_n_s_set_properties, __pyx_k_set_properties, sizeof(__pyx_k_set_properties), 0, 0, 1, 1},
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
  {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1},
  {&__pyx_n_s_sqrt, __pyx_k_sqrt, sizeof(__pyx_k_sqrt), 0, 0, 1, 1},
  {&__pyx_n_s_squaredDistance, __pyx_k_squaredDistance, sizeof(__pyx_k_squaredDistance), 0, 0, 1, 1},
  {&__pyx_n_s_startswith, __pyx_k_startswith, sizeof(__pyx_k_startswith), 0, 0, 1, 1},
  {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
  {&__pyx_n_s_strip, __pyx_k_strip, sizeof(__pyx_k_strip), 0, 0, 1, 1},
  {&__pyx_n_s_sub, __pyx_k_sub, sizeof(__pyx_k_sub), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1},
  {&__pyx_n_s_topology, __pyx_k_topology, sizeof(__pyx_k_topology), 0, 0, 1, 1},
  {&__pyx_n_u_totalMass, __pyx_k_totalMass, sizeof(__pyx_k_totalMass), 0, 1, 0, 1},
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
  {&__pyx_n_u_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 1, 0, 1},
  {&__pyx_n_s_typeAll, __pyx_k_typeAll, sizeof(__pyx_k_typeAll), 0, 0, 1, 1},
  {&__pyx_n_s_typeCM, __pyx_k_typeCM, sizeof(__pyx_k_typeCM), 0, 0, 1, 1},
  {&__pyx_n_s_typeHetero, __pyx_k_typeHetero, sizeof(__pyx_k_typeHetero), 0, 0, 1, 1},
  {&__pyx_n_s_typeProtein, __pyx_k_typeProtein, sizeof(__pyx_k_typeProtein), 0, 0, 1, 1},
  {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1},
  {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1},
  {&__pyx_kp_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 0},
  {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {&__pyx_n_u_w, __pyx_k_w, sizeof(__pyx_k_w), 0, 1, 0, 1},
  {&__pyx_n_s_write, __pyx_k_write, sizeof(__pyx_k_write), 0, 0, 1, 1},
  {&__pyx_n_s_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 0, 1, 1},
  {&__pyx_n_u_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 1, 0, 1},
  {&__pyx_n_s_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 0, 1, 1},
  {&__pyx_n_u_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 1, 0, 1},
  {&__pyx_n_s_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 0, 1, 1},
  {&__pyx_n_u_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 1, 0, 1},
  {&__pyx_n_s_zip, __pyx_k_zip, sizeof(__pyx_k_zip), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_n_s_zip); if (!__pyx_builtin_zip) __PYX_ERR(0, 464, __pyx_L1_error)
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 546, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 624, __pyx_L1_error)
  __pyx_builtin_IOError = __Pyx_GetBuiltinName(__pyx_n_s_IOError); if (!__pyx_builtin_IOError) __PYX_ERR(0, 966, __pyx_L1_error)
  __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(3, 884, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "AdaptivePELE/atomset/atomset.pyx":497
 *         self.totalMass = state[u'totalMass']
 *         self.pdb = state[u'pdb']
 *         self.ispdb = state.get(u'ispdb', True)             # <<<<<<<<<<<<<<
 * 
 *     def isfromPDBFile(self):
 */
  __pyx_tuple__9 = PyTuple_Pack(2, __pyx_n_u_ispdb, Py_True); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "AdaptivePELE/atomset/atomset.pyx":546
 *             # If the string got here and only contains one line means that is a
 *             # path which does not exist
 *             raise ValueError("Input file not found!!")             # <<<<<<<<<<<<<<
 *         pdb_lines = 0
 *         for atomLine in stringWithPDBContent:
 */
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_u_Input_file_not_found); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);

  /* "AdaptivePELE/atomset/atomset.pyx":583
 *                 pass
 *         if pdb_lines == 0:
 *             raise ValueError("Input pdb was malformed or empty!!")             # <<<<<<<<<<<<<<
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_u_Input_pdb_was_malformed_or_empty); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "AdaptivePELE/atomset/atomset.pyx":585
 *             raise ValueError("Input pdb was malformed or empty!!")
 *         if self.atoms == {}:
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')             # <<<<<<<<<<<<<<
 * 
 *     def _initialiseXTC(self, np.ndarray[float, ndim=2] frame, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):
 */
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_u_Nothing_found_in_the_input_coord); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);

  /* "AdaptivePELE/atomset/atomset.pyx":619
 *         self.pdb = self.join_PDB_lines(topology, frame)  # in case one wants to write it
 *         if len(frame) != len(topology):
 *             raise ValueError("Input coordinates and topology do not match!!!")             # <<<<<<<<<<<<<<
 *         if extra_atoms != {}:
 *             CMAtoms = extra_atoms
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u_Input_coordinates_and_topology_d); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "AdaptivePELE/atomset/atomset.pyx":847
 *         cdef object fileHandle, atom
 *         if self.ispdb:
 *             with open(path, 'w', encoding="utf-8") as fileHandle:             # <<<<<<<<<<<<<<
 *                 # in old simulations it will fail without the unicode
 *                 fileHandle.write(unicode(self.pdb))
 */
  __pyx_tuple__17 = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":884
 *         __pyx_import_array()
 *     except Exception:
 *         raise ImportError("numpy.core.multiarray failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_umath() except -1:
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(3, 884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":890
 *         _import_umath()
 *     except Exception:
 *         raise ImportError("numpy.core.umath failed to import")             # <<<<<<<<<<<<<<
 * 
 * cdef inline int import_ufunc() except -1:
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(3, 890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "AdaptivePELE/atomset/atomset.pyx":163
 *     return False
 * 
 * REGEX_PATTERN = re.compile("[0-9]|\+|\-")             # <<<<<<<<<<<<<<
 * 
 * cdef class Atom:
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_u_0_9); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "AdaptivePELE/atomset/atomset.pyx":902
 * 
 * 
 * def computeCOMDifference(PDB1, PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the difference between the center of mass of two PDB
 */
  __pyx_tuple__21 = PyTuple_Pack(2, __pyx_n_s_PDB1, __pyx_n_s_PDB2); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);
  __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_AdaptivePELE_atomset_atomset_pyx, __pyx_n_s_computeCOMDifference, 902, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 902, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":915
 * 
 * 
 * def computeCOMSquaredDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the squared difference between the center of mass of two PDB
 */
  __pyx_tuple__23 = PyTuple_Pack(7, __pyx_n_s_PDB1, __pyx_n_s_PDB2, __pyx_n_s_COM1, __pyx_n_s_COM2, __pyx_n_s_dx, __pyx_n_s_dy, __pyx_n_s_dz); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);
  __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_AdaptivePELE_atomset_atomset_pyx, __pyx_n_s_computeCOMSquaredDifference, 915, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 915, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":936
 * 
 * 
 * def computeSquaredCentroidDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the centroid squared difference between two PDBs
 */
  __pyx_tuple__25 = PyTuple_Pack(7, __pyx_n_s_PDB1, __pyx_n_s_PDB2, __pyx_n_s_centroid1, __pyx_n_s_centroid2, __pyx_n_s_dx, __pyx_n_s_dy, __pyx_n_s_dz); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);
  __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_AdaptivePELE_atomset_atomset_pyx, __pyx_n_s_computeSquaredCentroidDifference, 936, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 936, __pyx_L1_error)

  /* "AdaptivePELE/atomset/atomset.pyx":956
 *     return dx*dx + dy*dy + dz*dz
 * 
 * def readPDB(pdbfile):             # <<<<<<<<<<<<<<
 *     """
 *         Helper function, parses a string with PDB content or the path of a pdb file into a string
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_pdbfile); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);
  __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_AdaptivePELE_atomset_atomset_pyx, __pyx_n_s_readPDB, 956, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 956, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __pyx_unpickle_Atom(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_tuple__29 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);
  __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Atom, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(2, 1, __pyx_L1_error)
  __pyx_tuple__31 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);
  __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_PDB, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  __pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PySet_Type_update.type = (PyObject*)&PySet_Type;
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_float_0_ = PyFloat_FromDouble(0.); if (unlikely(!__pyx_float_0_)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_4_00 = PyFloat_FromDouble(4.00); if (unlikely(!__pyx_float_4_00)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_9_01 = PyFloat_FromDouble(9.01); if (unlikely(!__pyx_float_9_01)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_98_0 = PyFloat_FromDouble(98.0); if (unlikely(!__pyx_float_98_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_20_18 = PyFloat_FromDouble(20.18); if (unlikely(!__pyx_float_20_18)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_207_2 = PyFloat_FromDouble(207.2); if (unlikely(!__pyx_float_207_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_26_98 = PyFloat_FromDouble(26.98); if (unlikely(!__pyx_float_26_98)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_28_09 = PyFloat_FromDouble(28.09); if (unlikely(!__pyx_float_28_09)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_39_95 = PyFloat_FromDouble(39.95); if (unlikely(!__pyx_float_39_95)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_44_96 = PyFloat_FromDouble(44.96); if (unlikely(!__pyx_float_44_96)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_47_87 = PyFloat_FromDouble(47.87); if (unlikely(!__pyx_float_47_87)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_50_94 = PyFloat_FromDouble(50.94); if (unlikely(!__pyx_float_50_94)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_58_93 = PyFloat_FromDouble(58.93); if (unlikely(!__pyx_float_58_93)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_6_941 = PyFloat_FromDouble(6.941); if (unlikely(!__pyx_float_6_941)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_69_72 = PyFloat_FromDouble(69.72); if (unlikely(!__pyx_float_69_72)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_72_64 = PyFloat_FromDouble(72.64); if (unlikely(!__pyx_float_72_64)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_78_96 = PyFloat_FromDouble(78.96); if (unlikely(!__pyx_float_78_96)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_79_90 = PyFloat_FromDouble(79.90); if (unlikely(!__pyx_float_79_90)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_83_80 = PyFloat_FromDouble(83.80); if (unlikely(!__pyx_float_83_80)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_85_47 = PyFloat_FromDouble(85.47); if (unlikely(!__pyx_float_85_47)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_87_62 = PyFloat_FromDouble(87.62); if (unlikely(!__pyx_float_87_62)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_88_91 = PyFloat_FromDouble(88.91); if (unlikely(!__pyx_float_88_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_91_22 = PyFloat_FromDouble(91.22); if (unlikely(!__pyx_float_91_22)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_92_91 = PyFloat_FromDouble(92.91); if (unlikely(!__pyx_float_92_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_95_94 = PyFloat_FromDouble(95.94); if (unlikely(!__pyx_float_95_94)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_10_811 = PyFloat_FromDouble(10.811); if (unlikely(!__pyx_float_10_811)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_101_07 = PyFloat_FromDouble(101.07); if (unlikely(!__pyx_float_101_07)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_102_91 = PyFloat_FromDouble(102.91); if (unlikely(!__pyx_float_102_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_106_42 = PyFloat_FromDouble(106.42); if (unlikely(!__pyx_float_106_42)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_114_82 = PyFloat_FromDouble(114.82); if (unlikely(!__pyx_float_114_82)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_118_71 = PyFloat_FromDouble(118.71); if (unlikely(!__pyx_float_118_71)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_121_76 = PyFloat_FromDouble(121.76); if (unlikely(!__pyx_float_121_76)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_127_60 = PyFloat_FromDouble(127.60); if (unlikely(!__pyx_float_127_60)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_131_29 = PyFloat_FromDouble(131.29); if (unlikely(!__pyx_float_131_29)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_132_91 = PyFloat_FromDouble(132.91); if (unlikely(!__pyx_float_132_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_137_33 = PyFloat_FromDouble(137.33); if (unlikely(!__pyx_float_137_33)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_140_91 = PyFloat_FromDouble(140.91); if (unlikely(!__pyx_float_140_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_151_96 = PyFloat_FromDouble(151.96); if (unlikely(!__pyx_float_151_96)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_157_25 = PyFloat_FromDouble(157.25); if (unlikely(!__pyx_float_157_25)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_158_93 = PyFloat_FromDouble(158.93); if (unlikely(!__pyx_float_158_93)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_192_22 = PyFloat_FromDouble(192.22); if (unlikely(!__pyx_float_192_22)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_200_59 = PyFloat_FromDouble(200.59); if (unlikely(!__pyx_float_200_59)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_238_03 = PyFloat_FromDouble(238.03); if (unlikely(!__pyx_float_238_03)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_24_305 = PyFloat_FromDouble(24.305); if (unlikely(!__pyx_float_24_305)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_32_065 = PyFloat_FromDouble(32.065); if (unlikely(!__pyx_float_32_065)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_35_453 = PyFloat_FromDouble(35.453); if (unlikely(!__pyx_float_35_453)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_40_078 = PyFloat_FromDouble(40.078); if (unlikely(!__pyx_float_40_078)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_55_845 = PyFloat_FromDouble(55.845); if (unlikely(!__pyx_float_55_845)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_63_546 = PyFloat_FromDouble(63.546); if (unlikely(!__pyx_float_63_546)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_65_409 = PyFloat_FromDouble(65.409); if (unlikely(!__pyx_float_65_409)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_1_00794 = PyFloat_FromDouble(1.00794); if (unlikely(!__pyx_float_1_00794)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_112_411 = PyFloat_FromDouble(112.411); if (unlikely(!__pyx_float_112_411)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_12_0107 = PyFloat_FromDouble(12.0107); if (unlikely(!__pyx_float_12_0107)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_14_0067 = PyFloat_FromDouble(14.0067); if (unlikely(!__pyx_float_14_0067)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_15_9994 = PyFloat_FromDouble(15.9994); if (unlikely(!__pyx_float_15_9994)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_195_084 = PyFloat_FromDouble(195.084); if (unlikely(!__pyx_float_195_084)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_39_0983 = PyFloat_FromDouble(39.0983); if (unlikely(!__pyx_float_39_0983)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_51_9961 = PyFloat_FromDouble(51.9961); if (unlikely(!__pyx_float_51_9961)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_58_6934 = PyFloat_FromDouble(58.6934); if (unlikely(!__pyx_float_58_6934)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_74_9216 = PyFloat_FromDouble(74.9216); if (unlikely(!__pyx_float_74_9216)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_107_8682 = PyFloat_FromDouble(107.8682); if (unlikely(!__pyx_float_107_8682)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_126_90447 = PyFloat_FromDouble(126.90447); if (unlikely(!__pyx_float_126_90447)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_18_998403 = PyFloat_FromDouble(18.998403); if (unlikely(!__pyx_float_18_998403)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_196_96657 = PyFloat_FromDouble(196.96657); if (unlikely(!__pyx_float_196_96657)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_22_989769 = PyFloat_FromDouble(22.989769); if (unlikely(!__pyx_float_22_989769)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_30_973762 = PyFloat_FromDouble(30.973762); if (unlikely(!__pyx_float_30_973762)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_54_938045 = PyFloat_FromDouble(54.938045); if (unlikely(!__pyx_float_54_938045)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_01410178 = PyFloat_FromDouble(2.01410178); if (unlikely(!__pyx_float_2_01410178)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_14519438 = PyInt_FromLong(14519438L); if (unlikely(!__pyx_int_14519438)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_120783956 = PyInt_FromLong(120783956L); if (unlikely(!__pyx_int_120783956)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  if (PyType_Ready(&__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_12AdaptivePELE_7atomset_7atomset_Atom.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom.tp_dictoffset && __pyx_type_12AdaptivePELE_7atomset_7atomset_Atom.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_12AdaptivePELE_7atomset_7atomset_Atom.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 165, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_4Atom___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_4Atom___init__.doc = __pyx_doc_12AdaptivePELE_7atomset_7atomset_4Atom___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_4Atom___init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Atom, (PyObject *)&__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom) < 0) __PYX_ERR(0, 165, __pyx_L1_error)
  __pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom = &__pyx_type_12AdaptivePELE_7atomset_7atomset_Atom;
  if (PyType_Ready(&__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB) < 0) __PYX_ERR(0, 418, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_12AdaptivePELE_7atomset_7atomset_PDB.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB.tp_dictoffset && __pyx_type_12AdaptivePELE_7atomset_7atomset_PDB.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_12AdaptivePELE_7atomset_7atomset_PDB.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 418, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_3PDB___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_3PDB___init__.doc = __pyx_doc_12AdaptivePELE_7atomset_7atomset_3PDB___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_12AdaptivePELE_7atomset_7atomset_3PDB___init__;
    }
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PDB, (PyObject *)&__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB) < 0) __PYX_ERR(0, 418, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB) < 0) __PYX_ERR(0, 418, __pyx_L1_error)
  __pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB = &__pyx_type_12AdaptivePELE_7atomset_7atomset_PDB;
  if (PyType_Ready(&__pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__) < 0) __PYX_ERR(0, 731, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__.tp_dictoffset && __pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  __pyx_ptype_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__ = &__pyx_type_12AdaptivePELE_7atomset_7atomset___pyx_scope_struct____iter__;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", 
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject),
  #else
  sizeof(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(4, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("numpy"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1, "numpy", "dtype", sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(3, 199, __pyx_L1_error)
  __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1, "numpy", "flatiter", sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(3, 222, __pyx_L1_error)
  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1, "numpy", "broadcast", sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(3, 226, __pyx_L1_error)
  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1, "numpy", "ndarray", sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(3, 238, __pyx_L1_error)
  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1, "numpy", "ufunc", sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Ignore);
   if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(3, 764, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}


#ifndef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#elif PY_MAJOR_VERSION < 3
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" void
#else
#define __Pyx_PyMODINIT_FUNC void
#endif
#else
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyObject *
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initatomset(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initatomset(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_atomset(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_atomset(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_atomset(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'atomset' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_atomset(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("atomset", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_b);
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_cython_runtime);
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_AdaptivePELE__atomset__atomset) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "AdaptivePELE.atomset.atomset")) {
      if (unlikely(PyDict_SetItemString(modules, "AdaptivePELE.atomset.atomset", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  (void)__Pyx_modinit_variable_export_code();
  (void)__Pyx_modinit_function_export_code();
  if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_variable_import_code();
  (void)__Pyx_modinit_function_import_code();
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "AdaptivePELE/atomset/atomset.pyx":2
 * from __future__ import unicode_literals
 * import numpy as np             # <<<<<<<<<<<<<<
 * import re
 * from io import StringIO, open
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":3
 * from __future__ import unicode_literals
 * import numpy as np
 * import re             # <<<<<<<<<<<<<<
 * from io import StringIO, open
 * cimport cython
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_re, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_re, __pyx_t_1) < 0) __PYX_ERR(0, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":4
 * import numpy as np
 * import re
 * from io import StringIO, open             # <<<<<<<<<<<<<<
 * cimport cython
 * cimport numpy as np
 */
  __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_StringIO);
  __Pyx_GIVEREF(__pyx_n_s_StringIO);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_StringIO);
  __Pyx_INCREF(__pyx_n_s_open);
  __Pyx_GIVEREF(__pyx_n_s_open);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_open);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_io, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_StringIO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_StringIO, __pyx_t_1) < 0) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_open); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_open, __pyx_t_1) < 0) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":16
 * # Taken from mdtraj
 * # https://github.com/mdtraj/mdtraj
 * _AMINO_ACID_CODES =  {'ACE': None, 'NME':  None, '00C': 'C', '01W':  'X', '02K':             # <<<<<<<<<<<<<<
 * 'A', '02L':  'N', '03Y': 'C',  '07O': 'C', '08P':  'C', '0A0': 'D',  '0A1': 'Y',
 * '0A2': 'K', '0A8':  'C', '0AA': 'V', '0AB': 'V', '0AC':  'G', '0AF': 'W', '0AG':
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(820); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ACE, Py_None) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NME, Py_None) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_00C, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_01W, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_02K, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_02L, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_03Y, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_07O, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_08P, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0A0, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0A1, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0A2, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0A8, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AB, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AC, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AF, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AG, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AH, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0AK, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0BN, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0CS, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0E5, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0EA, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0FL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0NC, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0WZ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_0Y8, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_143, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_193, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1OP, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1PA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1PI, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1TQ, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1TY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_1X6, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_200, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_23F, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_23S, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_26B, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2AD, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2AG, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2AO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2AS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2CO, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2DO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2FM, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2HF, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2KK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2KP, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2LU, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2ML, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2MR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2MT, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2OR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2PI, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2QZ, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2R3, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2SI, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2TL, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2TY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2VA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_2XA, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_32S, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_32T, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_33X, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3AH, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3AR, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3CF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3GA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3MD, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3NF, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3QN, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3TY, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_3XH, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4BF, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4CF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4CY, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4DP, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4FB, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4FW, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4HT, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4IN, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4MM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4PH, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_4U7, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_56A, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_5AB, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_5CS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_5CW, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_5HP, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_6CL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_6CW, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_6GL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_6HN, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_7JA, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_9NE, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_9NF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_9NR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_9NV, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_A5N, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_A66, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AA3, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AA4, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AAR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AB7, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ABA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ACB, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ACL, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ADD, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AEA, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AEI, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AFA, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AGM, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AGT, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHB, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHH, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHO, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHP, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AHT, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AIB, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AKL, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AKZ, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALC, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALM, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALN, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALO, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALS, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALT, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALV, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AN8, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_APE, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_APH, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_API, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_APK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_APM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_APP, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AR2, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AR4, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AR7, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ARG, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ARM, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ARO, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ARV, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AS2, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AS9, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASA, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASB, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASI, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASK, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASL, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASN, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASP, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASQ, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASX, __pyx_n_u_B) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AVN, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AYA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AZK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AZS, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AZY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B1F, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B2A, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B2F, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B2I, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B2V, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3A, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3D, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3E, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3K, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3L, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3M, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3Q, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3S, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3T, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3U, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3X, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B3Y, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BB6, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BB7, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BB8, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BB9, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BBC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BE2, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BFD, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BG1, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BH2, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BHD, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BIF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BIL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BIU, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BJH, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BL2, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BLY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BMT, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BNN, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BNO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BOR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BPE, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BSE, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BTA, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BTC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BTR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BUC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BUG, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C1X, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C22, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C3Y, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C4R, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C5C, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C66, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C6C, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CAF, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CAL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CAS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CAV, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CAY, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CCL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CDE, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CDV, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CEA, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CGA, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CGU, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CHF, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CHG, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CHP, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CHS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CIR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CLG, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CLH, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CME, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CMH, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CML, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CMT, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CPC, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CPI, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CR5, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CS0, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CS1, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CS3, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CS4, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSA, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSB, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSD, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSE, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSJ, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSO, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSP, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSR, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSU, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSW, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSX, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CSZ, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CTE, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CTH, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CUC, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CWR, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CXM, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CY0, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CY1, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CY3, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CY4, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYA, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYD, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYF, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYG, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYJ, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYM, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYQ, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYR, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CZ2, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CZZ, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_D11, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_D3P, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_D4P, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DA2, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DAB, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DAH, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DAL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DAR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DAS, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DBB, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DBS, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DBU, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DBY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DBZ, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DC2, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DCL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DCY, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DDE, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DFI, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DFO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DGH, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DGL, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DGN, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHA, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHI, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHN, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHP, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DHV, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DI7, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DIL, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DIR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DIV, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DLS, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DLY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DM0, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DMH, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DMK, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DMT, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DNE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DNL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DNP, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DNS, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DOA, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DOH, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DON, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DPL, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DPN, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DPP, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DPQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DPR, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DSE, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DSG, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DSN, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DSP, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DTH, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DTR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DTY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DVA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_DYS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ECC, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_EFC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_EHP, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ESB, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ESC, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_EXY, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_EYS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_F2F, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FAK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FB5, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FB6, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FCL, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FGA, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FGL, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FGP, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FH7, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FHL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FHO, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FLA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FLT, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FME, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FOE, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FP9, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FRD, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FT6, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FTR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FTY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FVA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FZN, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GAU, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GCM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GFT, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GGL, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GHG, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GHP, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GL3, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLH, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLJ, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLK, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLN, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLQ, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLU, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLX, __pyx_n_u_Z) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLY, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLZ, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GMA, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GND, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GPL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GSC, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GSU, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GT9, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GVL, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_H14, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_H5M, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HAC, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HAR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HBN, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HCS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HFA, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HGL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HHI, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIA, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIC, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIP, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIQ, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIE, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIS, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HL2, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HLU, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HMR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HPC, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HPE, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HPH, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HPQ, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HQA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HRG, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HRP, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HS8, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYT, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HS9, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HSE, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HSL, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HSO, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HTI, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HTN, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HTR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HV5, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HVA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HY3, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HYP, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HZP, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_I2M, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_I58, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IAM, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IAR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IAS, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IEL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IGL, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IIL, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ILE, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ILG, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ILX, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IML, __pyx_n_u_I) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IOY, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IPG, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IT1, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IYR, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IYT, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IZO, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_JJJ, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_JJK, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_JJL, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_K1R, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KCX, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KGC, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KNB, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KOR, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KPI, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KST, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KYN, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KYQ, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_L2A, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LA2, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LAA, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LAL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LBY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LCK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LCX, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LCZ, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LDH, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LED, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEF, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEH, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEI, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEM, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEN, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LET, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEU, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEX, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LHC, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LLP, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LLY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LME, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LMF, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LMQ, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LP6, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LPD, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LPG, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LPL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LPS, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LSO, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LTA, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LTR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LVG, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LVN, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYF, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYK, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYM, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYN, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYR, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYS, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYX, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYZ, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_M0H, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_M2L, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_M2S, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_M30, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_M3L, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MAA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MAI, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MBQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MC1, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MCG, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MCL, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MD3, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MD6, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MDF, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MDH, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MEA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MED, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MEG, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MEN, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MEQ, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MET, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MEU, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MF3, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MGG, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MGN, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MGY, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MHL, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MHO, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MHS, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MIS, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MK8, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ML3, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MLL, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MLY, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MLZ, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MME, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MMO, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MND, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MNL, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MNV, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MOD, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MP8, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MPH, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MPJ, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MPQ, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MSA, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MSE, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MSL, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MSO, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MSP, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MT2, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MTY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MVA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N10, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N2C, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N7P, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N80, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N8P, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NA8, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NAL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NAM, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NB8, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NBQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NC1, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NCB, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NCY, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NDF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NEM, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NEP, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NFA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NHL, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NIY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NLN, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NLO, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NLP, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NLQ, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NMC, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NMM, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NNH, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NPH, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NPI, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NSK, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NTR, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NTY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NVA, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NYS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NZH, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_O12, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OAR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OAS, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OBF, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OBS, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OCY, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OHI, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OHS, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OIC, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OLE, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OLT, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OLZ, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OMT, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ONH, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ONL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OPR, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ORN, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ORQ, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OSE, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OTB, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OTH, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_OXX, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_P1L, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_P2Y, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PAQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PAS, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PAT, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PAU, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PBB, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PBF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PCA, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PCC, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PCE, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PCS, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PDL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PEC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PF5, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PFF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PFX, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PG1, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PG9, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PGL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PGY, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PH6, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHD, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHE, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHI, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHL, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHM, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PIV, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PLE, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PM3, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_POM, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PPN, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PR3, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PR9, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PRO, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PRS, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PSA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PSH, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PTA, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PTH, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PTM, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PTR, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PVH, __pyx_n_u_H) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PVL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PYA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PYL, __pyx_n_u_O) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PYX, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_QCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_QMM, __pyx_n_u_Q) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_QPA, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_QPH, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_R1A, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_R4K, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RE0, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RE3, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RON, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RVX, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RZ4, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_S1H, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_S2C, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_S2D, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_S2P, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SAC, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SAH, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SAR, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SBL, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SCH, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SCS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SCY, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SD2, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SDP, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SE7, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEB, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEC, __pyx_n_u_U) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEG, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEL, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEM, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEN, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SEP, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SER, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SET, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SGB, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SHC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SHP, __pyx_n_u_G) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SHR, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SIB, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SLR, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SLZ, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SMC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SME, __pyx_n_u_M) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SMF, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SNC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SNN, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SOC, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SOY, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SRZ, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_STY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SUB, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SUN, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVA, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVV, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVW, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVX, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVY, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SVZ, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SYS, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_T11, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_T66, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TA4, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TAV, __pyx_n_u_D) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TBG, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TBM, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TCQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TCR, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TDD, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TFQ, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TH6, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_THC, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_THO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_THR, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_THZ, __pyx_n_u_R) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TIH, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TMB, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TMD, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TNB, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TNR, __pyx_n_u_S) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TOQ, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TPH, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TPL, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TPO, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TPQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TQI, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TQQ, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRF, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRG, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRN, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRO, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRP, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRQ, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRW, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRX, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRY, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TST, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TTQ, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TTS, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TXY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TY1, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TY2, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TY3, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TY5, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYB, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYI, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYJ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYN, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYO, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYQ, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYR, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYS, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYT, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYW, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYX, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYY, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TZB, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TZO, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_UMA, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_UN1, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_UN2, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_UNK, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VAD, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VAF, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VAL, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VB1, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VDL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VLL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VLM, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VMS, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VOL, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_WLU, __pyx_n_u_L) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_WPA, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_WRP, __pyx_n_u_W) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_WVL, __pyx_n_u_V) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_X2W, __pyx_n_u_E) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XCN, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XCP, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XDT, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XPL, __pyx_n_u_O) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XPR, __pyx_n_u_P) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XSN, __pyx_n_u_N) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XX1, __pyx_n_u_K) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_YCM, __pyx_n_u_C) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_YOF, __pyx_n_u_Y) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_YTH, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_Z01, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZAL, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZCL, __pyx_n_u_F) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZFB, __pyx_n_u_X) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZU0, __pyx_n_u_T) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZZJ, __pyx_n_u_A) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AMINO_ACID_CODES, __pyx_t_2) < 0) __PYX_ERR(0, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":163
 *     return False
 * 
 * REGEX_PATTERN = re.compile("[0-9]|\+|\-")             # <<<<<<<<<<<<<<
 * 
 * cdef class Atom:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_re); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_REGEX_PATTERN, __pyx_t_2) < 0) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":166
 * 
 * cdef class Atom:
 *     _chargePattern = REGEX_PATTERN             # <<<<<<<<<<<<<<
 *     _ATOM_WEIGHTS = {u"H": 1.00794,
 *                     u"D": 2.01410178,  # deuterium
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_REGEX_PATTERN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom->tp_dict, __pyx_n_s_chargePattern, __pyx_t_2) < 0) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom);

  /* "AdaptivePELE/atomset/atomset.pyx":167
 * cdef class Atom:
 *     _chargePattern = REGEX_PATTERN
 *     _ATOM_WEIGHTS = {u"H": 1.00794,             # <<<<<<<<<<<<<<
 *                     u"D": 2.01410178,  # deuterium
 *                     u"HE": 4.00,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(68); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_H, __pyx_float_1_00794) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_D, __pyx_float_2_01410178) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HE, __pyx_float_4_00) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LI, __pyx_float_6_941) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BE, __pyx_float_9_01) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_B, __pyx_float_10_811) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_C, __pyx_float_12_0107) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_N, __pyx_float_14_0067) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_O, __pyx_float_15_9994) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_F, __pyx_float_18_998403) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NE, __pyx_float_20_18) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NA, __pyx_float_22_989769) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MG, __pyx_float_24_305) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AL, __pyx_float_26_98) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SI, __pyx_float_28_09) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_P, __pyx_float_30_973762) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_S, __pyx_float_32_065) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CL, __pyx_float_35_453) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AR, __pyx_float_39_95) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_K, __pyx_float_39_0983) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CA, __pyx_float_40_078) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SC, __pyx_float_44_96) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TI, __pyx_float_47_87) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_V, __pyx_float_50_94) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CR, __pyx_float_51_9961) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MN, __pyx_float_54_938045) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_FE, __pyx_float_55_845) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CO, __pyx_float_58_93) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NI, __pyx_float_58_6934) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CU, __pyx_float_63_546) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZN, __pyx_float_65_409) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GA, __pyx_float_69_72) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GE, __pyx_float_72_64) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AS, __pyx_float_74_9216) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SE, __pyx_float_78_96) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BR, __pyx_float_79_90) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_KR, __pyx_float_83_80) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RB, __pyx_float_85_47) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SR, __pyx_float_87_62) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_Y, __pyx_float_88_91) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ZR, __pyx_float_91_22) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_NB, __pyx_float_92_91) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_W, __pyx_float_95_94) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MO, __pyx_float_95_94) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TC, __pyx_float_98_0) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RU, __pyx_float_101_07) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_RH, __pyx_float_102_91) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PD, __pyx_float_106_42) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AG, __pyx_float_107_8682) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CD, __pyx_float_112_411) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IN, __pyx_float_114_82) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SN, __pyx_float_118_71) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SB, __pyx_float_121_76) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TE, __pyx_float_127_60) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_I, __pyx_float_126_90447) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_XE, __pyx_float_131_29) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CS, __pyx_float_132_91) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_BA, __pyx_float_137_33) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PR, __pyx_float_140_91) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_EU, __pyx_float_151_96) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GD, __pyx_float_157_25) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TB, __pyx_float_158_93) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_IR, __pyx_float_192_22) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PT, __pyx_float_195_084) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_AU, __pyx_float_196_96657) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HG, __pyx_float_200_59) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PB, __pyx_float_207_2) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_U, __pyx_float_238_03) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom->tp_dict, __pyx_n_s_ATOM_WEIGHTS, __pyx_t_2) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_Atom);

  /* "AdaptivePELE/atomset/atomset.pyx":419
 * 
 * cdef class PDB:
 *     _typeProtein = u"PROTEIN"             # <<<<<<<<<<<<<<
 *     _typeHetero = u"HETERO"
 *     _typeAll = u"ALL"
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_typeProtein, __pyx_n_u_PROTEIN) < 0) __PYX_ERR(0, 419, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":420
 * cdef class PDB:
 *     _typeProtein = u"PROTEIN"
 *     _typeHetero = u"HETERO"             # <<<<<<<<<<<<<<
 *     _typeAll = u"ALL"
 *     _typeCM = u"CM"
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_typeHetero, __pyx_n_u_HETERO) < 0) __PYX_ERR(0, 420, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":421
 *     _typeProtein = u"PROTEIN"
 *     _typeHetero = u"HETERO"
 *     _typeAll = u"ALL"             # <<<<<<<<<<<<<<
 *     _typeCM = u"CM"
 * 
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_typeAll, __pyx_n_u_ALL) < 0) __PYX_ERR(0, 421, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":422
 *     _typeHetero = u"HETERO"
 *     _typeAll = u"ALL"
 *     _typeCM = u"CM"             # <<<<<<<<<<<<<<
 * 
 *     #Atoms to be used in the contact map
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_typeCM, __pyx_n_u_CM) < 0) __PYX_ERR(0, 422, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":425
 * 
 *     #Atoms to be used in the contact map
 *     CMAtoms = {u"ALA": u"empty", u"VAL": u"empty", u"LEU": u"empty", u"ILE": u"empty",             # <<<<<<<<<<<<<<
 *                u"MET": u"empty", u"PRO": u"empty", u"PHE": u"CZ", u"TYR": u"OH",
 *                u"TRP": u"CH2", u"SER": u"empty", u"THR": u"empty", u"CYS": u"empty",
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ALA, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_VAL, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LEU, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ILE, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_MET, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PRO, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_PHE, __pyx_n_u_CZ) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TYR, __pyx_n_u_OH) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_TRP, __pyx_n_u_CH2) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_SER, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_THR, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_CYS, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASN, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLN, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_LYS, __pyx_n_u_NZ) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIS, __pyx_n_u_CE1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIE, __pyx_n_u_CE1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HID, __pyx_n_u_CE1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_HIP, __pyx_n_u_CE1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ARG, __pyx_n_u_NE) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_ASP, __pyx_n_u_OD1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLU, __pyx_n_u_OE1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_GLY, __pyx_n_u_empty) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_CMAtoms, __pyx_t_2) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":431
 *                u"HIE": u"CE1", u"HID": u"CE1", u"HIP": u"CE1", u"ARG": u"NE",
 *                u"ASP": u"OD1", u"GLU": u"OE1", u"GLY": u"empty"}
 *     ATOM_LINE_TEMPLATE = u"%s%s %s %s %s%s%s   %.3f%.3f%.3f%.2f%.2f          %s   "             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB->tp_dict, __pyx_n_s_ATOM_LINE_TEMPLATE, __pyx_kp_u_s_s_s_s_s_s_s_3f_3f_3f_2f_2f_s) < 0) __PYX_ERR(0, 431, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_12AdaptivePELE_7atomset_7atomset_PDB);

  /* "AdaptivePELE/atomset/atomset.pyx":502
 *         return self.ispdb
 * 
 *     def _initialisePDB(self, basestring PDBstr, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element="", dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a PDB file or a string with the PDB
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_k__10 = ((PyObject*)__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":587
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def _initialiseXTC(self, np.ndarray[float, ndim=2] frame, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Load the information from a loaded XTC file into a  mdtraj Trajectory
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_k__14 = ((PyObject*)__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":669
 *             raise ValueError('Nothing found in the input coordinates, please check your selection!')
 * 
 *     def initialise(self, object coordinates, bint heavyAtoms=True, basestring resname=u"", basestring atomname=u"", basestring type=u"ALL", basestring chain=u"", int resnum = 0, basestring element=u"", list topology=None, dict extra_atoms={}):             # <<<<<<<<<<<<<<
 *         """
 *             Wrapper function
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_k__16 = ((PyObject*)__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":902
 * 
 * 
 * def computeCOMDifference(PDB1, PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the difference between the center of mass of two PDB
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_1computeCOMDifference, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeCOMDifference, __pyx_t_2) < 0) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":915
 * 
 * 
 * def computeCOMSquaredDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the squared difference between the center of mass of two PDB
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_3computeCOMSquaredDifference, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeCOMSquaredDifference, __pyx_t_2) < 0) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":936
 * 
 * 
 * def computeSquaredCentroidDifference(PDB PDB1, PDB PDB2):             # <<<<<<<<<<<<<<
 *     """
 *         Compute the centroid squared difference between two PDBs
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_5computeSquaredCentroidDifference, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_computeSquaredCentroidDifference, __pyx_t_2) < 0) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":956
 *     return dx*dx + dy*dy + dz*dz
 * 
 * def readPDB(pdbfile):             # <<<<<<<<<<<<<<
 *     """
 *         Helper function, parses a string with PDB content or the path of a pdb file into a string
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_7readPDB, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_readPDB, __pyx_t_2) < 0) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __pyx_unpickle_Atom(__pyx_type, long __pyx_checksum, __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_PickleError
 *     cdef object __pyx_result
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_9__pyx_unpickle_Atom, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Atom, __pyx_t_2) < 0) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":11
 *         __pyx_unpickle_Atom__set_state(<Atom> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_Atom__set_state(Atom __pyx_result, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_result.atomSerial = __pyx_state[0]; __pyx_result.id = __pyx_state[1]; __pyx_result.mass = __pyx_state[2]; __pyx_result.name = __pyx_state[3]; __pyx_result.protein = __pyx_state[4]; __pyx_result.resChain = __pyx_state[5]; __pyx_result.resname = __pyx_state[6]; __pyx_result.resnum = __pyx_state[7]; __pyx_result.type = __pyx_state[8]; __pyx_result.x = __pyx_state[9]; __pyx_result.y = __pyx_state[10]; __pyx_result.z = __pyx_state[11]
 *     if len(__pyx_state) > 12 and hasattr(__pyx_result, '__dict__'):
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_12AdaptivePELE_7atomset_7atomset_11__pyx_unpickle_PDB, NULL, __pyx_n_s_AdaptivePELE_atomset_atomset); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_PDB, __pyx_t_2) < 0) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "AdaptivePELE/atomset/atomset.pyx":1
 * from __future__ import unicode_literals             # <<<<<<<<<<<<<<
 * import numpy as np
 * import re
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "../.local/lib/python3.6/site-packages/numpy/__init__.pxd":892
 *         raise ImportError("numpy.core.umath failed to import")
 * 
 * cdef inline int import_ufunc() except -1:             # <<<<<<<<<<<<<<
 *     try:
 *         _import_umath()
 */

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init AdaptivePELE.atomset.atomset", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init AdaptivePELE.atomset.atomset");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* BytesEquals */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#endif

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
    if (likely(PyCFunction_Check(func)))
#endif
    {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
    }
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (__Pyx_PyFastCFunction_Check(func)) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* pyobject_as_double */
static double __Pyx__PyObject_AsDouble(PyObject* obj) {
    PyObject* float_value;
#if !CYTHON_USE_TYPE_SLOTS
    float_value = PyNumber_Float(obj);  if ((0)) goto bad;
#else
    PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
    if (likely(nb) && likely(nb->nb_float)) {
        float_value = nb->nb_float(obj);
        if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) {
            PyErr_Format(PyExc_TypeError,
                "__float__ returned non-float (type %.200s)",
                Py_TYPE(float_value)->tp_name);
            Py_DECREF(float_value);
            goto bad;
        }
    } else if (PyUnicode_CheckExact(obj) || PyBytes_CheckExact(obj)) {
#if PY_MAJOR_VERSION >= 3
        float_value = PyFloat_FromString(obj);
#else
        float_value = PyFloat_FromString(obj, 0);
#endif
    } else {
        PyObject* args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        PyTuple_SET_ITEM(args, 0, obj);
        float_value = PyObject_Call((PyObject*)&PyFloat_Type, args, 0);
        PyTuple_SET_ITEM(args, 0, 0);
        Py_DECREF(args);
    }
#endif
    if (likely(float_value)) {
        double value = PyFloat_AS_DOUBLE(float_value);
        Py_DECREF(float_value);
        return value;
    }
bad:
    return (double)-1;
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
    PyObject *runerr;
    Py_ssize_t key_value;
    PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
    if (unlikely(!(m && m->sq_item))) {
        PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
        return NULL;
    }
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
    PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
    if (likely(m && m->mp_subscript)) {
        return m->mp_subscript(obj, key);
    }
    return __Pyx_PyObject_GetIndex(obj, key);
}
#endif

/* PyObjectCall2Args */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args, *result = NULL;
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyFunction_FastCall(function, args, 2);
    }
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyCFunction_FastCall(function, args, 2);
    }
    #endif
    args = PyTuple_New(2);
    if (unlikely(!args)) goto done;
    Py_INCREF(arg1);
    PyTuple_SET_ITEM(args, 0, arg1);
    Py_INCREF(arg2);
    PyTuple_SET_ITEM(args, 1, arg2);
    Py_INCREF(function);
    result = __Pyx_PyObject_Call(function, args, NULL);
    Py_DECREF(args);
    Py_DECREF(function);
done:
    return result;
}

/* DictGetItem */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    #if PY_MAJOR_VERSION < 3
    if (likely(PyString_CheckExact(s))) {
        PyObject *result = PyUnicode_FromEncodedObject(s, NULL, "strict");
        Py_DECREF(s);
        return result;
    }
    #endif
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* PyObjectFormat */
#if CYTHON_USE_UNICODE_WRITER
static PyObject* __Pyx_PyObject_Format(PyObject* obj, PyObject* format_spec) {
    int ret;
    _PyUnicodeWriter writer;
    if (likely(PyFloat_CheckExact(obj))) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x03040000
        _PyUnicodeWriter_Init(&writer, 0);
#else
        _PyUnicodeWriter_Init(&writer);
#endif
        ret = _PyFloat_FormatAdvancedWriter(
            &writer,
            obj,
            format_spec, 0, PyUnicode_GET_LENGTH(format_spec));
    } else if (likely(PyLong_CheckExact(obj))) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x03040000
        _PyUnicodeWriter_Init(&writer, 0);
#else
        _PyUnicodeWriter_Init(&writer);
#endif
        ret = _PyLong_FormatAdvancedWriter(
            &writer,
            obj,
            format_spec, 0, PyUnicode_GET_LENGTH(format_spec));
    } else {
        return PyObject_Format(obj, format_spec);
    }
    if (unlikely(ret == -1)) {
        _PyUnicodeWriter_Dealloc(&writer);
        return NULL;
    }
    return _PyUnicodeWriter_Finish(&writer);
}
#endif

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      CYTHON_UNUSED Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind;
    Py_ssize_t i, char_pos;
    void *result_udata;
#if CYTHON_PEP393_ENABLED
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    result_udata = PyUnicode_DATA(result_uval);
#else
    result_uval = PyUnicode_FromUnicode(NULL, result_ulength);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = sizeof(Py_UNICODE);
    result_udata = PyUnicode_AS_UNICODE(result_uval);
#endif
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = PyTuple_GET_ITEM(value_tuple, i);
        if (unlikely(__Pyx_PyUnicode_READY(uval)))
            goto bad;
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        if (unlikely(!ulength))
            continue;
        if (unlikely(char_pos + ulength < 0))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
            memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
        } else {
            #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    result_ulength++;
    value_count++;
    return PyUnicode_Join(__pyx_empty_unicode, value_tuple);
#endif
}

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* GetAttr3 */
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r = __Pyx_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* GetTopmostException */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* IsLittleEndian */
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void)
{
  union {
    uint32_t u32;
    uint8_t u8[4];
  } S;
  S.u32 = 0x01020304;
  return S.u8[0] == 4;
}

/* BufferFormatCheck */
static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
                              __Pyx_BufFmt_StackElem* stack,
                              __Pyx_TypeInfo* type) {
  stack[0].field = &ctx->root;
  stack[0].parent_offset = 0;
  ctx->root.type = type;
  ctx->root.name = "buffer dtype";
  ctx->root.offset = 0;
  ctx->head = stack;
  ctx->head->field = &ctx->root;
  ctx->fmt_offset = 0;
  ctx->head->parent_offset = 0;
  ctx->new_packmode = '@';
  ctx->enc_packmode = '@';
  ctx->new_count = 1;
  ctx->enc_count = 0;
  ctx->enc_type = 0;
  ctx->is_complex = 0;
  ctx->is_valid_array = 0;
  ctx->struct_alignment = 0;
  while (type->typegroup == 'S') {
    ++ctx->head;
    ctx->head->field = type->fields;
    ctx->head->parent_offset = 0;
    type = type->fields->type;
  }
}
static int __Pyx_BufFmt_ParseNumber(const char** ts) {
    int count;
    const char* t = *ts;
    if (*t < '0' || *t > '9') {
      return -1;
    } else {
        count = *t++ - '0';
        while (*t >= '0' && *t <= '9') {
            count *= 10;
            count += *t++ - '0';
        }
    }
    *ts = t;
    return count;
}
static int __Pyx_BufFmt_ExpectNumber(const char **ts) {
    int number = __Pyx_BufFmt_ParseNumber(ts);
    if (number == -1)
        PyErr_Format(PyExc_ValueError,\
                     "Does not understand character buffer dtype format string ('%c')", **ts);
    return number;
}
static void __Pyx_BufFmt_RaiseUnexpectedChar(char ch) {
  PyErr_Format(PyExc_ValueError,
               "Unexpected format string character: '%c'", ch);
}
static const char* __Pyx_BufFmt_DescribeTypeChar(char ch, int is_complex) {
  switch (ch) {
    case '?': return "'bool'";
    case 'c': return "'char'";
    case 'b': return "'signed char'";
    case 'B': return "'unsigned char'";
    case 'h': return "'short'";
    case 'H': return "'unsigned short'";
    case 'i': return "'int'";
    case 'I': return "'unsigned int'";
    case 'l': return "'long'";
    case 'L': return "'unsigned long'";
    case 'q': return "'long long'";
    case 'Q': return "'unsigned long long'";
    case 'f': return (is_complex ? "'complex float'" : "'float'");
    case 'd': return (is_complex ? "'complex double'" : "'double'");
    case 'g': return (is_complex ? "'complex long double'" : "'long double'");
    case 'T': return "a struct";
    case 'O': return "Python object";
    case 'P': return "a pointer";
    case 's': case 'p': return "a string";
    case 0: return "end";
    default: return "unparseable format string";
  }
}
static size_t __Pyx_BufFmt_TypeCharToStandardSize(char ch, int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return 2;
    case 'i': case 'I': case 'l': case 'L': return 4;
    case 'q': case 'Q': return 8;
    case 'f': return (is_complex ? 8 : 4);
    case 'd': return (is_complex ? 16 : 8);
    case 'g': {
      PyErr_SetString(PyExc_ValueError, "Python does not define a standard format string size for long double ('g')..");
      return 0;
    }
    case 'O': case 'P': return sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
static size_t __Pyx_BufFmt_TypeCharToNativeSize(char ch, int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(short);
    case 'i': case 'I': return sizeof(int);
    case 'l': case 'L': return sizeof(long);
    #ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(PY_LONG_LONG);
    #endif
    case 'f': return sizeof(float) * (is_complex ? 2 : 1);
    case 'd': return sizeof(double) * (is_complex ? 2 : 1);
    case 'g': return sizeof(long double) * (is_complex ? 2 : 1);
    case 'O': case 'P': return sizeof(void*);
    default: {
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
  }
}
typedef struct { char c; short x; } __Pyx_st_short;
typedef struct { char c; int x; } __Pyx_st_int;
typedef struct { char c; long x; } __Pyx_st_long;
typedef struct { char c; float x; } __Pyx_st_float;
typedef struct { char c; double x; } __Pyx_st_double;
typedef struct { char c; long double x; } __Pyx_st_longdouble;
typedef struct { char c; void *x; } __Pyx_st_void_p;
#ifdef HAVE_LONG_LONG
typedef struct { char c; PY_LONG_LONG x; } __Pyx_st_longlong;
#endif
static size_t __Pyx_BufFmt_TypeCharToAlignment(char ch, CYTHON_UNUSED int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(__Pyx_st_short) - sizeof(short);
    case 'i': case 'I': return sizeof(__Pyx_st_int) - sizeof(int);
    case 'l': case 'L': return sizeof(__Pyx_st_long) - sizeof(long);
#ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(__Pyx_st_longlong) - sizeof(PY_LONG_LONG);
#endif
    case 'f': return sizeof(__Pyx_st_float) - sizeof(float);
    case 'd': return sizeof(__Pyx_st_double) - sizeof(double);
    case 'g': return sizeof(__Pyx_st_longdouble) - sizeof(long double);
    case 'P': case 'O': return sizeof(__Pyx_st_void_p) - sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
/* These are for computing the padding at the end of the struct to align
   on the first member of the struct. This will probably the same as above,
   but we don't have any guarantees.
 */
typedef struct { short x; char c; } __Pyx_pad_short;
typedef struct { int x; char c; } __Pyx_pad_int;
typedef struct { long x; char c; } __Pyx_pad_long;
typedef struct { float x; char c; } __Pyx_pad_float;
typedef struct { double x; char c; } __Pyx_pad_double;
typedef struct { long double x; char c; } __Pyx_pad_longdouble;
typedef struct { void *x; char c; } __Pyx_pad_void_p;
#ifdef HAVE_LONG_LONG
typedef struct { PY_LONG_LONG x; char c; } __Pyx_pad_longlong;
#endif
static size_t __Pyx_BufFmt_TypeCharToPadding(char ch, CYTHON_UNUSED int is_complex) {
  switch (ch) {
    case '?': case 'c': case 'b': case 'B': case 's': case 'p': return 1;
    case 'h': case 'H': return sizeof(__Pyx_pad_short) - sizeof(short);
    case 'i': case 'I': return sizeof(__Pyx_pad_int) - sizeof(int);
    case 'l': case 'L': return sizeof(__Pyx_pad_long) - sizeof(long);
#ifdef HAVE_LONG_LONG
    case 'q': case 'Q': return sizeof(__Pyx_pad_longlong) - sizeof(PY_LONG_LONG);
#endif
    case 'f': return sizeof(__Pyx_pad_float) - sizeof(float);
    case 'd': return sizeof(__Pyx_pad_double) - sizeof(double);
    case 'g': return sizeof(__Pyx_pad_longdouble) - sizeof(long double);
    case 'P': case 'O': return sizeof(__Pyx_pad_void_p) - sizeof(void*);
    default:
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
}
static char __Pyx_BufFmt_TypeCharToGroup(char ch, int is_complex) {
  switch (ch) {
    case 'c':
        return 'H';
    case 'b': case 'h': case 'i':
    case 'l': case 'q': case 's': case 'p':
        return 'I';
    case '?': case 'B': case 'H': case 'I': case 'L': case 'Q':
        return 'U';
    case 'f': case 'd': case 'g':
        return (is_complex ? 'C' : 'R');
    case 'O':
        return 'O';
    case 'P':
        return 'P';
    default: {
      __Pyx_BufFmt_RaiseUnexpectedChar(ch);
      return 0;
    }
  }
}
static void __Pyx_BufFmt_RaiseExpected(__Pyx_BufFmt_Context* ctx) {
  if (ctx->head == NULL || ctx->head->field == &ctx->root) {
    const char* expected;
    const char* quote;
    if (ctx->head == NULL) {
      expected = "end";
      quote = "";
    } else {
      expected = ctx->head->field->type->name;
      quote = "'";
    }
    PyErr_Format(PyExc_ValueError,
                 "Buffer dtype mismatch, expected %s%s%s but got %s",
                 quote, expected, quote,
                 __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex));
  } else {
    __Pyx_StructField* field = ctx->head->field;
    __Pyx_StructField* parent = (ctx->head - 1)->field;
    PyErr_Format(PyExc_ValueError,
                 "Buffer dtype mismatch, expected '%s' but got %s in '%s.%s'",
                 field->type->name, __Pyx_BufFmt_DescribeTypeChar(ctx->enc_type, ctx->is_complex),
                 parent->type->name, field->name);
  }
}
static int __Pyx_BufFmt_ProcessTypeChunk(__Pyx_BufFmt_Context* ctx) {
  char group;
  size_t size, offset, arraysize = 1;
  if (ctx->enc_type == 0) return 0;
  if (ctx->head->field->type->arraysize[0]) {
    int i, ndim = 0;
    if (ctx->enc_type == 's' || ctx->enc_type == 'p') {
        ctx->is_valid_array = ctx->head->field->type->ndim == 1;
        ndim = 1;
        if (ctx->enc_count != ctx->head->field->type->arraysize[0]) {
            PyErr_Format(PyExc_ValueError,
                         "Expected a dimension of size %zu, got %zu",
                         ctx->head->field->type->arraysize[0], ctx->enc_count);
            return -1;
        }
    }
    if (!ctx->is_valid_array) {
      PyErr_Format(PyExc_ValueError, "Expected %d dimensions, got %d",
                   ctx->head->field->type->ndim, ndim);
      return -1;
    }
    for (i = 0; i < ctx->head->field->type->ndim; i++) {
      arraysize *= ctx->head->field->type->arraysize[i];
    }
    ctx->is_valid_array = 0;
    ctx->enc_count = 1;
  }
  group = __Pyx_BufFmt_TypeCharToGroup(ctx->enc_type, ctx->is_complex);
  do {
    __Pyx_StructField* field = ctx->head->field;
    __Pyx_TypeInfo* type = field->type;
    if (ctx->enc_packmode == '@' || ctx->enc_packmode == '^') {
      size = __Pyx_BufFmt_TypeCharToNativeSize(ctx->enc_type, ctx->is_complex);
    } else {
      size = __Pyx_BufFmt_TypeCharToStandardSize(ctx->enc_type, ctx->is_complex);
    }
    if (ctx->enc_packmode == '@') {
      size_t align_at = __Pyx_BufFmt_TypeCharToAlignment(ctx->enc_type, ctx->is_complex);
      size_t align_mod_offset;
      if (align_at == 0) return -1;
      align_mod_offset = ctx->fmt_offset % align_at;
      if (align_mod_offset > 0) ctx->fmt_offset += align_at - align_mod_offset;
      if (ctx->struct_alignment == 0)
          ctx->struct_alignment = __Pyx_BufFmt_TypeCharToPadding(ctx->enc_type,
                                                                 ctx->is_complex);
    }
    if (type->size != size || type->typegroup != group) {
      if (type->typegroup == 'C' && type->fields != NULL) {
        size_t parent_offset = ctx->head->parent_offset + field->offset;
        ++ctx->head;
        ctx->head->field = type->fields;
        ctx->head->parent_offset = parent_offset;
        continue;
      }
      if ((type->typegroup == 'H' || group == 'H') && type->size == size) {
      } else {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return -1;
      }
    }
    offset = ctx->head->parent_offset + field->offset;
    if (ctx->fmt_offset != offset) {
      PyErr_Format(PyExc_ValueError,
                   "Buffer dtype mismatch; next field is at offset %" CYTHON_FORMAT_SSIZE_T "d but %" CYTHON_FORMAT_SSIZE_T "d expected",
                   (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset);
      return -1;
    }
    ctx->fmt_offset += size;
    if (arraysize)
      ctx->fmt_offset += (arraysize - 1) * size;
    --ctx->enc_count;
    while (1) {
      if (field == &ctx->root) {
        ctx->head = NULL;
        if (ctx->enc_count != 0) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return -1;
        }
        break;
      }
      ctx->head->field = ++field;
      if (field->type == NULL) {
        --ctx->head;
        field = ctx->head->field;
        continue;
      } else if (field->type->typegroup == 'S') {
        size_t parent_offset = ctx->head->parent_offset + field->offset;
        if (field->type->fields->type == NULL) continue;
        field = field->type->fields;
        ++ctx->head;
        ctx->head->field = field;
        ctx->head->parent_offset = parent_offset;
        break;
      } else {
        break;
      }
    }
  } while (ctx->enc_count);
  ctx->enc_type = 0;
  ctx->is_complex = 0;
  return 0;
}
static PyObject *
__pyx_buffmt_parse_array(__Pyx_BufFmt_Context* ctx, const char** tsp)
{
    const char *ts = *tsp;
    int i = 0, number, ndim;
    ++ts;
    if (ctx->new_count != 1) {
        PyErr_SetString(PyExc_ValueError,
                        "Cannot handle repeated arrays in format string");
        return NULL;
    }
    if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
    ndim = ctx->head->field->type->ndim;
    while (*ts && *ts != ')') {
        switch (*ts) {
            case ' ': case '\f': case '\r': case '\n': case '\t': case '\v':  continue;
            default:  break;
        }
        number = __Pyx_BufFmt_ExpectNumber(&ts);
        if (number == -1) return NULL;
        if (i < ndim && (size_t) number != ctx->head->field->type->arraysize[i])
            return PyErr_Format(PyExc_ValueError,
                        "Expected a dimension of size %zu, got %d",
                        ctx->head->field->type->arraysize[i], number);
        if (*ts != ',' && *ts != ')')
            return PyErr_Format(PyExc_ValueError,
                                "Expected a comma in format string, got '%c'", *ts);
        if (*ts == ',') ts++;
        i++;
    }
    if (i != ndim)
        return PyErr_Format(PyExc_ValueError, "Expected %d dimension(s), got %d",
                            ctx->head->field->type->ndim, i);
    if (!*ts) {
        PyErr_SetString(PyExc_ValueError,
                        "Unexpected end of format string, expected ')'");
        return NULL;
    }
    ctx->is_valid_array = 1;
    ctx->new_count = 1;
    *tsp = ++ts;
    return Py_None;
}
static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts) {
  int got_Z = 0;
  while (1) {
    switch(*ts) {
      case 0:
        if (ctx->enc_type != 0 && ctx->head == NULL) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return NULL;
        }
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        if (ctx->head != NULL) {
          __Pyx_BufFmt_RaiseExpected(ctx);
          return NULL;
        }
        return ts;
      case ' ':
      case '\r':
      case '\n':
        ++ts;
        break;
      case '<':
        if (!__Pyx_Is_Little_Endian()) {
          PyErr_SetString(PyExc_ValueError, "Little-endian buffer not supported on big-endian compiler");
          return NULL;
        }
        ctx->new_packmode = '=';
        ++ts;
        break;
      case '>':
      case '!':
        if (__Pyx_Is_Little_Endian()) {
          PyErr_SetString(PyExc_ValueError, "Big-endian buffer not supported on little-endian compiler");
          return NULL;
        }
        ctx->new_packmode = '=';
        ++ts;
        break;
      case '=':
      case '@':
      case '^':
        ctx->new_packmode = *ts++;
        break;
      case 'T':
        {
          const char* ts_after_sub;
          size_t i, struct_count = ctx->new_count;
          size_t struct_alignment = ctx->struct_alignment;
          ctx->new_count = 1;
          ++ts;
          if (*ts != '{') {
            PyErr_SetString(PyExc_ValueError, "Buffer acquisition: Expected '{' after 'T'");
            return NULL;
          }
          if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
          ctx->enc_type = 0;
          ctx->enc_count = 0;
          ctx->struct_alignment = 0;
          ++ts;
          ts_after_sub = ts;
          for (i = 0; i != struct_count; ++i) {
            ts_after_sub = __Pyx_BufFmt_CheckString(ctx, ts);
            if (!ts_after_sub) return NULL;
          }
          ts = ts_after_sub;
          if (struct_alignment) ctx->struct_alignment = struct_alignment;
        }
        break;
      case '}':
        {
          size_t alignment = ctx->struct_alignment;
          ++ts;
          if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
          ctx->enc_type = 0;
          if (alignment && ctx->fmt_offset % alignment) {
            ctx->fmt_offset += alignment - (ctx->fmt_offset % alignment);
          }
        }
        return ts;
      case 'x':
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        ctx->fmt_offset += ctx->new_count;
        ctx->new_count = 1;
        ctx->enc_count = 0;
        ctx->enc_type = 0;
        ctx->enc_packmode = ctx->new_packmode;
        ++ts;
        break;
      case 'Z':
        got_Z = 1;
        ++ts;
        if (*ts != 'f' && *ts != 'd' && *ts != 'g') {
          __Pyx_BufFmt_RaiseUnexpectedChar('Z');
          return NULL;
        }
        CYTHON_FALLTHROUGH;
      case '?': case 'c': case 'b': case 'B': case 'h': case 'H': case 'i': case 'I':
      case 'l': case 'L': case 'q': case 'Q':
      case 'f': case 'd': case 'g':
      case 'O': case 'p':
        if ((ctx->enc_type == *ts) && (got_Z == ctx->is_complex) &&
            (ctx->enc_packmode == ctx->new_packmode) && (!ctx->is_valid_array)) {
          ctx->enc_count += ctx->new_count;
          ctx->new_count = 1;
          got_Z = 0;
          ++ts;
          break;
        }
        CYTHON_FALLTHROUGH;
      case 's':
        if (__Pyx_BufFmt_ProcessTypeChunk(ctx) == -1) return NULL;
        ctx->enc_count = ctx->new_count;
        ctx->enc_packmode = ctx->new_packmode;
        ctx->enc_type = *ts;
        ctx->is_complex = got_Z;
        ++ts;
        ctx->new_count = 1;
        got_Z = 0;
        break;
      case ':':
        ++ts;
        while(*ts != ':') ++ts;
        ++ts;
        break;
      case '(':
        if (!__pyx_buffmt_parse_array(ctx, &ts)) return NULL;
        break;
      default:
        {
          int number = __Pyx_BufFmt_ExpectNumber(&ts);
          if (number == -1) return NULL;
          ctx->new_count = (size_t)number;
        }
    }
  }
}

/* BufferGetAndValidate */
  static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) {
  if (unlikely(info->buf == NULL)) return;
  if (info->suboffsets == __Pyx_minusones) info->suboffsets = NULL;
  __Pyx_ReleaseBuffer(info);
}
static void __Pyx_ZeroBuffer(Py_buffer* buf) {
  buf->buf = NULL;
  buf->obj = NULL;
  buf->strides = __Pyx_zeros;
  buf->shape = __Pyx_zeros;
  buf->suboffsets = __Pyx_minusones;
}
static int __Pyx__GetBufferAndValidate(
        Py_buffer* buf, PyObject* obj,  __Pyx_TypeInfo* dtype, int flags,
        int nd, int cast, __Pyx_BufFmt_StackElem* stack)
{
  buf->buf = NULL;
  if (unlikely(__Pyx_GetBuffer(obj, buf, flags) == -1)) {
    __Pyx_ZeroBuffer(buf);
    return -1;
  }
  if (unlikely(buf->ndim != nd)) {
    PyErr_Format(PyExc_ValueError,
                 "Buffer has wrong number of dimensions (expected %d, got %d)",
                 nd, buf->ndim);
    goto fail;
  }
  if (!cast) {
    __Pyx_BufFmt_Context ctx;
    __Pyx_BufFmt_Init(&ctx, stack, dtype);
    if (!__Pyx_BufFmt_CheckString(&ctx, buf->format)) goto fail;
  }
  if (unlikely((size_t)buf->itemsize != dtype->size)) {
    PyErr_Format(PyExc_ValueError,
      "Item size of buffer (%" CYTHON_FORMAT_SSIZE_T "d byte%s) does not match size of '%s' (%" CYTHON_FORMAT_SSIZE_T "d byte%s)",
      buf->itemsize, (buf->itemsize > 1) ? "s" : "",
      dtype->name, (Py_ssize_t)dtype->size, (dtype->size > 1) ? "s" : "");
    goto fail;
  }
  if (buf->suboffsets == NULL) buf->suboffsets = __Pyx_minusones;
  return 0;
fail:;
  __Pyx_SafeReleaseBuffer(buf);
  return -1;
}

/* BufferIndexError */
  static void __Pyx_RaiseBufferIndexError(int axis) {
  PyErr_Format(PyExc_IndexError,
     "Out of bounds on buffer access (axis %d)", axis);
}

/* UnpackUnboundCMethod */
  static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON
    #if PY_MAJOR_VERSION >= 3
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    #endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    }
#endif
    return 0;
}

/* CallUnboundCMethod0 */
  static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_ASSUME_SAFE_MACROS
    args = PyTuple_New(1);
    if (unlikely(!args)) goto bad;
    Py_INCREF(self);
    PyTuple_SET_ITEM(args, 0, self);
#else
    args = PyTuple_Pack(1, self);
    if (unlikely(!args)) goto bad;
#endif
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    Py_DECREF(args);
bad:
    return result;
}

/* py_dict_values */
  static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    if (PY_MAJOR_VERSION >= 3)
        return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_values, d);
    else
        return PyDict_Values(d);
}

/* ExtTypeTest */
  static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
                 Py_TYPE(obj)->tp_name, type->tp_name);
    return 0;
}

/* CallUnboundCMethod2 */
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    if (likely(cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            #if PY_VERSION_HEX >= 0x030700A0
            return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, args, 2);
            #else
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
            #endif
        }
        #if PY_VERSION_HEX >= 0x030700A0
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
        #endif
    }
    return __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(3);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 1, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 2, arg2);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(3, self, arg1, arg2);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* CallUnboundCMethod1 */
  #if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    if (likely(cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return (*(cfunc->func))(self, arg);
        } else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) {
            if (PY_VERSION_HEX >= 0x030700A0) {
                return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1);
            } else {
                return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
            }
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
        }
    }
    return __Pyx__CallUnboundCMethod1(cfunc, self, arg);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 1, arg);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(2, self, arg);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* py_dict_pop */
  static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B3
    if ((1)) {
        return _PyDict_Pop(d, key, default_value);
    } else
#endif
    if (default_value) {
        return __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyDict_Type_pop, d, key, default_value);
    } else {
        return __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyDict_Type_pop, d, key);
    }
}

/* PyObjectSetAttrStr */
  #if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_setattr))
        return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
#endif
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* PyObjectGetMethod */
  static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (descr != NULL) {
        *method = descr;
        return 0;
    }
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(name));
#endif
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod0 */
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* RaiseNoneIterError */
  static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError */
  static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else if (PyTuple_GET_SIZE(t) < index) {
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
    } else {
      __Pyx_RaiseTooManyValuesError(index);
    }
}

/* UnpackTuple2 */
  static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_COMPILING_IN_PYPY
    value1 = PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_COMPILING_IN_PYPY
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = Py_TYPE(iter)->tp_iternext;
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
  static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#elif PY_MAJOR_VERSION >= 3
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_COMPILING_IN_PYPY
    if (source_is_dict) {
        PyObject *key, *value;
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
            return -1;
        }
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
            return 0;
        }
        if (pitem) {
            PyObject* tuple = PyTuple_New(2);
            if (unlikely(!tuple)) {
                return -1;
            }
            Py_INCREF(key);
            Py_INCREF(value);
            PyTuple_SET_ITEM(tuple, 0, key);
            PyTuple_SET_ITEM(tuple, 1, value);
            *pitem = tuple;
        } else {
            if (pkey) {
                Py_INCREF(key);
                *pkey = key;
            }
            if (pvalue) {
                Py_INCREF(value);
                *pvalue = value;
            }
        }
        return 1;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyList_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* SetItemInt */
  static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) {
    int r;
    if (!j) return -1;
    r = PyObject_SetItem(o, j, v);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list,
                                               CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) {
            PyObject* old = PyList_GET_ITEM(o, n);
            Py_INCREF(v);
            PyList_SET_ITEM(o, n, v);
            Py_DECREF(old);
            return 1;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_ass_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return -1;
                    PyErr_Clear();
                }
            }
            return m->sq_ass_item(o, i, v);
        }
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (is_list || (PySequence_Check(o) && !PyDict_Check(o)))
#else
    if (is_list || PySequence_Check(o))
#endif
    {
        return PySequence_SetItem(o, i, v);
    }
#endif
    return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v);
}

/* GetException */
  #if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* Import */
  static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* HasAttr */
  static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (unlikely(!r)) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}

/* PyObject_GenericGetAttrNoDict */
  #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
  #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError */
  static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
}

/* SetupReduce */
  static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name_2);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#else
    if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
            if (likely(reduce_cython)) {
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* TypeImport */
  #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
    size_t size, enum __Pyx_ImportType_CheckSize check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if ((size_t)basicsize < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* CLineInTraceback */
  #ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
  static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
  #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

#if PY_MAJOR_VERSION < 3
static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags) {
    if (PyObject_CheckBuffer(obj)) return PyObject_GetBuffer(obj, view, flags);
    PyErr_Format(PyExc_TypeError, "'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
    return -1;
}
static void __Pyx_ReleaseBuffer(Py_buffer *view) {
    PyObject *obj = view->obj;
    if (!obj) return;
    if (PyObject_CheckBuffer(obj)) {
        PyBuffer_Release(view);
        return;
    }
    if ((0)) {}
    view->obj = NULL;
    Py_DECREF(obj);
}
#endif


  /* CIntFromPyVerify */
  #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* Print */
  #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static PyObject *__Pyx_GetStdout(void) {
    PyObject *f = PySys_GetObject((char *)"stdout");
    if (!f) {
        PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
    }
    return f;
}
static int __Pyx_Print(PyObject* f, PyObject *arg_tuple, int newline) {
    int i;
    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    Py_INCREF(f);
    for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
        PyObject* v;
        if (PyFile_SoftSpace(f, 1)) {
            if (PyFile_WriteString(" ", f) < 0)
                goto error;
        }
        v = PyTuple_GET_ITEM(arg_tuple, i);
        if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
            goto error;
        if (PyString_Check(v)) {
            char *s = PyString_AsString(v);
            Py_ssize_t len = PyString_Size(v);
            if (len > 0) {
                switch (s[len-1]) {
                    case ' ': break;
                    case '\f': case '\r': case '\n': case '\t': case '\v':
                        PyFile_SoftSpace(f, 0);
                        break;
                    default:  break;
                }
            }
        }
    }
    if (newline) {
        if (PyFile_WriteString("\n", f) < 0)
            goto error;
        PyFile_SoftSpace(f, 0);
    }
    Py_DECREF(f);
    return 0;
error:
    Py_DECREF(f);
    return -1;
}
#else
static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple, int newline) {
    PyObject* kwargs = 0;
    PyObject* result = 0;
    PyObject* end_string;
    if (unlikely(!__pyx_print)) {
        __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s_print);
        if (!__pyx_print)
            return -1;
    }
    if (stream) {
        kwargs = PyDict_New();
        if (unlikely(!kwargs))
            return -1;
        if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s_file, stream) < 0))
            goto bad;
        if (!newline) {
            end_string = PyUnicode_FromStringAndSize(" ", 1);
            if (unlikely(!end_string))
                goto bad;
            if (PyDict_SetItem(kwargs, __pyx_n_s_end, end_string) < 0) {
                Py_DECREF(end_string);
                goto bad;
            }
            Py_DECREF(end_string);
        }
    } else if (!newline) {
        if (unlikely(!__pyx_print_kwargs)) {
            __pyx_print_kwargs = PyDict_New();
            if (unlikely(!__pyx_print_kwargs))
                return -1;
            end_string = PyUnicode_FromStringAndSize(" ", 1);
            if (unlikely(!end_string))
                return -1;
            if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s_end, end_string) < 0) {
                Py_DECREF(end_string);
                return -1;
            }
            Py_DECREF(end_string);
        }
        kwargs = __pyx_print_kwargs;
    }
    result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
    if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
        Py_DECREF(kwargs);
    if (!result)
        return -1;
    Py_DECREF(result);
    return 0;
bad:
    if (kwargs != __pyx_print_kwargs)
        Py_XDECREF(kwargs);
    return -1;
}
#endif

/* None */
  static CYTHON_INLINE long __Pyx_pow_long(long b, long e) {
    long t = b;
    switch (e) {
        case 3:
            t *= b;
        CYTHON_FALLTHROUGH;
        case 2:
            t *= b;
        CYTHON_FALLTHROUGH;
        case 1:
            return t;
        case 0:
            return 1;
    }
    #if 1
    if (unlikely(e<0)) return 0;
    #endif
    t = 1;
    while (likely(e)) {
        t *= (b * (e&1)) | ((~e)&1);
        b *= b;
        e >>= 1;
    }
    return t;
}

/* Declarations */
  #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return ::std::complex< float >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return x + y*(__pyx_t_float_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      __pyx_t_float_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
  #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabsf(b.real) >= fabsf(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                float r = b.imag / b.real;
                float s = (float)(1.0) / (b.real + b.imag * r);
                return __pyx_t_float_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            float r = b.real / b.imag;
            float s = (float)(1.0) / (b.imag + b.real * r);
            return __pyx_t_float_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        if (b.imag == 0) {
            return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            float denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_float_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrtf(z.real*z.real + z.imag*z.imag);
          #else
            return hypotf(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
            __pyx_t_float_complex z;
            float r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    float denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        return __Pyx_c_prod_float(a, a);
                    case 3:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, a);
                    case 4:
                        z = __Pyx_c_prod_float(a, a);
                        return __Pyx_c_prod_float(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if (b.imag == 0) {
                    z.real = powf(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2f(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_float(a);
                theta = atan2f(a.imag, a.real);
            }
            lnr = logf(r);
            z_r = expf(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cosf(z_theta);
            z.imag = z_r * sinf(z_theta);
            return z;
        }
    #endif
#endif

/* Declarations */
  #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return ::std::complex< double >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return x + y*(__pyx_t_double_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      __pyx_t_double_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* Arithmetic */
  #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabs(b.real) >= fabs(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                double r = b.imag / b.real;
                double s = (double)(1.0) / (b.real + b.imag * r);
                return __pyx_t_double_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            double r = b.real / b.imag;
            double s = (double)(1.0) / (b.imag + b.real * r);
            return __pyx_t_double_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            double denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_double_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrt(z.real*z.real + z.imag*z.imag);
          #else
            return hypot(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
            __pyx_t_double_complex z;
            double r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    double denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        return __Pyx_c_prod_double(a, a);
                    case 3:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, a);
                    case 4:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if (b.imag == 0) {
                    z.real = pow(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_double(a);
                theta = atan2(a.imag, a.real);
            }
            lnr = log(r);
            z_r = exp(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cos(z_theta);
            z.imag = z_r * sin(z_theta);
            return z;
        }
    #endif
#endif

/* CIntFromPy */
  static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
  static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntToPy */
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(unsigned int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(unsigned int),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
  static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(unsigned int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (unsigned int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (unsigned int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0])
                case 2:
                    if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 4 * PyLong_SHIFT) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (unsigned int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(unsigned int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (unsigned int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(unsigned int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(unsigned int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            unsigned int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (unsigned int) -1;
        }
    } else {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyInt_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* PrintOne */
  #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static int __Pyx_PrintOne(PyObject* f, PyObject *o) {
    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    Py_INCREF(f);
    if (PyFile_SoftSpace(f, 0)) {
        if (PyFile_WriteString(" ", f) < 0)
            goto error;
    }
    if (PyFile_WriteObject(o, f, Py_PRINT_RAW) < 0)
        goto error;
    if (PyFile_WriteString("\n", f) < 0)
        goto error;
    Py_DECREF(f);
    return 0;
error:
    Py_DECREF(f);
    return -1;
    /* the line below is just to avoid C compiler
     * warnings about unused functions */
    return __Pyx_Print(f, NULL, 0);
}
#else
static int __Pyx_PrintOne(PyObject* stream, PyObject *o) {
    int res;
    PyObject* arg_tuple = PyTuple_Pack(1, o);
    if (unlikely(!arg_tuple))
        return -1;
    res = __Pyx_Print(stream, arg_tuple, 1);
    Py_DECREF(arg_tuple);
    return res;
}
#endif

/* FastTypeChecks */
  #if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* FetchCommonType */
  static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
    PyObject* fake_module;
    PyTypeObject* cached_type = NULL;
    fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI);
    if (!fake_module) return NULL;
    Py_INCREF(fake_module);
    cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name);
    if (cached_type) {
        if (!PyType_Check((PyObject*)cached_type)) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s is not a type object",
                type->tp_name);
            goto bad;
        }
        if (cached_type->tp_basicsize != type->tp_basicsize) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s has the wrong size, try recompiling",
                type->tp_name);
            goto bad;
        }
    } else {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
        PyErr_Clear();
        if (PyType_Ready(type) < 0) goto bad;
        if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0)
            goto bad;
        Py_INCREF(type);
        cached_type = type;
    }
done:
    Py_DECREF(fake_module);
    return cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* SwapException */
  #if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* PyObjectCallMethod1 */
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
}

/* CoroutineBase */
  #include <structmember.h>
#include <frameobject.h>
#define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom)
static int __Pyx_PyGen__FetchStopIterationValue(CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#if PY_VERSION_HEX >= 0x030300A0
        else if (Py_TYPE(ev) == (PyTypeObject*)PyExc_StopIteration) {
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            Py_DECREF(ev);
        }
#endif
        else if (unlikely(PyTuple_Check(ev))) {
            if (PyTuple_GET_SIZE(ev) >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#else
                value = PySequence_ITEM(ev, 0);
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if PY_VERSION_HEX >= 0x030300A0
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
    Py_DECREF(ev);
#else
    {
        PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args);
        Py_DECREF(ev);
        if (likely(args)) {
            value = PySequence_GetItem(args, 0);
            Py_DECREF(args);
        }
        if (unlikely(!value)) {
            __Pyx_ErrRestore(NULL, NULL, NULL);
            Py_INCREF(Py_None);
            value = Py_None;
        }
    }
#endif
    *pvalue = value;
    return 0;
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(CYTHON_UNUSED __pyx_CoroutineObject *gen) {
    const char *msg;
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
#define __Pyx_Coroutine_NotStartedError(gen)  (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_NotStartedError(CYTHON_UNUSED PyObject *gen) {
    const char *msg;
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check(gen)) {
        msg = "can't send non-None value to a just-started coroutine";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact(gen)) {
        msg = "can't send non-None value to a just-started async generator";
    #endif
    } else {
        msg = "can't send non-None value to a just-started generator";
    }
    PyErr_SetString(PyExc_TypeError, msg);
}
#define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing)  (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyTerminatedError(CYTHON_UNUSED PyObject *gen, PyObject *value, CYTHON_UNUSED int closing) {
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(!self->is_running);
    if (unlikely(self->resume_label == 0)) {
        if (unlikely(value && value != Py_None)) {
            return __Pyx_Coroutine_NotStartedError((PyObject*)self);
        }
    }
    if (unlikely(self->resume_label == -1)) {
        return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_type) {
        #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
        #else
        if (exc_state->exc_traceback) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_state->exc_traceback;
            PyFrameObject *f = tb->tb_frame;
            Py_XINCREF(tstate->frame);
            assert(f->f_back == NULL);
            f->f_back = tstate->frame;
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    self->is_running = 1;
    retval = self->body((PyObject *) self, tstate, value);
    self->is_running = 0;
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    return retval;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
    PyObject *exc_tb = exc_state->exc_traceback;
    if (likely(exc_tb)) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
#else
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
#endif
    }
}
static CYTHON_INLINE
PyObject *__Pyx_Coroutine_MethodReturn(CYTHON_UNUSED PyObject* gen, PyObject *retval) {
    if (unlikely(!retval)) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        if (!__Pyx_PyErr_Occurred()) {
            PyObject *exc = PyExc_StopIteration;
            #ifdef __Pyx_AsyncGen_USED
            if (__Pyx_AsyncGen_CheckExact(gen))
                exc = __Pyx_PyExc_StopAsyncIteration;
            #endif
            __Pyx_PyErr_SetNone(exc);
        }
    }
    return retval;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
            _PyGen_SetStopIterationValue(result);
        }
        Py_CLEAR(result);
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE
PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) {
    PyObject *ret;
    PyObject *val = NULL;
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    ret = __Pyx_Coroutine_SendEx(gen, val, 0);
    Py_XDECREF(val);
    return ret;
}
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        gen->is_running = 1;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
        {
            if (value == Py_None)
                ret = Py_TYPE(yf)->tp_iternext(yf);
            else
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value);
        }
        gen->is_running = 0;
        if (likely(ret)) {
            return ret;
        }
        retval = __Pyx_Coroutine_FinishDelegation(gen);
    } else {
        retval = __Pyx_Coroutine_SendEx(gen, value, 0);
    }
    return __Pyx_Coroutine_MethodReturn(self, retval);
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    PyObject *retval = NULL;
    int err = 0;
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        retval = __Pyx_Coroutine_Close(yf);
        if (!retval)
            return -1;
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        retval = __Pyx_Coroutine_Close(yf);
        if (!retval)
            return -1;
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL);
        if (!retval)
            return -1;
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
    } else
    #endif
    {
        PyObject *meth;
        gen->is_running = 1;
        meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_close);
        if (unlikely(!meth)) {
            if (!PyErr_ExceptionMatches(PyExc_AttributeError)) {
                PyErr_WriteUnraisable(yf);
            }
            PyErr_Clear();
        } else {
            retval = PyObject_CallFunction(meth, NULL);
            Py_DECREF(meth);
            if (!retval)
                err = -1;
        }
        gen->is_running = 0;
    }
    Py_XDECREF(retval);
    return err;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        gen->is_running = 1;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
            ret = Py_TYPE(yf)->tp_iternext(yf);
        gen->is_running = 0;
        if (likely(ret)) {
            return ret;
        }
        return __Pyx_Coroutine_FinishDelegation(gen);
    }
    return __Pyx_Coroutine_SendEx(gen, Py_None, 0);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, CYTHON_UNUSED PyObject *arg) {
    return __Pyx_Coroutine_Close(self);
}
static PyObject *__Pyx_Coroutine_Close(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *retval, *raised_exception;
    PyObject *yf = gen->yieldfrom;
    int err = 0;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    retval = __Pyx_Coroutine_SendEx(gen, NULL, 1);
    if (unlikely(retval)) {
        const char *msg;
        Py_DECREF(retval);
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
#if PY_VERSION_HEX < 0x03060000
            msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)";
#else
            msg = "async generator ignored GeneratorExit";
#endif
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        return NULL;
    }
    raised_exception = PyErr_Occurred();
    if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) {
        if (raised_exception) PyErr_Clear();
        Py_INCREF(Py_None);
        return Py_None;
    }
    return NULL;
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf = gen->yieldfrom;
    if (unlikely(gen->is_running))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    if (yf) {
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0));
            goto throw_here;
        }
        gen->is_running = 1;
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (!PyErr_ExceptionMatches(PyExc_AttributeError)) {
                    gen->is_running = 0;
                    return NULL;
                }
                PyErr_Clear();
                __Pyx_Coroutine_Undelegate(gen);
                gen->is_running = 0;
                goto throw_here;
            }
            if (likely(args)) {
                ret = PyObject_CallObject(meth, args);
            } else {
                ret = PyObject_CallFunctionObjArgs(meth, typ, val, tb, NULL);
            }
            Py_DECREF(meth);
        }
        gen->is_running = 0;
        Py_DECREF(yf);
        if (!ret) {
            ret = __Pyx_Coroutine_FinishDelegation(gen);
        }
        return __Pyx_Coroutine_MethodReturn(self, ret);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
    return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0));
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    Py_CLEAR(gen->yieldfrom);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    if (gen->gi_weakreflist != NULL)
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE
        if (PyObject_CallFinalizerFromDealloc(self))
#else
        Py_TYPE(gen)->tp_del(self);
        if (self->ob_refcnt > 0)
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    PyObject_GC_Del(gen);
}
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
#if !CYTHON_USE_TP_FINALIZE
    assert(self->ob_refcnt == 0);
    __Pyx_SET_REFCNT(self, 1);
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
#if PY_MAJOR_VERSION >= 3  || defined(PyErr_WarnFormat)
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
#else
        {PyObject *msg;
        char *cmsg;
        #if CYTHON_COMPILING_IN_PYPY
        msg = NULL;
        cmsg = (char*) "coroutine was never awaited";
        #else
        char *cname;
        PyObject *qualname;
        qualname = gen->gi_qualname;
        cname = PyString_AS_STRING(qualname);
        msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname);
        if (unlikely(!msg)) {
            PyErr_Clear();
            cmsg = (char*) "coroutine was never awaited";
        } else {
            cmsg = PyString_AS_STRING(msg);
        }
        #endif
        if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0))
            PyErr_WriteUnraisable(self);
        Py_XDECREF(msg);}
#endif
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *res = __Pyx_Coroutine_Close(self);
        if (unlikely(!res)) {
            if (PyErr_Occurred())
                PyErr_WriteUnraisable(self);
        } else {
            Py_DECREF(res);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
#if !CYTHON_USE_TP_FINALIZE
    assert(self->ob_refcnt > 0);
    if (--self->ob_refcnt == 0) {
        return;
    }
    {
        Py_ssize_t refcnt = self->ob_refcnt;
        _Py_NewReference(self);
        __Pyx_SET_REFCNT(self, refcnt);
    }
#if CYTHON_COMPILING_IN_CPYTHON
    assert(PyType_IS_GC(self->ob_type) &&
           _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
    _Py_DEC_REFTOTAL;
#endif
#ifdef COUNT_ALLOCS
    --Py_TYPE(self)->tp_frees;
    --Py_TYPE(self)->tp_allocs;
#endif
#endif
}
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
{
    PyObject *name = self->gi_name;
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context)
{
    PyObject *tmp;
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    tmp = self->gi_name;
    Py_INCREF(value);
    self->gi_name = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context)
{
    PyObject *name = self->gi_qualname;
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context)
{
    PyObject *tmp;
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    tmp = self->gi_qualname;
    Py_INCREF(value);
    self->gi_qualname = value;
    Py_XDECREF(tmp);
    return 0;
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
    gen->gi_weakreflist = NULL;
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    PyObject_GC_Track(gen);
    return gen;
}

/* PatchModuleWithCoroutine */
  static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) {
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
    int result;
    PyObject *globals, *result_obj;
    globals = PyDict_New();  if (unlikely(!globals)) goto ignore;
    result = PyDict_SetItemString(globals, "_cython_coroutine_type",
    #ifdef __Pyx_Coroutine_USED
        (PyObject*)__pyx_CoroutineType);
    #else
        Py_None);
    #endif
    if (unlikely(result < 0)) goto ignore;
    result = PyDict_SetItemString(globals, "_cython_generator_type",
    #ifdef __Pyx_Generator_USED
        (PyObject*)__pyx_GeneratorType);
    #else
        Py_None);
    #endif
    if (unlikely(result < 0)) goto ignore;
    if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore;
    if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore;
    result_obj = PyRun_String(py_code, Py_file_input, globals, globals);
    if (unlikely(!result_obj)) goto ignore;
    Py_DECREF(result_obj);
    Py_DECREF(globals);
    return module;
ignore:
    Py_XDECREF(globals);
    PyErr_WriteUnraisable(module);
    if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) {
        Py_DECREF(module);
        module = NULL;
    }
#else
    py_code++;
#endif
    return module;
}

/* PatchGeneratorABC */
  #ifndef CYTHON_REGISTER_ABCS
#define CYTHON_REGISTER_ABCS 1
#endif
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
static PyObject* __Pyx_patch_abc_module(PyObject *module);
static PyObject* __Pyx_patch_abc_module(PyObject *module) {
    module = __Pyx_Coroutine_patch_module(
        module, ""
"if _cython_generator_type is not None:\n"
"    try: Generator = _module.Generator\n"
"    except AttributeError: pass\n"
"    else: Generator.register(_cython_generator_type)\n"
"if _cython_coroutine_type is not None:\n"
"    try: Coroutine = _module.Coroutine\n"
"    except AttributeError: pass\n"
"    else: Coroutine.register(_cython_coroutine_type)\n"
    );
    return module;
}
#endif
static int __Pyx_patch_abc(void) {
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
    static int abc_patched = 0;
    if (CYTHON_REGISTER_ABCS && !abc_patched) {
        PyObject *module;
        module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections");
        if (!module) {
            PyErr_WriteUnraisable(NULL);
            if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning,
                    ((PY_MAJOR_VERSION >= 3) ?
                        "Cython module failed to register with collections.abc module" :
                        "Cython module failed to register with collections module"), 1) < 0)) {
                return -1;
            }
        } else {
            module = __Pyx_patch_abc_module(module);
            abc_patched = 1;
            if (unlikely(!module))
                return -1;
            Py_DECREF(module);
        }
        module = PyImport_ImportModule("backports_abc");
        if (module) {
            module = __Pyx_patch_abc_module(module);
            Py_XDECREF(module);
        }
        if (!module) {
            PyErr_Clear();
        }
    }
#else
    if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL);
#endif
    return 0;
}

/* Generator */
  static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL},
    {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     (char*) PyDoc_STR("object being iterated by 'yield from', or None")},
    {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     (char*) PyDoc_STR("name of the generator"), 0},
    {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     (char*) PyDoc_STR("qualified name of the generator"), 0},
    {0, 0, 0, 0, 0}
};
static PyTypeObject __pyx_GeneratorType_type = {
    PyVarObject_HEAD_INIT(0, 0)
    "generator",
    sizeof(__pyx_CoroutineObject),
    0,
    (destructor) __Pyx_Coroutine_dealloc,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE,
    0,
    (traverseproc) __Pyx_Coroutine_traverse,
    0,
    0,
    offsetof(__pyx_CoroutineObject, gi_weakreflist),
    0,
    (iternextfunc) __Pyx_Generator_Next,
    __pyx_Generator_methods,
    __pyx_Generator_memberlist,
    __pyx_Generator_getsets,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
#if CYTHON_USE_TP_FINALIZE
    0,
#else
    __Pyx_Coroutine_del,
#endif
    0,
#if CYTHON_USE_TP_FINALIZE
    __Pyx_Coroutine_del,
#elif PY_VERSION_HEX >= 0x030400a1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
    0,
#endif
};
static int __pyx_Generator_init(void) {
    __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
    __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter;
    __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type);
    if (unlikely(!__pyx_GeneratorType)) {
        return -1;
    }
    return 0;
}

/* CheckBinaryVersion */
  static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* InitStrings */
  static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
