/* Generated by Cython 0.29.13 */

#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_13"
#define CYTHON_HEX_VERSION 0x001D0DF0
#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)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#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
  #define PyObject_Unicode             PyObject_Str
#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 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) ? PyMethod_New(func, self) : (Py_INCREF(func), 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_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; 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__calcephpy
#define __PYX_HAVE_API__calcephpy
/* Early includes */
#include "calceph.h"
#include <string.h>
#include <stdio.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;


static const char *__pyx_f[] = {
  "calcephpy.pyx",
  "stringsource",
  "type.pxd",
};

/*--- Type declarations ---*/
struct __pyx_obj_9calcephpy_CalcephBin;

/* "calcephpy.pyx":463
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * cdef class CalcephBin:             # <<<<<<<<<<<<<<
 *     """A CalcephBin class to access the ephemeris file.
 * 
 */
struct __pyx_obj_9calcephpy_CalcephBin {
  PyObject_HEAD
  struct __pyx_vtabstruct_9calcephpy_CalcephBin *__pyx_vtab;
  t_calcephbin *_c_handle;
};



struct __pyx_vtabstruct_9calcephpy_CalcephBin {
  PyObject *(*close)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*prefetch)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___vector_compute)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___scalar_compute)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*compute)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___vector_compute_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___scalar_compute_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*compute_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___vector_orient_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___scalar_orient_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*orient_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*rotangmom_unit)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___vector_compute_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___scalar_compute_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*compute_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___vector_orient_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*__pyx___scalar_orient_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*orient_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*rotangmom_order)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstant)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstantsd)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstantvd)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstantss)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstantvs)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getconstantcount)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*getconstantindex)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getpositionrecordcount)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*getpositionrecordindex)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*getorientrecordcount)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*getorientrecordindex)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*gettimescale)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*gettimespan)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
  PyObject *(*getfileversion)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_9calcephpy_CalcephBin *__pyx_vtabptr_9calcephpy_CalcephBin;

/* --- 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);

/* 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);

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

/* 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);

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* 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

/* 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

/* 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

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

/* 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

/* 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

/* 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

/* 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

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

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

/* 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);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* 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);

/* 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

/* 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

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

/* 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);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* SliceObject.proto */
#define __Pyx_PyObject_DelSlice(obj, cstart, cstop, py_start, py_stop, py_slice, has_cstart, has_cstop, wraparound)\
    __Pyx_PyObject_SetSlice(obj, (PyObject*)NULL, cstart, cstop, py_start, py_stop, py_slice, has_cstart, has_cstop, wraparound)
static CYTHON_INLINE int __Pyx_PyObject_SetSlice(
        PyObject* obj, PyObject* value, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

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

/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

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

/* 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

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* 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

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

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* 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

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* 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);

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

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *);

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

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

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

/* 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)

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

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

static PyObject *__pyx_f_9calcephpy_10CalcephBin_close(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_prefetch(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_rotangmom_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_rotangmom_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstant(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantsd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantvd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantss(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantvs(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getpositionrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getpositionrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getorientrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getorientrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_gettimescale(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_gettimespan(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getfileversion(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/

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

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

/* Module declarations from '__builtin__' */

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

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

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

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

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

/* Module declarations from 'cpython' */

/* Module declarations from 'calcephpy' */
static PyTypeObject *__pyx_ptype_9calcephpy_CalcephBin = 0;
static void __pyx_f_9calcephpy___callbackerrorhandler(char const *); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_double(double *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_double(double *, Py_ssize_t); /*proto*/
#define __Pyx_MODULE_NAME "calcephpy"
extern int __pyx_module_is_main_calcephpy;
int __pyx_module_is_main_calcephpy = 0;

/* Implementation of 'calcephpy' */
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_TypeError;
static const char __pyx_k_i[] = "i";
static const char __pyx_k_k[] = "k";
static const char __pyx_k_n[] = "n";
static const char __pyx_k_s[] = "s";
static const char __pyx_k_v[] = "v";
static const char __pyx_k_IO[] = "IO";
static const char __pyx_k_bs[] = "bs";
static const char __pyx_k_v1[] = "v1";
static const char __pyx_k_v2[] = "v2";
static const char __pyx_k_BUS[] = "BUS";
static const char __pyx_k_DIA[] = "DIA";
static const char __pyx_k_JD0[] = "JD0";
static const char __pyx_k_MAB[] = "MAB";
static const char __pyx_k_NIX[] = "NIX";
static const char __pyx_k_PAN[] = "PAN";
static const char __pyx_k_SAO[] = "SAO";
static const char __pyx_k_SUN[] = "SUN";
static const char __pyx_k_doc[] = "__doc__";
static const char __pyx_k_res[] = "res";
static const char __pyx_k_FAYE[] = "FAYE";
static const char __pyx_k_GUNN[] = "GUNN";
static const char __pyx_k_HATI[] = "HATI";
static const char __pyx_k_IRAS[] = "IRAS";
static const char __pyx_k_KALE[] = "KALE";
static const char __pyx_k_KARI[] = "KARI";
static const char __pyx_k_KORE[] = "KORE";
static const char __pyx_k_LEDA[] = "LEDA";
static const char __pyx_k_LEVY[] = "LEVY";
static const char __pyx_k_LOGE[] = "LOGE";
static const char __pyx_k_MARS[] = "MARS";
static const char __pyx_k_MOON[] = "MOON";
static const char __pyx_k_NESO[] = "NESO";
static const char __pyx_k_PUCK[] = "PUCK";
static const char __pyx_k_RHEA[] = "RHEA";
static const char __pyx_k_STYX[] = "STYX";
static const char __pyx_k_WOLF[] = "WOLF";
static const char __pyx_k_YMIR[] = "YMIR";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_name[] = "__name__";
static const char __pyx_k_open[] = "open";
static const char __pyx_k_slen[] = "slen";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_time[] = "time";
static const char __pyx_k_unit[] = "unit";
static const char __pyx_k_3_4_1[] = "3.4.1";
static const char __pyx_k_AEGIR[] = "AEGIR";
static const char __pyx_k_AITNE[] = "AITNE";
static const char __pyx_k_ANTHE[] = "ANTHE";
static const char __pyx_k_AOEDE[] = "AOEDE";
static const char __pyx_k_ARCHE[] = "ARCHE";
static const char __pyx_k_AREND[] = "AREND";
static const char __pyx_k_ARIEL[] = "ARIEL";
static const char __pyx_k_ATLAS[] = "ATLAS";
static const char __pyx_k_CARME[] = "CARME";
static const char __pyx_k_CARPO[] = "CARPO";
static const char __pyx_k_CLARK[] = "CLARK";
static const char __pyx_k_CUPID[] = "CUPID";
static const char __pyx_k_DIONE[] = "DIONE";
static const char __pyx_k_EARTH[] = "EARTH";
static const char __pyx_k_ELARA[] = "ELARA";
static const char __pyx_k_ENCKE[] = "ENCKE";
static const char __pyx_k_GREIP[] = "GREIP";
static const char __pyx_k_HELIN[] = "HELIN";
static const char __pyx_k_HERSE[] = "HERSE";
static const char __pyx_k_HYDRA[] = "HYDRA";
static const char __pyx_k_JANUS[] = "JANUS";
static const char __pyx_k_KOPFF[] = "KOPFF";
static const char __pyx_k_MAURY[] = "MAURY";
static const char __pyx_k_METIS[] = "METIS";
static const char __pyx_k_MIMAS[] = "MIMAS";
static const char __pyx_k_MNEME[] = "MNEME";
static const char __pyx_k_NAIAD[] = "NAIAD";
static const char __pyx_k_NARVI[] = "NARVI";
static const char __pyx_k_PLUTO[] = "PLUTO";
static const char __pyx_k_SKOLL[] = "SKOLL";
static const char __pyx_k_THEBE[] = "THEBE";
static const char __pyx_k_TITAN[] = "TITAN";
static const char __pyx_k_VENUS[] = "VENUS";
static const char __pyx_k_ascii[] = "ascii";
static const char __pyx_k_close[] = "close";
static const char __pyx_k_cname[] = "cname";
static const char __pyx_k_dtype[] = "dtype";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_order[] = "order";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_vlist[] = "vlist";
static const char __pyx_k_zeros[] = "zeros";
static const char __pyx_k_ANANKE[] = "ANANKE";
static const char __pyx_k_BESTLA[] = "BESTLA";
static const char __pyx_k_BIANCA[] = "BIANCA";
static const char __pyx_k_CHARON[] = "CHARON";
static const char __pyx_k_DANIEL[] = "DANIEL";
static const char __pyx_k_DEIMOS[] = "DEIMOS";
static const char __pyx_k_EUROPA[] = "EUROPA";
static const char __pyx_k_FENRIR[] = "FENRIR";
static const char __pyx_k_FINLAY[] = "FINLAY";
static const char __pyx_k_FORBES[] = "FORBES";
static const char __pyx_k_GICLAS[] = "GICLAS";
static const char __pyx_k_HALLEY[] = "HALLEY";
static const char __pyx_k_HELENE[] = "HELENE";
static const char __pyx_k_HELIKE[] = "HELIKE";
static const char __pyx_k_HOLMES[] = "HOLMES";
static const char __pyx_k_HOWELL[] = "HOWELL";
static const char __pyx_k_IJIRAQ[] = "IJIRAQ";
static const char __pyx_k_ISONOE[] = "ISONOE";
static const char __pyx_k_JULIET[] = "JULIET";
static const char __pyx_k_KALYKE[] = "KALYKE";
static const char __pyx_k_KIVIUQ[] = "KIVIUQ";
static const char __pyx_k_KOJIMA[] = "KOJIMA";
static const char __pyx_k_NEREID[] = "NEREID";
static const char __pyx_k_NaifId[] = "NaifId";
static const char __pyx_k_OBERON[] = "OBERON";
static const char __pyx_k_OLBERS[] = "OLBERS";
static const char __pyx_k_PHOBOS[] = "PHOBOS";
static const char __pyx_k_PHOEBE[] = "PHOEBE";
static const char __pyx_k_PORTIA[] = "PORTIA";
static const char __pyx_k_SATURN[] = "SATURN";
static const char __pyx_k_SINOPE[] = "SINOPE";
static const char __pyx_k_SKATHI[] = "SKATHI";
static const char __pyx_k_SPONDE[] = "SPONDE";
static const char __pyx_k_SURTUR[] = "SURTUR";
static const char __pyx_k_TARQEQ[] = "TARQEQ";
static const char __pyx_k_TARVOS[] = "TARVOS";
static const char __pyx_k_TAYLOR[] = "TAYLOR";
static const char __pyx_k_TETHYS[] = "TETHYS";
static const char __pyx_k_THRYMR[] = "THRYMR";
static const char __pyx_k_THYONE[] = "THYONE";
static const char __pyx_k_TRITON[] = "TRITON";
static const char __pyx_k_TUTTLE[] = "TUTTLE";
static const char __pyx_k_URANUS[] = "URANUS";
static const char __pyx_k_WILD_1[] = "WILD_1";
static const char __pyx_k_WILD_2[] = "WILD_2";
static const char __pyx_k_WILD_3[] = "WILD_3";
static const char __pyx_k_WILD_4[] = "WILD_4";
static const char __pyx_k_center[] = "center";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_module[] = "__module__";
static const char __pyx_k_name_2[] = "name";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_target[] = "target";
static const char __pyx_k_tolist[] = "tolist";
static const char __pyx_k_AEGAEON[] = "AEGAEON";
static const char __pyx_k_AUTONOE[] = "AUTONOE";
static const char __pyx_k_BELINDA[] = "BELINDA";
static const char __pyx_k_BOETHIN[] = "BOETHIN";
static const char __pyx_k_CALIBAN[] = "CALIBAN";
static const char __pyx_k_CALYPSO[] = "CALYPSO";
static const char __pyx_k_CIFFREO[] = "CIFFREO";
static const char __pyx_k_CYLLENE[] = "CYLLENE";
static const char __pyx_k_DAPHNIS[] = "DAPHNIS";
static const char __pyx_k_DESPINA[] = "DESPINA";
static const char __pyx_k_DUBIAGO[] = "DUBIAGO";
static const char __pyx_k_ERINOME[] = "ERINOME";
static const char __pyx_k_EUANTHE[] = "EUANTHE";
static const char __pyx_k_EUPORIE[] = "EUPORIE";
static const char __pyx_k_FORNJOT[] = "FORNJOT";
static const char __pyx_k_GALATEA[] = "GALATEA";
static const char __pyx_k_HIMALIA[] = "HIMALIA";
static const char __pyx_k_IAPETUS[] = "IAPETUS";
static const char __pyx_k_IOCASTE[] = "IOCASTE";
static const char __pyx_k_JOHNSON[] = "JOHNSON";
static const char __pyx_k_JUPITER[] = "JUPITER";
static const char __pyx_k_KLEMOLA[] = "KLEMOLA";
static const char __pyx_k_KOWAL_1[] = "KOWAL_1";
static const char __pyx_k_KOWAL_2[] = "KOWAL_2";
static const char __pyx_k_LARISSA[] = "LARISSA";
static const char __pyx_k_LOVAS_1[] = "LOVAS_1";
static const char __pyx_k_LOVAS_2[] = "LOVAS_2";
static const char __pyx_k_MERCURY[] = "MERCURY";
static const char __pyx_k_METHONE[] = "METHONE";
static const char __pyx_k_MIRANDA[] = "MIRANDA";
static const char __pyx_k_MUELLER[] = "MUELLER";
static const char __pyx_k_NEPTUNE[] = "NEPTUNE";
static const char __pyx_k_OPHELIA[] = "OPHELIA";
static const char __pyx_k_PAALIAQ[] = "PAALIAQ";
static const char __pyx_k_PALLENE[] = "PALLENE";
static const char __pyx_k_PANDORA[] = "PANDORA";
static const char __pyx_k_PERDITA[] = "PERDITA";
static const char __pyx_k_PROTEUS[] = "PROTEUS";
static const char __pyx_k_SANGUIN[] = "SANGUIN";
static const char __pyx_k_SETEBOS[] = "SETEBOS";
static const char __pyx_k_SIARNAQ[] = "SIARNAQ";
static const char __pyx_k_SYCORAX[] = "SYCORAX";
static const char __pyx_k_TAYGETE[] = "TAYGETE";
static const char __pyx_k_TELESTO[] = "TELESTO";
static const char __pyx_k_TITANIA[] = "TITANIA";
static const char __pyx_k_TRITTON[] = "TRITTON";
static const char __pyx_k_UMBRIEL[] = "UMBRIEL";
static const char __pyx_k_UNIT_AU[] = "UNIT_AU";
static const char __pyx_k_UNIT_KM[] = "UNIT_KM";
static const char __pyx_k_WHIPPLE[] = "WHIPPLE";
static const char __pyx_k_compute[] = "compute";
static const char __pyx_k_float64[] = "float64";
static const char __pyx_k_ndarray[] = "ndarray";
static const char __pyx_k_prepare[] = "__prepare__";
static const char __pyx_k_typeres[] = "typeres";
static const char __pyx_k_ADRASTEA[] = "ADRASTEA";
static const char __pyx_k_ALBIORIX[] = "ALBIORIX";
static const char __pyx_k_AMALTHEA[] = "AMALTHEA";
static const char __pyx_k_ASTEROID[] = "ASTEROID";
static const char __pyx_k_BEBHIONN[] = "BEBHIONN";
static const char __pyx_k_BORRELLY[] = "BORRELLY";
static const char __pyx_k_BROOKS_2[] = "BROOKS_2";
static const char __pyx_k_CALLISTO[] = "CALLISTO";
static const char __pyx_k_CHALDENE[] = "CHALDENE";
static const char __pyx_k_CHERNYKH[] = "CHERNYKH";
static const char __pyx_k_CORDELIA[] = "CORDELIA";
static const char __pyx_k_CRESSIDA[] = "CRESSIDA";
static const char __pyx_k_ERRIAPUS[] = "ERRIAPUS";
static const char __pyx_k_EUKELADE[] = "EUKELADE";
static const char __pyx_k_EURYDOME[] = "EURYDOME";
static const char __pyx_k_FARBAUTI[] = "FARBAUTI";
static const char __pyx_k_GANYMEDE[] = "GANYMEDE";
static const char __pyx_k_HALIMEDE[] = "HALIMEDE";
static const char __pyx_k_HEGEMONE[] = "HEGEMONE";
static const char __pyx_k_HERMIPPE[] = "HERMIPPE";
static const char __pyx_k_HYPERION[] = "HYPERION";
static const char __pyx_k_HYROKKIN[] = "HYROKKIN";
static const char __pyx_k_JARNSAXA[] = "JARNSAXA";
static const char __pyx_k_KERBEROS[] = "KERBEROS";
static const char __pyx_k_KOHOUTEK[] = "KOHOUTEK";
static const char __pyx_k_LONGMORE[] = "LONGMORE";
static const char __pyx_k_LYSITHEA[] = "LYSITHEA";
static const char __pyx_k_MACHHOLZ[] = "MACHHOLZ";
static const char __pyx_k_MARGARET[] = "MARGARET";
static const char __pyx_k_ORTHOSIE[] = "ORTHOSIE";
static const char __pyx_k_PASIPHAE[] = "PASIPHAE";
static const char __pyx_k_PASITHEE[] = "PASITHEE";
static const char __pyx_k_PROSPERO[] = "PROSPERO";
static const char __pyx_k_PSAMATHE[] = "PSAMATHE";
static const char __pyx_k_ROSALIND[] = "ROSALIND";
static const char __pyx_k_SCHUSTER[] = "SCHUSTER";
static const char __pyx_k_STEPHANO[] = "STEPHANO";
static const char __pyx_k_SUTTUNGR[] = "SUTTUNGR";
static const char __pyx_k_TEMPEL_1[] = "TEMPEL_1";
static const char __pyx_k_TEMPEL_2[] = "TEMPEL_2";
static const char __pyx_k_THALASSA[] = "THALASSA";
static const char __pyx_k_THEMISTO[] = "THEMISTO";
static const char __pyx_k_TRINCULO[] = "TRINCULO";
static const char __pyx_k_UNIT_DAY[] = "UNIT_DAY";
static const char __pyx_k_UNIT_RAD[] = "UNIT_RAD";
static const char __pyx_k_UNIT_SEC[] = "UNIT_SEC";
static const char __pyx_k_WIRTANEN[] = "WIRTANEN";
static const char __pyx_k_c_string[] = "c_string";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_prefetch[] = "prefetch";
static const char __pyx_k_qualname[] = "__qualname__";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_userfunc[] = "userfunc";
static const char __pyx_k_BERGELMIR[] = "BERGELMIR";
static const char __pyx_k_BRADFIELD[] = "BRADFIELD";
static const char __pyx_k_CROMMELIN[] = "CROMMELIN";
static const char __pyx_k_Constants[] = "Constants";
static const char __pyx_k_DESDEMONA[] = "DESDEMONA";
static const char __pyx_k_DU_TOIT_1[] = "DU_TOIT_1";
static const char __pyx_k_D__ARREST[] = "D__ARREST";
static const char __pyx_k_ENCELADUS[] = "ENCELADUS";
static const char __pyx_k_FERDINAND[] = "FERDINAND";
static const char __pyx_k_FRANCISCO[] = "FRANCISCO";
static const char __pyx_k_GEHRELS_1[] = "GEHRELS_1";
static const char __pyx_k_GEHRELS_2[] = "GEHRELS_2";
static const char __pyx_k_GEHRELS_3[] = "GEHRELS_3";
static const char __pyx_k_HALE_BOPP[] = "HALE_BOPP";
static const char __pyx_k_HARPALYKE[] = "HARPALYKE";
static const char __pyx_k_HARTLEY_1[] = "HARTLEY_1";
static const char __pyx_k_HARTLEY_2[] = "HARTLEY_2";
static const char __pyx_k_HARTLEY_3[] = "HARTLEY_3";
static const char __pyx_k_HYAKUTAKE[] = "HYAKUTAKE";
static const char __pyx_k_LAOMEDEIA[] = "LAOMEDEIA";
static const char __pyx_k_MAGACLITE[] = "MAGACLITE";
static const char __pyx_k_MUELLER_2[] = "MUELLER_2";
static const char __pyx_k_MUELLER_3[] = "MUELLER_3";
static const char __pyx_k_NEUJMIN_1[] = "NEUJMIN_1";
static const char __pyx_k_NEUJMIN_2[] = "NEUJMIN_2";
static const char __pyx_k_NEUJMIN_3[] = "NEUJMIN_3";
static const char __pyx_k_PRAXIDIKE[] = "PRAXIDIKE";
static const char __pyx_k_RUSSELL_1[] = "RUSSELL_1";
static const char __pyx_k_RUSSELL_2[] = "RUSSELL_2";
static const char __pyx_k_RUSSELL_3[] = "RUSSELL_3";
static const char __pyx_k_RUSSELL_4[] = "RUSSELL_4";
static const char __pyx_k_THELXINOE[] = "THELXINOE";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_VAISALA_1[] = "VAISALA_1";
static const char __pyx_k_calcephpy[] = "calcephpy";
static const char __pyx_k_filename1[] = "filename1";
static const char __pyx_k_metaclass[] = "__metaclass__";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_CALLIRRHOE[] = "CALLIRRHOE";
static const char __pyx_k_COMAS_SOLA[] = "COMAS_SOLA";
static const char __pyx_k_CalcephBin[] = "CalcephBin";
static const char __pyx_k_EPIMETHEUS[] = "EPIMETHEUS";
static const char __pyx_k_HARRINGTON[] = "HARRINGTON";
static const char __pyx_k_KALLICHORE[] = "KALLICHORE";
static const char __pyx_k_MUNDILFARI[] = "MUNDILFARI";
static const char __pyx_k_POLYDEUCES[] = "POLYDEUCES";
static const char __pyx_k_PROMETHEUS[] = "PROMETHEUS";
static const char __pyx_k_REINMUTH_1[] = "REINMUTH_1";
static const char __pyx_k_REINMUTH_2[] = "REINMUTH_2";
static const char __pyx_k_SCHAUMASSE[] = "SCHAUMASSE";
static const char __pyx_k_TAKAMIZAWA[] = "TAKAMIZAWA";
static const char __pyx_k_USE_NAIFID[] = "USE_NAIFID";
static const char __pyx_k_VAN_HOUTEN[] = "VAN_HOUTEN";
static const char __pyx_k_arfilename[] = "arfilename";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_supportlen[] = "supportlen";
static const char __pyx_k_KEARNS_KWEE[] = "KEARNS_KWEE";
static const char __pyx_k_KOWAL_MRKOS[] = "KOWAL_MRKOS";
static const char __pyx_k_MemoryError[] = "MemoryError";
static const char __pyx_k_PONS_BROOKS[] = "PONS_BROOKS";
static const char __pyx_k_SHOEMAKER_1[] = "SHOEMAKER_1";
static const char __pyx_k_SHOEMAKER_2[] = "SHOEMAKER_2";
static const char __pyx_k_SHOEMAKER_3[] = "SHOEMAKER_3";
static const char __pyx_k_TIME_CENTER[] = "TIME_CENTER";
static const char __pyx_k_TIME_TTMTDB[] = "TIME_TTMTDB";
static const char __pyx_k_getconstant[] = "getconstant";
static const char __pyx_k_gettimespan[] = "gettimespan";
static const char __pyx_k_orient_unit[] = "orient_unit";
static const char __pyx_k_typehandler[] = "typehandler";
static const char __pyx_k_AREND_RIGAUX[] = "AREND_RIGAUX";
static const char __pyx_k_BOWELL_SKIFF[] = "BOWELL_SKIFF";
static const char __pyx_k_HARTLEY_IRAS[] = "HARTLEY_IRAS";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_TIME_TCGMTCB[] = "TIME_TCGMTCB";
static const char __pyx_k_c_arfilename[] = "c_arfilename";
static const char __pyx_k_compute_unit[] = "compute_unit";
static const char __pyx_k_exportresult[] = "__exportresult";
static const char __pyx_k_gettimescale[] = "gettimescale";
static const char __pyx_k_orient_order[] = "orient_order";
static const char __pyx_k_pyarfilename[] = "pyarfilename";
static const char __pyx_k_staticmethod[] = "staticmethod";
static const char __pyx_k_DE_VICO_SWIFT[] = "DE_VICO_SWIFT";
static const char __pyx_k_HANEDA_CAMPOS[] = "HANEDA_CAMPOS";
static const char __pyx_k_HOLT_OLMSTEAD[] = "HOLT_OLMSTEAD";
static const char __pyx_k_KOWAL_VAVROVA[] = "KOWAL_VAVROVA";
static const char __pyx_k_PONS_WINNECKE[] = "PONS_WINNECKE";
static const char __pyx_k_SIDING_SPRING[] = "SIDING_SPRING";
static const char __pyx_k_SWIFT_GEHRELS[] = "SWIFT_GEHRELS";
static const char __pyx_k_TEMPEL_TUTTLE[] = "TEMPEL_TUTTLE";
static const char __pyx_k_TSUCHINSHAN_1[] = "TSUCHINSHAN_1";
static const char __pyx_k_TSUCHINSHAN_2[] = "TSUCHINSHAN_2";
static const char __pyx_k_URATA_NIIJIMA[] = "URATA_NIIJIMA";
static const char __pyx_k_VERSION_MAJOR[] = "VERSION_MAJOR";
static const char __pyx_k_VERSION_MINOR[] = "VERSION_MINOR";
static const char __pyx_k_VERSION_PATCH[] = "VERSION_PATCH";
static const char __pyx_k_WISEMAN_SKIFF[] = "WISEMAN_SKIFF";
static const char __pyx_k_calcephpy_pyx[] = "calcephpy.pyx";
static const char __pyx_k_compute_order[] = "compute_order";
static const char __pyx_k_getconstantsd[] = "getconstantsd";
static const char __pyx_k_getconstantss[] = "getconstantss";
static const char __pyx_k_getconstantvd[] = "getconstantvd";
static const char __pyx_k_getconstantvs[] = "getconstantvs";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_PARKER_HARTLEY[] = "PARKER_HARTLEY";
static const char __pyx_k_PETERS_HARTLEY[] = "PETERS_HARTLEY";
static const char __pyx_k_STEPHAN_OTERMA[] = "STEPHAN_OTERMA";
static const char __pyx_k_VAN_BIESBROECK[] = "VAN_BIESBROECK";
static const char __pyx_k_VERSION_STRING[] = "VERSION_STRING";
static const char __pyx_k_getfileversion[] = "getfileversion";
static const char __pyx_k_getversion_str[] = "getversion_str";
static const char __pyx_k_rotangmom_unit[] = "rotangmom_unit";
static const char __pyx_k_scalar_compute[] = "__scalar_compute";
static const char __pyx_k_vector_compute[] = "__vector_compute";
static const char __pyx_k_BRORSEN_METCALF[] = "BRORSEN_METCALF";
static const char __pyx_k_DU_TOIT_HARTLEY[] = "DU_TOIT_HARTLEY";
static const char __pyx_k_JACKSON_NEUJMIN[] = "JACKSON_NEUJMIN";
static const char __pyx_k_MARS_BARYCENTER[] = "MARS_BARYCENTER";
static const char __pyx_k_SHAJN_SCHALDACH[] = "SHAJN_SCHALDACH";
static const char __pyx_k_SINGER_BREWSTER[] = "SINGER_BREWSTER";
static const char __pyx_k_WOLF_HARRINGTON[] = "WOLF_HARRINGTON";
static const char __pyx_k_rotangmom_order[] = "rotangmom_order";
static const char __pyx_k_seterrorhandler[] = "seterrorhandler";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_ASHBROOK_JACKSON[] = "ASHBROOK_JACKSON";
static const char __pyx_k_DENNING_FUJIKAWA[] = "DENNING_FUJIKAWA";
static const char __pyx_k_GIACOBINI_ZINNER[] = "GIACOBINI_ZINNER";
static const char __pyx_k_GRIGG_SKJELLERUP[] = "GRIGG_SKJELLERUP";
static const char __pyx_k_HARRINGTON_ABELL[] = "HARRINGTON_ABELL";
static const char __pyx_k_MAX_CONSTANTNAME[] = "MAX_CONSTANTNAME";
static const char __pyx_k_PLUTO_BARYCENTER[] = "PLUTO_BARYCENTER";
static const char __pyx_k_SHOEMAKER_HOLT_1[] = "SHOEMAKER_HOLT_1";
static const char __pyx_k_SHOEMAKER_LEVY_1[] = "SHOEMAKER_LEVY_1";
static const char __pyx_k_SHOEMAKER_LEVY_2[] = "SHOEMAKER_LEVY_2";
static const char __pyx_k_SHOEMAKER_LEVY_9[] = "SHOEMAKER_LEVY_9";
static const char __pyx_k_VENUS_BARYCENTER[] = "VENUS_BARYCENTER";
static const char __pyx_k_getconstantcount[] = "getconstantcount";
static const char __pyx_k_getconstantindex[] = "getconstantindex";
static const char __pyx_k_HELIN_ROMAN_ALU_1[] = "HELIN_ROMAN_ALU_1";
static const char __pyx_k_HERSCHEL_RIGOLLET[] = "HERSCHEL_RIGOLLET";
static const char __pyx_k_SATURN_BARYCENTER[] = "SATURN_BARYCENTER";
static const char __pyx_k_SLAUGHTER_BURNHAM[] = "SLAUGHTER_BURNHAM";
static const char __pyx_k_SMIRNOVA_CHERNYKH[] = "SMIRNOVA_CHERNYKH";
static const char __pyx_k_URANUS_BARYCENTER[] = "URANUS_BARYCENTER";
static const char __pyx_k_JUPITER_BARYCENTER[] = "JUPITER_BARYCENTER";
static const char __pyx_k_MERCURY_BARYCENTER[] = "MERCURY_BARYCENTER";
static const char __pyx_k_METCALF_BREWINGTON[] = "METCALF_BREWINGTON";
static const char __pyx_k_NEPTUNE_BARYCENTER[] = "NEPTUNE_BARYCENTER";
static const char __pyx_k_OUTPUT_EULERANGLES[] = "OUTPUT_EULERANGLES";
static const char __pyx_k_check_chandle_null[] = "__check_chandle_null";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_scalar_orient_unit[] = "__scalar_orient_unit";
static const char __pyx_k_vector_orient_unit[] = "__vector_orient_unit";
static const char __pyx_k_check_returnerror_0[] = "__check_returnerror_0";
static const char __pyx_k_scalar_compute_unit[] = "__scalar_compute_unit";
static const char __pyx_k_scalar_orient_order[] = "__scalar_orient_order";
static const char __pyx_k_vector_compute_unit[] = "__vector_compute_unit";
static const char __pyx_k_vector_orient_order[] = "__vector_orient_order";
static const char __pyx_k_HELIN_ROMAN_CROCKETT[] = "HELIN_ROMAN_CROCKETT";
static const char __pyx_k_getorientrecordcount[] = "getorientrecordcount";
static const char __pyx_k_getorientrecordindex[] = "getorientrecordindex";
static const char __pyx_k_isarray_and_samesize[] = "__isarray_and_samesize";
static const char __pyx_k_py_byte_pyarfilename[] = "py_byte_pyarfilename";
static const char __pyx_k_scalar_compute_order[] = "__scalar_compute_order";
static const char __pyx_k_vector_compute_order[] = "__vector_compute_order";
static const char __pyx_k_CHURYUMOV_GERASIMENKO[] = "CHURYUMOV_GERASIMENKO";
static const char __pyx_k_EARTH_MOON_BARYCENTER[] = "EARTH_MOON_BARYCENTER";
static const char __pyx_k_OUTPUT_NUTATIONANGLES[] = "OUTPUT_NUTATIONANGLES";
static const char __pyx_k_WEST_KOHOUTEK_IKEMURA[] = "WEST_KOHOUTEK_IKEMURA";
static const char __pyx_k_SCHWASSMANN_WACHMANN_1[] = "SCHWASSMANN_WACHMANN_1";
static const char __pyx_k_SCHWASSMANN_WACHMANN_2[] = "SCHWASSMANN_WACHMANN_2";
static const char __pyx_k_SCHWASSMANN_WACHMANN_3[] = "SCHWASSMANN_WACHMANN_3";
static const char __pyx_k_check_returnerror_null[] = "__check_returnerror_null";
static const char __pyx_k_getpositionrecordcount[] = "getpositionrecordcount";
static const char __pyx_k_getpositionrecordindex[] = "getpositionrecordindex";
static const char __pyx_k_usertypehandler_python[] = "__usertypehandler_python";
static const char __pyx_k_DUTOIT_NEUJMIN_DELPORTE[] = "DUTOIT_NEUJMIN_DELPORTE";
static const char __pyx_k_HONDA_MRKOS_PAJDUSAKOVA[] = "HONDA_MRKOS_PAJDUSAKOVA";
static const char __pyx_k_SOLAR_SYSTEM_BARYCENTER[] = "SOLAR_SYSTEM_BARYCENTER";
static const char __pyx_k_TUTTLE_GIACOBINI_KRESAK[] = "TUTTLE_GIACOBINI_KRESAK";
static const char __pyx_k_userfuncerrorhandler_python[] = "__userfuncerrorhandler_python";
static const char __pyx_k_No_ephemeris_files_are_opened[] = "No ephemeris files are opened";
static const char __pyx_k_Calceph_library_has_encountered[] = "Calceph library has encountered a problem";
static const char __pyx_k_Constants_values_of_the_CALCEPH[] = "Constants values of the CALCEPH library.\n\n    >>> from calcephpy import Constants\n    ";
static const char __pyx_k_NAIF_identification_numbers_of_t[] = "NAIF identification numbers of the CALCEPH library.\n\n    >>> from calcephpy import NaifId\n    ";
static const char __pyx_k_The_two_vectors_of_time_should_h[] = "The two vectors of time should have the same length";
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
static PyObject *__pyx_kp_s_3_4_1;
static PyObject *__pyx_n_s_ADRASTEA;
static PyObject *__pyx_n_s_AEGAEON;
static PyObject *__pyx_n_s_AEGIR;
static PyObject *__pyx_n_s_AITNE;
static PyObject *__pyx_n_s_ALBIORIX;
static PyObject *__pyx_n_s_AMALTHEA;
static PyObject *__pyx_n_s_ANANKE;
static PyObject *__pyx_n_s_ANTHE;
static PyObject *__pyx_n_s_AOEDE;
static PyObject *__pyx_n_s_ARCHE;
static PyObject *__pyx_n_s_AREND;
static PyObject *__pyx_n_s_AREND_RIGAUX;
static PyObject *__pyx_n_s_ARIEL;
static PyObject *__pyx_n_s_ASHBROOK_JACKSON;
static PyObject *__pyx_n_s_ASTEROID;
static PyObject *__pyx_n_s_ATLAS;
static PyObject *__pyx_n_s_AUTONOE;
static PyObject *__pyx_n_s_BEBHIONN;
static PyObject *__pyx_n_s_BELINDA;
static PyObject *__pyx_n_s_BERGELMIR;
static PyObject *__pyx_n_s_BESTLA;
static PyObject *__pyx_n_s_BIANCA;
static PyObject *__pyx_n_s_BOETHIN;
static PyObject *__pyx_n_s_BORRELLY;
static PyObject *__pyx_n_s_BOWELL_SKIFF;
static PyObject *__pyx_n_s_BRADFIELD;
static PyObject *__pyx_n_s_BROOKS_2;
static PyObject *__pyx_n_s_BRORSEN_METCALF;
static PyObject *__pyx_n_s_BUS;
static PyObject *__pyx_n_s_CALIBAN;
static PyObject *__pyx_n_s_CALLIRRHOE;
static PyObject *__pyx_n_s_CALLISTO;
static PyObject *__pyx_n_s_CALYPSO;
static PyObject *__pyx_n_s_CARME;
static PyObject *__pyx_n_s_CARPO;
static PyObject *__pyx_n_s_CHALDENE;
static PyObject *__pyx_n_s_CHARON;
static PyObject *__pyx_n_s_CHERNYKH;
static PyObject *__pyx_n_s_CHURYUMOV_GERASIMENKO;
static PyObject *__pyx_n_s_CIFFREO;
static PyObject *__pyx_n_s_CLARK;
static PyObject *__pyx_n_s_COMAS_SOLA;
static PyObject *__pyx_n_s_CORDELIA;
static PyObject *__pyx_n_s_CRESSIDA;
static PyObject *__pyx_n_s_CROMMELIN;
static PyObject *__pyx_n_s_CUPID;
static PyObject *__pyx_n_s_CYLLENE;
static PyObject *__pyx_n_s_CalcephBin;
static PyObject *__pyx_kp_s_Calceph_library_has_encountered;
static PyObject *__pyx_n_s_Constants;
static PyObject *__pyx_kp_s_Constants_values_of_the_CALCEPH;
static PyObject *__pyx_n_s_DANIEL;
static PyObject *__pyx_n_s_DAPHNIS;
static PyObject *__pyx_n_s_DEIMOS;
static PyObject *__pyx_n_s_DENNING_FUJIKAWA;
static PyObject *__pyx_n_s_DESDEMONA;
static PyObject *__pyx_n_s_DESPINA;
static PyObject *__pyx_n_s_DE_VICO_SWIFT;
static PyObject *__pyx_n_s_DIA;
static PyObject *__pyx_n_s_DIONE;
static PyObject *__pyx_n_s_DUBIAGO;
static PyObject *__pyx_n_s_DUTOIT_NEUJMIN_DELPORTE;
static PyObject *__pyx_n_s_DU_TOIT_1;
static PyObject *__pyx_n_s_DU_TOIT_HARTLEY;
static PyObject *__pyx_n_s_D__ARREST;
static PyObject *__pyx_n_s_EARTH;
static PyObject *__pyx_n_s_EARTH_MOON_BARYCENTER;
static PyObject *__pyx_n_s_ELARA;
static PyObject *__pyx_n_s_ENCELADUS;
static PyObject *__pyx_n_s_ENCKE;
static PyObject *__pyx_n_s_EPIMETHEUS;
static PyObject *__pyx_n_s_ERINOME;
static PyObject *__pyx_n_s_ERRIAPUS;
static PyObject *__pyx_n_s_EUANTHE;
static PyObject *__pyx_n_s_EUKELADE;
static PyObject *__pyx_n_s_EUPORIE;
static PyObject *__pyx_n_s_EUROPA;
static PyObject *__pyx_n_s_EURYDOME;
static PyObject *__pyx_n_s_FARBAUTI;
static PyObject *__pyx_n_s_FAYE;
static PyObject *__pyx_n_s_FENRIR;
static PyObject *__pyx_n_s_FERDINAND;
static PyObject *__pyx_n_s_FINLAY;
static PyObject *__pyx_n_s_FORBES;
static PyObject *__pyx_n_s_FORNJOT;
static PyObject *__pyx_n_s_FRANCISCO;
static PyObject *__pyx_n_s_GALATEA;
static PyObject *__pyx_n_s_GANYMEDE;
static PyObject *__pyx_n_s_GEHRELS_1;
static PyObject *__pyx_n_s_GEHRELS_2;
static PyObject *__pyx_n_s_GEHRELS_3;
static PyObject *__pyx_n_s_GIACOBINI_ZINNER;
static PyObject *__pyx_n_s_GICLAS;
static PyObject *__pyx_n_s_GREIP;
static PyObject *__pyx_n_s_GRIGG_SKJELLERUP;
static PyObject *__pyx_n_s_GUNN;
static PyObject *__pyx_n_s_HALE_BOPP;
static PyObject *__pyx_n_s_HALIMEDE;
static PyObject *__pyx_n_s_HALLEY;
static PyObject *__pyx_n_s_HANEDA_CAMPOS;
static PyObject *__pyx_n_s_HARPALYKE;
static PyObject *__pyx_n_s_HARRINGTON;
static PyObject *__pyx_n_s_HARRINGTON_ABELL;
static PyObject *__pyx_n_s_HARTLEY_1;
static PyObject *__pyx_n_s_HARTLEY_2;
static PyObject *__pyx_n_s_HARTLEY_3;
static PyObject *__pyx_n_s_HARTLEY_IRAS;
static PyObject *__pyx_n_s_HATI;
static PyObject *__pyx_n_s_HEGEMONE;
static PyObject *__pyx_n_s_HELENE;
static PyObject *__pyx_n_s_HELIKE;
static PyObject *__pyx_n_s_HELIN;
static PyObject *__pyx_n_s_HELIN_ROMAN_ALU_1;
static PyObject *__pyx_n_s_HELIN_ROMAN_CROCKETT;
static PyObject *__pyx_n_s_HERMIPPE;
static PyObject *__pyx_n_s_HERSCHEL_RIGOLLET;
static PyObject *__pyx_n_s_HERSE;
static PyObject *__pyx_n_s_HIMALIA;
static PyObject *__pyx_n_s_HOLMES;
static PyObject *__pyx_n_s_HOLT_OLMSTEAD;
static PyObject *__pyx_n_s_HONDA_MRKOS_PAJDUSAKOVA;
static PyObject *__pyx_n_s_HOWELL;
static PyObject *__pyx_n_s_HYAKUTAKE;
static PyObject *__pyx_n_s_HYDRA;
static PyObject *__pyx_n_s_HYPERION;
static PyObject *__pyx_n_s_HYROKKIN;
static PyObject *__pyx_n_s_IAPETUS;
static PyObject *__pyx_n_s_IJIRAQ;
static PyObject *__pyx_n_s_IO;
static PyObject *__pyx_n_s_IOCASTE;
static PyObject *__pyx_n_s_IRAS;
static PyObject *__pyx_n_s_ISONOE;
static PyObject *__pyx_n_s_JACKSON_NEUJMIN;
static PyObject *__pyx_n_s_JANUS;
static PyObject *__pyx_n_s_JARNSAXA;
static PyObject *__pyx_n_s_JD0;
static PyObject *__pyx_n_s_JOHNSON;
static PyObject *__pyx_n_s_JULIET;
static PyObject *__pyx_n_s_JUPITER;
static PyObject *__pyx_n_s_JUPITER_BARYCENTER;
static PyObject *__pyx_n_s_KALE;
static PyObject *__pyx_n_s_KALLICHORE;
static PyObject *__pyx_n_s_KALYKE;
static PyObject *__pyx_n_s_KARI;
static PyObject *__pyx_n_s_KEARNS_KWEE;
static PyObject *__pyx_n_s_KERBEROS;
static PyObject *__pyx_n_s_KIVIUQ;
static PyObject *__pyx_n_s_KLEMOLA;
static PyObject *__pyx_n_s_KOHOUTEK;
static PyObject *__pyx_n_s_KOJIMA;
static PyObject *__pyx_n_s_KOPFF;
static PyObject *__pyx_n_s_KORE;
static PyObject *__pyx_n_s_KOWAL_1;
static PyObject *__pyx_n_s_KOWAL_2;
static PyObject *__pyx_n_s_KOWAL_MRKOS;
static PyObject *__pyx_n_s_KOWAL_VAVROVA;
static PyObject *__pyx_n_s_LAOMEDEIA;
static PyObject *__pyx_n_s_LARISSA;
static PyObject *__pyx_n_s_LEDA;
static PyObject *__pyx_n_s_LEVY;
static PyObject *__pyx_n_s_LOGE;
static PyObject *__pyx_n_s_LONGMORE;
static PyObject *__pyx_n_s_LOVAS_1;
static PyObject *__pyx_n_s_LOVAS_2;
static PyObject *__pyx_n_s_LYSITHEA;
static PyObject *__pyx_n_s_MAB;
static PyObject *__pyx_n_s_MACHHOLZ;
static PyObject *__pyx_n_s_MAGACLITE;
static PyObject *__pyx_n_s_MARGARET;
static PyObject *__pyx_n_s_MARS;
static PyObject *__pyx_n_s_MARS_BARYCENTER;
static PyObject *__pyx_n_s_MAURY;
static PyObject *__pyx_n_s_MAX_CONSTANTNAME;
static PyObject *__pyx_n_s_MERCURY;
static PyObject *__pyx_n_s_MERCURY_BARYCENTER;
static PyObject *__pyx_n_s_METCALF_BREWINGTON;
static PyObject *__pyx_n_s_METHONE;
static PyObject *__pyx_n_s_METIS;
static PyObject *__pyx_n_s_MIMAS;
static PyObject *__pyx_n_s_MIRANDA;
static PyObject *__pyx_n_s_MNEME;
static PyObject *__pyx_n_s_MOON;
static PyObject *__pyx_n_s_MUELLER;
static PyObject *__pyx_n_s_MUELLER_2;
static PyObject *__pyx_n_s_MUELLER_3;
static PyObject *__pyx_n_s_MUNDILFARI;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_n_s_NAIAD;
static PyObject *__pyx_kp_s_NAIF_identification_numbers_of_t;
static PyObject *__pyx_n_s_NARVI;
static PyObject *__pyx_n_s_NEPTUNE;
static PyObject *__pyx_n_s_NEPTUNE_BARYCENTER;
static PyObject *__pyx_n_s_NEREID;
static PyObject *__pyx_n_s_NESO;
static PyObject *__pyx_n_s_NEUJMIN_1;
static PyObject *__pyx_n_s_NEUJMIN_2;
static PyObject *__pyx_n_s_NEUJMIN_3;
static PyObject *__pyx_n_s_NIX;
static PyObject *__pyx_n_s_NaifId;
static PyObject *__pyx_kp_s_No_ephemeris_files_are_opened;
static PyObject *__pyx_n_s_OBERON;
static PyObject *__pyx_n_s_OLBERS;
static PyObject *__pyx_n_s_OPHELIA;
static PyObject *__pyx_n_s_ORTHOSIE;
static PyObject *__pyx_n_s_OUTPUT_EULERANGLES;
static PyObject *__pyx_n_s_OUTPUT_NUTATIONANGLES;
static PyObject *__pyx_n_s_PAALIAQ;
static PyObject *__pyx_n_s_PALLENE;
static PyObject *__pyx_n_s_PAN;
static PyObject *__pyx_n_s_PANDORA;
static PyObject *__pyx_n_s_PARKER_HARTLEY;
static PyObject *__pyx_n_s_PASIPHAE;
static PyObject *__pyx_n_s_PASITHEE;
static PyObject *__pyx_n_s_PERDITA;
static PyObject *__pyx_n_s_PETERS_HARTLEY;
static PyObject *__pyx_n_s_PHOBOS;
static PyObject *__pyx_n_s_PHOEBE;
static PyObject *__pyx_n_s_PLUTO;
static PyObject *__pyx_n_s_PLUTO_BARYCENTER;
static PyObject *__pyx_n_s_POLYDEUCES;
static PyObject *__pyx_n_s_PONS_BROOKS;
static PyObject *__pyx_n_s_PONS_WINNECKE;
static PyObject *__pyx_n_s_PORTIA;
static PyObject *__pyx_n_s_PRAXIDIKE;
static PyObject *__pyx_n_s_PROMETHEUS;
static PyObject *__pyx_n_s_PROSPERO;
static PyObject *__pyx_n_s_PROTEUS;
static PyObject *__pyx_n_s_PSAMATHE;
static PyObject *__pyx_n_s_PUCK;
static PyObject *__pyx_n_s_REINMUTH_1;
static PyObject *__pyx_n_s_REINMUTH_2;
static PyObject *__pyx_n_s_RHEA;
static PyObject *__pyx_n_s_ROSALIND;
static PyObject *__pyx_n_s_RUSSELL_1;
static PyObject *__pyx_n_s_RUSSELL_2;
static PyObject *__pyx_n_s_RUSSELL_3;
static PyObject *__pyx_n_s_RUSSELL_4;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_SANGUIN;
static PyObject *__pyx_n_s_SAO;
static PyObject *__pyx_n_s_SATURN;
static PyObject *__pyx_n_s_SATURN_BARYCENTER;
static PyObject *__pyx_n_s_SCHAUMASSE;
static PyObject *__pyx_n_s_SCHUSTER;
static PyObject *__pyx_n_s_SCHWASSMANN_WACHMANN_1;
static PyObject *__pyx_n_s_SCHWASSMANN_WACHMANN_2;
static PyObject *__pyx_n_s_SCHWASSMANN_WACHMANN_3;
static PyObject *__pyx_n_s_SETEBOS;
static PyObject *__pyx_n_s_SHAJN_SCHALDACH;
static PyObject *__pyx_n_s_SHOEMAKER_1;
static PyObject *__pyx_n_s_SHOEMAKER_2;
static PyObject *__pyx_n_s_SHOEMAKER_3;
static PyObject *__pyx_n_s_SHOEMAKER_HOLT_1;
static PyObject *__pyx_n_s_SHOEMAKER_LEVY_1;
static PyObject *__pyx_n_s_SHOEMAKER_LEVY_2;
static PyObject *__pyx_n_s_SHOEMAKER_LEVY_9;
static PyObject *__pyx_n_s_SIARNAQ;
static PyObject *__pyx_n_s_SIDING_SPRING;
static PyObject *__pyx_n_s_SINGER_BREWSTER;
static PyObject *__pyx_n_s_SINOPE;
static PyObject *__pyx_n_s_SKATHI;
static PyObject *__pyx_n_s_SKOLL;
static PyObject *__pyx_n_s_SLAUGHTER_BURNHAM;
static PyObject *__pyx_n_s_SMIRNOVA_CHERNYKH;
static PyObject *__pyx_n_s_SOLAR_SYSTEM_BARYCENTER;
static PyObject *__pyx_n_s_SPONDE;
static PyObject *__pyx_n_s_STEPHANO;
static PyObject *__pyx_n_s_STEPHAN_OTERMA;
static PyObject *__pyx_n_s_STYX;
static PyObject *__pyx_n_s_SUN;
static PyObject *__pyx_n_s_SURTUR;
static PyObject *__pyx_n_s_SUTTUNGR;
static PyObject *__pyx_n_s_SWIFT_GEHRELS;
static PyObject *__pyx_n_s_SYCORAX;
static PyObject *__pyx_n_s_TAKAMIZAWA;
static PyObject *__pyx_n_s_TARQEQ;
static PyObject *__pyx_n_s_TARVOS;
static PyObject *__pyx_n_s_TAYGETE;
static PyObject *__pyx_n_s_TAYLOR;
static PyObject *__pyx_n_s_TELESTO;
static PyObject *__pyx_n_s_TEMPEL_1;
static PyObject *__pyx_n_s_TEMPEL_2;
static PyObject *__pyx_n_s_TEMPEL_TUTTLE;
static PyObject *__pyx_n_s_TETHYS;
static PyObject *__pyx_n_s_THALASSA;
static PyObject *__pyx_n_s_THEBE;
static PyObject *__pyx_n_s_THELXINOE;
static PyObject *__pyx_n_s_THEMISTO;
static PyObject *__pyx_n_s_THRYMR;
static PyObject *__pyx_n_s_THYONE;
static PyObject *__pyx_n_s_TIME_CENTER;
static PyObject *__pyx_n_s_TIME_TCGMTCB;
static PyObject *__pyx_n_s_TIME_TTMTDB;
static PyObject *__pyx_n_s_TITAN;
static PyObject *__pyx_n_s_TITANIA;
static PyObject *__pyx_n_s_TRINCULO;
static PyObject *__pyx_n_s_TRITON;
static PyObject *__pyx_n_s_TRITTON;
static PyObject *__pyx_n_s_TSUCHINSHAN_1;
static PyObject *__pyx_n_s_TSUCHINSHAN_2;
static PyObject *__pyx_n_s_TUTTLE;
static PyObject *__pyx_n_s_TUTTLE_GIACOBINI_KRESAK;
static PyObject *__pyx_kp_s_The_two_vectors_of_time_should_h;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_s_UMBRIEL;
static PyObject *__pyx_n_s_UNIT_AU;
static PyObject *__pyx_n_s_UNIT_DAY;
static PyObject *__pyx_n_s_UNIT_KM;
static PyObject *__pyx_n_s_UNIT_RAD;
static PyObject *__pyx_n_s_UNIT_SEC;
static PyObject *__pyx_n_s_URANUS;
static PyObject *__pyx_n_s_URANUS_BARYCENTER;
static PyObject *__pyx_n_s_URATA_NIIJIMA;
static PyObject *__pyx_n_s_USE_NAIFID;
static PyObject *__pyx_n_s_VAISALA_1;
static PyObject *__pyx_n_s_VAN_BIESBROECK;
static PyObject *__pyx_n_s_VAN_HOUTEN;
static PyObject *__pyx_n_s_VENUS;
static PyObject *__pyx_n_s_VENUS_BARYCENTER;
static PyObject *__pyx_n_s_VERSION_MAJOR;
static PyObject *__pyx_n_s_VERSION_MINOR;
static PyObject *__pyx_n_s_VERSION_PATCH;
static PyObject *__pyx_n_s_VERSION_STRING;
static PyObject *__pyx_n_s_WEST_KOHOUTEK_IKEMURA;
static PyObject *__pyx_n_s_WHIPPLE;
static PyObject *__pyx_n_s_WILD_1;
static PyObject *__pyx_n_s_WILD_2;
static PyObject *__pyx_n_s_WILD_3;
static PyObject *__pyx_n_s_WILD_4;
static PyObject *__pyx_n_s_WIRTANEN;
static PyObject *__pyx_n_s_WISEMAN_SKIFF;
static PyObject *__pyx_n_s_WOLF;
static PyObject *__pyx_n_s_WOLF_HARRINGTON;
static PyObject *__pyx_n_s_YMIR;
static PyObject *__pyx_n_s_arfilename;
static PyObject *__pyx_n_s_ascii;
static PyObject *__pyx_n_s_bs;
static PyObject *__pyx_n_s_c_arfilename;
static PyObject *__pyx_n_s_c_string;
static PyObject *__pyx_n_s_calcephpy;
static PyObject *__pyx_kp_s_calcephpy_pyx;
static PyObject *__pyx_n_s_center;
static PyObject *__pyx_n_s_check_chandle_null;
static PyObject *__pyx_n_s_check_returnerror_0;
static PyObject *__pyx_n_s_check_returnerror_null;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_close;
static PyObject *__pyx_n_s_cname;
static PyObject *__pyx_n_s_compute;
static PyObject *__pyx_n_s_compute_order;
static PyObject *__pyx_n_s_compute_unit;
static PyObject *__pyx_n_s_doc;
static PyObject *__pyx_n_s_dtype;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_exportresult;
static PyObject *__pyx_n_s_filename1;
static PyObject *__pyx_n_s_float64;
static PyObject *__pyx_n_s_getconstant;
static PyObject *__pyx_n_s_getconstantcount;
static PyObject *__pyx_n_s_getconstantindex;
static PyObject *__pyx_n_s_getconstantsd;
static PyObject *__pyx_n_s_getconstantss;
static PyObject *__pyx_n_s_getconstantvd;
static PyObject *__pyx_n_s_getconstantvs;
static PyObject *__pyx_n_s_getfileversion;
static PyObject *__pyx_n_s_getorientrecordcount;
static PyObject *__pyx_n_s_getorientrecordindex;
static PyObject *__pyx_n_s_getpositionrecordcount;
static PyObject *__pyx_n_s_getpositionrecordindex;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_n_s_gettimescale;
static PyObject *__pyx_n_s_gettimespan;
static PyObject *__pyx_n_s_getversion_str;
static PyObject *__pyx_n_s_i;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_isarray_and_samesize;
static PyObject *__pyx_n_s_k;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_metaclass;
static PyObject *__pyx_n_s_module;
static PyObject *__pyx_n_s_n;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_n_s_ndarray;
static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
static PyObject *__pyx_n_s_numpy;
static PyObject *__pyx_n_s_open;
static PyObject *__pyx_n_s_order;
static PyObject *__pyx_n_s_orient_order;
static PyObject *__pyx_n_s_orient_unit;
static PyObject *__pyx_n_s_prefetch;
static PyObject *__pyx_n_s_prepare;
static PyObject *__pyx_n_s_py_byte_pyarfilename;
static PyObject *__pyx_n_s_pyarfilename;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_qualname;
static PyObject *__pyx_n_s_range;
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_res;
static PyObject *__pyx_n_s_rotangmom_order;
static PyObject *__pyx_n_s_rotangmom_unit;
static PyObject *__pyx_n_s_s;
static PyObject *__pyx_n_s_scalar_compute;
static PyObject *__pyx_n_s_scalar_compute_order;
static PyObject *__pyx_n_s_scalar_compute_unit;
static PyObject *__pyx_n_s_scalar_orient_order;
static PyObject *__pyx_n_s_scalar_orient_unit;
static PyObject *__pyx_n_s_seterrorhandler;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_slen;
static PyObject *__pyx_n_s_staticmethod;
static PyObject *__pyx_n_s_supportlen;
static PyObject *__pyx_n_s_target;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_time;
static PyObject *__pyx_n_s_tolist;
static PyObject *__pyx_n_s_typehandler;
static PyObject *__pyx_n_s_typeres;
static PyObject *__pyx_n_s_unit;
static PyObject *__pyx_n_s_userfunc;
static PyObject *__pyx_n_s_userfuncerrorhandler_python;
static PyObject *__pyx_n_s_usertypehandler_python;
static PyObject *__pyx_n_s_v;
static PyObject *__pyx_n_s_v1;
static PyObject *__pyx_n_s_v2;
static PyObject *__pyx_n_s_vector_compute;
static PyObject *__pyx_n_s_vector_compute_order;
static PyObject *__pyx_n_s_vector_compute_unit;
static PyObject *__pyx_n_s_vector_orient_order;
static PyObject *__pyx_n_s_vector_orient_unit;
static PyObject *__pyx_n_s_vlist;
static PyObject *__pyx_n_s_zeros;
static int __pyx_pf_9calcephpy_10CalcephBin___cinit__(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static void __pyx_pf_9calcephpy_10CalcephBin_2__dealloc__(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_4__check_returnerror_0(PyObject *__pyx_v_res); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_6__check_returnerror_null(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_8__check_chandle_null(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_10__isarray_and_samesize(PyObject *__pyx_v_v1, PyObject *__pyx_v_v2); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_12__exportresult(PyObject *__pyx_v_v, PyObject *__pyx_v_n, PyObject *__pyx_v_typeres); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_14open(PyObject *__pyx_v_pyarfilename); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_16close(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_18prefetch(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_20__vector_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_22__scalar_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_24compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_26__vector_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_28__scalar_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_30compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_32__vector_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_34__scalar_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_36orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_38rotangmom_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_40__vector_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_42__scalar_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_44compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_46__vector_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_48__scalar_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_50orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_52rotangmom_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_54getconstant(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_56getconstantsd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_58getconstantvd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_60getconstantss(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_62getconstantvs(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_64getconstantcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_66getconstantindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_68getpositionrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_70getpositionrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_72getorientrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_74getorientrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_76gettimescale(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_78gettimespan(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_80getfileversion(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_82__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_9calcephpy_10CalcephBin_84__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_9calcephpy_seterrorhandler(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_typehandler, PyObject *__pyx_v_userfunc); /* proto */
static PyObject *__pyx_pf_9calcephpy_2getversion_str(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_tp_new_9calcephpy_CalcephBin(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_3;
static PyObject *__pyx_int_4;
static PyObject *__pyx_int_5;
static PyObject *__pyx_int_6;
static PyObject *__pyx_int_7;
static PyObject *__pyx_int_8;
static PyObject *__pyx_int_9;
static PyObject *__pyx_int_10;
static PyObject *__pyx_int_12;
static PyObject *__pyx_int_16;
static PyObject *__pyx_int_32;
static PyObject *__pyx_int_33;
static PyObject *__pyx_int_64;
static PyObject *__pyx_int_128;
static PyObject *__pyx_int_199;
static PyObject *__pyx_int_299;
static PyObject *__pyx_int_301;
static PyObject *__pyx_int_399;
static PyObject *__pyx_int_401;
static PyObject *__pyx_int_402;
static PyObject *__pyx_int_499;
static PyObject *__pyx_int_501;
static PyObject *__pyx_int_502;
static PyObject *__pyx_int_503;
static PyObject *__pyx_int_504;
static PyObject *__pyx_int_505;
static PyObject *__pyx_int_506;
static PyObject *__pyx_int_507;
static PyObject *__pyx_int_508;
static PyObject *__pyx_int_509;
static PyObject *__pyx_int_510;
static PyObject *__pyx_int_511;
static PyObject *__pyx_int_512;
static PyObject *__pyx_int_513;
static PyObject *__pyx_int_514;
static PyObject *__pyx_int_515;
static PyObject *__pyx_int_516;
static PyObject *__pyx_int_517;
static PyObject *__pyx_int_518;
static PyObject *__pyx_int_519;
static PyObject *__pyx_int_520;
static PyObject *__pyx_int_521;
static PyObject *__pyx_int_522;
static PyObject *__pyx_int_523;
static PyObject *__pyx_int_524;
static PyObject *__pyx_int_525;
static PyObject *__pyx_int_526;
static PyObject *__pyx_int_527;
static PyObject *__pyx_int_528;
static PyObject *__pyx_int_529;
static PyObject *__pyx_int_530;
static PyObject *__pyx_int_531;
static PyObject *__pyx_int_532;
static PyObject *__pyx_int_533;
static PyObject *__pyx_int_534;
static PyObject *__pyx_int_535;
static PyObject *__pyx_int_536;
static PyObject *__pyx_int_537;
static PyObject *__pyx_int_538;
static PyObject *__pyx_int_539;
static PyObject *__pyx_int_540;
static PyObject *__pyx_int_541;
static PyObject *__pyx_int_542;
static PyObject *__pyx_int_543;
static PyObject *__pyx_int_544;
static PyObject *__pyx_int_545;
static PyObject *__pyx_int_546;
static PyObject *__pyx_int_547;
static PyObject *__pyx_int_548;
static PyObject *__pyx_int_549;
static PyObject *__pyx_int_550;
static PyObject *__pyx_int_553;
static PyObject *__pyx_int_599;
static PyObject *__pyx_int_601;
static PyObject *__pyx_int_602;
static PyObject *__pyx_int_603;
static PyObject *__pyx_int_604;
static PyObject *__pyx_int_605;
static PyObject *__pyx_int_606;
static PyObject *__pyx_int_607;
static PyObject *__pyx_int_608;
static PyObject *__pyx_int_609;
static PyObject *__pyx_int_610;
static PyObject *__pyx_int_611;
static PyObject *__pyx_int_612;
static PyObject *__pyx_int_613;
static PyObject *__pyx_int_614;
static PyObject *__pyx_int_615;
static PyObject *__pyx_int_616;
static PyObject *__pyx_int_617;
static PyObject *__pyx_int_618;
static PyObject *__pyx_int_619;
static PyObject *__pyx_int_620;
static PyObject *__pyx_int_621;
static PyObject *__pyx_int_622;
static PyObject *__pyx_int_623;
static PyObject *__pyx_int_624;
static PyObject *__pyx_int_625;
static PyObject *__pyx_int_626;
static PyObject *__pyx_int_627;
static PyObject *__pyx_int_628;
static PyObject *__pyx_int_629;
static PyObject *__pyx_int_630;
static PyObject *__pyx_int_631;
static PyObject *__pyx_int_632;
static PyObject *__pyx_int_633;
static PyObject *__pyx_int_634;
static PyObject *__pyx_int_635;
static PyObject *__pyx_int_636;
static PyObject *__pyx_int_637;
static PyObject *__pyx_int_638;
static PyObject *__pyx_int_639;
static PyObject *__pyx_int_640;
static PyObject *__pyx_int_641;
static PyObject *__pyx_int_642;
static PyObject *__pyx_int_643;
static PyObject *__pyx_int_644;
static PyObject *__pyx_int_645;
static PyObject *__pyx_int_646;
static PyObject *__pyx_int_647;
static PyObject *__pyx_int_648;
static PyObject *__pyx_int_649;
static PyObject *__pyx_int_650;
static PyObject *__pyx_int_651;
static PyObject *__pyx_int_652;
static PyObject *__pyx_int_653;
static PyObject *__pyx_int_699;
static PyObject *__pyx_int_701;
static PyObject *__pyx_int_702;
static PyObject *__pyx_int_703;
static PyObject *__pyx_int_704;
static PyObject *__pyx_int_705;
static PyObject *__pyx_int_706;
static PyObject *__pyx_int_707;
static PyObject *__pyx_int_708;
static PyObject *__pyx_int_709;
static PyObject *__pyx_int_710;
static PyObject *__pyx_int_711;
static PyObject *__pyx_int_712;
static PyObject *__pyx_int_713;
static PyObject *__pyx_int_714;
static PyObject *__pyx_int_715;
static PyObject *__pyx_int_716;
static PyObject *__pyx_int_717;
static PyObject *__pyx_int_718;
static PyObject *__pyx_int_719;
static PyObject *__pyx_int_720;
static PyObject *__pyx_int_721;
static PyObject *__pyx_int_722;
static PyObject *__pyx_int_723;
static PyObject *__pyx_int_724;
static PyObject *__pyx_int_725;
static PyObject *__pyx_int_726;
static PyObject *__pyx_int_727;
static PyObject *__pyx_int_799;
static PyObject *__pyx_int_801;
static PyObject *__pyx_int_802;
static PyObject *__pyx_int_803;
static PyObject *__pyx_int_804;
static PyObject *__pyx_int_805;
static PyObject *__pyx_int_806;
static PyObject *__pyx_int_807;
static PyObject *__pyx_int_808;
static PyObject *__pyx_int_809;
static PyObject *__pyx_int_810;
static PyObject *__pyx_int_811;
static PyObject *__pyx_int_812;
static PyObject *__pyx_int_813;
static PyObject *__pyx_int_899;
static PyObject *__pyx_int_901;
static PyObject *__pyx_int_902;
static PyObject *__pyx_int_903;
static PyObject *__pyx_int_904;
static PyObject *__pyx_int_905;
static PyObject *__pyx_int_999;
static PyObject *__pyx_int_1024;
static PyObject *__pyx_int_1000001;
static PyObject *__pyx_int_1000002;
static PyObject *__pyx_int_1000003;
static PyObject *__pyx_int_1000004;
static PyObject *__pyx_int_1000005;
static PyObject *__pyx_int_1000006;
static PyObject *__pyx_int_1000007;
static PyObject *__pyx_int_1000008;
static PyObject *__pyx_int_1000009;
static PyObject *__pyx_int_1000010;
static PyObject *__pyx_int_1000011;
static PyObject *__pyx_int_1000012;
static PyObject *__pyx_int_1000013;
static PyObject *__pyx_int_1000014;
static PyObject *__pyx_int_1000015;
static PyObject *__pyx_int_1000016;
static PyObject *__pyx_int_1000017;
static PyObject *__pyx_int_1000018;
static PyObject *__pyx_int_1000019;
static PyObject *__pyx_int_1000020;
static PyObject *__pyx_int_1000021;
static PyObject *__pyx_int_1000022;
static PyObject *__pyx_int_1000023;
static PyObject *__pyx_int_1000024;
static PyObject *__pyx_int_1000025;
static PyObject *__pyx_int_1000026;
static PyObject *__pyx_int_1000027;
static PyObject *__pyx_int_1000028;
static PyObject *__pyx_int_1000029;
static PyObject *__pyx_int_1000030;
static PyObject *__pyx_int_1000031;
static PyObject *__pyx_int_1000032;
static PyObject *__pyx_int_1000033;
static PyObject *__pyx_int_1000034;
static PyObject *__pyx_int_1000035;
static PyObject *__pyx_int_1000036;
static PyObject *__pyx_int_1000037;
static PyObject *__pyx_int_1000038;
static PyObject *__pyx_int_1000039;
static PyObject *__pyx_int_1000040;
static PyObject *__pyx_int_1000041;
static PyObject *__pyx_int_1000042;
static PyObject *__pyx_int_1000043;
static PyObject *__pyx_int_1000044;
static PyObject *__pyx_int_1000045;
static PyObject *__pyx_int_1000046;
static PyObject *__pyx_int_1000047;
static PyObject *__pyx_int_1000048;
static PyObject *__pyx_int_1000049;
static PyObject *__pyx_int_1000050;
static PyObject *__pyx_int_1000051;
static PyObject *__pyx_int_1000052;
static PyObject *__pyx_int_1000053;
static PyObject *__pyx_int_1000054;
static PyObject *__pyx_int_1000055;
static PyObject *__pyx_int_1000056;
static PyObject *__pyx_int_1000057;
static PyObject *__pyx_int_1000058;
static PyObject *__pyx_int_1000059;
static PyObject *__pyx_int_1000060;
static PyObject *__pyx_int_1000061;
static PyObject *__pyx_int_1000062;
static PyObject *__pyx_int_1000063;
static PyObject *__pyx_int_1000064;
static PyObject *__pyx_int_1000065;
static PyObject *__pyx_int_1000066;
static PyObject *__pyx_int_1000067;
static PyObject *__pyx_int_1000068;
static PyObject *__pyx_int_1000069;
static PyObject *__pyx_int_1000070;
static PyObject *__pyx_int_1000071;
static PyObject *__pyx_int_1000072;
static PyObject *__pyx_int_1000073;
static PyObject *__pyx_int_1000074;
static PyObject *__pyx_int_1000075;
static PyObject *__pyx_int_1000076;
static PyObject *__pyx_int_1000077;
static PyObject *__pyx_int_1000078;
static PyObject *__pyx_int_1000079;
static PyObject *__pyx_int_1000080;
static PyObject *__pyx_int_1000081;
static PyObject *__pyx_int_1000082;
static PyObject *__pyx_int_1000083;
static PyObject *__pyx_int_1000084;
static PyObject *__pyx_int_1000085;
static PyObject *__pyx_int_1000086;
static PyObject *__pyx_int_1000087;
static PyObject *__pyx_int_1000088;
static PyObject *__pyx_int_1000089;
static PyObject *__pyx_int_1000090;
static PyObject *__pyx_int_1000091;
static PyObject *__pyx_int_1000092;
static PyObject *__pyx_int_1000093;
static PyObject *__pyx_int_1000094;
static PyObject *__pyx_int_1000095;
static PyObject *__pyx_int_1000096;
static PyObject *__pyx_int_1000097;
static PyObject *__pyx_int_1000098;
static PyObject *__pyx_int_1000099;
static PyObject *__pyx_int_1000100;
static PyObject *__pyx_int_1000101;
static PyObject *__pyx_int_1000102;
static PyObject *__pyx_int_1000103;
static PyObject *__pyx_int_1000104;
static PyObject *__pyx_int_1000105;
static PyObject *__pyx_int_1000106;
static PyObject *__pyx_int_1000107;
static PyObject *__pyx_int_1000108;
static PyObject *__pyx_int_1000109;
static PyObject *__pyx_int_1000110;
static PyObject *__pyx_int_1000111;
static PyObject *__pyx_int_1000112;
static PyObject *__pyx_int_1000113;
static PyObject *__pyx_int_1000114;
static PyObject *__pyx_int_1000115;
static PyObject *__pyx_int_1000116;
static PyObject *__pyx_int_1000117;
static PyObject *__pyx_int_1000118;
static PyObject *__pyx_int_1000119;
static PyObject *__pyx_int_1000120;
static PyObject *__pyx_int_1000121;
static PyObject *__pyx_int_1000122;
static PyObject *__pyx_int_1000123;
static PyObject *__pyx_int_1000124;
static PyObject *__pyx_int_1000125;
static PyObject *__pyx_int_1000126;
static PyObject *__pyx_int_1000127;
static PyObject *__pyx_int_1000128;
static PyObject *__pyx_int_1000129;
static PyObject *__pyx_int_1000130;
static PyObject *__pyx_int_1000131;
static PyObject *__pyx_int_1000132;
static PyObject *__pyx_int_1003228;
static PyObject *__pyx_int_2000000;
static PyObject *__pyx_int_1000000000;
static PyObject *__pyx_int_1000000001;
static PyObject *__pyx_int_1000000002;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_codeobj__8;
static PyObject *__pyx_codeobj__10;
static PyObject *__pyx_codeobj__12;
static PyObject *__pyx_codeobj__14;
static PyObject *__pyx_codeobj__16;
static PyObject *__pyx_codeobj__18;
/* Late includes */

/* "calcephpy.pyx":475
 *     cdef calcephpy.t_calcephbin * _c_handle
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._c_handle = NULL
 * 
 */

/* Python wrapper */
static int __pyx_pw_9calcephpy_10CalcephBin_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_9calcephpy_10CalcephBin_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 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, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin___cinit__(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static int __pyx_pf_9calcephpy_10CalcephBin___cinit__(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "calcephpy.pyx":476
 * 
 *     def __cinit__(self):
 *         self._c_handle = NULL             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_v_self->_c_handle = NULL;

  /* "calcephpy.pyx":475
 *     cdef calcephpy.t_calcephbin * _c_handle
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._c_handle = NULL
 * 
 */

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

/* "calcephpy.pyx":478
 *         self._c_handle = NULL
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._c_handle is not NULL:
 *             calcephpy.calceph_close(self._c_handle)
 */

/* Python wrapper */
static void __pyx_pw_9calcephpy_10CalcephBin_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_9calcephpy_10CalcephBin_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_9calcephpy_10CalcephBin_2__dealloc__(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static void __pyx_pf_9calcephpy_10CalcephBin_2__dealloc__(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "calcephpy.pyx":479
 * 
 *     def __dealloc__(self):
 *         if self._c_handle is not NULL:             # <<<<<<<<<<<<<<
 *             calcephpy.calceph_close(self._c_handle)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->_c_handle != NULL) != 0);
  if (__pyx_t_1) {

    /* "calcephpy.pyx":480
 *     def __dealloc__(self):
 *         if self._c_handle is not NULL:
 *             calcephpy.calceph_close(self._c_handle)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    calceph_close(__pyx_v_self->_c_handle);

    /* "calcephpy.pyx":479
 * 
 *     def __dealloc__(self):
 *         if self._c_handle is not NULL:             # <<<<<<<<<<<<<<
 *             calcephpy.calceph_close(self._c_handle)
 * 
 */
  }

  /* "calcephpy.pyx":478
 *         self._c_handle = NULL
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._c_handle is not NULL:
 *             calcephpy.calceph_close(self._c_handle)
 */

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

/* "calcephpy.pyx":487
 * 
 *     @staticmethod
 *     def __check_returnerror_0(res):             # <<<<<<<<<<<<<<
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_5__check_returnerror_0(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_4__check_returnerror_0[] = "internal : check the error of the library  and raise an exception";
static PyMethodDef __pyx_mdef_9calcephpy_10CalcephBin_5__check_returnerror_0 = {"__check_returnerror_0", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_5__check_returnerror_0, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_4__check_returnerror_0};
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_5__check_returnerror_0(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_res = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__check_returnerror_0 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_res,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 (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_res)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__check_returnerror_0") < 0)) __PYX_ERR(0, 487, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_res = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__check_returnerror_0", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 487, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__check_returnerror_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_4__check_returnerror_0(__pyx_v_res);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_4__check_returnerror_0(PyObject *__pyx_v_res) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__check_returnerror_0", 0);

  /* "calcephpy.pyx":490
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 *         if (res == 0) and (__usertypehandler_python != 3):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Calceph library has encountered a problem")
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_EqObjC(__pyx_v_res, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_usertypehandler_python); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyInt_NeObjC(__pyx_t_2, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "calcephpy.pyx":491
 *         global __usertypehandler_python
 *         if (res == 0) and (__usertypehandler_python != 3):
 *             raise RuntimeError("Calceph library has encountered a problem")             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 491, __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, 491, __pyx_L1_error)

    /* "calcephpy.pyx":490
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 *         if (res == 0) and (__usertypehandler_python != 3):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Calceph library has encountered a problem")
 * 
 */
  }

  /* "calcephpy.pyx":487
 * 
 *     @staticmethod
 *     def __check_returnerror_0(res):             # <<<<<<<<<<<<<<
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 */

  /* 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_4);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__check_returnerror_0", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":497
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * 
 *     def __check_returnerror_null(self):             # <<<<<<<<<<<<<<
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_7__check_returnerror_null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_6__check_returnerror_null[] = "check if the ephemeris file is opened on exit and raise an exception";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_7__check_returnerror_null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__check_returnerror_null (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_6__check_returnerror_null(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_6__check_returnerror_null(struct __pyx_obj_9calcephpy_CalcephBin *__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;
  __Pyx_RefNannySetupContext("__check_returnerror_null", 0);

  /* "calcephpy.pyx":499
 *     def __check_returnerror_null(self):
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("No ephemeris files are opened")
 * 
 */
  __pyx_t_2 = ((__pyx_v_self->_c_handle == NULL) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_usertypehandler_python); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_NeObjC(__pyx_t_3, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 499, __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, 499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "calcephpy.pyx":500
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):
 *             raise RuntimeError("No ephemeris files are opened")             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 500, __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, 500, __pyx_L1_error)

    /* "calcephpy.pyx":499
 *     def __check_returnerror_null(self):
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("No ephemeris files are opened")
 * 
 */
  }

  /* "calcephpy.pyx":497
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * 
 *     def __check_returnerror_null(self):             # <<<<<<<<<<<<<<
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):
 */

  /* 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_AddTraceback("calcephpy.CalcephBin.__check_returnerror_null", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":504
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     def __check_chandle_null(self):             # <<<<<<<<<<<<<<
 *         """check if the ephemeris file is opened on input and raise an exception"""
 *         if (self._c_handle is NULL):
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_9__check_chandle_null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_8__check_chandle_null[] = "check if the ephemeris file is opened on input and raise an exception";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_9__check_chandle_null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__check_chandle_null (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_8__check_chandle_null(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_8__check_chandle_null(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__check_chandle_null", 0);

  /* "calcephpy.pyx":506
 *     def __check_chandle_null(self):
 *         """check if the ephemeris file is opened on input and raise an exception"""
 *         if (self._c_handle is NULL):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("No ephemeris files are opened")
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->_c_handle == NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "calcephpy.pyx":507
 *         """check if the ephemeris file is opened on input and raise an exception"""
 *         if (self._c_handle is NULL):
 *             raise RuntimeError("No ephemeris files are opened")             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 507, __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, 507, __pyx_L1_error)

    /* "calcephpy.pyx":506
 *     def __check_chandle_null(self):
 *         """check if the ephemeris file is opened on input and raise an exception"""
 *         if (self._c_handle is NULL):             # <<<<<<<<<<<<<<
 *             raise RuntimeError("No ephemeris files are opened")
 * 
 */
  }

  /* "calcephpy.pyx":504
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     def __check_chandle_null(self):             # <<<<<<<<<<<<<<
 *         """check if the ephemeris file is opened on input and raise an exception"""
 *         if (self._c_handle is NULL):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__check_chandle_null", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":512
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __isarray_and_samesize(v1, v2):             # <<<<<<<<<<<<<<
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_11__isarray_and_samesize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_10__isarray_and_samesize[] = "internal : return non-zero value if v1 and v2 are two arrays of same size ";
static PyMethodDef __pyx_mdef_9calcephpy_10CalcephBin_11__isarray_and_samesize = {"__isarray_and_samesize", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_11__isarray_and_samesize, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_10__isarray_and_samesize};
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_11__isarray_and_samesize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_v1 = 0;
  PyObject *__pyx_v_v2 = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__isarray_and_samesize (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v1,&__pyx_n_s_v2,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_v1)) != 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_v2)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__isarray_and_samesize", 1, 2, 2, 1); __PYX_ERR(0, 512, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__isarray_and_samesize") < 0)) __PYX_ERR(0, 512, __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_v1 = values[0];
    __pyx_v_v2 = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__isarray_and_samesize", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 512, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__isarray_and_samesize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_10__isarray_and_samesize(__pyx_v_v1, __pyx_v_v2);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_10__isarray_and_samesize(PyObject *__pyx_v_v1, PyObject *__pyx_v_v2) {
  CYTHON_UNUSED Py_ssize_t __pyx_v_n;
  int __pyx_v_supportlen;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  __Pyx_RefNannySetupContext("__isarray_and_samesize", 0);

  /* "calcephpy.pyx":514
 *     def __isarray_and_samesize(v1, v2):
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:             # <<<<<<<<<<<<<<
 *             n = len(v1)
 *             supportlen = True
 */
  {
    __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:*/ {

      /* "calcephpy.pyx":515
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:
 *             n = len(v1)             # <<<<<<<<<<<<<<
 *             supportlen = True
 *         except:
 */
      __pyx_t_4 = PyObject_Length(__pyx_v_v1); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 515, __pyx_L3_error)
      __pyx_v_n = __pyx_t_4;

      /* "calcephpy.pyx":516
 *         try:
 *             n = len(v1)
 *             supportlen = True             # <<<<<<<<<<<<<<
 *         except:
 *             supportlen = False
 */
      __pyx_v_supportlen = 1;

      /* "calcephpy.pyx":514
 *     def __isarray_and_samesize(v1, v2):
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:             # <<<<<<<<<<<<<<
 *             n = len(v1)
 *             supportlen = True
 */
    }
    __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:;

    /* "calcephpy.pyx":517
 *             n = len(v1)
 *             supportlen = True
 *         except:             # <<<<<<<<<<<<<<
 *             supportlen = False
 * 
 */
    /*except:*/ {
      __Pyx_AddTraceback("calcephpy.CalcephBin.__isarray_and_samesize", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 517, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_7);

      /* "calcephpy.pyx":518
 *             supportlen = True
 *         except:
 *             supportlen = False             # <<<<<<<<<<<<<<
 * 
 *         if supportlen :
 */
      __pyx_v_supportlen = 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;
      goto __pyx_L4_exception_handled;
    }
    __pyx_L5_except_error:;

    /* "calcephpy.pyx":514
 *     def __isarray_and_samesize(v1, v2):
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:             # <<<<<<<<<<<<<<
 *             n = len(v1)
 *             supportlen = True
 */
    __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_L4_exception_handled:;
    __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);
    __pyx_L8_try_end:;
  }

  /* "calcephpy.pyx":520
 *             supportlen = False
 * 
 *         if supportlen :             # <<<<<<<<<<<<<<
 *             if len(v1) != len(v2):
 *                 raise RuntimeError("The two vectors of time should have the same length")
 */
  __pyx_t_8 = (__pyx_v_supportlen != 0);
  if (__pyx_t_8) {

    /* "calcephpy.pyx":521
 * 
 *         if supportlen :
 *             if len(v1) != len(v2):             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("The two vectors of time should have the same length")
 *             return 1
 */
    __pyx_t_4 = PyObject_Length(__pyx_v_v1); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 521, __pyx_L1_error)
    __pyx_t_9 = PyObject_Length(__pyx_v_v2); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 521, __pyx_L1_error)
    __pyx_t_8 = ((__pyx_t_4 != __pyx_t_9) != 0);
    if (unlikely(__pyx_t_8)) {

      /* "calcephpy.pyx":522
 *         if supportlen :
 *             if len(v1) != len(v2):
 *                 raise RuntimeError("The two vectors of time should have the same length")             # <<<<<<<<<<<<<<
 *             return 1
 * 
 */
      __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 522, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(0, 522, __pyx_L1_error)

      /* "calcephpy.pyx":521
 * 
 *         if supportlen :
 *             if len(v1) != len(v2):             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("The two vectors of time should have the same length")
 *             return 1
 */
    }

    /* "calcephpy.pyx":523
 *             if len(v1) != len(v2):
 *                 raise RuntimeError("The two vectors of time should have the same length")
 *             return 1             # <<<<<<<<<<<<<<
 * 
 *         return 0
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_int_1);
    __pyx_r = __pyx_int_1;
    goto __pyx_L0;

    /* "calcephpy.pyx":520
 *             supportlen = False
 * 
 *         if supportlen :             # <<<<<<<<<<<<<<
 *             if len(v1) != len(v2):
 *                 raise RuntimeError("The two vectors of time should have the same length")
 */
  }

  /* "calcephpy.pyx":525
 *             return 1
 * 
 *         return 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_int_0);
  __pyx_r = __pyx_int_0;
  goto __pyx_L0;

  /* "calcephpy.pyx":512
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __isarray_and_samesize(v1, v2):             # <<<<<<<<<<<<<<
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__isarray_and_samesize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":531
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __exportresult(v,n, typeres):             # <<<<<<<<<<<<<<
 *         """internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres
 *          the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... """
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_13__exportresult(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_12__exportresult[] = "internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres\n         the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... ";
static PyMethodDef __pyx_mdef_9calcephpy_10CalcephBin_13__exportresult = {"__exportresult", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_13__exportresult, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_12__exportresult};
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_13__exportresult(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_v = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_typeres = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__exportresult (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_n,&__pyx_n_s_typeres,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_v)) != 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_n)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exportresult", 1, 3, 3, 1); __PYX_ERR(0, 531, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_typeres)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__exportresult", 1, 3, 3, 2); __PYX_ERR(0, 531, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exportresult") < 0)) __PYX_ERR(0, 531, __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_v = values[0];
    __pyx_v_n = values[1];
    __pyx_v_typeres = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__exportresult", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 531, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__exportresult", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_12__exportresult(__pyx_v_v, __pyx_v_n, __pyx_v_typeres);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_12__exportresult(PyObject *__pyx_v_v, PyObject *__pyx_v_n, PyObject *__pyx_v_typeres) {
  PyObject *__pyx_v_vlist = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("__exportresult", 0);

  /* "calcephpy.pyx":535
 *          the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... """
 * 
 *         vlist = []             # <<<<<<<<<<<<<<
 *         if isinstance(typeres, numpy.ndarray):
 *             for k in range(n):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_vlist = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":536
 * 
 *         vlist = []
 *         if isinstance(typeres, numpy.ndarray):             # <<<<<<<<<<<<<<
 *             for k in range(n):
 *                 vlist.append(v[k::n])
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_numpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = PyObject_IsInstance(__pyx_v_typeres, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "calcephpy.pyx":537
 *         vlist = []
 *         if isinstance(typeres, numpy.ndarray):
 *             for k in range(n):             # <<<<<<<<<<<<<<
 *                 vlist.append(v[k::n])
 *         else:
 */
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    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_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 537, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 537, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          if (__pyx_t_5 >= 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_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 537, __pyx_L1_error)
          #else
          __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          #endif
        } else {
          if (__pyx_t_5 >= 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_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 537, __pyx_L1_error)
          #else
          __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          #endif
        }
      } else {
        __pyx_t_2 = __pyx_t_6(__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, 537, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "calcephpy.pyx":538
 *         if isinstance(typeres, numpy.ndarray):
 *             for k in range(n):
 *                 vlist.append(v[k::n])             # <<<<<<<<<<<<<<
 *         else:
 *             for k in range(n):
 */
      __pyx_t_2 = PySlice_New(__pyx_v_k, Py_None, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 538, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_v_v, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 538, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_vlist, __pyx_t_7); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 538, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "calcephpy.pyx":537
 *         vlist = []
 *         if isinstance(typeres, numpy.ndarray):
 *             for k in range(n):             # <<<<<<<<<<<<<<
 *                 vlist.append(v[k::n])
 *         else:
 */
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "calcephpy.pyx":536
 * 
 *         vlist = []
 *         if isinstance(typeres, numpy.ndarray):             # <<<<<<<<<<<<<<
 *             for k in range(n):
 *                 vlist.append(v[k::n])
 */
    goto __pyx_L3;
  }

  /* "calcephpy.pyx":540
 *                 vlist.append(v[k::n])
 *         else:
 *             for k in range(n):             # <<<<<<<<<<<<<<
 *                 vlist.append(v[k::n].tolist())
 *         return vlist
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
      __pyx_t_7 = __pyx_t_1; __Pyx_INCREF(__pyx_t_7); __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 540, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = Py_TYPE(__pyx_t_7)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 540, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_7)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 540, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_7, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        } else {
          if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_7)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 540, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_7, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        }
      } else {
        __pyx_t_1 = __pyx_t_6(__pyx_t_7);
        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, 540, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "calcephpy.pyx":541
 *         else:
 *             for k in range(n):
 *                 vlist.append(v[k::n].tolist())             # <<<<<<<<<<<<<<
 *         return vlist
 * 
 */
      __pyx_t_2 = PySlice_New(__pyx_v_k, Py_None, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_v_v, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_tolist); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
        if (likely(__pyx_t_9)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_2, function);
        }
      }
      __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_vlist, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "calcephpy.pyx":540
 *                 vlist.append(v[k::n])
 *         else:
 *             for k in range(n):             # <<<<<<<<<<<<<<
 *                 vlist.append(v[k::n].tolist())
 *         return vlist
 */
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __pyx_L3:;

  /* "calcephpy.pyx":542
 *             for k in range(n):
 *                 vlist.append(v[k::n].tolist())
 *         return vlist             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_vlist);
  __pyx_r = __pyx_v_vlist;
  goto __pyx_L0;

  /* "calcephpy.pyx":531
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __exportresult(v,n, typeres):             # <<<<<<<<<<<<<<
 *         """internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres
 *          the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... """
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__exportresult", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vlist);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":548
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def open(pyarfilename):             # <<<<<<<<<<<<<<
 *         """Open the file(s) pyarfilename
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_15open(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_14open[] = "Open the file(s) pyarfilename\n    \n              pyarfilename (in) a single string or an array of strings\n        ";
static PyMethodDef __pyx_mdef_9calcephpy_10CalcephBin_15open = {"open", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_15open, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_14open};
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_15open(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_pyarfilename = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("open (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyarfilename,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 (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyarfilename)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open") < 0)) __PYX_ERR(0, 548, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_pyarfilename = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("open", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 548, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.open", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_14open(__pyx_v_pyarfilename);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_14open(PyObject *__pyx_v_pyarfilename) {
  char **__pyx_v_arfilename;
  char *__pyx_v_c_arfilename;
  struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_v = NULL;
  PyObject *__pyx_v_py_byte_pyarfilename = NULL;
  PyObject *__pyx_v_slen = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  Py_ssize_t __pyx_t_7;
  size_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  __Pyx_RefNannySetupContext("open", 0);

  /* "calcephpy.pyx":559
 *         cdef char* c_arfilename
 *         # self.close()
 *         v = CalcephBin()             # <<<<<<<<<<<<<<
 *         if  isinstance(pyarfilename,str):
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_9calcephpy_CalcephBin)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_v = ((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":560
 *         # self.close()
 *         v = CalcephBin()
 *         if  isinstance(pyarfilename,str):             # <<<<<<<<<<<<<<
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')
 *             c_arfilename = py_byte_pyarfilename
 */
  __pyx_t_2 = PyString_Check(__pyx_v_pyarfilename); 
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "calcephpy.pyx":561
 *         v = CalcephBin()
 *         if  isinstance(pyarfilename,str):
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')             # <<<<<<<<<<<<<<
 *             c_arfilename = py_byte_pyarfilename
 *             v._c_handle = calcephpy.calceph_open(c_arfilename)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pyarfilename, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 561, __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_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_n_s_ascii);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_py_byte_pyarfilename = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":562
 *         if  isinstance(pyarfilename,str):
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')
 *             c_arfilename = py_byte_pyarfilename             # <<<<<<<<<<<<<<
 *             v._c_handle = calcephpy.calceph_open(c_arfilename)
 *         else:
 */
    __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_v_py_byte_pyarfilename); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 562, __pyx_L1_error)
    __pyx_v_c_arfilename = __pyx_t_6;

    /* "calcephpy.pyx":563
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')
 *             c_arfilename = py_byte_pyarfilename
 *             v._c_handle = calcephpy.calceph_open(c_arfilename)             # <<<<<<<<<<<<<<
 *         else:
 *             # copy the array of string
 */
    __pyx_v_v->_c_handle = calceph_open(__pyx_v_c_arfilename);

    /* "calcephpy.pyx":560
 *         # self.close()
 *         v = CalcephBin()
 *         if  isinstance(pyarfilename,str):             # <<<<<<<<<<<<<<
 *             py_byte_pyarfilename = pyarfilename.encode('ascii')
 *             c_arfilename = py_byte_pyarfilename
 */
    goto __pyx_L3;
  }

  /* "calcephpy.pyx":566
 *         else:
 *             # copy the array of string
 *             slen = len(pyarfilename)             # <<<<<<<<<<<<<<
 *             arfilename = <char**>PyMem_Malloc(slen * sizeof(char*))
 *             if not arfilename:
 */
  /*else*/ {
    __pyx_t_7 = PyObject_Length(__pyx_v_pyarfilename); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 566, __pyx_L1_error)
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_slen = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":567
 *             # copy the array of string
 *             slen = len(pyarfilename)
 *             arfilename = <char**>PyMem_Malloc(slen * sizeof(char*))             # <<<<<<<<<<<<<<
 *             if not arfilename:
 *                 raise MemoryError()
 */
    __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(char *))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyNumber_Multiply(__pyx_v_slen, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_arfilename = ((char **)PyMem_Malloc(__pyx_t_8));

    /* "calcephpy.pyx":568
 *             slen = len(pyarfilename)
 *             arfilename = <char**>PyMem_Malloc(slen * sizeof(char*))
 *             if not arfilename:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 * 
 */
    __pyx_t_3 = ((!(__pyx_v_arfilename != 0)) != 0);
    if (unlikely(__pyx_t_3)) {

      /* "calcephpy.pyx":569
 *             arfilename = <char**>PyMem_Malloc(slen * sizeof(char*))
 *             if not arfilename:
 *                 raise MemoryError()             # <<<<<<<<<<<<<<
 * 
 *             py_byte_pyarfilename = [s.encode('ascii') for s in pyarfilename]
 */
      PyErr_NoMemory(); __PYX_ERR(0, 569, __pyx_L1_error)

      /* "calcephpy.pyx":568
 *             slen = len(pyarfilename)
 *             arfilename = <char**>PyMem_Malloc(slen * sizeof(char*))
 *             if not arfilename:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 * 
 */
    }

    /* "calcephpy.pyx":571
 *                 raise MemoryError()
 * 
 *             py_byte_pyarfilename = [s.encode('ascii') for s in pyarfilename]             # <<<<<<<<<<<<<<
 *             for i in range(slen):
 *                 arfilename[i] = py_byte_pyarfilename[i]
 */
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_v_pyarfilename)) || PyTuple_CheckExact(__pyx_v_pyarfilename)) {
      __pyx_t_1 = __pyx_v_pyarfilename; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_pyarfilename); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 571, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 571, __pyx_L1_error)
          #else
          __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 571, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          #endif
        } else {
          if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_5); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 571, __pyx_L1_error)
          #else
          __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 571, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          #endif
        }
      } else {
        __pyx_t_5 = __pyx_t_9(__pyx_t_1);
        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, 571, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_XDECREF_SET(__pyx_v_s, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_s, __pyx_n_s_encode); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_10);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_10, function);
        }
      }
      __pyx_t_5 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_11, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_s_ascii);
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_py_byte_pyarfilename = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "calcephpy.pyx":572
 * 
 *             py_byte_pyarfilename = [s.encode('ascii') for s in pyarfilename]
 *             for i in range(slen):             # <<<<<<<<<<<<<<
 *                 arfilename[i] = py_byte_pyarfilename[i]
 * 
 */
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_slen); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
      __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 572, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 572, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 572, __pyx_L1_error)
          #else
          __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 572, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
        } else {
          if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 572, __pyx_L1_error)
          #else
          __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 572, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
        }
      } else {
        __pyx_t_4 = __pyx_t_9(__pyx_t_1);
        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, 572, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "calcephpy.pyx":573
 *             py_byte_pyarfilename = [s.encode('ascii') for s in pyarfilename]
 *             for i in range(slen):
 *                 arfilename[i] = py_byte_pyarfilename[i]             # <<<<<<<<<<<<<<
 * 
 *             # open files
 */
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_py_byte_pyarfilename, __pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 573, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_t_4); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L1_error)
      __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L1_error)
      (__pyx_v_arfilename[__pyx_t_12]) = __pyx_t_6;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "calcephpy.pyx":572
 * 
 *             py_byte_pyarfilename = [s.encode('ascii') for s in pyarfilename]
 *             for i in range(slen):             # <<<<<<<<<<<<<<
 *                 arfilename[i] = py_byte_pyarfilename[i]
 * 
 */
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "calcephpy.pyx":576
 * 
 *             # open files
 *             v._c_handle = calcephpy.calceph_open_array(slen, <const char * const*>arfilename)             # <<<<<<<<<<<<<<
 * 
 *             PyMem_Free(arfilename)
 */
    __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_slen); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 576, __pyx_L1_error)
    __pyx_v_v->_c_handle = calceph_open_array(__pyx_t_13, ((char const *const *)__pyx_v_arfilename));

    /* "calcephpy.pyx":578
 *             v._c_handle = calcephpy.calceph_open_array(slen, <const char * const*>arfilename)
 * 
 *             PyMem_Free(arfilename)             # <<<<<<<<<<<<<<
 *         v.__check_returnerror_null()
 *         return v
 */
    PyMem_Free(__pyx_v_arfilename);
  }
  __pyx_L3:;

  /* "calcephpy.pyx":579
 * 
 *             PyMem_Free(arfilename)
 *         v.__check_returnerror_null()             # <<<<<<<<<<<<<<
 *         return v
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_v), __pyx_n_s_check_returnerror_null); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 579, __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_1 = (__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_1)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":580
 *             PyMem_Free(arfilename)
 *         v.__check_returnerror_null()
 *         return v             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_v));
  __pyx_r = ((PyObject *)__pyx_v_v);
  goto __pyx_L0;

  /* "calcephpy.pyx":548
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def open(pyarfilename):             # <<<<<<<<<<<<<<
 *         """Open the file(s) pyarfilename
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("calcephpy.CalcephBin.open", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_v);
  __Pyx_XDECREF(__pyx_v_py_byte_pyarfilename);
  __Pyx_XDECREF(__pyx_v_slen);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":585
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef close(self):             # <<<<<<<<<<<<<<
 *         """Close the ephemeris file"""
 *         if self._c_handle is not  NULL:
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_17close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_close(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("close", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_17close)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":587
 *     cpdef close(self):
 *         """Close the ephemeris file"""
 *         if self._c_handle is not  NULL:             # <<<<<<<<<<<<<<
 *             calcephpy.calceph_close(self._c_handle)
 *         self._c_handle = NULL
 */
  __pyx_t_5 = ((__pyx_v_self->_c_handle != NULL) != 0);
  if (__pyx_t_5) {

    /* "calcephpy.pyx":588
 *         """Close the ephemeris file"""
 *         if self._c_handle is not  NULL:
 *             calcephpy.calceph_close(self._c_handle)             # <<<<<<<<<<<<<<
 *         self._c_handle = NULL
 * 
 */
    calceph_close(__pyx_v_self->_c_handle);

    /* "calcephpy.pyx":587
 *     cpdef close(self):
 *         """Close the ephemeris file"""
 *         if self._c_handle is not  NULL:             # <<<<<<<<<<<<<<
 *             calcephpy.calceph_close(self._c_handle)
 *         self._c_handle = NULL
 */
  }

  /* "calcephpy.pyx":589
 *         if self._c_handle is not  NULL:
 *             calcephpy.calceph_close(self._c_handle)
 *         self._c_handle = NULL             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_v_self->_c_handle = NULL;

  /* "calcephpy.pyx":585
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef close(self):             # <<<<<<<<<<<<<<
 *         """Close the ephemeris file"""
 *         if self._c_handle is not  NULL:
 */

  /* 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_AddTraceback("calcephpy.CalcephBin.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_17close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_16close[] = "Close the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_17close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("close (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_16close(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_16close(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("close", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 585, __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("calcephpy.CalcephBin.close", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":594
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef prefetch(self):             # <<<<<<<<<<<<<<
 *         """Prefetch all data to memory"""
 *         self.__check_returnerror_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_19prefetch(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_prefetch(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  int __pyx_v_res;
  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;
  __Pyx_RefNannySetupContext("prefetch", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_prefetch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_19prefetch)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 594, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":596
 *     cpdef prefetch(self):
 *         """Prefetch all data to memory"""
 *         self.__check_returnerror_null()             # <<<<<<<<<<<<<<
 *         res = calcephpy.calceph_prefetch(self._c_handle)
 *         self.__check_returnerror_0(res)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 596, __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, 596, __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;

  /* "calcephpy.pyx":597
 *         """Prefetch all data to memory"""
 *         self.__check_returnerror_null()
 *         res = calcephpy.calceph_prefetch(self._c_handle)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 * 
 */
  __pyx_v_res = calceph_prefetch(__pyx_v_self->_c_handle);

  /* "calcephpy.pyx":598
 *         self.__check_returnerror_null()
 *         res = calcephpy.calceph_prefetch(self._c_handle)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 598, __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;

  /* "calcephpy.pyx":594
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef prefetch(self):             # <<<<<<<<<<<<<<
 *         """Prefetch all data to memory"""
 *         self.__check_returnerror_null()
 */

  /* 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_AddTraceback("calcephpy.CalcephBin.prefetch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_19prefetch(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_18prefetch[] = "Prefetch all data to memory";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_19prefetch(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("prefetch (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_18prefetch(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_18prefetch(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("prefetch", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_prefetch(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __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("calcephpy.CalcephBin.prefetch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":602
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """internal : compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center for a vector of times. The output is in UA, UA/day, radians
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_21__vector_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_n = NULL;
  double __pyx_v_lPV[6];
  PyObject *__pyx_v_vPV = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  __Pyx_RefNannySetupContext("__vector_compute", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vector_compute); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_21__vector_compute)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 602, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 602, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 602, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 602, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":616
 *            @param center (in) "center" object """
 * 
 *         n = len(JD0)             # <<<<<<<<<<<<<<
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 */
  __pyx_t_7 = PyObject_Length(__pyx_v_JD0); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 616, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":618
 *         n = len(JD0)
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_numpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Multiply(__pyx_int_6, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_numpy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_vPV = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "calcephpy.pyx":619
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)
 *             self.__check_returnerror_0(res)
 */
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
    __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 619, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 619, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 619, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_1);
      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, 619, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "calcephpy.pyx":620
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 */
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_JD0, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_time, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 620, __pyx_L1_error)
    __pyx_v_res = calceph_compute(__pyx_v_self->_c_handle, __pyx_t_9, __pyx_t_10, __pyx_t_5, __pyx_t_11, __pyx_v_lPV);

    /* "calcephpy.pyx":621
 *         for j in range(n):
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __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_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":622
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV             # <<<<<<<<<<<<<<
 *         return self.__exportresult(vPV, 6, JD0)
 * 
 */
    __pyx_t_4 = __Pyx_carray_to_py_double(__pyx_v_lPV, 6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_6, 6, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__Pyx_PyObject_SetSlice(__pyx_v_vPV, __pyx_t_4, 0, 0, &__pyx_t_3, &__pyx_t_6, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 622, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":619
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute(self._c_handle, JD0[j], time[j], target, center, lPV)
 *             self.__check_returnerror_0(res)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":623
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_exportresult); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  __pyx_t_11 = 0;
  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_11 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_3 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_vPV);
    __Pyx_GIVEREF(__pyx_v_vPV);
    PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_11, __pyx_v_vPV);
    __Pyx_INCREF(__pyx_int_6);
    __Pyx_GIVEREF(__pyx_int_6);
    PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_11, __pyx_int_6);
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_11, __pyx_v_JD0);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":602
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """internal : compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center for a vector of times. The output is in UA, UA/day, radians
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_vPV);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_21__vector_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_20__vector_compute[] = "internal : compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n           for a given target and center for a vector of times. The output is in UA, UA/day, radians\n           The vector JD0 and time must have the same length\n           \n           return a list of 6 vectors : position and the velocity of the \"target\" object.\n           Each vector has the same length as JD0 and contains a single component of the position or velocity.\n\n    \n           @param JD0 (in) vector of reference time (could be 0)\n           @param time (in) vector of time elapsed from JD0\n           @param target (in) \"target\" object \n           @param center (in) \"center\" object ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_21__vector_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__vector_compute (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute", 1, 4, 4, 1); __PYX_ERR(0, 602, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute", 1, 4, 4, 2); __PYX_ERR(0, 602, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute", 1, 4, 4, 3); __PYX_ERR(0, 602, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__vector_compute") < 0)) __PYX_ERR(0, 602, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__vector_compute", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 602, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_20__vector_compute(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_20__vector_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__vector_compute", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___vector_compute(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __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("calcephpy.CalcephBin.__vector_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":627
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center at a single time. The output is in UA, UA/day, radians
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_23__scalar_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch) {
  double __pyx_v_PV[6];
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__scalar_compute", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scalar_compute); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_23__scalar_compute)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 627, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":639
 * 
 *         cdef double PV[6]
 *         res = calcephpy.calceph_compute(self._c_handle, JD0, time, target, center, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return PV
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 639, __pyx_L1_error)
  __pyx_v_res = calceph_compute(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_v_PV);

  /* "calcephpy.pyx":640
 *         cdef double PV[6]
 *         res = calcephpy.calceph_compute(self._c_handle, JD0, time, target, center, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return PV
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __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;

  /* "calcephpy.pyx":641
 *         res = calcephpy.calceph_compute(self._c_handle, JD0, time, target, center, PV)
 *         self.__check_returnerror_0(res)
 *         return PV             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_PV, 6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":627
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center at a single time. The output is in UA, UA/day, radians
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_23__scalar_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_22__scalar_compute[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n           for a given target and center at a single time. The output is in UA, UA/day, radians\n           \n           return a list of 6 elements : position and the velocity of the \"target\" object.\n    \n           @param JD0 (in) reference time (could be 0)\n           @param time (in) time elapsed from JD0\n           @param target (in) \"target\" object \n           @param center (in) \"center\" object ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_23__scalar_compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__scalar_compute (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute", 1, 4, 4, 1); __PYX_ERR(0, 627, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute", 1, 4, 4, 2); __PYX_ERR(0, 627, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute", 1, 4, 4, 3); __PYX_ERR(0, 627, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__scalar_compute") < 0)) __PYX_ERR(0, 627, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__scalar_compute", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 627, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_22__scalar_compute(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_22__scalar_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__scalar_compute", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___scalar_compute(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __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("calcephpy.CalcephBin.__scalar_compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":646
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center at the given time. The output is in UA, UA/day, radians.
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_25compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("compute", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_compute); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_25compute)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 646, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 646, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 646, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 646, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":662
 *            @param center (in) "center" object """
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute(JD0, time, target, center)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __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, 662, __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;

  /* "calcephpy.pyx":663
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute(JD0, time, target, center)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  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 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
    __Pyx_INCREF(__pyx_v_time);
    __Pyx_GIVEREF(__pyx_v_time);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "calcephpy.pyx":664
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute(JD0, time, target, center)             # <<<<<<<<<<<<<<
 *         else:
 *             return self.__scalar_compute(JD0, time, target, center)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___vector_compute(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "calcephpy.pyx":663
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute(JD0, time, target, center)
 *         else:
 */
  }

  /* "calcephpy.pyx":666
 *             return self.__vector_compute(JD0, time, target, center)
 *         else:
 *             return self.__scalar_compute(JD0, time, target, center)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___scalar_compute(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":646
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute(self, JD0, time, target, center):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *            for a given target and center at the given time. The output is in UA, UA/day, radians.
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_25compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_24compute[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n           for a given target and center at the given time. The output is in UA, UA/day, radians.\n\n           \n            If JD0 is a scalar, it returns a list of 6 elements : position and the velocity of the \"target\" object.\n            If JD0 is a list or numpy's array, it returns a list of 6 vectors : position and the velocity of the \"target\" object. Each vector has the same length as JD0 and contains a single component of the position or velocity. \n            \n            JD0 and time should have the same length.\n            \n\n           @param JD0 (in) reference time (could be 0). It could be a scalar, list or 1D numpy's array.\n           @param time (in) time elapsed from JD0. It could be a scalar, list or 1D numpy's array.\n           @param target (in) \"target\" object \n           @param center (in) \"center\" object ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_25compute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("compute (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute", 1, 4, 4, 1); __PYX_ERR(0, 646, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute", 1, 4, 4, 2); __PYX_ERR(0, 646, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute", 1, 4, 4, 3); __PYX_ERR(0, 646, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "compute") < 0)) __PYX_ERR(0, 646, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("compute", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 646, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_24compute(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_24compute(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("compute", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_compute(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 646, __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("calcephpy.CalcephBin.compute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":672
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_27__vector_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_n = NULL;
  double __pyx_v_lPV[6];
  PyObject *__pyx_v_vPV = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  __Pyx_RefNannySetupContext("__vector_compute_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vector_compute_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_27__vector_compute_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 672, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":687
 *         @param unit (in) sum of CALCEPH_UNIT_???"""
 * 
 *         n = len(JD0)             # <<<<<<<<<<<<<<
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 */
  __pyx_t_7 = PyObject_Length(__pyx_v_JD0); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 687, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":689
 *         n = len(JD0)
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_numpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Multiply(__pyx_int_6, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_numpy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_vPV = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "calcephpy.pyx":690
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)
 *             self.__check_returnerror_0(res)
 */
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
    __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 690, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 690, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 690, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_1);
      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, 690, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "calcephpy.pyx":691
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 */
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_JD0, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_time, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __pyx_v_res = calceph_compute_unit(__pyx_v_self->_c_handle, __pyx_t_9, __pyx_t_10, __pyx_t_5, __pyx_t_11, __pyx_t_12, __pyx_v_lPV);

    /* "calcephpy.pyx":692
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __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_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":693
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV             # <<<<<<<<<<<<<<
 *         return self.__exportresult(vPV, 6, JD0)
 * 
 */
    __pyx_t_4 = __Pyx_carray_to_py_double(__pyx_v_lPV, 6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_6, 6, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__Pyx_PyObject_SetSlice(__pyx_v_vPV, __pyx_t_4, 0, 0, &__pyx_t_3, &__pyx_t_6, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 693, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":690
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute_unit(self._c_handle, JD0[j], time[j], target, center, unit, lPV)
 *             self.__check_returnerror_0(res)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":694
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_exportresult); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  __pyx_t_12 = 0;
  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_12 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_3 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_vPV);
    __Pyx_GIVEREF(__pyx_v_vPV);
    PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_12, __pyx_v_vPV);
    __Pyx_INCREF(__pyx_int_6);
    __Pyx_GIVEREF(__pyx_int_6);
    PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_12, __pyx_int_6);
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_12, __pyx_v_JD0);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":672
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_vPV);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_27__vector_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_26__vector_compute_unit[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center  at the specified time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        return a list of 6 vectors : position and the velocity of the \"target\" object.\n        Each vector has the same length as JD0 and contains a single component of the position or velocity. \n\n        @param JD0 (in) vector of reference time (could be 0)\n        @param time (in) vector of time elapsed from JD0\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_27__vector_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__vector_compute_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_unit", 1, 5, 5, 1); __PYX_ERR(0, 672, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_unit", 1, 5, 5, 2); __PYX_ERR(0, 672, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_unit", 1, 5, 5, 3); __PYX_ERR(0, 672, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_unit", 1, 5, 5, 4); __PYX_ERR(0, 672, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__vector_compute_unit") < 0)) __PYX_ERR(0, 672, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__vector_compute_unit", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 672, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_26__vector_compute_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_26__vector_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__vector_compute_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___vector_compute_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __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("calcephpy.CalcephBin.__vector_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":698
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_29__scalar_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  double __pyx_v_PV[6];
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("__scalar_compute_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scalar_compute_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_29__scalar_compute_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 698, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":713
 * 
 *         cdef double PV[6]
 *         res = calcephpy.calceph_compute_unit(self._c_handle, JD0, time, target, center, unit, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return PV
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_v_res = calceph_compute_unit(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_t_10, __pyx_v_PV);

  /* "calcephpy.pyx":714
 *         cdef double PV[6]
 *         res = calcephpy.calceph_compute_unit(self._c_handle, JD0, time, target, center, unit, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return PV
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __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;

  /* "calcephpy.pyx":715
 *         res = calcephpy.calceph_compute_unit(self._c_handle, JD0, time, target, center, unit, PV)
 *         self.__check_returnerror_0(res)
 *         return PV             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_PV, 6); 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;

  /* "calcephpy.pyx":698
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_29__scalar_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_28__scalar_compute_unit[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center  at the specified time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        return a list of 6 elements : position and the velocity of the \"target\" object.\n\n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_29__scalar_compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__scalar_compute_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_unit", 1, 5, 5, 1); __PYX_ERR(0, 698, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_unit", 1, 5, 5, 2); __PYX_ERR(0, 698, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_unit", 1, 5, 5, 3); __PYX_ERR(0, 698, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_unit", 1, 5, 5, 4); __PYX_ERR(0, 698, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__scalar_compute_unit") < 0)) __PYX_ERR(0, 698, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__scalar_compute_unit", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 698, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_28__scalar_compute_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_28__scalar_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__scalar_compute_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___scalar_compute_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __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("calcephpy.CalcephBin.__scalar_compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":719
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the given time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_31compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("compute_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_compute_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_31compute_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 719, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 719, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 719, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":734
 *         @param unit (in) sum of CALCEPH_UNIT_???"""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute_unit(JD0, time, target, center, unit)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __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, 734, __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;

  /* "calcephpy.pyx":735
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute_unit(JD0, time, target, center, unit)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  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 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
    __Pyx_INCREF(__pyx_v_time);
    __Pyx_GIVEREF(__pyx_v_time);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 735, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "calcephpy.pyx":736
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute_unit(JD0, time, target, center, unit)             # <<<<<<<<<<<<<<
 *         else:
 *             return self.__scalar_compute_unit(JD0, time, target, center, unit)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___vector_compute_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "calcephpy.pyx":735
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute_unit(JD0, time, target, center, unit)
 *         else:
 */
  }

  /* "calcephpy.pyx":738
 *             return self.__vector_compute_unit(JD0, time, target, center, unit)
 *         else:
 *             return self.__scalar_compute_unit(JD0, time, target, center, unit)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___scalar_compute_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 738, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":719
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute_unit(self, JD0, time, target, center, unit):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the given time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_31compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_30compute_unit[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center  at the given time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        If JD0 is a scalar, it returns a list of 6 elements : position and the velocity of the \"target\" object.\n        If JD0 is a list or numpy's array, it returns a list of 6 vectors : position and the velocity of the \"target\" object. Each vector has the same length as JD0 and contains a single component of the position or velocity. \n\n        @param JD0 (in) reference time (could be 0). It could be a scalar, list or 1D numpy's array.\n        @param time (in) time elapsed from JD0. It could be a scalar, list or 1D numpy's array.\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_31compute_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("compute_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_unit", 1, 5, 5, 1); __PYX_ERR(0, 719, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_unit", 1, 5, 5, 2); __PYX_ERR(0, 719, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_unit", 1, 5, 5, 3); __PYX_ERR(0, 719, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_unit", 1, 5, 5, 4); __PYX_ERR(0, 719, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "compute_unit") < 0)) __PYX_ERR(0, 719, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("compute_unit", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 719, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_30compute_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_30compute_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("compute_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_compute_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __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("calcephpy.CalcephBin.compute_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":743
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientations of the object "target" for a vector of times
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_33__vector_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_n = NULL;
  double __pyx_v_lPV[6];
  PyObject *__pyx_v_vPV = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  __Pyx_RefNannySetupContext("__vector_orient_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vector_orient_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 743, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_33__vector_orient_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 743, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":757
 *         @param unit (in) sum of CALCEPH_UNIT_??? and OUTPUT_???"""
 * 
 *         n = len(JD0)             # <<<<<<<<<<<<<<
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 */
  __pyx_t_7 = PyObject_Length(__pyx_v_JD0); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 757, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":759
 *         n = len(JD0)
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_numpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Multiply(__pyx_int_6, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_numpy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_vPV = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "calcephpy.pyx":760
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)
 *             self.__check_returnerror_0(res)
 */
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
    __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 760, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 760, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 760, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 760, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 760, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_1);
      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, 760, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "calcephpy.pyx":761
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 */
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_JD0, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 761, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_time, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 761, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 761, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 761, __pyx_L1_error)
    __pyx_v_res = calceph_orient_unit(__pyx_v_self->_c_handle, __pyx_t_9, __pyx_t_10, __pyx_t_5, __pyx_t_11, __pyx_v_lPV);

    /* "calcephpy.pyx":762
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __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_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":763
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV             # <<<<<<<<<<<<<<
 *         return self.__exportresult(vPV, 6, JD0)
 * 
 */
    __pyx_t_4 = __Pyx_carray_to_py_double(__pyx_v_lPV, 6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Multiply(__pyx_int_6, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_6, 6, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__Pyx_PyObject_SetSlice(__pyx_v_vPV, __pyx_t_4, 0, 0, &__pyx_t_3, &__pyx_t_6, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "calcephpy.pyx":760
 *         cdef double lPV[6]
 *         vPV = numpy.zeros(6*n, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_orient_unit(self._c_handle, JD0[j], time[j], target, unit, lPV)
 *             self.__check_returnerror_0(res)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":764
 *             self.__check_returnerror_0(res)
 *             vPV[6*j:6*j+6] = lPV
 *         return self.__exportresult(vPV, 6, JD0)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_exportresult); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  __pyx_t_11 = 0;
  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_11 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_int_6, __pyx_v_JD0};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_3 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_vPV);
    __Pyx_GIVEREF(__pyx_v_vPV);
    PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_11, __pyx_v_vPV);
    __Pyx_INCREF(__pyx_int_6);
    __Pyx_GIVEREF(__pyx_int_6);
    PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_11, __pyx_int_6);
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_3, 2+__pyx_t_11, __pyx_v_JD0);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":743
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientations of the object "target" for a vector of times
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_vPV);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_33__vector_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_32__vector_orient_unit[] = "Return the orientations of the object \"target\" for a vector of times \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        return a list of 6 elements : orientation (euler angles and their derivatives) of the \"target\" object.\n        return a list of 6 vectors : orientation (euler angles and their derivatives) of the \"target\" object.\n        Each vector has the same length as JD0 and contains a single component of the orientation.\n\n        @param JD0 (in) vector of reference time (could be 0)\n        @param time (in) vector of time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_33__vector_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__vector_orient_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_unit", 1, 4, 4, 1); __PYX_ERR(0, 743, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_unit", 1, 4, 4, 2); __PYX_ERR(0, 743, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_unit", 1, 4, 4, 3); __PYX_ERR(0, 743, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__vector_orient_unit") < 0)) __PYX_ERR(0, 743, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__vector_orient_unit", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 743, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_32__vector_orient_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_32__vector_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__vector_orient_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___vector_orient_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 743, __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("calcephpy.CalcephBin.__vector_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":769
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_35__scalar_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  double __pyx_v_PV[6];
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("__scalar_orient_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scalar_orient_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 769, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_35__scalar_orient_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 769, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 769, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 769, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 769, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":782
 * 
 *         cdef double PV[6]
 *         res = calcephpy.calceph_orient_unit(self._c_handle, JD0, time, target, unit, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return PV
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L1_error)
  __pyx_v_res = calceph_orient_unit(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_v_PV);

  /* "calcephpy.pyx":783
 *         cdef double PV[6]
 *         res = calcephpy.calceph_orient_unit(self._c_handle, JD0, time, target, unit, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return PV
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 783, __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;

  /* "calcephpy.pyx":784
 *         res = calcephpy.calceph_orient_unit(self._c_handle, JD0, time, target, unit, PV)
 *         self.__check_returnerror_0(res)
 *         return PV             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_PV, 6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":769
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_35__scalar_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_34__scalar_orient_unit[] = "Return the orientation of the object \"target\"  at the specified time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        return a list of 6 elements : orientation (euler angles and their derivatives) of the \"target\" object.\n\n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_35__scalar_orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__scalar_orient_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_unit", 1, 4, 4, 1); __PYX_ERR(0, 769, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_unit", 1, 4, 4, 2); __PYX_ERR(0, 769, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_unit", 1, 4, 4, 3); __PYX_ERR(0, 769, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__scalar_orient_unit") < 0)) __PYX_ERR(0, 769, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__scalar_orient_unit", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 769, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_34__scalar_orient_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_34__scalar_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__scalar_orient_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___scalar_orient_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 769, __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("calcephpy.CalcephBin.__scalar_orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":789
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_37orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("orient_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_orient_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 789, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_37orient_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 789, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 789, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 789, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 789, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":809
 * 
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_orient_unit(JD0, time, target, unit)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 809, __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, 809, __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;

  /* "calcephpy.pyx":810
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_orient_unit(JD0, time, target, unit)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  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 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 810, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 810, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
    __Pyx_INCREF(__pyx_v_time);
    __Pyx_GIVEREF(__pyx_v_time);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 810, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "calcephpy.pyx":811
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_orient_unit(JD0, time, target, unit)             # <<<<<<<<<<<<<<
 *         else:
 *             return self.__scalar_orient_unit(JD0, time, target, unit)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___vector_orient_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "calcephpy.pyx":810
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_orient_unit(JD0, time, target, unit)
 *         else:
 */
  }

  /* "calcephpy.pyx":813
 *             return self.__vector_orient_unit(JD0, time, target, unit)
 *         else:
 *             return self.__scalar_orient_unit(JD0, time, target, unit)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___scalar_orient_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":789
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef orient_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_37orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_36orient_unit[] = "Return the orientation of the object \"target\"  at the specified time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        If JD0 is a scalar, it returns a list of 6 elements : orientation (euler angles and their derivatives) of the \"target\" object.\n        If JD0 is a list or numpy's array, it returns a list of 6 vectors : orientation (euler angles and their derivatives) of the \"target\" object. Each vector has the same length as JD0 and contains a single component of the position or velocity. \n        \n        JD0 and time should have the same length.\n        \n\n        @param JD0 (in) reference time (could be 0). It could be a scalar, list or 1D numpy's array.\n        @param time (in) time elapsed from JD0. It could be a scalar, list or 1D numpy's array.\n\n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_37orient_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("orient_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_unit", 1, 4, 4, 1); __PYX_ERR(0, 789, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_unit", 1, 4, 4, 2); __PYX_ERR(0, 789, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_unit", 1, 4, 4, 3); __PYX_ERR(0, 789, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "orient_unit") < 0)) __PYX_ERR(0, 789, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("orient_unit", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 789, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_36orient_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_36orient_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("orient_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_orient_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 789, __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("calcephpy.CalcephBin.orient_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":817
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef rotangmom_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the rotional angular momentum (G/(mR^2)) of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_39rotangmom_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_rotangmom_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, int __pyx_skip_dispatch) {
  double __pyx_v_PV[6];
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("rotangmom_unit", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotangmom_unit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_39rotangmom_unit)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 817, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[5] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 4+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 817, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(4+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 817, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 817, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":829
 *         @param unit (in) sum of CALCEPH_UNIT_???"""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double PV[6]
 *         res = calcephpy.calceph_rotangmom_unit(self._c_handle, JD0, time, target, unit, PV)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 829, __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, 829, __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;

  /* "calcephpy.pyx":831
 *         self.__check_chandle_null()
 *         cdef double PV[6]
 *         res = calcephpy.calceph_rotangmom_unit(self._c_handle, JD0, time, target, unit, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return PV
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L1_error)
  __pyx_v_res = calceph_rotangmom_unit(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_v_PV);

  /* "calcephpy.pyx":832
 *         cdef double PV[6]
 *         res = calcephpy.calceph_rotangmom_unit(self._c_handle, JD0, time, target, unit, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return PV
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __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;

  /* "calcephpy.pyx":833
 *         res = calcephpy.calceph_rotangmom_unit(self._c_handle, JD0, time, target, unit, PV)
 *         self.__check_returnerror_0(res)
 *         return PV             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_PV, 6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":817
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef rotangmom_unit(self, JD0, time, target, unit):             # <<<<<<<<<<<<<<
 *         """Return the rotional angular momentum (G/(mR^2)) of the object "target"  at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.rotangmom_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_39rotangmom_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_38rotangmom_unit[] = "Return the rotional angular momentum (G/(mR^2)) of the object \"target\"  at the specified time \n        (time elapsed from JD0).\n        The output is expressed according to unit.\n \n        return a list of 6 elements : rotional angular momentum  and their first derivatives of the \"target\" object.\n\n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_39rotangmom_unit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("rotangmom_unit (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,0};
    PyObject* values[4] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_unit", 1, 4, 4, 1); __PYX_ERR(0, 817, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_unit", 1, 4, 4, 2); __PYX_ERR(0, 817, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_unit", 1, 4, 4, 3); __PYX_ERR(0, 817, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "rotangmom_unit") < 0)) __PYX_ERR(0, 817, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("rotangmom_unit", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 817, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.rotangmom_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_38rotangmom_unit(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_38rotangmom_unit(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("rotangmom_unit", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_rotangmom_unit(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __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("calcephpy.CalcephBin.rotangmom_unit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":837
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center for  a vector of time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_41__vector_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_ncomp = NULL;
  double __pyx_v_lPV[12];
  PyObject *__pyx_v_vPV = NULL;
  PyObject *__pyx_v_lPV12 = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_t_13;
  __Pyx_RefNannySetupContext("__vector_compute_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vector_compute_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 837, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_41__vector_compute_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(6+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 837, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 5+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 837, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":859
 *         =3 : Position+Velocity+Acceleration+Jerk are computed."""
 * 
 *         n = len(JD0)             # <<<<<<<<<<<<<<
 *         ncomp = 3*(order+1)
 *         cdef double lPV[12]
 */
  __pyx_t_7 = PyObject_Length(__pyx_v_JD0); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 859, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":860
 * 
 *         n = len(JD0)
 *         ncomp = 3*(order+1)             # <<<<<<<<<<<<<<
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 */
  __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_order, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Multiply(__pyx_int_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_ncomp = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "calcephpy.pyx":862
 *         ncomp = 3*(order+1)
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_numpy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_numpy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_vPV = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "calcephpy.pyx":863
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_numpy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_numpy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_1) < 0) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__4, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_lPV12 = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":864
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 */
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 864, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 864, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 864, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_8(__pyx_t_4);
      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, 864, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":865
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV
 */
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_JD0, __pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_time, __pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_order); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L1_error)
    __pyx_v_res = calceph_compute_order(__pyx_v_self->_c_handle, __pyx_t_9, __pyx_t_10, __pyx_t_5, __pyx_t_11, __pyx_t_12, __pyx_t_13, __pyx_v_lPV);

    /* "calcephpy.pyx":866
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __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;

    /* "calcephpy.pyx":867
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV             # <<<<<<<<<<<<<<
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 *         return self.__exportresult(vPV, ncomp, JD0)
 */
    __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_lPV, 12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_lPV12, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":868
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]             # <<<<<<<<<<<<<<
 *         return self.__exportresult(vPV, ncomp, JD0)
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_lPV12, 0, 0, NULL, &__pyx_v_ncomp, NULL, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_v_ncomp); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__Pyx_PyObject_SetSlice(__pyx_v_vPV, __pyx_t_1, 0, 0, &__pyx_t_2, &__pyx_t_6, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 868, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "calcephpy.pyx":864
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "calcephpy.pyx":869
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 *         return self.__exportresult(vPV, ncomp, JD0)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_exportresult); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = NULL;
  __pyx_t_13 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_13 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_v_ncomp, __pyx_v_JD0};
    __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_13, 3+__pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_v_ncomp, __pyx_v_JD0};
    __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_13, 3+__pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(3+__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_vPV);
    __Pyx_GIVEREF(__pyx_v_vPV);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_13, __pyx_v_vPV);
    __Pyx_INCREF(__pyx_v_ncomp);
    __Pyx_GIVEREF(__pyx_v_ncomp);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_13, __pyx_v_ncomp);
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_13, __pyx_v_JD0);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":837
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center for  a vector of time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_ncomp);
  __Pyx_XDECREF(__pyx_v_vPV);
  __Pyx_XDECREF(__pyx_v_lPV12);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_41__vector_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_40__vector_compute_order[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center for  a vector of time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n        The vector JD0 and time must have the same length.\n        \n        return a list of 3*(order+1) vectors of floating-point numbers.\n        This list contains the positions and their derivatives of the \"target\" object\n        Each vector has the same length as JD0 and contains a single component of the position or its derivatives.\n \n        @param JD0 (in) vector of reference time (could be 0)\n        @param time (in) vector of time elapsed from JD0\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?\n        @param order (in) order of the computation\n        =0 : Positions are computed\n        =1 : Position+Velocity are computed\n        =2 : Position+Velocity+Acceleration are computed\n        =3 : Position+Velocity+Acceleration+Jerk are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_41__vector_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__vector_compute_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[6] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, 1); __PYX_ERR(0, 837, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, 2); __PYX_ERR(0, 837, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, 3); __PYX_ERR(0, 837, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, 4); __PYX_ERR(0, 837, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, 5); __PYX_ERR(0, 837, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__vector_compute_order") < 0)) __PYX_ERR(0, 837, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
    __pyx_v_order = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__vector_compute_order", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 837, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_40__vector_compute_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_40__vector_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__vector_compute_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___vector_compute_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 837, __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("calcephpy.CalcephBin.__vector_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":874
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_43__scalar_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  double __pyx_v_PV[12];
  int __pyx_v_res;
  PyObject *__pyx_v_i = NULL;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  PyObject *(*__pyx_t_13)(PyObject *);
  Py_ssize_t __pyx_t_14;
  __Pyx_RefNannySetupContext("__scalar_compute_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scalar_compute_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_43__scalar_compute_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(6+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 874, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 5+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":895
 * 
 *         cdef double PV[12]
 *         res = calcephpy.calceph_compute_order(self._c_handle, JD0, time, target, center, unit, order, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_center); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_order); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_v_res = calceph_compute_order(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_t_10, __pyx_t_11, __pyx_v_PV);

  /* "calcephpy.pyx":896
 *         cdef double PV[12]
 *         res = calcephpy.calceph_compute_order(self._c_handle, JD0, time, target, center, unit, order, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 896, __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;

  /* "calcephpy.pyx":897
 *         res = calcephpy.calceph_compute_order(self._c_handle, JD0, time, target, center, unit, order, PV)
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_order, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_int_3, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_12 = 0;
    __pyx_t_13 = NULL;
  } else {
    __pyx_t_12 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_13 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 897, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_13)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_12 >= 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_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(0, 897, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(0, 897, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_13(__pyx_t_2);
      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, 897, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_14 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_14 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 897, __pyx_L1_error)
    __pyx_t_3 = PyFloat_FromDouble((__pyx_v_PV[__pyx_t_14])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 897, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":874
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_43__scalar_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_42__scalar_compute_order[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center  at the specified time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n        \n        return a list of 3*(order+1) floating-point numbers.\n        This list contains the positions and their derivatives of the \"target\" object\n \n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?\n        @param order (in) order of the computation\n        =0 : Positions are computed\n        =1 : Position+Velocity are computed\n        =2 : Position+Velocity+Acceleration are computed\n        =3 : Position+Velocity+Acceleration+Jerk are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_43__scalar_compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__scalar_compute_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[6] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, 1); __PYX_ERR(0, 874, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, 2); __PYX_ERR(0, 874, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, 3); __PYX_ERR(0, 874, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, 4); __PYX_ERR(0, 874, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, 5); __PYX_ERR(0, 874, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__scalar_compute_order") < 0)) __PYX_ERR(0, 874, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
    __pyx_v_order = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__scalar_compute_order", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 874, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_42__scalar_compute_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_42__scalar_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__scalar_compute_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___scalar_compute_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __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("calcephpy.CalcephBin.__scalar_compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":902
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_45compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("compute_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_compute_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_45compute_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[7] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 6+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(6+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 902, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_center);
          __Pyx_GIVEREF(__pyx_v_center);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_center);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 5+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":928
 *         =3 : Position+Velocity+Acceleration+Jerk are computed."""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute_order(JD0, time, target, center, unit, order)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 928, __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, 928, __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;

  /* "calcephpy.pyx":929
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute_order(JD0, time, target, center, unit, order)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  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 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
    __Pyx_INCREF(__pyx_v_time);
    __Pyx_GIVEREF(__pyx_v_time);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "calcephpy.pyx":930
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_compute_order(JD0, time, target, center, unit, order)             # <<<<<<<<<<<<<<
 *         else:
 *             return self.__scalar_compute_order(JD0, time, target, center, unit, order)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___vector_compute_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "calcephpy.pyx":929
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_compute_order(JD0, time, target, center, unit, order)
 *         else:
 */
  }

  /* "calcephpy.pyx":932
 *             return self.__vector_compute_order(JD0, time, target, center, unit, order)
 *         else:
 *             return self.__scalar_compute_order(JD0, time, target, center, unit, order)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___scalar_compute_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":902
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef compute_order(self, JD0, time, target, center, unit, order):             # <<<<<<<<<<<<<<
 *         """compute the position <x,y,z> and velocity <xdot,ydot,zdot>
 *         for a given target and center  at the specified time
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_45compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_44compute_order[] = "compute the position <x,y,z> and velocity <xdot,ydot,zdot>\n        for a given target and center  at the specified time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n         \n        If JD0 is a scalar, it returns a list of 3*(order+1) floating-point numbers.\n        This list contains the positions and their derivatives of the \"target\" object.\n\n        If JD0 is a list or numpy's array, it returns a list of 3*(order+1) vectors.\n        Each vector has the same length as JD0 and contains a single component of the positions and their derivatives. \n            \n        JD0 and time should have the same length.\n            \n\n        @param JD0 (in) reference time (could be 0). It could be a scalar, list or 1D numpy's array.\n        @param time (in) time elapsed from JD0. It could be a scalar, list or 1D numpy's array.\n        @param target (in) \"target\" object \n        @param center (in) \"center\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?\n        @param order (in) order of the computation\n        =0 : Positions are computed\n        =1 : Position+Velocity are computed\n        =2 : Position+Velocity+Acceleration are computed\n        =3 : Position+Velocity+Acceleration+Jerk are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_45compute_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_center = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("compute_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_center,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[6] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, 1); __PYX_ERR(0, 902, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, 2); __PYX_ERR(0, 902, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_center)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, 3); __PYX_ERR(0, 902, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, 4); __PYX_ERR(0, 902, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, 5); __PYX_ERR(0, 902, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "compute_order") < 0)) __PYX_ERR(0, 902, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_center = values[3];
    __pyx_v_unit = values[4];
    __pyx_v_order = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("compute_order", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 902, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_44compute_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_44compute_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_center, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("compute_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_compute_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_center, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __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("calcephpy.CalcephBin.compute_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":937
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" for a vector of time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_47__vector_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___vector_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_ncomp = NULL;
  double __pyx_v_lPV[12];
  PyObject *__pyx_v_vPV = NULL;
  PyObject *__pyx_v_lPV12 = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_v_res;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  __Pyx_RefNannySetupContext("__vector_orient_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vector_orient_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 937, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_47__vector_orient_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 937, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 937, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 937, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 937, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":956
 *          =3 : orientations and their first, second, third derivatives are computed."""
 * 
 *         n = len(JD0)             # <<<<<<<<<<<<<<
 *         ncomp = 3*(order+1)
 *         cdef double lPV[12]
 */
  __pyx_t_7 = PyObject_Length(__pyx_v_JD0); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 956, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":957
 * 
 *         n = len(JD0)
 *         ncomp = 3*(order+1)             # <<<<<<<<<<<<<<
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 */
  __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_v_order, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Multiply(__pyx_int_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_ncomp = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "calcephpy.pyx":959
 *         ncomp = 3*(order+1)
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_numpy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_zeros); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_numpy); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_vPV = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "calcephpy.pyx":960
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_numpy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_zeros); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_numpy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_1) < 0) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__4, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_lPV12 = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":961
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 */
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_v_n); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 961, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 961, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 961, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 961, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_8(__pyx_t_4);
      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, 961, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":962
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV
 */
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_JD0, __pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_9 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_time, __pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_order); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 962, __pyx_L1_error)
    __pyx_v_res = calceph_orient_order(__pyx_v_self->_c_handle, __pyx_t_9, __pyx_t_10, __pyx_t_5, __pyx_t_11, __pyx_t_12, __pyx_v_lPV);

    /* "calcephpy.pyx":963
 *         for j in range(n):
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 963, __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;

    /* "calcephpy.pyx":964
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV             # <<<<<<<<<<<<<<
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 *         return self.__exportresult(vPV, ncomp, JD0)
 */
    __pyx_t_1 = __Pyx_carray_to_py_double(__pyx_v_lPV, 12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_lPV12, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":965
 *             self.__check_returnerror_0(res)
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]             # <<<<<<<<<<<<<<
 *         return self.__exportresult(vPV, ncomp, JD0)
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_lPV12, 0, 0, NULL, &__pyx_v_ncomp, NULL, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyNumber_Multiply(__pyx_v_ncomp, __pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_v_ncomp); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__Pyx_PyObject_SetSlice(__pyx_v_vPV, __pyx_t_1, 0, 0, &__pyx_t_2, &__pyx_t_6, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "calcephpy.pyx":961
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)
 *         for j in range(n):             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_orient_order(self._c_handle, JD0[j], time[j], target, unit, order, lPV)
 *             self.__check_returnerror_0(res)
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "calcephpy.pyx":966
 *             lPV12 = lPV
 *             vPV[ncomp*j:ncomp*j+ncomp] = lPV12[:ncomp]
 *         return self.__exportresult(vPV, ncomp, JD0)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_exportresult); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = NULL;
  __pyx_t_12 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_12 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_v_ncomp, __pyx_v_JD0};
    __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_vPV, __pyx_v_ncomp, __pyx_v_JD0};
    __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  {
    __pyx_t_2 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_vPV);
    __Pyx_GIVEREF(__pyx_v_vPV);
    PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_12, __pyx_v_vPV);
    __Pyx_INCREF(__pyx_v_ncomp);
    __Pyx_GIVEREF(__pyx_v_ncomp);
    PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_12, __pyx_v_ncomp);
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_2, 2+__pyx_t_12, __pyx_v_JD0);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":937
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __vector_orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" for a vector of time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_ncomp);
  __Pyx_XDECREF(__pyx_v_vPV);
  __Pyx_XDECREF(__pyx_v_lPV12);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_47__vector_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_46__vector_orient_order[] = "Return the orientation of the object \"target\" for a vector of time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n        \n        return a list of 3*(order+1) vectors of floating-point numbers.\n        This list contains the orientation (euler angles and their derivatives) of the \"target\" object.\n        Each vector has the same length as JD0 and contains a single component of the orientation.\n \n        @param JD0 (in) vector of reference time (could be 0)\n        @param time (in) vector of time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?\n        @param order (in) order of the computation\n         =0 : orientations are computed\n         =1 : orientations and their first derivatives are computed\n         =2 : orientations and their first,second derivatives are computed\n         =3 : orientations and their first, second, third derivatives are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_47__vector_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__vector_orient_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_order", 1, 5, 5, 1); __PYX_ERR(0, 937, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_order", 1, 5, 5, 2); __PYX_ERR(0, 937, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_order", 1, 5, 5, 3); __PYX_ERR(0, 937, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__vector_orient_order", 1, 5, 5, 4); __PYX_ERR(0, 937, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__vector_orient_order") < 0)) __PYX_ERR(0, 937, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
    __pyx_v_order = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__vector_orient_order", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 937, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__vector_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_46__vector_orient_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_46__vector_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__vector_orient_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___vector_orient_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 937, __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("calcephpy.CalcephBin.__vector_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":970
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_49__scalar_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin___scalar_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  double __pyx_v_PV[12];
  int __pyx_v_res;
  PyObject *__pyx_v_i = NULL;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  Py_ssize_t __pyx_t_13;
  __Pyx_RefNannySetupContext("__scalar_orient_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scalar_orient_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 970, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_49__scalar_orient_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 970, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 970, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 970, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 970, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":988
 *          =3 : orientations and their first, second, third derivatives are computed."""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double PV[12]
 *         res = calcephpy.calceph_orient_order(self._c_handle, JD0, time, target, unit, order, PV)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 988, __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, 988, __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;

  /* "calcephpy.pyx":990
 *         self.__check_chandle_null()
 *         cdef double PV[12]
 *         res = calcephpy.calceph_orient_order(self._c_handle, JD0, time, target, unit, order, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 990, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 990, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 990, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 990, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_order); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 990, __pyx_L1_error)
  __pyx_v_res = calceph_orient_order(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_t_10, __pyx_v_PV);

  /* "calcephpy.pyx":991
 *         cdef double PV[12]
 *         res = calcephpy.calceph_orient_order(self._c_handle, JD0, time, target, unit, order, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 991, __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;

  /* "calcephpy.pyx":992
 *         res = calcephpy.calceph_orient_order(self._c_handle, JD0, time, target, unit, order, PV)
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_order, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_int_3, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_11 = 0;
    __pyx_t_12 = NULL;
  } else {
    __pyx_t_11 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 992, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_12)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_11 >= 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_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 992, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 992, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_12(__pyx_t_2);
      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, 992, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_13 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_13 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 992, __pyx_L1_error)
    __pyx_t_3 = PyFloat_FromDouble((__pyx_v_PV[__pyx_t_13])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 992, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":970
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef __scalar_orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_49__scalar_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_48__scalar_orient_order[] = "Return the orientation of the object \"target\" at the specified time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n        \n        return a list of 3*(order+1) floating-point numbers.\n        This list contains the orientation (euler angles and their derivatives) of the \"target\" object\n \n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?\n        @param order (in) order of the computation\n         =0 : orientations are computed\n         =1 : orientations and their first derivatives are computed\n         =2 : orientations and their first,second derivatives are computed\n         =3 : orientations and their first, second, third derivatives are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_49__scalar_orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__scalar_orient_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_order", 1, 5, 5, 1); __PYX_ERR(0, 970, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_order", 1, 5, 5, 2); __PYX_ERR(0, 970, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_order", 1, 5, 5, 3); __PYX_ERR(0, 970, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__scalar_orient_order", 1, 5, 5, 4); __PYX_ERR(0, 970, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__scalar_orient_order") < 0)) __PYX_ERR(0, 970, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
    __pyx_v_order = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__scalar_orient_order", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 970, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.__scalar_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_48__scalar_orient_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_48__scalar_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__scalar_orient_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin___scalar_orient_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 970, __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("calcephpy.CalcephBin.__scalar_orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":996
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_51orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("orient_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_orient_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 996, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_51orient_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 996, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 996, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 996, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 996, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1020
 *          =3 : orientations and their first, second, third derivatives are computed."""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_orient_order(JD0, time, target, unit, order)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __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, 1020, __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;

  /* "calcephpy.pyx":1021
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_orient_order(JD0, time, target, unit, order)
 *         else:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  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 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_JD0, __pyx_v_time};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_JD0);
    __Pyx_GIVEREF(__pyx_v_JD0);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
    __Pyx_INCREF(__pyx_v_time);
    __Pyx_GIVEREF(__pyx_v_time);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_7) {

    /* "calcephpy.pyx":1022
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :
 *             return self.__vector_orient_order(JD0, time, target, unit, order)             # <<<<<<<<<<<<<<
 *         else:
 *             return self.__scalar_orient_order(JD0, time, target, unit, order)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___vector_orient_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "calcephpy.pyx":1021
 * 
 *         self.__check_chandle_null()
 *         if self.__isarray_and_samesize(JD0, time) :             # <<<<<<<<<<<<<<
 *             return self.__vector_orient_order(JD0, time, target, unit, order)
 *         else:
 */
  }

  /* "calcephpy.pyx":1024
 *             return self.__vector_orient_order(JD0, time, target, unit, order)
 *         else:
 *             return self.__scalar_orient_order(JD0, time, target, unit, order)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->__pyx___scalar_orient_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":996
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef orient_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the orientation of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_51orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_50orient_order[] = "Return the orientation of the object \"target\" at the specified time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n         \n        If JD0 is a scalar, it returns a list of 3*(order+1) floating-point numbers.\n        This list contains the orientation (euler angles or nutation angles and their derivatives) of the \"target\" object\n\n        If JD0 is a list or numpy's array, it returns a list of 3*(order+1) vectors.\n        Each vector has the same length as JD0 and contains a single component of the orientation (euler angles or nutation angles and their derivatives) . \n            \n        JD0 and time should have the same length.\n            \n\n        @param JD0 (in) reference time (could be 0). It could be a scalar, list or 1D numpy's array.\n        @param time (in) time elapsed from JD0. It could be a scalar, list or 1D numpy's array.\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077? and OUTPUT_\077\077?\n        @param order (in) order of the computation\n         =0 : orientations are computed\n         =1 : orientations and their first derivatives are computed\n         =2 : orientations and their first,second derivatives are computed\n         =3 : orientations and their first, second, third derivatives are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_51orient_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("orient_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_order", 1, 5, 5, 1); __PYX_ERR(0, 996, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_order", 1, 5, 5, 2); __PYX_ERR(0, 996, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_order", 1, 5, 5, 3); __PYX_ERR(0, 996, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("orient_order", 1, 5, 5, 4); __PYX_ERR(0, 996, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "orient_order") < 0)) __PYX_ERR(0, 996, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
    __pyx_v_order = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("orient_order", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 996, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_50orient_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_50orient_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("orient_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_orient_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 996, __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("calcephpy.CalcephBin.orient_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1029
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef rotangmom_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the rotional angular momentum (G/(mR^2)) of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_53rotangmom_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_rotangmom_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order, int __pyx_skip_dispatch) {
  double __pyx_v_PV[12];
  int __pyx_v_res;
  PyObject *__pyx_v_i = NULL;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  double __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  Py_ssize_t __pyx_t_13;
  __Pyx_RefNannySetupContext("rotangmom_order", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotangmom_order); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_53rotangmom_order)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        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_5 = 1;
          }
        }
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1029, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_5, 5+__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1029, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(5+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1029, __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_JD0);
          __Pyx_GIVEREF(__pyx_v_JD0);
          PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_JD0);
          __Pyx_INCREF(__pyx_v_time);
          __Pyx_GIVEREF(__pyx_v_time);
          PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_time);
          __Pyx_INCREF(__pyx_v_target);
          __Pyx_GIVEREF(__pyx_v_target);
          PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_5, __pyx_v_target);
          __Pyx_INCREF(__pyx_v_unit);
          __Pyx_GIVEREF(__pyx_v_unit);
          PyTuple_SET_ITEM(__pyx_t_6, 3+__pyx_t_5, __pyx_v_unit);
          __Pyx_INCREF(__pyx_v_order);
          __Pyx_GIVEREF(__pyx_v_order);
          PyTuple_SET_ITEM(__pyx_t_6, 4+__pyx_t_5, __pyx_v_order);
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1029, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1047
 *           =3 : (G/mR^2) and their first, second, third derivatives are computed."""
 * 
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double PV[12]
 *         res = calcephpy.calceph_rotangmom_order(self._c_handle, JD0, time, target, unit, order, PV)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1047, __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, 1047, __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;

  /* "calcephpy.pyx":1049
 *         self.__check_chandle_null()
 *         cdef double PV[12]
 *         res = calcephpy.calceph_rotangmom_order(self._c_handle, JD0, time, target, unit, order, PV)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 */
  __pyx_t_7 = __pyx_PyFloat_AsDouble(__pyx_v_JD0); if (unlikely((__pyx_t_7 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_t_8 = __pyx_PyFloat_AsDouble(__pyx_v_time); if (unlikely((__pyx_t_8 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_target); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyInt_As_int(__pyx_v_unit); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyInt_As_int(__pyx_v_order); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_v_res = calceph_rotangmom_order(__pyx_v_self->_c_handle, __pyx_t_7, __pyx_t_8, __pyx_t_5, __pyx_t_9, __pyx_t_10, __pyx_v_PV);

  /* "calcephpy.pyx":1050
 *         cdef double PV[12]
 *         res = calcephpy.calceph_rotangmom_order(self._c_handle, JD0, time, target, unit, order, PV)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return [PV[i] for i in range(0,3*(order+1)) ]
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1050, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1050, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1050, __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;

  /* "calcephpy.pyx":1051
 *         res = calcephpy.calceph_rotangmom_order(self._c_handle, JD0, time, target, unit, order, PV)
 *         self.__check_returnerror_0(res)
 *         return [PV[i] for i in range(0,3*(order+1)) ]             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_v_order, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_int_3, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_int_0);
  __Pyx_GIVEREF(__pyx_int_0);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_11 = 0;
    __pyx_t_12 = NULL;
  } else {
    __pyx_t_11 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_12 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1051, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_12)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_11 >= 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_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 1051, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_3); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 1051, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_12(__pyx_t_2);
      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, 1051, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_13 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_13 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1051, __pyx_L1_error)
    __pyx_t_3 = PyFloat_FromDouble((__pyx_v_PV[__pyx_t_13])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 1051, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1029
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef rotangmom_order(self, JD0, time, target, unit, order):             # <<<<<<<<<<<<<<
 *         """Return the rotional angular momentum (G/(mR^2)) of the object "target" at the specified time
 *         (time elapsed from JD0).
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.rotangmom_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_53rotangmom_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_52rotangmom_order[] = "Return the rotional angular momentum (G/(mR^2)) of the object \"target\" at the specified time\n        (time elapsed from JD0).\n        The output is expressed according to unit.\n        \n        return a list of 3*(order+1) floating-point numbers.\n        This list contains the rotional angular momentum (G/(mR^2)) and their derivatives of the \"target\" object\n \n        @param JD0 (in) reference time (could be 0)\n        @param time (in) time elapsed from JD0\n        @param target (in) \"target\" object \n        @param unit (in) sum of CALCEPH_UNIT_\077\077?\n        @param order (in) order of the computation\n          =0 : (G/mR^2) are computed\n          =1 : (G/mR^2) and their first derivatives are computed\n          =2 : (G/mR^2) and their first,second derivatives  are computed\n          =3 : (G/mR^2) and their first, second, third derivatives are computed.";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_53rotangmom_order(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_JD0 = 0;
  PyObject *__pyx_v_time = 0;
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_unit = 0;
  PyObject *__pyx_v_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("rotangmom_order (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_JD0,&__pyx_n_s_time,&__pyx_n_s_target,&__pyx_n_s_unit,&__pyx_n_s_order,0};
    PyObject* values[5] = {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  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_JD0)) != 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_time)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_order", 1, 5, 5, 1); __PYX_ERR(0, 1029, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_order", 1, 5, 5, 2); __PYX_ERR(0, 1029, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_unit)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_order", 1, 5, 5, 3); __PYX_ERR(0, 1029, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("rotangmom_order", 1, 5, 5, 4); __PYX_ERR(0, 1029, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "rotangmom_order") < 0)) __PYX_ERR(0, 1029, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      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);
    }
    __pyx_v_JD0 = values[0];
    __pyx_v_time = values[1];
    __pyx_v_target = values[2];
    __pyx_v_unit = values[3];
    __pyx_v_order = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("rotangmom_order", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1029, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.CalcephBin.rotangmom_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_52rotangmom_order(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order);

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_52rotangmom_order(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_JD0, PyObject *__pyx_v_time, PyObject *__pyx_v_target, PyObject *__pyx_v_unit, PyObject *__pyx_v_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("rotangmom_order", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_rotangmom_order(__pyx_v_self, __pyx_v_JD0, __pyx_v_time, __pyx_v_target, __pyx_v_unit, __pyx_v_order, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1029, __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("calcephpy.CalcephBin.rotangmom_order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1056
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstant(self, name):             # <<<<<<<<<<<<<<
 *         """get constant value from the specified name in the ephemeris file
 * 
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_55getconstant(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstant(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  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;
  __Pyx_RefNannySetupContext("getconstant", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstant); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_55getconstant)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_name) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_name);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1056, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1061
 *               name (in) name of the constant
 *         """
 *         return self.getconstantsd(name)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_9calcephpy_CalcephBin *)__pyx_v_self->__pyx_vtab)->getconstantsd(__pyx_v_self, __pyx_v_name, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1056
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstant(self, name):             # <<<<<<<<<<<<<<
 *         """get constant value from the specified name in the ephemeris file
 * 
 */

  /* 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("calcephpy.CalcephBin.getconstant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_55getconstant(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_54getconstant[] = "get constant value from the specified name in the ephemeris file\n    \n              name (in) name of the constant\n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_55getconstant(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstant (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_54getconstant(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_name));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_54getconstant(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstant", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstant(__pyx_v_self, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1056, __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("calcephpy.CalcephBin.getconstant", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1065
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantsd(self, name):             # <<<<<<<<<<<<<<
 *         """get first value from the specified name in the ephemeris file
 * 
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_57getconstantsd(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantsd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  double __pyx_v_val[1];
  PyObject *__pyx_v_py_byte_name = NULL;
  char *__pyx_v_c_name;
  int __pyx_v_res;
  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;
  char *__pyx_t_5;
  __Pyx_RefNannySetupContext("getconstantsd", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantsd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_57getconstantsd)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_name) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_name);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1070
 *               name (in) name of the constant
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1070, __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, 1070, __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;

  /* "calcephpy.pyx":1072
 *         self.__check_chandle_null()
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')             # <<<<<<<<<<<<<<
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1072, __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_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_ascii);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_py_byte_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1073
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name             # <<<<<<<<<<<<<<
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         self.__check_returnerror_0(res)
 */
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_py_byte_name); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1073, __pyx_L1_error)
  __pyx_v_c_name = __pyx_t_5;

  /* "calcephpy.pyx":1074
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         return val[0]
 */
  __pyx_v_res = calceph_getconstantsd(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_val);

  /* "calcephpy.pyx":1075
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         return val[0]
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __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;

  /* "calcephpy.pyx":1076
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         self.__check_returnerror_0(res)
 *         return val[0]             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_val[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1065
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantsd(self, name):             # <<<<<<<<<<<<<<
 *         """get first value from the specified name in the ephemeris file
 * 
 */

  /* 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("calcephpy.CalcephBin.getconstantsd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_byte_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_57getconstantsd(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_56getconstantsd[] = "get first value from the specified name in the ephemeris file\n    \n              name (in) name of the constant\n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_57getconstantsd(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantsd (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_56getconstantsd(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_name));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_56getconstantsd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantsd", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantsd(__pyx_v_self, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __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("calcephpy.CalcephBin.getconstantsd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1080
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantvd(self, name):             # <<<<<<<<<<<<<<
 *         """get all values associated from the specified name in the ephemeris file
 * 
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_59getconstantvd(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantvd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  double __pyx_v_val[1];
  PyObject *__pyx_v_py_byte_name = NULL;
  char *__pyx_v_c_name;
  PyObject *__pyx_v_res = NULL;
  double *__pyx_v_arval;
  PyObject *__pyx_v_vlist = NULL;
  PyObject *__pyx_v_i = NULL;
  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;
  char *__pyx_t_5;
  int __pyx_t_6;
  size_t __pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  Py_ssize_t __pyx_t_11;
  __Pyx_RefNannySetupContext("getconstantvd", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantvd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_59getconstantvd)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_name) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_name);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1080, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1085
 *               name (in) name of the constant
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1085, __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, 1085, __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;

  /* "calcephpy.pyx":1087
 *         self.__check_chandle_null()
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')             # <<<<<<<<<<<<<<
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1087, __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_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_ascii);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_py_byte_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1088
 *         cdef double val[1]
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name             # <<<<<<<<<<<<<<
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         if (res>1):
 */
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_py_byte_name); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1088, __pyx_L1_error)
  __pyx_v_c_name = __pyx_t_5;

  /* "calcephpy.pyx":1089
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)             # <<<<<<<<<<<<<<
 *         if (res>1):
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 */
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getconstantsd(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_val)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_res = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1090
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         if (res>1):             # <<<<<<<<<<<<<<
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 *             if not arval:
 */
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_res, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1090, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1090, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_6) {

    /* "calcephpy.pyx":1091
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         if (res>1):
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))             # <<<<<<<<<<<<<<
 *             if not arval:
 *                 raise MemoryError()
 */
    __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(double))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Multiply(__pyx_v_res, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_t_2); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1091, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_arval = ((double *)PyMem_Malloc(__pyx_t_7));

    /* "calcephpy.pyx":1092
 *         if (res>1):
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 *             if not arval:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)
 */
    __pyx_t_6 = ((!(__pyx_v_arval != 0)) != 0);
    if (unlikely(__pyx_t_6)) {

      /* "calcephpy.pyx":1093
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 *             if not arval:
 *                 raise MemoryError()             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)
 */
      PyErr_NoMemory(); __PYX_ERR(0, 1093, __pyx_L1_error)

      /* "calcephpy.pyx":1092
 *         if (res>1):
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 *             if not arval:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)
 */
    }

    /* "calcephpy.pyx":1094
 *             if not arval:
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i] for i in range(0, res)]
 */
    __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_res); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1094, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyInt_From_int(calceph_getconstantvd(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_arval, __pyx_t_8)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_res, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "calcephpy.pyx":1095
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             vlist = [arval[i] for i in range(0, res)]
 *             PyMem_Free(arval)
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1095, __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, __pyx_v_res) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_res);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "calcephpy.pyx":1096
 *             res = calcephpy.calceph_getconstantvd(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i] for i in range(0, res)]             # <<<<<<<<<<<<<<
 *             PyMem_Free(arval)
 *             return vlist
 */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_int_0);
    __Pyx_GIVEREF(__pyx_int_0);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0);
    __Pyx_INCREF(__pyx_v_res);
    __Pyx_GIVEREF(__pyx_v_res);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_res);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_10 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1096, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          if (__pyx_t_9 >= 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_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1096, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1096, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        } else {
          if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1096, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1096, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        }
      } else {
        __pyx_t_3 = __pyx_t_10(__pyx_t_1);
        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, 1096, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1096, __pyx_L1_error)
      __pyx_t_3 = PyFloat_FromDouble((__pyx_v_arval[__pyx_t_11])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 1096, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_vlist = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "calcephpy.pyx":1097
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i] for i in range(0, res)]
 *             PyMem_Free(arval)             # <<<<<<<<<<<<<<
 *             return vlist
 *         else:
 */
    PyMem_Free(__pyx_v_arval);

    /* "calcephpy.pyx":1098
 *             vlist = [arval[i] for i in range(0, res)]
 *             PyMem_Free(arval)
 *             return vlist             # <<<<<<<<<<<<<<
 *         else:
 *             self.__check_returnerror_0(res)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_vlist);
    __pyx_r = __pyx_v_vlist;
    goto __pyx_L0;

    /* "calcephpy.pyx":1090
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantsd(self._c_handle, c_name, val)
 *         if (res>1):             # <<<<<<<<<<<<<<
 *             arval = <double*>PyMem_Malloc(res * sizeof(double))
 *             if not arval:
 */
  }

  /* "calcephpy.pyx":1100
 *             return vlist
 *         else:
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             return [val[0]]
 * 
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __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, __pyx_v_res) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_res);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "calcephpy.pyx":1101
 *         else:
 *             self.__check_returnerror_0(res)
 *             return [val[0]]             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyFloat_FromDouble((__pyx_v_val[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":1080
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantvd(self, name):             # <<<<<<<<<<<<<<
 *         """get all values associated from the specified name in the ephemeris file
 * 
 */

  /* 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("calcephpy.CalcephBin.getconstantvd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_byte_name);
  __Pyx_XDECREF(__pyx_v_res);
  __Pyx_XDECREF(__pyx_v_vlist);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_59getconstantvd(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_58getconstantvd[] = "get all values associated from the specified name in the ephemeris file\n    \n              name (in) name of the constant\n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_59getconstantvd(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantvd (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_58getconstantvd(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_name));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_58getconstantvd(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantvd", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantvd(__pyx_v_self, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __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("calcephpy.CalcephBin.getconstantvd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1105
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantss(self, name):             # <<<<<<<<<<<<<<
 *         """get first value from the specified name in the ephemeris file
 * 
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_61getconstantss(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantss(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  char __pyx_v_c_val[0x400];
  PyObject *__pyx_v_py_byte_name = NULL;
  char *__pyx_v_c_name;
  int __pyx_v_res;
  PyObject *__pyx_v_val = NULL;
  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;
  char *__pyx_t_5;
  __Pyx_RefNannySetupContext("getconstantss", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantss); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_61getconstantss)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_name) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_name);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1105, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1110
 *               name (in) name of the constant
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1110, __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, 1110, __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;

  /* "calcephpy.pyx":1112
 *         self.__check_chandle_null()
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')             # <<<<<<<<<<<<<<
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1112, __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_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_ascii);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_py_byte_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1113
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name             # <<<<<<<<<<<<<<
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         self.__check_returnerror_0(res)
 */
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_py_byte_name); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1113, __pyx_L1_error)
  __pyx_v_c_name = __pyx_t_5;

  /* "calcephpy.pyx":1114
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         val = c_val.decode('ascii')
 */
  __pyx_v_res = calceph_getconstantss(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_c_val);

  /* "calcephpy.pyx":1115
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         val = c_val.decode('ascii')
 *         return val
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1115, __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;

  /* "calcephpy.pyx":1116
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         self.__check_returnerror_0(res)
 *         val = c_val.decode('ascii')             # <<<<<<<<<<<<<<
 *         return val
 * 
 */
  __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_c_val, 0, strlen(__pyx_v_c_val), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_val = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1117
 *         self.__check_returnerror_0(res)
 *         val = c_val.decode('ascii')
 *         return val             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_val);
  __pyx_r = __pyx_v_val;
  goto __pyx_L0;

  /* "calcephpy.pyx":1105
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantss(self, name):             # <<<<<<<<<<<<<<
 *         """get first value from the specified name in the ephemeris file
 * 
 */

  /* 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("calcephpy.CalcephBin.getconstantss", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_byte_name);
  __Pyx_XDECREF(__pyx_v_val);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_61getconstantss(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_60getconstantss[] = "get first value from the specified name in the ephemeris file\n    \n              name (in) name of the constant\n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_61getconstantss(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantss (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_60getconstantss(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_name));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_60getconstantss(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantss", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantss(__pyx_v_self, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __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("calcephpy.CalcephBin.getconstantss", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1121
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantvs(self, name):             # <<<<<<<<<<<<<<
 *         """get all values associated from the specified name in the ephemeris file
 * 
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_63getconstantvs(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantvs(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  char __pyx_v_c_val[0x400];
  PyObject *__pyx_v_py_byte_name = NULL;
  char *__pyx_v_c_name;
  PyObject *__pyx_v_res = NULL;
  char (*__pyx_v_arval)[0x400];
  PyObject *__pyx_v_vlist = NULL;
  PyObject *__pyx_v_val = NULL;
  PyObject *__pyx_v_i = NULL;
  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;
  char *__pyx_t_5;
  int __pyx_t_6;
  size_t __pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  Py_ssize_t __pyx_t_11;
  __Pyx_RefNannySetupContext("getconstantvs", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantvs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1121, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_63getconstantvs)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_name) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_name);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1121, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1126
 *               name (in) name of the constant
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1126, __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, 1126, __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;

  /* "calcephpy.pyx":1128
 *         self.__check_chandle_null()
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')             # <<<<<<<<<<<<<<
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1128, __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_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_s_ascii);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_py_byte_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1129
 *         cdef char c_val[1024]
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name             # <<<<<<<<<<<<<<
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         if (res>1):
 */
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_py_byte_name); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1129, __pyx_L1_error)
  __pyx_v_c_name = __pyx_t_5;

  /* "calcephpy.pyx":1130
 *         py_byte_name = name.encode('ascii')
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)             # <<<<<<<<<<<<<<
 *         if (res>1):
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 */
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getconstantss(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_c_val)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_res = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1131
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         if (res>1):             # <<<<<<<<<<<<<<
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 *             if not arval:
 */
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_res, __pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1131, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 1131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_6) {

    /* "calcephpy.pyx":1132
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         if (res>1):
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)             # <<<<<<<<<<<<<<
 *             if not arval:
 *                 raise MemoryError()
 */
    __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(char))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Multiply(__pyx_v_res, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Multiply(__pyx_t_2, __pyx_int_1024); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = __Pyx_PyInt_As_size_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1132, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_arval = ((char (*)[0x400])PyMem_Malloc(__pyx_t_7));

    /* "calcephpy.pyx":1133
 *         if (res>1):
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 *             if not arval:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)
 */
    __pyx_t_6 = ((!(__pyx_v_arval != 0)) != 0);
    if (unlikely(__pyx_t_6)) {

      /* "calcephpy.pyx":1134
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 *             if not arval:
 *                 raise MemoryError()             # <<<<<<<<<<<<<<
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)
 */
      PyErr_NoMemory(); __PYX_ERR(0, 1134, __pyx_L1_error)

      /* "calcephpy.pyx":1133
 *         if (res>1):
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 *             if not arval:             # <<<<<<<<<<<<<<
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)
 */
    }

    /* "calcephpy.pyx":1135
 *             if not arval:
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)             # <<<<<<<<<<<<<<
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i].decode('ascii') for i in range(0, res)]
 */
    __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_res); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1135, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getconstantvs(__pyx_v_self->_c_handle, __pyx_v_c_name, __pyx_v_arval, __pyx_t_8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_res, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":1136
 *                 raise MemoryError()
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             vlist = [arval[i].decode('ascii') for i in range(0, res)]
 *             PyMem_Free(arval)
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1136, __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_res) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_res);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1136, __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;

    /* "calcephpy.pyx":1137
 *             res = calcephpy.calceph_getconstantvs(self._c_handle, c_name, arval, res)
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i].decode('ascii') for i in range(0, res)]             # <<<<<<<<<<<<<<
 *             PyMem_Free(arval)
 *             return vlist
 */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_int_0);
    __Pyx_GIVEREF(__pyx_int_0);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
    __Pyx_INCREF(__pyx_v_res);
    __Pyx_GIVEREF(__pyx_v_res);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_res);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1137, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_10 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1137, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          if (__pyx_t_9 >= 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_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1137, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1137, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        } else {
          if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1137, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1137, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        }
      } else {
        __pyx_t_3 = __pyx_t_10(__pyx_t_2);
        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, 1137, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L1_error)
      __pyx_t_5 = (__pyx_v_arval[__pyx_t_11]);
      __pyx_t_3 = __Pyx_decode_c_string(__pyx_t_5, 0, strlen(__pyx_t_5), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1137, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 1137, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_vlist = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":1138
 *             self.__check_returnerror_0(res)
 *             vlist = [arval[i].decode('ascii') for i in range(0, res)]
 *             PyMem_Free(arval)             # <<<<<<<<<<<<<<
 *             return vlist
 *         else:
 */
    PyMem_Free(__pyx_v_arval);

    /* "calcephpy.pyx":1139
 *             vlist = [arval[i].decode('ascii') for i in range(0, res)]
 *             PyMem_Free(arval)
 *             return vlist             # <<<<<<<<<<<<<<
 *         else:
 *             self.__check_returnerror_0(res)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_vlist);
    __pyx_r = __pyx_v_vlist;
    goto __pyx_L0;

    /* "calcephpy.pyx":1131
 *         cdef char* c_name = py_byte_name
 *         res = calcephpy.calceph_getconstantss(self._c_handle, c_name, c_val)
 *         if (res>1):             # <<<<<<<<<<<<<<
 *             arval = <char[1024]*>PyMem_Malloc(res * sizeof(char)*1024)
 *             if not arval:
 */
  }

  /* "calcephpy.pyx":1141
 *             return vlist
 *         else:
 *             self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *             val = c_val.decode('ascii')
 *             return [val]
 */
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1141, __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_res) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_res);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1141, __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;

    /* "calcephpy.pyx":1142
 *         else:
 *             self.__check_returnerror_0(res)
 *             val = c_val.decode('ascii')             # <<<<<<<<<<<<<<
 *             return [val]
 * 
 */
    __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_c_val, 0, strlen(__pyx_v_c_val), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_val = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "calcephpy.pyx":1143
 *             self.__check_returnerror_0(res)
 *             val = c_val.decode('ascii')
 *             return [val]             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_val);
    __Pyx_GIVEREF(__pyx_v_val);
    PyList_SET_ITEM(__pyx_t_1, 0, __pyx_v_val);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "calcephpy.pyx":1121
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantvs(self, name):             # <<<<<<<<<<<<<<
 *         """get all values associated from the specified name in the ephemeris file
 * 
 */

  /* 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("calcephpy.CalcephBin.getconstantvs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_byte_name);
  __Pyx_XDECREF(__pyx_v_res);
  __Pyx_XDECREF(__pyx_v_vlist);
  __Pyx_XDECREF(__pyx_v_val);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_63getconstantvs(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_62getconstantvs[] = "get all values associated from the specified name in the ephemeris file\n    \n              name (in) name of the constant\n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_63getconstantvs(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantvs (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_62getconstantvs(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_name));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_62getconstantvs(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantvs", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantvs(__pyx_v_self, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1121, __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("calcephpy.CalcephBin.getconstantvs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1148
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantcount(self):             # <<<<<<<<<<<<<<
 *         """Return the number of constants available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_65getconstantcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  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;
  __Pyx_RefNannySetupContext("getconstantcount", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantcount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_65getconstantcount)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1148, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1150
 *     cpdef getconstantcount(self):
 *         """Return the number of constants available in the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         return calcephpy.calceph_getconstantcount(self._c_handle)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1150, __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, 1150, __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;

  /* "calcephpy.pyx":1151
 *         """Return the number of constants available in the ephemeris file"""
 *         self.__check_chandle_null()
 *         return calcephpy.calceph_getconstantcount(self._c_handle)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getconstantcount(__pyx_v_self->_c_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1148
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantcount(self):             # <<<<<<<<<<<<<<
 *         """Return the number of constants available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.getconstantcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_65getconstantcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_64getconstantcount[] = "Return the number of constants available in the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_65getconstantcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantcount (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_64getconstantcount(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_64getconstantcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantcount", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantcount(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1148, __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("calcephpy.CalcephBin.getconstantcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1156
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the name and the associated value of the constant available at some index in the ephemeris file
 *            The value of index must be between 1 and getconstantcount().
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_67getconstantindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getconstantindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch) {
  double __pyx_v_cval[1];
  char __pyx_v_cname[33];
  int __pyx_v_res;
  PyObject *__pyx_v_name = NULL;
  double __pyx_v_val;
  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;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("getconstantindex", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getconstantindex); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1156, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_67getconstantindex)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_index) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_index);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1156, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1162
 *               index (in) index of the constant.
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double cval[1]
 *         cdef char cname[33]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1162, __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, 1162, __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;

  /* "calcephpy.pyx":1165
 *         cdef double cval[1]
 *         cdef char cname[33]
 *         res = calcephpy.calceph_getconstantindex(self._c_handle, index, cname, cval)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         name = cname.decode('ascii')
 */
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1165, __pyx_L1_error)
  __pyx_v_res = calceph_getconstantindex(__pyx_v_self->_c_handle, __pyx_t_5, __pyx_v_cname, __pyx_v_cval);

  /* "calcephpy.pyx":1166
 *         cdef char cname[33]
 *         res = calcephpy.calceph_getconstantindex(self._c_handle, index, cname, cval)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         name = cname.decode('ascii')
 *         val = cval[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1166, __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;

  /* "calcephpy.pyx":1167
 *         res = calcephpy.calceph_getconstantindex(self._c_handle, index, cname, cval)
 *         self.__check_returnerror_0(res)
 *         name = cname.decode('ascii')             # <<<<<<<<<<<<<<
 *         val = cval[0]
 *         return (name, val)
 */
  __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_cname, 0, strlen(__pyx_v_cname), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1168
 *         self.__check_returnerror_0(res)
 *         name = cname.decode('ascii')
 *         val = cval[0]             # <<<<<<<<<<<<<<
 *         return (name, val)
 * 
 */
  __pyx_v_val = (__pyx_v_cval[0]);

  /* "calcephpy.pyx":1169
 *         name = cname.decode('ascii')
 *         val = cval[0]
 *         return (name, val)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_val); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_name);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1156
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getconstantindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the name and the associated value of the constant available at some index in the ephemeris file
 *            The value of index must be between 1 and getconstantcount().
 */

  /* 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("calcephpy.CalcephBin.getconstantindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_67getconstantindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_66getconstantindex[] = "return the name and the associated value of the constant available at some index in the ephemeris file\n           The value of index must be between 1 and getconstantcount().\n    \n              index (in) index of the constant. \n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_67getconstantindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getconstantindex (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_66getconstantindex(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_index));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_66getconstantindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getconstantindex", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getconstantindex(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1156, __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("calcephpy.CalcephBin.getconstantindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1173
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getpositionrecordcount(self):             # <<<<<<<<<<<<<<
 *         """return the number of positions records available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_69getpositionrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getpositionrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  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;
  __Pyx_RefNannySetupContext("getpositionrecordcount", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getpositionrecordcount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_69getpositionrecordcount)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1175
 *     cpdef getpositionrecordcount(self):
 *         """return the number of positions records available in the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         return calcephpy.calceph_getpositionrecordcount(self._c_handle)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1175, __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, 1175, __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;

  /* "calcephpy.pyx":1176
 *         """return the number of positions records available in the ephemeris file"""
 *         self.__check_chandle_null()
 *         return calcephpy.calceph_getpositionrecordcount(self._c_handle)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getpositionrecordcount(__pyx_v_self->_c_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1173
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getpositionrecordcount(self):             # <<<<<<<<<<<<<<
 *         """return the number of positions records available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.getpositionrecordcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_69getpositionrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_68getpositionrecordcount[] = "return the number of position\342\200\231s records available in the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_69getpositionrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getpositionrecordcount (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_68getpositionrecordcount(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_68getpositionrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getpositionrecordcount", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getpositionrecordcount(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1173, __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("calcephpy.CalcephBin.getpositionrecordcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1181
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getpositionrecordindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the target and origin bodies, the first and last time, and the reference frame available at the
 * specified index for the position's records of the ephemeris file.
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_71getpositionrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getpositionrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch) {
  int __pyx_v_ctarget[1];
  int __pyx_v_ccenter[1];
  double __pyx_v_cfirsttime[1];
  double __pyx_v_clasttime[1];
  int __pyx_v_cframe[1];
  int __pyx_v_res;
  int __pyx_v_target;
  int __pyx_v_center;
  double __pyx_v_firsttime;
  double __pyx_v_lasttime;
  int __pyx_v_frame;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("getpositionrecordindex", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getpositionrecordindex); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1181, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_71getpositionrecordindex)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_index) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_index);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1181, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1188
 *               index (in) index of the constant.
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef int ctarget[1]
 *         cdef int ccenter[1]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1188, __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, 1188, __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;

  /* "calcephpy.pyx":1194
 *         cdef double clasttime[1]
 *         cdef int cframe[1]
 *         res = calcephpy.calceph_getpositionrecordindex(self._c_handle, index, ctarget, ccenter, cfirsttime, clasttime, cframe)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]
 */
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1194, __pyx_L1_error)
  __pyx_v_res = calceph_getpositionrecordindex(__pyx_v_self->_c_handle, __pyx_t_5, __pyx_v_ctarget, __pyx_v_ccenter, __pyx_v_cfirsttime, __pyx_v_clasttime, __pyx_v_cframe);

  /* "calcephpy.pyx":1195
 *         cdef int cframe[1]
 *         res = calcephpy.calceph_getpositionrecordindex(self._c_handle, index, ctarget, ccenter, cfirsttime, clasttime, cframe)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         target = ctarget[0]
 *         center = ccenter[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1195, __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;

  /* "calcephpy.pyx":1196
 *         res = calcephpy.calceph_getpositionrecordindex(self._c_handle, index, ctarget, ccenter, cfirsttime, clasttime, cframe)
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]             # <<<<<<<<<<<<<<
 *         center = ccenter[0]
 *         firsttime = cfirsttime[0]
 */
  __pyx_v_target = (__pyx_v_ctarget[0]);

  /* "calcephpy.pyx":1197
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]
 *         center = ccenter[0]             # <<<<<<<<<<<<<<
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]
 */
  __pyx_v_center = (__pyx_v_ccenter[0]);

  /* "calcephpy.pyx":1198
 *         target = ctarget[0]
 *         center = ccenter[0]
 *         firsttime = cfirsttime[0]             # <<<<<<<<<<<<<<
 *         lasttime = clasttime[0]
 *         frame = cframe[0]
 */
  __pyx_v_firsttime = (__pyx_v_cfirsttime[0]);

  /* "calcephpy.pyx":1199
 *         center = ccenter[0]
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]             # <<<<<<<<<<<<<<
 *         frame = cframe[0]
 *         return (target, center, firsttime, lasttime, frame)
 */
  __pyx_v_lasttime = (__pyx_v_clasttime[0]);

  /* "calcephpy.pyx":1200
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]
 *         frame = cframe[0]             # <<<<<<<<<<<<<<
 *         return (target, center, firsttime, lasttime, frame)
 * 
 */
  __pyx_v_frame = (__pyx_v_cframe[0]);

  /* "calcephpy.pyx":1201
 *         lasttime = clasttime[0]
 *         frame = cframe[0]
 *         return (target, center, firsttime, lasttime, frame)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_center); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_firsttime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_lasttime); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_frame); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_t_6);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1181
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getpositionrecordindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the target and origin bodies, the first and last time, and the reference frame available at the
 * specified index for the position's records of the ephemeris file.
 */

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("calcephpy.CalcephBin.getpositionrecordindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_71getpositionrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_70getpositionrecordindex[] = "return the target and origin bodies, the first and last time, and the reference frame available at the\nspecified index for the position's records of the ephemeris file.\n           The value of index must be between 1 and getpositionrecordcount().\n    \n              index (in) index of the constant. \n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_71getpositionrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getpositionrecordindex (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_70getpositionrecordindex(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_index));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_70getpositionrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getpositionrecordindex", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getpositionrecordindex(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1181, __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("calcephpy.CalcephBin.getpositionrecordindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1205
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getorientrecordcount(self):             # <<<<<<<<<<<<<<
 *         """return the number of orientations records available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_73getorientrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getorientrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  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;
  __Pyx_RefNannySetupContext("getorientrecordcount", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getorientrecordcount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1205, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_73getorientrecordcount)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1205, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1207
 *     cpdef getorientrecordcount(self):
 *         """return the number of orientations records available in the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         return calcephpy.calceph_getorientrecordcount(self._c_handle)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1207, __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, 1207, __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;

  /* "calcephpy.pyx":1208
 *         """return the number of orientations records available in the ephemeris file"""
 *         self.__check_chandle_null()
 *         return calcephpy.calceph_getorientrecordcount(self._c_handle)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_getorientrecordcount(__pyx_v_self->_c_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1205
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getorientrecordcount(self):             # <<<<<<<<<<<<<<
 *         """return the number of orientations records available in the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.getorientrecordcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_73getorientrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_72getorientrecordcount[] = "return the number of orientation\342\200\231s records available in the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_73getorientrecordcount(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getorientrecordcount (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_72getorientrecordcount(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_72getorientrecordcount(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getorientrecordcount", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getorientrecordcount(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1205, __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("calcephpy.CalcephBin.getorientrecordcount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1213
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getorientrecordindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the target and origin bodies, the first and last time, and the reference frame available at the
 * specified index for the orientation's records of the ephemeris file.
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_75getorientrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getorientrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index, int __pyx_skip_dispatch) {
  int __pyx_v_ctarget[1];
  double __pyx_v_cfirsttime[1];
  double __pyx_v_clasttime[1];
  int __pyx_v_cframe[1];
  int __pyx_v_res;
  int __pyx_v_target;
  double __pyx_v_firsttime;
  double __pyx_v_lasttime;
  int __pyx_v_frame;
  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;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("getorientrecordindex", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getorientrecordindex); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_75getorientrecordindex)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_index) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_index);
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1213, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1220
 *               index (in) index of the constant.
 *         """
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef int ctarget[1]
 *         cdef double cfirsttime[1]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1220, __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, 1220, __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;

  /* "calcephpy.pyx":1225
 *         cdef double clasttime[1]
 *         cdef int cframe[1]
 *         res = calcephpy.calceph_getorientrecordindex(self._c_handle, index, ctarget, cfirsttime, clasttime, cframe)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]
 */
  __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_v_index); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1225, __pyx_L1_error)
  __pyx_v_res = calceph_getorientrecordindex(__pyx_v_self->_c_handle, __pyx_t_5, __pyx_v_ctarget, __pyx_v_cfirsttime, __pyx_v_clasttime, __pyx_v_cframe);

  /* "calcephpy.pyx":1226
 *         cdef int cframe[1]
 *         res = calcephpy.calceph_getorientrecordindex(self._c_handle, index, ctarget, cfirsttime, clasttime, cframe)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         target = ctarget[0]
 *         firsttime = cfirsttime[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1226, __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;

  /* "calcephpy.pyx":1227
 *         res = calcephpy.calceph_getorientrecordindex(self._c_handle, index, ctarget, cfirsttime, clasttime, cframe)
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]             # <<<<<<<<<<<<<<
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]
 */
  __pyx_v_target = (__pyx_v_ctarget[0]);

  /* "calcephpy.pyx":1228
 *         self.__check_returnerror_0(res)
 *         target = ctarget[0]
 *         firsttime = cfirsttime[0]             # <<<<<<<<<<<<<<
 *         lasttime = clasttime[0]
 *         frame = cframe[0]
 */
  __pyx_v_firsttime = (__pyx_v_cfirsttime[0]);

  /* "calcephpy.pyx":1229
 *         target = ctarget[0]
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]             # <<<<<<<<<<<<<<
 *         frame = cframe[0]
 *         return (target, firsttime, lasttime, frame)
 */
  __pyx_v_lasttime = (__pyx_v_clasttime[0]);

  /* "calcephpy.pyx":1230
 *         firsttime = cfirsttime[0]
 *         lasttime = clasttime[0]
 *         frame = cframe[0]             # <<<<<<<<<<<<<<
 *         return (target, firsttime, lasttime, frame)
 * 
 */
  __pyx_v_frame = (__pyx_v_cframe[0]);

  /* "calcephpy.pyx":1231
 *         lasttime = clasttime[0]
 *         frame = cframe[0]
 *         return (target, firsttime, lasttime, frame)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_firsttime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_lasttime); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_frame); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1213
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getorientrecordindex(self, index):             # <<<<<<<<<<<<<<
 *         """return the target and origin bodies, the first and last time, and the reference frame available at the
 * specified index for the orientation's records of the ephemeris file.
 */

  /* 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_6);
  __Pyx_AddTraceback("calcephpy.CalcephBin.getorientrecordindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_75getorientrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_74getorientrecordindex[] = "return the target and origin bodies, the first and last time, and the reference frame available at the\nspecified index for the orientation's records of the ephemeris file.\n           The value of index must be between 1 and getorientrecordcount().\n    \n              index (in) index of the constant. \n        ";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_75getorientrecordindex(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getorientrecordindex (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_74getorientrecordindex(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v_index));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_74getorientrecordindex(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getorientrecordindex", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getorientrecordindex(__pyx_v_self, __pyx_v_index, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1213, __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("calcephpy.CalcephBin.getorientrecordindex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1236
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef gettimescale(self):             # <<<<<<<<<<<<<<
 *         """Return the time scale of the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_77gettimescale(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_gettimescale(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  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;
  __Pyx_RefNannySetupContext("gettimescale", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gettimescale); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1236, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_77gettimescale)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1238
 *     cpdef gettimescale(self):
 *         """Return the time scale of the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         return calcephpy.calceph_gettimescale(self._c_handle)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1238, __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, 1238, __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;

  /* "calcephpy.pyx":1239
 *         """Return the time scale of the ephemeris file"""
 *         self.__check_chandle_null()
 *         return calcephpy.calceph_gettimescale(self._c_handle)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(calceph_gettimescale(__pyx_v_self->_c_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1236
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef gettimescale(self):             # <<<<<<<<<<<<<<
 *         """Return the time scale of the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.gettimescale", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_77gettimescale(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_76gettimescale[] = "Return the time scale of the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_77gettimescale(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gettimescale (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_76gettimescale(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_76gettimescale(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("gettimescale", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_gettimescale(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1236, __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("calcephpy.CalcephBin.gettimescale", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1243
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef gettimespan(self):             # <<<<<<<<<<<<<<
 *         """Return the time span of the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_79gettimespan(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_gettimespan(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  double __pyx_v_firsttime[1];
  double __pyx_v_lasttime[1];
  int __pyx_v_continuous[1];
  int __pyx_v_res;
  double __pyx_v_pfirsttime;
  double __pyx_v_plasttime;
  int __pyx_v_pcontinuous;
  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;
  __Pyx_RefNannySetupContext("gettimespan", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gettimespan); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1243, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_79gettimespan)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1243, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1245
 *     cpdef gettimespan(self):
 *         """Return the time span of the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef double firsttime[1]
 *         cdef double lasttime[1]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1245, __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, 1245, __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;

  /* "calcephpy.pyx":1249
 *         cdef double lasttime[1]
 *         cdef int continuous[1]
 *         res = calcephpy.calceph_gettimespan(self._c_handle, firsttime, lasttime, continuous)             # <<<<<<<<<<<<<<
 *         self.__check_returnerror_0(res)
 *         pfirsttime = firsttime[0]
 */
  __pyx_v_res = calceph_gettimespan(__pyx_v_self->_c_handle, __pyx_v_firsttime, __pyx_v_lasttime, __pyx_v_continuous);

  /* "calcephpy.pyx":1250
 *         cdef int continuous[1]
 *         res = calcephpy.calceph_gettimespan(self._c_handle, firsttime, lasttime, continuous)
 *         self.__check_returnerror_0(res)             # <<<<<<<<<<<<<<
 *         pfirsttime = firsttime[0]
 *         plasttime = lasttime[0]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_res); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1250, __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;

  /* "calcephpy.pyx":1251
 *         res = calcephpy.calceph_gettimespan(self._c_handle, firsttime, lasttime, continuous)
 *         self.__check_returnerror_0(res)
 *         pfirsttime = firsttime[0]             # <<<<<<<<<<<<<<
 *         plasttime = lasttime[0]
 *         pcontinuous = continuous[0]
 */
  __pyx_v_pfirsttime = (__pyx_v_firsttime[0]);

  /* "calcephpy.pyx":1252
 *         self.__check_returnerror_0(res)
 *         pfirsttime = firsttime[0]
 *         plasttime = lasttime[0]             # <<<<<<<<<<<<<<
 *         pcontinuous = continuous[0]
 *         return (pfirsttime, plasttime, pcontinuous)
 */
  __pyx_v_plasttime = (__pyx_v_lasttime[0]);

  /* "calcephpy.pyx":1253
 *         pfirsttime = firsttime[0]
 *         plasttime = lasttime[0]
 *         pcontinuous = continuous[0]             # <<<<<<<<<<<<<<
 *         return (pfirsttime, plasttime, pcontinuous)
 * 
 */
  __pyx_v_pcontinuous = (__pyx_v_continuous[0]);

  /* "calcephpy.pyx":1254
 *         plasttime = lasttime[0]
 *         pcontinuous = continuous[0]
 *         return (pfirsttime, plasttime, pcontinuous)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pfirsttime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_plasttime); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_pcontinuous); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "calcephpy.pyx":1243
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef gettimespan(self):             # <<<<<<<<<<<<<<
 *         """Return the time span of the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.gettimespan", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_79gettimespan(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_78gettimespan[] = "Return the time span of the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_79gettimespan(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gettimespan (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_78gettimespan(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_78gettimespan(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("gettimespan", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_gettimespan(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1243, __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("calcephpy.CalcephBin.gettimespan", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1258
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getfileversion(self):             # <<<<<<<<<<<<<<
 *         """return the file version of the ephemeris file"""
 *         self.__check_chandle_null()
 */

static PyObject *__pyx_pw_9calcephpy_10CalcephBin_81getfileversion(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_9calcephpy_10CalcephBin_getfileversion(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, int __pyx_skip_dispatch) {
  char __pyx_v_cname[0x400];
  PyObject *__pyx_v_name = NULL;
  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;
  __Pyx_RefNannySetupContext("getfileversion", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getfileversion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_9calcephpy_10CalcephBin_81getfileversion)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __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_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, 1258, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "calcephpy.pyx":1260
 *     cpdef getfileversion(self):
 *         """return the file version of the ephemeris file"""
 *         self.__check_chandle_null()             # <<<<<<<<<<<<<<
 *         cdef char cname[1024]
 *         calcephpy.calceph_getfileversion(self._c_handle, cname)
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_check_chandle_null); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1260, __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, 1260, __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;

  /* "calcephpy.pyx":1262
 *         self.__check_chandle_null()
 *         cdef char cname[1024]
 *         calcephpy.calceph_getfileversion(self._c_handle, cname)             # <<<<<<<<<<<<<<
 *         name = cname.decode('ascii')
 *         return name
 */
  calceph_getfileversion(__pyx_v_self->_c_handle, __pyx_v_cname);

  /* "calcephpy.pyx":1263
 *         cdef char cname[1024]
 *         calcephpy.calceph_getfileversion(self._c_handle, cname)
 *         name = cname.decode('ascii')             # <<<<<<<<<<<<<<
 *         return name
 * 
 */
  __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_cname, 0, strlen(__pyx_v_cname), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1264
 *         calcephpy.calceph_getfileversion(self._c_handle, cname)
 *         name = cname.decode('ascii')
 *         return name             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_name);
  __pyx_r = __pyx_v_name;
  goto __pyx_L0;

  /* "calcephpy.pyx":1258
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     cpdef getfileversion(self):             # <<<<<<<<<<<<<<
 *         """return the file version of the ephemeris file"""
 *         self.__check_chandle_null()
 */

  /* 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("calcephpy.CalcephBin.getfileversion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_81getfileversion(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_10CalcephBin_80getfileversion[] = "return the file version of the ephemeris file";
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_81getfileversion(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getfileversion (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_10CalcephBin_80getfileversion(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_80getfileversion(struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getfileversion", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_9calcephpy_10CalcephBin_getfileversion(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __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("calcephpy.CalcephBin.getfileversion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_83__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_83__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_9calcephpy_10CalcephBin_82__reduce_cython__(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_82__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_85__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_9calcephpy_10CalcephBin_85__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_9calcephpy_10CalcephBin_84__setstate_cython__(((struct __pyx_obj_9calcephpy_CalcephBin *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

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

static PyObject *__pyx_pf_9calcephpy_10CalcephBin_84__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_9calcephpy_CalcephBin *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("calcephpy.CalcephBin.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1271
 * # /[inserted by cython to avoid comment start]* error handler *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def seterrorhandler(typehandler, userfunc):             # <<<<<<<<<<<<<<
 *     """set the error handler """
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_1seterrorhandler(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_9calcephpy_seterrorhandler[] = "set the error handler ";
static PyMethodDef __pyx_mdef_9calcephpy_1seterrorhandler = {"seterrorhandler", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_1seterrorhandler, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_seterrorhandler};
static PyObject *__pyx_pw_9calcephpy_1seterrorhandler(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_typehandler = 0;
  PyObject *__pyx_v_userfunc = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("seterrorhandler (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_typehandler,&__pyx_n_s_userfunc,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_typehandler)) != 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_userfunc)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("seterrorhandler", 1, 2, 2, 1); __PYX_ERR(0, 1271, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "seterrorhandler") < 0)) __PYX_ERR(0, 1271, __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_typehandler = values[0];
    __pyx_v_userfunc = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("seterrorhandler", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1271, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("calcephpy.seterrorhandler", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_9calcephpy_seterrorhandler(__pyx_self, __pyx_v_typehandler, __pyx_v_userfunc);

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

static PyObject *__pyx_pf_9calcephpy_seterrorhandler(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_typehandler, PyObject *__pyx_v_userfunc) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("seterrorhandler", 0);

  /* "calcephpy.pyx":1274
 *     """set the error handler """
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 *     __userfuncerrorhandler_python = userfunc             # <<<<<<<<<<<<<<
 *     __usertypehandler_python = typehandler
 *     calcephpy.calceph_seterrorhandler(typehandler, __callbackerrorhandler)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_userfuncerrorhandler_python, __pyx_v_userfunc) < 0) __PYX_ERR(0, 1274, __pyx_L1_error)

  /* "calcephpy.pyx":1275
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 *     __userfuncerrorhandler_python = userfunc
 *     __usertypehandler_python = typehandler             # <<<<<<<<<<<<<<
 *     calcephpy.calceph_seterrorhandler(typehandler, __callbackerrorhandler)
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_usertypehandler_python, __pyx_v_typehandler) < 0) __PYX_ERR(0, 1275, __pyx_L1_error)

  /* "calcephpy.pyx":1276
 *     __userfuncerrorhandler_python = userfunc
 *     __usertypehandler_python = typehandler
 *     calcephpy.calceph_seterrorhandler(typehandler, __callbackerrorhandler)             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_typehandler); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1276, __pyx_L1_error)
  calceph_seterrorhandler(__pyx_t_1, __pyx_f_9calcephpy___callbackerrorhandler);

  /* "calcephpy.pyx":1271
 * # /[inserted by cython to avoid comment start]* error handler *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def seterrorhandler(typehandler, userfunc):             # <<<<<<<<<<<<<<
 *     """set the error handler """
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("calcephpy.seterrorhandler", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1281
 * # /[inserted by cython to avoid comment start]* version *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def getversion_str():             # <<<<<<<<<<<<<<
 *     """return the version of the library as a string"""
 *     cdef char cname[33]
 */

/* Python wrapper */
static PyObject *__pyx_pw_9calcephpy_3getversion_str(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_9calcephpy_2getversion_str[] = "return the version of the library as a string";
static PyMethodDef __pyx_mdef_9calcephpy_3getversion_str = {"getversion_str", (PyCFunction)__pyx_pw_9calcephpy_3getversion_str, METH_NOARGS, __pyx_doc_9calcephpy_2getversion_str};
static PyObject *__pyx_pw_9calcephpy_3getversion_str(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getversion_str (wrapper)", 0);
  __pyx_r = __pyx_pf_9calcephpy_2getversion_str(__pyx_self);

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

static PyObject *__pyx_pf_9calcephpy_2getversion_str(CYTHON_UNUSED PyObject *__pyx_self) {
  char __pyx_v_cname[33];
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("getversion_str", 0);

  /* "calcephpy.pyx":1284
 *     """return the version of the library as a string"""
 *     cdef char cname[33]
 *     calcephpy.calceph_getversion_str(cname)             # <<<<<<<<<<<<<<
 *     name = cname.decode('ascii')
 *     return name
 */
  calceph_getversion_str(__pyx_v_cname);

  /* "calcephpy.pyx":1285
 *     cdef char cname[33]
 *     calcephpy.calceph_getversion_str(cname)
 *     name = cname.decode('ascii')             # <<<<<<<<<<<<<<
 *     return name
 * 
 */
  __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_cname, 0, strlen(__pyx_v_cname), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "calcephpy.pyx":1286
 *     calcephpy.calceph_getversion_str(cname)
 *     name = cname.decode('ascii')
 *     return name             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_name);
  __pyx_r = __pyx_v_name;
  goto __pyx_L0;

  /* "calcephpy.pyx":1281
 * # /[inserted by cython to avoid comment start]* version *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def getversion_str():             # <<<<<<<<<<<<<<
 *     """return the version of the library as a string"""
 *     cdef char cname[33]
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("calcephpy.getversion_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "calcephpy.pyx":1292
 * #  python error callback for calceph_seterrorhandler(3,...)
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * cdef void __callbackerrorhandler(const char *msg):             # <<<<<<<<<<<<<<
 *     __userfuncerrorhandler_python(msg.decode('utf-8'))
 * 
 */

static void __pyx_f_9calcephpy___callbackerrorhandler(char const *__pyx_v_msg) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__callbackerrorhandler", 0);

  /* "calcephpy.pyx":1293
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * cdef void __callbackerrorhandler(const char *msg):
 *     __userfuncerrorhandler_python(msg.decode('utf-8'))             # <<<<<<<<<<<<<<
 * 
 * # default initialization of the kind of error handler
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_userfuncerrorhandler_python); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(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_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1293, __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;

  /* "calcephpy.pyx":1292
 * #  python error callback for calceph_seterrorhandler(3,...)
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * cdef void __callbackerrorhandler(const char *msg):             # <<<<<<<<<<<<<<
 *     __userfuncerrorhandler_python(msg.decode('utf-8'))
 * 
 */

  /* function exit code */
  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_WriteUnraisable("calcephpy.__callbackerrorhandler", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "carray.to_py":112
 * 
 * @cname("__Pyx_carray_to_py_double")
 * cdef inline list __Pyx_carray_to_py_double(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_double(double *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  size_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_double", 0);

  /* "carray.to_py":115
 *     cdef size_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(<size_t>length):
 *         value = v[i]
 */
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":116
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(<size_t>length):             # <<<<<<<<<<<<<<
 *         value = v[i]
 *         Py_INCREF(value)
 */
  __pyx_t_2 = ((size_t)__pyx_v_length);
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":117
 *     l = PyList_New(length)
 *     for i in range(<size_t>length):
 *         value = v[i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)
 */
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":118
 *     for i in range(<size_t>length):
 *         value = v[i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         PyList_SET_ITEM(l, i, value)
 *     return l
 */
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":119
 *         value = v[i]
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
 */
    PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value);
  }

  /* "carray.to_py":120
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":112
 * 
 * @cname("__Pyx_carray_to_py_double")
 * cdef inline list __Pyx_carray_to_py_double(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_double", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":124
 * 
 * @cname("__Pyx_carray_to_tuple_double")
 * cdef inline tuple __Pyx_carray_to_tuple_double(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_double(double *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  size_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_double", 0);

  /* "carray.to_py":127
 *     cdef size_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(<size_t>length):
 *         value = v[i]
 */
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":128
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(<size_t>length):             # <<<<<<<<<<<<<<
 *         value = v[i]
 *         Py_INCREF(value)
 */
  __pyx_t_2 = ((size_t)__pyx_v_length);
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":129
 *     t = PyTuple_New(length)
 *     for i in range(<size_t>length):
 *         value = v[i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)
 */
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":130
 *     for i in range(<size_t>length):
 *         value = v[i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         PyTuple_SET_ITEM(t, i, value)
 *     return t
 */
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":131
 *         value = v[i]
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
 */
    PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value);
  }

  /* "carray.to_py":132
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":124
 * 
 * @cname("__Pyx_carray_to_tuple_double")
 * cdef inline tuple __Pyx_carray_to_tuple_double(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_double", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_9calcephpy_CalcephBin __pyx_vtable_9calcephpy_CalcephBin;

static PyObject *__pyx_tp_new_9calcephpy_CalcephBin(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_9calcephpy_CalcephBin *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_9calcephpy_CalcephBin *)o);
  p->__pyx_vtab = __pyx_vtabptr_9calcephpy_CalcephBin;
  if (unlikely(__pyx_pw_9calcephpy_10CalcephBin_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_9calcephpy_CalcephBin(PyObject *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
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_9calcephpy_10CalcephBin_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_9calcephpy_CalcephBin[] = {
  {"__check_returnerror_0", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_5__check_returnerror_0, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_4__check_returnerror_0},
  {"__check_returnerror_null", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_7__check_returnerror_null, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_6__check_returnerror_null},
  {"__check_chandle_null", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_9__check_chandle_null, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_8__check_chandle_null},
  {"__isarray_and_samesize", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_11__isarray_and_samesize, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_10__isarray_and_samesize},
  {"__exportresult", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_13__exportresult, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_12__exportresult},
  {"open", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_15open, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_14open},
  {"close", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_17close, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_16close},
  {"prefetch", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_19prefetch, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_18prefetch},
  {"__vector_compute", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_21__vector_compute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_20__vector_compute},
  {"__scalar_compute", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_23__scalar_compute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_22__scalar_compute},
  {"compute", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_25compute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_24compute},
  {"__vector_compute_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_27__vector_compute_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_26__vector_compute_unit},
  {"__scalar_compute_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_29__scalar_compute_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_28__scalar_compute_unit},
  {"compute_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_31compute_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_30compute_unit},
  {"__vector_orient_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_33__vector_orient_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_32__vector_orient_unit},
  {"__scalar_orient_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_35__scalar_orient_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_34__scalar_orient_unit},
  {"orient_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_37orient_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_36orient_unit},
  {"rotangmom_unit", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_39rotangmom_unit, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_38rotangmom_unit},
  {"__vector_compute_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_41__vector_compute_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_40__vector_compute_order},
  {"__scalar_compute_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_43__scalar_compute_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_42__scalar_compute_order},
  {"compute_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_45compute_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_44compute_order},
  {"__vector_orient_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_47__vector_orient_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_46__vector_orient_order},
  {"__scalar_orient_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_49__scalar_orient_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_48__scalar_orient_order},
  {"orient_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_51orient_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_50orient_order},
  {"rotangmom_order", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_9calcephpy_10CalcephBin_53rotangmom_order, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9calcephpy_10CalcephBin_52rotangmom_order},
  {"getconstant", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_55getconstant, METH_O, __pyx_doc_9calcephpy_10CalcephBin_54getconstant},
  {"getconstantsd", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_57getconstantsd, METH_O, __pyx_doc_9calcephpy_10CalcephBin_56getconstantsd},
  {"getconstantvd", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_59getconstantvd, METH_O, __pyx_doc_9calcephpy_10CalcephBin_58getconstantvd},
  {"getconstantss", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_61getconstantss, METH_O, __pyx_doc_9calcephpy_10CalcephBin_60getconstantss},
  {"getconstantvs", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_63getconstantvs, METH_O, __pyx_doc_9calcephpy_10CalcephBin_62getconstantvs},
  {"getconstantcount", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_65getconstantcount, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_64getconstantcount},
  {"getconstantindex", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_67getconstantindex, METH_O, __pyx_doc_9calcephpy_10CalcephBin_66getconstantindex},
  {"getpositionrecordcount", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_69getpositionrecordcount, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_68getpositionrecordcount},
  {"getpositionrecordindex", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_71getpositionrecordindex, METH_O, __pyx_doc_9calcephpy_10CalcephBin_70getpositionrecordindex},
  {"getorientrecordcount", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_73getorientrecordcount, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_72getorientrecordcount},
  {"getorientrecordindex", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_75getorientrecordindex, METH_O, __pyx_doc_9calcephpy_10CalcephBin_74getorientrecordindex},
  {"gettimescale", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_77gettimescale, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_76gettimescale},
  {"gettimespan", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_79gettimespan, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_78gettimespan},
  {"getfileversion", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_81getfileversion, METH_NOARGS, __pyx_doc_9calcephpy_10CalcephBin_80getfileversion},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_83__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_9calcephpy_10CalcephBin_85__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_9calcephpy_CalcephBin = {
  PyVarObject_HEAD_INIT(0, 0)
  "calcephpy.CalcephBin", /*tp_name*/
  sizeof(struct __pyx_obj_9calcephpy_CalcephBin), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_9calcephpy_CalcephBin, /*tp_dealloc*/
  0, /*tp_print*/
  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_BASETYPE, /*tp_flags*/
  "A CalcephBin class to access the ephemeris file.\n\n    >>> from calcephpy import *\n    >>> f = CalcephBin.open(\"ephemerisfile.dat\")\n    >>> PV = f.compute(jd, dt, target, center)\n    >>> PV = peph.compute_unit(jd0, dt, NaifId.EARTH, NaifId.SUN,\n                               Constants.UNIT_AU+Constants.UNIT_DAY+Constants.USE_NAIFID)\n    >>> f.close()\n    ", /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_9calcephpy_CalcephBin, /*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_9calcephpy_CalcephBin, /*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
};

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_calcephpy(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_calcephpy},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "calcephpy",
    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_s_3_4_1, __pyx_k_3_4_1, sizeof(__pyx_k_3_4_1), 0, 0, 1, 0},
  {&__pyx_n_s_ADRASTEA, __pyx_k_ADRASTEA, sizeof(__pyx_k_ADRASTEA), 0, 0, 1, 1},
  {&__pyx_n_s_AEGAEON, __pyx_k_AEGAEON, sizeof(__pyx_k_AEGAEON), 0, 0, 1, 1},
  {&__pyx_n_s_AEGIR, __pyx_k_AEGIR, sizeof(__pyx_k_AEGIR), 0, 0, 1, 1},
  {&__pyx_n_s_AITNE, __pyx_k_AITNE, sizeof(__pyx_k_AITNE), 0, 0, 1, 1},
  {&__pyx_n_s_ALBIORIX, __pyx_k_ALBIORIX, sizeof(__pyx_k_ALBIORIX), 0, 0, 1, 1},
  {&__pyx_n_s_AMALTHEA, __pyx_k_AMALTHEA, sizeof(__pyx_k_AMALTHEA), 0, 0, 1, 1},
  {&__pyx_n_s_ANANKE, __pyx_k_ANANKE, sizeof(__pyx_k_ANANKE), 0, 0, 1, 1},
  {&__pyx_n_s_ANTHE, __pyx_k_ANTHE, sizeof(__pyx_k_ANTHE), 0, 0, 1, 1},
  {&__pyx_n_s_AOEDE, __pyx_k_AOEDE, sizeof(__pyx_k_AOEDE), 0, 0, 1, 1},
  {&__pyx_n_s_ARCHE, __pyx_k_ARCHE, sizeof(__pyx_k_ARCHE), 0, 0, 1, 1},
  {&__pyx_n_s_AREND, __pyx_k_AREND, sizeof(__pyx_k_AREND), 0, 0, 1, 1},
  {&__pyx_n_s_AREND_RIGAUX, __pyx_k_AREND_RIGAUX, sizeof(__pyx_k_AREND_RIGAUX), 0, 0, 1, 1},
  {&__pyx_n_s_ARIEL, __pyx_k_ARIEL, sizeof(__pyx_k_ARIEL), 0, 0, 1, 1},
  {&__pyx_n_s_ASHBROOK_JACKSON, __pyx_k_ASHBROOK_JACKSON, sizeof(__pyx_k_ASHBROOK_JACKSON), 0, 0, 1, 1},
  {&__pyx_n_s_ASTEROID, __pyx_k_ASTEROID, sizeof(__pyx_k_ASTEROID), 0, 0, 1, 1},
  {&__pyx_n_s_ATLAS, __pyx_k_ATLAS, sizeof(__pyx_k_ATLAS), 0, 0, 1, 1},
  {&__pyx_n_s_AUTONOE, __pyx_k_AUTONOE, sizeof(__pyx_k_AUTONOE), 0, 0, 1, 1},
  {&__pyx_n_s_BEBHIONN, __pyx_k_BEBHIONN, sizeof(__pyx_k_BEBHIONN), 0, 0, 1, 1},
  {&__pyx_n_s_BELINDA, __pyx_k_BELINDA, sizeof(__pyx_k_BELINDA), 0, 0, 1, 1},
  {&__pyx_n_s_BERGELMIR, __pyx_k_BERGELMIR, sizeof(__pyx_k_BERGELMIR), 0, 0, 1, 1},
  {&__pyx_n_s_BESTLA, __pyx_k_BESTLA, sizeof(__pyx_k_BESTLA), 0, 0, 1, 1},
  {&__pyx_n_s_BIANCA, __pyx_k_BIANCA, sizeof(__pyx_k_BIANCA), 0, 0, 1, 1},
  {&__pyx_n_s_BOETHIN, __pyx_k_BOETHIN, sizeof(__pyx_k_BOETHIN), 0, 0, 1, 1},
  {&__pyx_n_s_BORRELLY, __pyx_k_BORRELLY, sizeof(__pyx_k_BORRELLY), 0, 0, 1, 1},
  {&__pyx_n_s_BOWELL_SKIFF, __pyx_k_BOWELL_SKIFF, sizeof(__pyx_k_BOWELL_SKIFF), 0, 0, 1, 1},
  {&__pyx_n_s_BRADFIELD, __pyx_k_BRADFIELD, sizeof(__pyx_k_BRADFIELD), 0, 0, 1, 1},
  {&__pyx_n_s_BROOKS_2, __pyx_k_BROOKS_2, sizeof(__pyx_k_BROOKS_2), 0, 0, 1, 1},
  {&__pyx_n_s_BRORSEN_METCALF, __pyx_k_BRORSEN_METCALF, sizeof(__pyx_k_BRORSEN_METCALF), 0, 0, 1, 1},
  {&__pyx_n_s_BUS, __pyx_k_BUS, sizeof(__pyx_k_BUS), 0, 0, 1, 1},
  {&__pyx_n_s_CALIBAN, __pyx_k_CALIBAN, sizeof(__pyx_k_CALIBAN), 0, 0, 1, 1},
  {&__pyx_n_s_CALLIRRHOE, __pyx_k_CALLIRRHOE, sizeof(__pyx_k_CALLIRRHOE), 0, 0, 1, 1},
  {&__pyx_n_s_CALLISTO, __pyx_k_CALLISTO, sizeof(__pyx_k_CALLISTO), 0, 0, 1, 1},
  {&__pyx_n_s_CALYPSO, __pyx_k_CALYPSO, sizeof(__pyx_k_CALYPSO), 0, 0, 1, 1},
  {&__pyx_n_s_CARME, __pyx_k_CARME, sizeof(__pyx_k_CARME), 0, 0, 1, 1},
  {&__pyx_n_s_CARPO, __pyx_k_CARPO, sizeof(__pyx_k_CARPO), 0, 0, 1, 1},
  {&__pyx_n_s_CHALDENE, __pyx_k_CHALDENE, sizeof(__pyx_k_CHALDENE), 0, 0, 1, 1},
  {&__pyx_n_s_CHARON, __pyx_k_CHARON, sizeof(__pyx_k_CHARON), 0, 0, 1, 1},
  {&__pyx_n_s_CHERNYKH, __pyx_k_CHERNYKH, sizeof(__pyx_k_CHERNYKH), 0, 0, 1, 1},
  {&__pyx_n_s_CHURYUMOV_GERASIMENKO, __pyx_k_CHURYUMOV_GERASIMENKO, sizeof(__pyx_k_CHURYUMOV_GERASIMENKO), 0, 0, 1, 1},
  {&__pyx_n_s_CIFFREO, __pyx_k_CIFFREO, sizeof(__pyx_k_CIFFREO), 0, 0, 1, 1},
  {&__pyx_n_s_CLARK, __pyx_k_CLARK, sizeof(__pyx_k_CLARK), 0, 0, 1, 1},
  {&__pyx_n_s_COMAS_SOLA, __pyx_k_COMAS_SOLA, sizeof(__pyx_k_COMAS_SOLA), 0, 0, 1, 1},
  {&__pyx_n_s_CORDELIA, __pyx_k_CORDELIA, sizeof(__pyx_k_CORDELIA), 0, 0, 1, 1},
  {&__pyx_n_s_CRESSIDA, __pyx_k_CRESSIDA, sizeof(__pyx_k_CRESSIDA), 0, 0, 1, 1},
  {&__pyx_n_s_CROMMELIN, __pyx_k_CROMMELIN, sizeof(__pyx_k_CROMMELIN), 0, 0, 1, 1},
  {&__pyx_n_s_CUPID, __pyx_k_CUPID, sizeof(__pyx_k_CUPID), 0, 0, 1, 1},
  {&__pyx_n_s_CYLLENE, __pyx_k_CYLLENE, sizeof(__pyx_k_CYLLENE), 0, 0, 1, 1},
  {&__pyx_n_s_CalcephBin, __pyx_k_CalcephBin, sizeof(__pyx_k_CalcephBin), 0, 0, 1, 1},
  {&__pyx_kp_s_Calceph_library_has_encountered, __pyx_k_Calceph_library_has_encountered, sizeof(__pyx_k_Calceph_library_has_encountered), 0, 0, 1, 0},
  {&__pyx_n_s_Constants, __pyx_k_Constants, sizeof(__pyx_k_Constants), 0, 0, 1, 1},
  {&__pyx_kp_s_Constants_values_of_the_CALCEPH, __pyx_k_Constants_values_of_the_CALCEPH, sizeof(__pyx_k_Constants_values_of_the_CALCEPH), 0, 0, 1, 0},
  {&__pyx_n_s_DANIEL, __pyx_k_DANIEL, sizeof(__pyx_k_DANIEL), 0, 0, 1, 1},
  {&__pyx_n_s_DAPHNIS, __pyx_k_DAPHNIS, sizeof(__pyx_k_DAPHNIS), 0, 0, 1, 1},
  {&__pyx_n_s_DEIMOS, __pyx_k_DEIMOS, sizeof(__pyx_k_DEIMOS), 0, 0, 1, 1},
  {&__pyx_n_s_DENNING_FUJIKAWA, __pyx_k_DENNING_FUJIKAWA, sizeof(__pyx_k_DENNING_FUJIKAWA), 0, 0, 1, 1},
  {&__pyx_n_s_DESDEMONA, __pyx_k_DESDEMONA, sizeof(__pyx_k_DESDEMONA), 0, 0, 1, 1},
  {&__pyx_n_s_DESPINA, __pyx_k_DESPINA, sizeof(__pyx_k_DESPINA), 0, 0, 1, 1},
  {&__pyx_n_s_DE_VICO_SWIFT, __pyx_k_DE_VICO_SWIFT, sizeof(__pyx_k_DE_VICO_SWIFT), 0, 0, 1, 1},
  {&__pyx_n_s_DIA, __pyx_k_DIA, sizeof(__pyx_k_DIA), 0, 0, 1, 1},
  {&__pyx_n_s_DIONE, __pyx_k_DIONE, sizeof(__pyx_k_DIONE), 0, 0, 1, 1},
  {&__pyx_n_s_DUBIAGO, __pyx_k_DUBIAGO, sizeof(__pyx_k_DUBIAGO), 0, 0, 1, 1},
  {&__pyx_n_s_DUTOIT_NEUJMIN_DELPORTE, __pyx_k_DUTOIT_NEUJMIN_DELPORTE, sizeof(__pyx_k_DUTOIT_NEUJMIN_DELPORTE), 0, 0, 1, 1},
  {&__pyx_n_s_DU_TOIT_1, __pyx_k_DU_TOIT_1, sizeof(__pyx_k_DU_TOIT_1), 0, 0, 1, 1},
  {&__pyx_n_s_DU_TOIT_HARTLEY, __pyx_k_DU_TOIT_HARTLEY, sizeof(__pyx_k_DU_TOIT_HARTLEY), 0, 0, 1, 1},
  {&__pyx_n_s_D__ARREST, __pyx_k_D__ARREST, sizeof(__pyx_k_D__ARREST), 0, 0, 1, 1},
  {&__pyx_n_s_EARTH, __pyx_k_EARTH, sizeof(__pyx_k_EARTH), 0, 0, 1, 1},
  {&__pyx_n_s_EARTH_MOON_BARYCENTER, __pyx_k_EARTH_MOON_BARYCENTER, sizeof(__pyx_k_EARTH_MOON_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_ELARA, __pyx_k_ELARA, sizeof(__pyx_k_ELARA), 0, 0, 1, 1},
  {&__pyx_n_s_ENCELADUS, __pyx_k_ENCELADUS, sizeof(__pyx_k_ENCELADUS), 0, 0, 1, 1},
  {&__pyx_n_s_ENCKE, __pyx_k_ENCKE, sizeof(__pyx_k_ENCKE), 0, 0, 1, 1},
  {&__pyx_n_s_EPIMETHEUS, __pyx_k_EPIMETHEUS, sizeof(__pyx_k_EPIMETHEUS), 0, 0, 1, 1},
  {&__pyx_n_s_ERINOME, __pyx_k_ERINOME, sizeof(__pyx_k_ERINOME), 0, 0, 1, 1},
  {&__pyx_n_s_ERRIAPUS, __pyx_k_ERRIAPUS, sizeof(__pyx_k_ERRIAPUS), 0, 0, 1, 1},
  {&__pyx_n_s_EUANTHE, __pyx_k_EUANTHE, sizeof(__pyx_k_EUANTHE), 0, 0, 1, 1},
  {&__pyx_n_s_EUKELADE, __pyx_k_EUKELADE, sizeof(__pyx_k_EUKELADE), 0, 0, 1, 1},
  {&__pyx_n_s_EUPORIE, __pyx_k_EUPORIE, sizeof(__pyx_k_EUPORIE), 0, 0, 1, 1},
  {&__pyx_n_s_EUROPA, __pyx_k_EUROPA, sizeof(__pyx_k_EUROPA), 0, 0, 1, 1},
  {&__pyx_n_s_EURYDOME, __pyx_k_EURYDOME, sizeof(__pyx_k_EURYDOME), 0, 0, 1, 1},
  {&__pyx_n_s_FARBAUTI, __pyx_k_FARBAUTI, sizeof(__pyx_k_FARBAUTI), 0, 0, 1, 1},
  {&__pyx_n_s_FAYE, __pyx_k_FAYE, sizeof(__pyx_k_FAYE), 0, 0, 1, 1},
  {&__pyx_n_s_FENRIR, __pyx_k_FENRIR, sizeof(__pyx_k_FENRIR), 0, 0, 1, 1},
  {&__pyx_n_s_FERDINAND, __pyx_k_FERDINAND, sizeof(__pyx_k_FERDINAND), 0, 0, 1, 1},
  {&__pyx_n_s_FINLAY, __pyx_k_FINLAY, sizeof(__pyx_k_FINLAY), 0, 0, 1, 1},
  {&__pyx_n_s_FORBES, __pyx_k_FORBES, sizeof(__pyx_k_FORBES), 0, 0, 1, 1},
  {&__pyx_n_s_FORNJOT, __pyx_k_FORNJOT, sizeof(__pyx_k_FORNJOT), 0, 0, 1, 1},
  {&__pyx_n_s_FRANCISCO, __pyx_k_FRANCISCO, sizeof(__pyx_k_FRANCISCO), 0, 0, 1, 1},
  {&__pyx_n_s_GALATEA, __pyx_k_GALATEA, sizeof(__pyx_k_GALATEA), 0, 0, 1, 1},
  {&__pyx_n_s_GANYMEDE, __pyx_k_GANYMEDE, sizeof(__pyx_k_GANYMEDE), 0, 0, 1, 1},
  {&__pyx_n_s_GEHRELS_1, __pyx_k_GEHRELS_1, sizeof(__pyx_k_GEHRELS_1), 0, 0, 1, 1},
  {&__pyx_n_s_GEHRELS_2, __pyx_k_GEHRELS_2, sizeof(__pyx_k_GEHRELS_2), 0, 0, 1, 1},
  {&__pyx_n_s_GEHRELS_3, __pyx_k_GEHRELS_3, sizeof(__pyx_k_GEHRELS_3), 0, 0, 1, 1},
  {&__pyx_n_s_GIACOBINI_ZINNER, __pyx_k_GIACOBINI_ZINNER, sizeof(__pyx_k_GIACOBINI_ZINNER), 0, 0, 1, 1},
  {&__pyx_n_s_GICLAS, __pyx_k_GICLAS, sizeof(__pyx_k_GICLAS), 0, 0, 1, 1},
  {&__pyx_n_s_GREIP, __pyx_k_GREIP, sizeof(__pyx_k_GREIP), 0, 0, 1, 1},
  {&__pyx_n_s_GRIGG_SKJELLERUP, __pyx_k_GRIGG_SKJELLERUP, sizeof(__pyx_k_GRIGG_SKJELLERUP), 0, 0, 1, 1},
  {&__pyx_n_s_GUNN, __pyx_k_GUNN, sizeof(__pyx_k_GUNN), 0, 0, 1, 1},
  {&__pyx_n_s_HALE_BOPP, __pyx_k_HALE_BOPP, sizeof(__pyx_k_HALE_BOPP), 0, 0, 1, 1},
  {&__pyx_n_s_HALIMEDE, __pyx_k_HALIMEDE, sizeof(__pyx_k_HALIMEDE), 0, 0, 1, 1},
  {&__pyx_n_s_HALLEY, __pyx_k_HALLEY, sizeof(__pyx_k_HALLEY), 0, 0, 1, 1},
  {&__pyx_n_s_HANEDA_CAMPOS, __pyx_k_HANEDA_CAMPOS, sizeof(__pyx_k_HANEDA_CAMPOS), 0, 0, 1, 1},
  {&__pyx_n_s_HARPALYKE, __pyx_k_HARPALYKE, sizeof(__pyx_k_HARPALYKE), 0, 0, 1, 1},
  {&__pyx_n_s_HARRINGTON, __pyx_k_HARRINGTON, sizeof(__pyx_k_HARRINGTON), 0, 0, 1, 1},
  {&__pyx_n_s_HARRINGTON_ABELL, __pyx_k_HARRINGTON_ABELL, sizeof(__pyx_k_HARRINGTON_ABELL), 0, 0, 1, 1},
  {&__pyx_n_s_HARTLEY_1, __pyx_k_HARTLEY_1, sizeof(__pyx_k_HARTLEY_1), 0, 0, 1, 1},
  {&__pyx_n_s_HARTLEY_2, __pyx_k_HARTLEY_2, sizeof(__pyx_k_HARTLEY_2), 0, 0, 1, 1},
  {&__pyx_n_s_HARTLEY_3, __pyx_k_HARTLEY_3, sizeof(__pyx_k_HARTLEY_3), 0, 0, 1, 1},
  {&__pyx_n_s_HARTLEY_IRAS, __pyx_k_HARTLEY_IRAS, sizeof(__pyx_k_HARTLEY_IRAS), 0, 0, 1, 1},
  {&__pyx_n_s_HATI, __pyx_k_HATI, sizeof(__pyx_k_HATI), 0, 0, 1, 1},
  {&__pyx_n_s_HEGEMONE, __pyx_k_HEGEMONE, sizeof(__pyx_k_HEGEMONE), 0, 0, 1, 1},
  {&__pyx_n_s_HELENE, __pyx_k_HELENE, sizeof(__pyx_k_HELENE), 0, 0, 1, 1},
  {&__pyx_n_s_HELIKE, __pyx_k_HELIKE, sizeof(__pyx_k_HELIKE), 0, 0, 1, 1},
  {&__pyx_n_s_HELIN, __pyx_k_HELIN, sizeof(__pyx_k_HELIN), 0, 0, 1, 1},
  {&__pyx_n_s_HELIN_ROMAN_ALU_1, __pyx_k_HELIN_ROMAN_ALU_1, sizeof(__pyx_k_HELIN_ROMAN_ALU_1), 0, 0, 1, 1},
  {&__pyx_n_s_HELIN_ROMAN_CROCKETT, __pyx_k_HELIN_ROMAN_CROCKETT, sizeof(__pyx_k_HELIN_ROMAN_CROCKETT), 0, 0, 1, 1},
  {&__pyx_n_s_HERMIPPE, __pyx_k_HERMIPPE, sizeof(__pyx_k_HERMIPPE), 0, 0, 1, 1},
  {&__pyx_n_s_HERSCHEL_RIGOLLET, __pyx_k_HERSCHEL_RIGOLLET, sizeof(__pyx_k_HERSCHEL_RIGOLLET), 0, 0, 1, 1},
  {&__pyx_n_s_HERSE, __pyx_k_HERSE, sizeof(__pyx_k_HERSE), 0, 0, 1, 1},
  {&__pyx_n_s_HIMALIA, __pyx_k_HIMALIA, sizeof(__pyx_k_HIMALIA), 0, 0, 1, 1},
  {&__pyx_n_s_HOLMES, __pyx_k_HOLMES, sizeof(__pyx_k_HOLMES), 0, 0, 1, 1},
  {&__pyx_n_s_HOLT_OLMSTEAD, __pyx_k_HOLT_OLMSTEAD, sizeof(__pyx_k_HOLT_OLMSTEAD), 0, 0, 1, 1},
  {&__pyx_n_s_HONDA_MRKOS_PAJDUSAKOVA, __pyx_k_HONDA_MRKOS_PAJDUSAKOVA, sizeof(__pyx_k_HONDA_MRKOS_PAJDUSAKOVA), 0, 0, 1, 1},
  {&__pyx_n_s_HOWELL, __pyx_k_HOWELL, sizeof(__pyx_k_HOWELL), 0, 0, 1, 1},
  {&__pyx_n_s_HYAKUTAKE, __pyx_k_HYAKUTAKE, sizeof(__pyx_k_HYAKUTAKE), 0, 0, 1, 1},
  {&__pyx_n_s_HYDRA, __pyx_k_HYDRA, sizeof(__pyx_k_HYDRA), 0, 0, 1, 1},
  {&__pyx_n_s_HYPERION, __pyx_k_HYPERION, sizeof(__pyx_k_HYPERION), 0, 0, 1, 1},
  {&__pyx_n_s_HYROKKIN, __pyx_k_HYROKKIN, sizeof(__pyx_k_HYROKKIN), 0, 0, 1, 1},
  {&__pyx_n_s_IAPETUS, __pyx_k_IAPETUS, sizeof(__pyx_k_IAPETUS), 0, 0, 1, 1},
  {&__pyx_n_s_IJIRAQ, __pyx_k_IJIRAQ, sizeof(__pyx_k_IJIRAQ), 0, 0, 1, 1},
  {&__pyx_n_s_IO, __pyx_k_IO, sizeof(__pyx_k_IO), 0, 0, 1, 1},
  {&__pyx_n_s_IOCASTE, __pyx_k_IOCASTE, sizeof(__pyx_k_IOCASTE), 0, 0, 1, 1},
  {&__pyx_n_s_IRAS, __pyx_k_IRAS, sizeof(__pyx_k_IRAS), 0, 0, 1, 1},
  {&__pyx_n_s_ISONOE, __pyx_k_ISONOE, sizeof(__pyx_k_ISONOE), 0, 0, 1, 1},
  {&__pyx_n_s_JACKSON_NEUJMIN, __pyx_k_JACKSON_NEUJMIN, sizeof(__pyx_k_JACKSON_NEUJMIN), 0, 0, 1, 1},
  {&__pyx_n_s_JANUS, __pyx_k_JANUS, sizeof(__pyx_k_JANUS), 0, 0, 1, 1},
  {&__pyx_n_s_JARNSAXA, __pyx_k_JARNSAXA, sizeof(__pyx_k_JARNSAXA), 0, 0, 1, 1},
  {&__pyx_n_s_JD0, __pyx_k_JD0, sizeof(__pyx_k_JD0), 0, 0, 1, 1},
  {&__pyx_n_s_JOHNSON, __pyx_k_JOHNSON, sizeof(__pyx_k_JOHNSON), 0, 0, 1, 1},
  {&__pyx_n_s_JULIET, __pyx_k_JULIET, sizeof(__pyx_k_JULIET), 0, 0, 1, 1},
  {&__pyx_n_s_JUPITER, __pyx_k_JUPITER, sizeof(__pyx_k_JUPITER), 0, 0, 1, 1},
  {&__pyx_n_s_JUPITER_BARYCENTER, __pyx_k_JUPITER_BARYCENTER, sizeof(__pyx_k_JUPITER_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_KALE, __pyx_k_KALE, sizeof(__pyx_k_KALE), 0, 0, 1, 1},
  {&__pyx_n_s_KALLICHORE, __pyx_k_KALLICHORE, sizeof(__pyx_k_KALLICHORE), 0, 0, 1, 1},
  {&__pyx_n_s_KALYKE, __pyx_k_KALYKE, sizeof(__pyx_k_KALYKE), 0, 0, 1, 1},
  {&__pyx_n_s_KARI, __pyx_k_KARI, sizeof(__pyx_k_KARI), 0, 0, 1, 1},
  {&__pyx_n_s_KEARNS_KWEE, __pyx_k_KEARNS_KWEE, sizeof(__pyx_k_KEARNS_KWEE), 0, 0, 1, 1},
  {&__pyx_n_s_KERBEROS, __pyx_k_KERBEROS, sizeof(__pyx_k_KERBEROS), 0, 0, 1, 1},
  {&__pyx_n_s_KIVIUQ, __pyx_k_KIVIUQ, sizeof(__pyx_k_KIVIUQ), 0, 0, 1, 1},
  {&__pyx_n_s_KLEMOLA, __pyx_k_KLEMOLA, sizeof(__pyx_k_KLEMOLA), 0, 0, 1, 1},
  {&__pyx_n_s_KOHOUTEK, __pyx_k_KOHOUTEK, sizeof(__pyx_k_KOHOUTEK), 0, 0, 1, 1},
  {&__pyx_n_s_KOJIMA, __pyx_k_KOJIMA, sizeof(__pyx_k_KOJIMA), 0, 0, 1, 1},
  {&__pyx_n_s_KOPFF, __pyx_k_KOPFF, sizeof(__pyx_k_KOPFF), 0, 0, 1, 1},
  {&__pyx_n_s_KORE, __pyx_k_KORE, sizeof(__pyx_k_KORE), 0, 0, 1, 1},
  {&__pyx_n_s_KOWAL_1, __pyx_k_KOWAL_1, sizeof(__pyx_k_KOWAL_1), 0, 0, 1, 1},
  {&__pyx_n_s_KOWAL_2, __pyx_k_KOWAL_2, sizeof(__pyx_k_KOWAL_2), 0, 0, 1, 1},
  {&__pyx_n_s_KOWAL_MRKOS, __pyx_k_KOWAL_MRKOS, sizeof(__pyx_k_KOWAL_MRKOS), 0, 0, 1, 1},
  {&__pyx_n_s_KOWAL_VAVROVA, __pyx_k_KOWAL_VAVROVA, sizeof(__pyx_k_KOWAL_VAVROVA), 0, 0, 1, 1},
  {&__pyx_n_s_LAOMEDEIA, __pyx_k_LAOMEDEIA, sizeof(__pyx_k_LAOMEDEIA), 0, 0, 1, 1},
  {&__pyx_n_s_LARISSA, __pyx_k_LARISSA, sizeof(__pyx_k_LARISSA), 0, 0, 1, 1},
  {&__pyx_n_s_LEDA, __pyx_k_LEDA, sizeof(__pyx_k_LEDA), 0, 0, 1, 1},
  {&__pyx_n_s_LEVY, __pyx_k_LEVY, sizeof(__pyx_k_LEVY), 0, 0, 1, 1},
  {&__pyx_n_s_LOGE, __pyx_k_LOGE, sizeof(__pyx_k_LOGE), 0, 0, 1, 1},
  {&__pyx_n_s_LONGMORE, __pyx_k_LONGMORE, sizeof(__pyx_k_LONGMORE), 0, 0, 1, 1},
  {&__pyx_n_s_LOVAS_1, __pyx_k_LOVAS_1, sizeof(__pyx_k_LOVAS_1), 0, 0, 1, 1},
  {&__pyx_n_s_LOVAS_2, __pyx_k_LOVAS_2, sizeof(__pyx_k_LOVAS_2), 0, 0, 1, 1},
  {&__pyx_n_s_LYSITHEA, __pyx_k_LYSITHEA, sizeof(__pyx_k_LYSITHEA), 0, 0, 1, 1},
  {&__pyx_n_s_MAB, __pyx_k_MAB, sizeof(__pyx_k_MAB), 0, 0, 1, 1},
  {&__pyx_n_s_MACHHOLZ, __pyx_k_MACHHOLZ, sizeof(__pyx_k_MACHHOLZ), 0, 0, 1, 1},
  {&__pyx_n_s_MAGACLITE, __pyx_k_MAGACLITE, sizeof(__pyx_k_MAGACLITE), 0, 0, 1, 1},
  {&__pyx_n_s_MARGARET, __pyx_k_MARGARET, sizeof(__pyx_k_MARGARET), 0, 0, 1, 1},
  {&__pyx_n_s_MARS, __pyx_k_MARS, sizeof(__pyx_k_MARS), 0, 0, 1, 1},
  {&__pyx_n_s_MARS_BARYCENTER, __pyx_k_MARS_BARYCENTER, sizeof(__pyx_k_MARS_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_MAURY, __pyx_k_MAURY, sizeof(__pyx_k_MAURY), 0, 0, 1, 1},
  {&__pyx_n_s_MAX_CONSTANTNAME, __pyx_k_MAX_CONSTANTNAME, sizeof(__pyx_k_MAX_CONSTANTNAME), 0, 0, 1, 1},
  {&__pyx_n_s_MERCURY, __pyx_k_MERCURY, sizeof(__pyx_k_MERCURY), 0, 0, 1, 1},
  {&__pyx_n_s_MERCURY_BARYCENTER, __pyx_k_MERCURY_BARYCENTER, sizeof(__pyx_k_MERCURY_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_METCALF_BREWINGTON, __pyx_k_METCALF_BREWINGTON, sizeof(__pyx_k_METCALF_BREWINGTON), 0, 0, 1, 1},
  {&__pyx_n_s_METHONE, __pyx_k_METHONE, sizeof(__pyx_k_METHONE), 0, 0, 1, 1},
  {&__pyx_n_s_METIS, __pyx_k_METIS, sizeof(__pyx_k_METIS), 0, 0, 1, 1},
  {&__pyx_n_s_MIMAS, __pyx_k_MIMAS, sizeof(__pyx_k_MIMAS), 0, 0, 1, 1},
  {&__pyx_n_s_MIRANDA, __pyx_k_MIRANDA, sizeof(__pyx_k_MIRANDA), 0, 0, 1, 1},
  {&__pyx_n_s_MNEME, __pyx_k_MNEME, sizeof(__pyx_k_MNEME), 0, 0, 1, 1},
  {&__pyx_n_s_MOON, __pyx_k_MOON, sizeof(__pyx_k_MOON), 0, 0, 1, 1},
  {&__pyx_n_s_MUELLER, __pyx_k_MUELLER, sizeof(__pyx_k_MUELLER), 0, 0, 1, 1},
  {&__pyx_n_s_MUELLER_2, __pyx_k_MUELLER_2, sizeof(__pyx_k_MUELLER_2), 0, 0, 1, 1},
  {&__pyx_n_s_MUELLER_3, __pyx_k_MUELLER_3, sizeof(__pyx_k_MUELLER_3), 0, 0, 1, 1},
  {&__pyx_n_s_MUNDILFARI, __pyx_k_MUNDILFARI, sizeof(__pyx_k_MUNDILFARI), 0, 0, 1, 1},
  {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
  {&__pyx_n_s_NAIAD, __pyx_k_NAIAD, sizeof(__pyx_k_NAIAD), 0, 0, 1, 1},
  {&__pyx_kp_s_NAIF_identification_numbers_of_t, __pyx_k_NAIF_identification_numbers_of_t, sizeof(__pyx_k_NAIF_identification_numbers_of_t), 0, 0, 1, 0},
  {&__pyx_n_s_NARVI, __pyx_k_NARVI, sizeof(__pyx_k_NARVI), 0, 0, 1, 1},
  {&__pyx_n_s_NEPTUNE, __pyx_k_NEPTUNE, sizeof(__pyx_k_NEPTUNE), 0, 0, 1, 1},
  {&__pyx_n_s_NEPTUNE_BARYCENTER, __pyx_k_NEPTUNE_BARYCENTER, sizeof(__pyx_k_NEPTUNE_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_NEREID, __pyx_k_NEREID, sizeof(__pyx_k_NEREID), 0, 0, 1, 1},
  {&__pyx_n_s_NESO, __pyx_k_NESO, sizeof(__pyx_k_NESO), 0, 0, 1, 1},
  {&__pyx_n_s_NEUJMIN_1, __pyx_k_NEUJMIN_1, sizeof(__pyx_k_NEUJMIN_1), 0, 0, 1, 1},
  {&__pyx_n_s_NEUJMIN_2, __pyx_k_NEUJMIN_2, sizeof(__pyx_k_NEUJMIN_2), 0, 0, 1, 1},
  {&__pyx_n_s_NEUJMIN_3, __pyx_k_NEUJMIN_3, sizeof(__pyx_k_NEUJMIN_3), 0, 0, 1, 1},
  {&__pyx_n_s_NIX, __pyx_k_NIX, sizeof(__pyx_k_NIX), 0, 0, 1, 1},
  {&__pyx_n_s_NaifId, __pyx_k_NaifId, sizeof(__pyx_k_NaifId), 0, 0, 1, 1},
  {&__pyx_kp_s_No_ephemeris_files_are_opened, __pyx_k_No_ephemeris_files_are_opened, sizeof(__pyx_k_No_ephemeris_files_are_opened), 0, 0, 1, 0},
  {&__pyx_n_s_OBERON, __pyx_k_OBERON, sizeof(__pyx_k_OBERON), 0, 0, 1, 1},
  {&__pyx_n_s_OLBERS, __pyx_k_OLBERS, sizeof(__pyx_k_OLBERS), 0, 0, 1, 1},
  {&__pyx_n_s_OPHELIA, __pyx_k_OPHELIA, sizeof(__pyx_k_OPHELIA), 0, 0, 1, 1},
  {&__pyx_n_s_ORTHOSIE, __pyx_k_ORTHOSIE, sizeof(__pyx_k_ORTHOSIE), 0, 0, 1, 1},
  {&__pyx_n_s_OUTPUT_EULERANGLES, __pyx_k_OUTPUT_EULERANGLES, sizeof(__pyx_k_OUTPUT_EULERANGLES), 0, 0, 1, 1},
  {&__pyx_n_s_OUTPUT_NUTATIONANGLES, __pyx_k_OUTPUT_NUTATIONANGLES, sizeof(__pyx_k_OUTPUT_NUTATIONANGLES), 0, 0, 1, 1},
  {&__pyx_n_s_PAALIAQ, __pyx_k_PAALIAQ, sizeof(__pyx_k_PAALIAQ), 0, 0, 1, 1},
  {&__pyx_n_s_PALLENE, __pyx_k_PALLENE, sizeof(__pyx_k_PALLENE), 0, 0, 1, 1},
  {&__pyx_n_s_PAN, __pyx_k_PAN, sizeof(__pyx_k_PAN), 0, 0, 1, 1},
  {&__pyx_n_s_PANDORA, __pyx_k_PANDORA, sizeof(__pyx_k_PANDORA), 0, 0, 1, 1},
  {&__pyx_n_s_PARKER_HARTLEY, __pyx_k_PARKER_HARTLEY, sizeof(__pyx_k_PARKER_HARTLEY), 0, 0, 1, 1},
  {&__pyx_n_s_PASIPHAE, __pyx_k_PASIPHAE, sizeof(__pyx_k_PASIPHAE), 0, 0, 1, 1},
  {&__pyx_n_s_PASITHEE, __pyx_k_PASITHEE, sizeof(__pyx_k_PASITHEE), 0, 0, 1, 1},
  {&__pyx_n_s_PERDITA, __pyx_k_PERDITA, sizeof(__pyx_k_PERDITA), 0, 0, 1, 1},
  {&__pyx_n_s_PETERS_HARTLEY, __pyx_k_PETERS_HARTLEY, sizeof(__pyx_k_PETERS_HARTLEY), 0, 0, 1, 1},
  {&__pyx_n_s_PHOBOS, __pyx_k_PHOBOS, sizeof(__pyx_k_PHOBOS), 0, 0, 1, 1},
  {&__pyx_n_s_PHOEBE, __pyx_k_PHOEBE, sizeof(__pyx_k_PHOEBE), 0, 0, 1, 1},
  {&__pyx_n_s_PLUTO, __pyx_k_PLUTO, sizeof(__pyx_k_PLUTO), 0, 0, 1, 1},
  {&__pyx_n_s_PLUTO_BARYCENTER, __pyx_k_PLUTO_BARYCENTER, sizeof(__pyx_k_PLUTO_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_POLYDEUCES, __pyx_k_POLYDEUCES, sizeof(__pyx_k_POLYDEUCES), 0, 0, 1, 1},
  {&__pyx_n_s_PONS_BROOKS, __pyx_k_PONS_BROOKS, sizeof(__pyx_k_PONS_BROOKS), 0, 0, 1, 1},
  {&__pyx_n_s_PONS_WINNECKE, __pyx_k_PONS_WINNECKE, sizeof(__pyx_k_PONS_WINNECKE), 0, 0, 1, 1},
  {&__pyx_n_s_PORTIA, __pyx_k_PORTIA, sizeof(__pyx_k_PORTIA), 0, 0, 1, 1},
  {&__pyx_n_s_PRAXIDIKE, __pyx_k_PRAXIDIKE, sizeof(__pyx_k_PRAXIDIKE), 0, 0, 1, 1},
  {&__pyx_n_s_PROMETHEUS, __pyx_k_PROMETHEUS, sizeof(__pyx_k_PROMETHEUS), 0, 0, 1, 1},
  {&__pyx_n_s_PROSPERO, __pyx_k_PROSPERO, sizeof(__pyx_k_PROSPERO), 0, 0, 1, 1},
  {&__pyx_n_s_PROTEUS, __pyx_k_PROTEUS, sizeof(__pyx_k_PROTEUS), 0, 0, 1, 1},
  {&__pyx_n_s_PSAMATHE, __pyx_k_PSAMATHE, sizeof(__pyx_k_PSAMATHE), 0, 0, 1, 1},
  {&__pyx_n_s_PUCK, __pyx_k_PUCK, sizeof(__pyx_k_PUCK), 0, 0, 1, 1},
  {&__pyx_n_s_REINMUTH_1, __pyx_k_REINMUTH_1, sizeof(__pyx_k_REINMUTH_1), 0, 0, 1, 1},
  {&__pyx_n_s_REINMUTH_2, __pyx_k_REINMUTH_2, sizeof(__pyx_k_REINMUTH_2), 0, 0, 1, 1},
  {&__pyx_n_s_RHEA, __pyx_k_RHEA, sizeof(__pyx_k_RHEA), 0, 0, 1, 1},
  {&__pyx_n_s_ROSALIND, __pyx_k_ROSALIND, sizeof(__pyx_k_ROSALIND), 0, 0, 1, 1},
  {&__pyx_n_s_RUSSELL_1, __pyx_k_RUSSELL_1, sizeof(__pyx_k_RUSSELL_1), 0, 0, 1, 1},
  {&__pyx_n_s_RUSSELL_2, __pyx_k_RUSSELL_2, sizeof(__pyx_k_RUSSELL_2), 0, 0, 1, 1},
  {&__pyx_n_s_RUSSELL_3, __pyx_k_RUSSELL_3, sizeof(__pyx_k_RUSSELL_3), 0, 0, 1, 1},
  {&__pyx_n_s_RUSSELL_4, __pyx_k_RUSSELL_4, sizeof(__pyx_k_RUSSELL_4), 0, 0, 1, 1},
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
  {&__pyx_n_s_SANGUIN, __pyx_k_SANGUIN, sizeof(__pyx_k_SANGUIN), 0, 0, 1, 1},
  {&__pyx_n_s_SAO, __pyx_k_SAO, sizeof(__pyx_k_SAO), 0, 0, 1, 1},
  {&__pyx_n_s_SATURN, __pyx_k_SATURN, sizeof(__pyx_k_SATURN), 0, 0, 1, 1},
  {&__pyx_n_s_SATURN_BARYCENTER, __pyx_k_SATURN_BARYCENTER, sizeof(__pyx_k_SATURN_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_SCHAUMASSE, __pyx_k_SCHAUMASSE, sizeof(__pyx_k_SCHAUMASSE), 0, 0, 1, 1},
  {&__pyx_n_s_SCHUSTER, __pyx_k_SCHUSTER, sizeof(__pyx_k_SCHUSTER), 0, 0, 1, 1},
  {&__pyx_n_s_SCHWASSMANN_WACHMANN_1, __pyx_k_SCHWASSMANN_WACHMANN_1, sizeof(__pyx_k_SCHWASSMANN_WACHMANN_1), 0, 0, 1, 1},
  {&__pyx_n_s_SCHWASSMANN_WACHMANN_2, __pyx_k_SCHWASSMANN_WACHMANN_2, sizeof(__pyx_k_SCHWASSMANN_WACHMANN_2), 0, 0, 1, 1},
  {&__pyx_n_s_SCHWASSMANN_WACHMANN_3, __pyx_k_SCHWASSMANN_WACHMANN_3, sizeof(__pyx_k_SCHWASSMANN_WACHMANN_3), 0, 0, 1, 1},
  {&__pyx_n_s_SETEBOS, __pyx_k_SETEBOS, sizeof(__pyx_k_SETEBOS), 0, 0, 1, 1},
  {&__pyx_n_s_SHAJN_SCHALDACH, __pyx_k_SHAJN_SCHALDACH, sizeof(__pyx_k_SHAJN_SCHALDACH), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_1, __pyx_k_SHOEMAKER_1, sizeof(__pyx_k_SHOEMAKER_1), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_2, __pyx_k_SHOEMAKER_2, sizeof(__pyx_k_SHOEMAKER_2), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_3, __pyx_k_SHOEMAKER_3, sizeof(__pyx_k_SHOEMAKER_3), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_HOLT_1, __pyx_k_SHOEMAKER_HOLT_1, sizeof(__pyx_k_SHOEMAKER_HOLT_1), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_LEVY_1, __pyx_k_SHOEMAKER_LEVY_1, sizeof(__pyx_k_SHOEMAKER_LEVY_1), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_LEVY_2, __pyx_k_SHOEMAKER_LEVY_2, sizeof(__pyx_k_SHOEMAKER_LEVY_2), 0, 0, 1, 1},
  {&__pyx_n_s_SHOEMAKER_LEVY_9, __pyx_k_SHOEMAKER_LEVY_9, sizeof(__pyx_k_SHOEMAKER_LEVY_9), 0, 0, 1, 1},
  {&__pyx_n_s_SIARNAQ, __pyx_k_SIARNAQ, sizeof(__pyx_k_SIARNAQ), 0, 0, 1, 1},
  {&__pyx_n_s_SIDING_SPRING, __pyx_k_SIDING_SPRING, sizeof(__pyx_k_SIDING_SPRING), 0, 0, 1, 1},
  {&__pyx_n_s_SINGER_BREWSTER, __pyx_k_SINGER_BREWSTER, sizeof(__pyx_k_SINGER_BREWSTER), 0, 0, 1, 1},
  {&__pyx_n_s_SINOPE, __pyx_k_SINOPE, sizeof(__pyx_k_SINOPE), 0, 0, 1, 1},
  {&__pyx_n_s_SKATHI, __pyx_k_SKATHI, sizeof(__pyx_k_SKATHI), 0, 0, 1, 1},
  {&__pyx_n_s_SKOLL, __pyx_k_SKOLL, sizeof(__pyx_k_SKOLL), 0, 0, 1, 1},
  {&__pyx_n_s_SLAUGHTER_BURNHAM, __pyx_k_SLAUGHTER_BURNHAM, sizeof(__pyx_k_SLAUGHTER_BURNHAM), 0, 0, 1, 1},
  {&__pyx_n_s_SMIRNOVA_CHERNYKH, __pyx_k_SMIRNOVA_CHERNYKH, sizeof(__pyx_k_SMIRNOVA_CHERNYKH), 0, 0, 1, 1},
  {&__pyx_n_s_SOLAR_SYSTEM_BARYCENTER, __pyx_k_SOLAR_SYSTEM_BARYCENTER, sizeof(__pyx_k_SOLAR_SYSTEM_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_SPONDE, __pyx_k_SPONDE, sizeof(__pyx_k_SPONDE), 0, 0, 1, 1},
  {&__pyx_n_s_STEPHANO, __pyx_k_STEPHANO, sizeof(__pyx_k_STEPHANO), 0, 0, 1, 1},
  {&__pyx_n_s_STEPHAN_OTERMA, __pyx_k_STEPHAN_OTERMA, sizeof(__pyx_k_STEPHAN_OTERMA), 0, 0, 1, 1},
  {&__pyx_n_s_STYX, __pyx_k_STYX, sizeof(__pyx_k_STYX), 0, 0, 1, 1},
  {&__pyx_n_s_SUN, __pyx_k_SUN, sizeof(__pyx_k_SUN), 0, 0, 1, 1},
  {&__pyx_n_s_SURTUR, __pyx_k_SURTUR, sizeof(__pyx_k_SURTUR), 0, 0, 1, 1},
  {&__pyx_n_s_SUTTUNGR, __pyx_k_SUTTUNGR, sizeof(__pyx_k_SUTTUNGR), 0, 0, 1, 1},
  {&__pyx_n_s_SWIFT_GEHRELS, __pyx_k_SWIFT_GEHRELS, sizeof(__pyx_k_SWIFT_GEHRELS), 0, 0, 1, 1},
  {&__pyx_n_s_SYCORAX, __pyx_k_SYCORAX, sizeof(__pyx_k_SYCORAX), 0, 0, 1, 1},
  {&__pyx_n_s_TAKAMIZAWA, __pyx_k_TAKAMIZAWA, sizeof(__pyx_k_TAKAMIZAWA), 0, 0, 1, 1},
  {&__pyx_n_s_TARQEQ, __pyx_k_TARQEQ, sizeof(__pyx_k_TARQEQ), 0, 0, 1, 1},
  {&__pyx_n_s_TARVOS, __pyx_k_TARVOS, sizeof(__pyx_k_TARVOS), 0, 0, 1, 1},
  {&__pyx_n_s_TAYGETE, __pyx_k_TAYGETE, sizeof(__pyx_k_TAYGETE), 0, 0, 1, 1},
  {&__pyx_n_s_TAYLOR, __pyx_k_TAYLOR, sizeof(__pyx_k_TAYLOR), 0, 0, 1, 1},
  {&__pyx_n_s_TELESTO, __pyx_k_TELESTO, sizeof(__pyx_k_TELESTO), 0, 0, 1, 1},
  {&__pyx_n_s_TEMPEL_1, __pyx_k_TEMPEL_1, sizeof(__pyx_k_TEMPEL_1), 0, 0, 1, 1},
  {&__pyx_n_s_TEMPEL_2, __pyx_k_TEMPEL_2, sizeof(__pyx_k_TEMPEL_2), 0, 0, 1, 1},
  {&__pyx_n_s_TEMPEL_TUTTLE, __pyx_k_TEMPEL_TUTTLE, sizeof(__pyx_k_TEMPEL_TUTTLE), 0, 0, 1, 1},
  {&__pyx_n_s_TETHYS, __pyx_k_TETHYS, sizeof(__pyx_k_TETHYS), 0, 0, 1, 1},
  {&__pyx_n_s_THALASSA, __pyx_k_THALASSA, sizeof(__pyx_k_THALASSA), 0, 0, 1, 1},
  {&__pyx_n_s_THEBE, __pyx_k_THEBE, sizeof(__pyx_k_THEBE), 0, 0, 1, 1},
  {&__pyx_n_s_THELXINOE, __pyx_k_THELXINOE, sizeof(__pyx_k_THELXINOE), 0, 0, 1, 1},
  {&__pyx_n_s_THEMISTO, __pyx_k_THEMISTO, sizeof(__pyx_k_THEMISTO), 0, 0, 1, 1},
  {&__pyx_n_s_THRYMR, __pyx_k_THRYMR, sizeof(__pyx_k_THRYMR), 0, 0, 1, 1},
  {&__pyx_n_s_THYONE, __pyx_k_THYONE, sizeof(__pyx_k_THYONE), 0, 0, 1, 1},
  {&__pyx_n_s_TIME_CENTER, __pyx_k_TIME_CENTER, sizeof(__pyx_k_TIME_CENTER), 0, 0, 1, 1},
  {&__pyx_n_s_TIME_TCGMTCB, __pyx_k_TIME_TCGMTCB, sizeof(__pyx_k_TIME_TCGMTCB), 0, 0, 1, 1},
  {&__pyx_n_s_TIME_TTMTDB, __pyx_k_TIME_TTMTDB, sizeof(__pyx_k_TIME_TTMTDB), 0, 0, 1, 1},
  {&__pyx_n_s_TITAN, __pyx_k_TITAN, sizeof(__pyx_k_TITAN), 0, 0, 1, 1},
  {&__pyx_n_s_TITANIA, __pyx_k_TITANIA, sizeof(__pyx_k_TITANIA), 0, 0, 1, 1},
  {&__pyx_n_s_TRINCULO, __pyx_k_TRINCULO, sizeof(__pyx_k_TRINCULO), 0, 0, 1, 1},
  {&__pyx_n_s_TRITON, __pyx_k_TRITON, sizeof(__pyx_k_TRITON), 0, 0, 1, 1},
  {&__pyx_n_s_TRITTON, __pyx_k_TRITTON, sizeof(__pyx_k_TRITTON), 0, 0, 1, 1},
  {&__pyx_n_s_TSUCHINSHAN_1, __pyx_k_TSUCHINSHAN_1, sizeof(__pyx_k_TSUCHINSHAN_1), 0, 0, 1, 1},
  {&__pyx_n_s_TSUCHINSHAN_2, __pyx_k_TSUCHINSHAN_2, sizeof(__pyx_k_TSUCHINSHAN_2), 0, 0, 1, 1},
  {&__pyx_n_s_TUTTLE, __pyx_k_TUTTLE, sizeof(__pyx_k_TUTTLE), 0, 0, 1, 1},
  {&__pyx_n_s_TUTTLE_GIACOBINI_KRESAK, __pyx_k_TUTTLE_GIACOBINI_KRESAK, sizeof(__pyx_k_TUTTLE_GIACOBINI_KRESAK), 0, 0, 1, 1},
  {&__pyx_kp_s_The_two_vectors_of_time_should_h, __pyx_k_The_two_vectors_of_time_should_h, sizeof(__pyx_k_The_two_vectors_of_time_should_h), 0, 0, 1, 0},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_n_s_UMBRIEL, __pyx_k_UMBRIEL, sizeof(__pyx_k_UMBRIEL), 0, 0, 1, 1},
  {&__pyx_n_s_UNIT_AU, __pyx_k_UNIT_AU, sizeof(__pyx_k_UNIT_AU), 0, 0, 1, 1},
  {&__pyx_n_s_UNIT_DAY, __pyx_k_UNIT_DAY, sizeof(__pyx_k_UNIT_DAY), 0, 0, 1, 1},
  {&__pyx_n_s_UNIT_KM, __pyx_k_UNIT_KM, sizeof(__pyx_k_UNIT_KM), 0, 0, 1, 1},
  {&__pyx_n_s_UNIT_RAD, __pyx_k_UNIT_RAD, sizeof(__pyx_k_UNIT_RAD), 0, 0, 1, 1},
  {&__pyx_n_s_UNIT_SEC, __pyx_k_UNIT_SEC, sizeof(__pyx_k_UNIT_SEC), 0, 0, 1, 1},
  {&__pyx_n_s_URANUS, __pyx_k_URANUS, sizeof(__pyx_k_URANUS), 0, 0, 1, 1},
  {&__pyx_n_s_URANUS_BARYCENTER, __pyx_k_URANUS_BARYCENTER, sizeof(__pyx_k_URANUS_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_URATA_NIIJIMA, __pyx_k_URATA_NIIJIMA, sizeof(__pyx_k_URATA_NIIJIMA), 0, 0, 1, 1},
  {&__pyx_n_s_USE_NAIFID, __pyx_k_USE_NAIFID, sizeof(__pyx_k_USE_NAIFID), 0, 0, 1, 1},
  {&__pyx_n_s_VAISALA_1, __pyx_k_VAISALA_1, sizeof(__pyx_k_VAISALA_1), 0, 0, 1, 1},
  {&__pyx_n_s_VAN_BIESBROECK, __pyx_k_VAN_BIESBROECK, sizeof(__pyx_k_VAN_BIESBROECK), 0, 0, 1, 1},
  {&__pyx_n_s_VAN_HOUTEN, __pyx_k_VAN_HOUTEN, sizeof(__pyx_k_VAN_HOUTEN), 0, 0, 1, 1},
  {&__pyx_n_s_VENUS, __pyx_k_VENUS, sizeof(__pyx_k_VENUS), 0, 0, 1, 1},
  {&__pyx_n_s_VENUS_BARYCENTER, __pyx_k_VENUS_BARYCENTER, sizeof(__pyx_k_VENUS_BARYCENTER), 0, 0, 1, 1},
  {&__pyx_n_s_VERSION_MAJOR, __pyx_k_VERSION_MAJOR, sizeof(__pyx_k_VERSION_MAJOR), 0, 0, 1, 1},
  {&__pyx_n_s_VERSION_MINOR, __pyx_k_VERSION_MINOR, sizeof(__pyx_k_VERSION_MINOR), 0, 0, 1, 1},
  {&__pyx_n_s_VERSION_PATCH, __pyx_k_VERSION_PATCH, sizeof(__pyx_k_VERSION_PATCH), 0, 0, 1, 1},
  {&__pyx_n_s_VERSION_STRING, __pyx_k_VERSION_STRING, sizeof(__pyx_k_VERSION_STRING), 0, 0, 1, 1},
  {&__pyx_n_s_WEST_KOHOUTEK_IKEMURA, __pyx_k_WEST_KOHOUTEK_IKEMURA, sizeof(__pyx_k_WEST_KOHOUTEK_IKEMURA), 0, 0, 1, 1},
  {&__pyx_n_s_WHIPPLE, __pyx_k_WHIPPLE, sizeof(__pyx_k_WHIPPLE), 0, 0, 1, 1},
  {&__pyx_n_s_WILD_1, __pyx_k_WILD_1, sizeof(__pyx_k_WILD_1), 0, 0, 1, 1},
  {&__pyx_n_s_WILD_2, __pyx_k_WILD_2, sizeof(__pyx_k_WILD_2), 0, 0, 1, 1},
  {&__pyx_n_s_WILD_3, __pyx_k_WILD_3, sizeof(__pyx_k_WILD_3), 0, 0, 1, 1},
  {&__pyx_n_s_WILD_4, __pyx_k_WILD_4, sizeof(__pyx_k_WILD_4), 0, 0, 1, 1},
  {&__pyx_n_s_WIRTANEN, __pyx_k_WIRTANEN, sizeof(__pyx_k_WIRTANEN), 0, 0, 1, 1},
  {&__pyx_n_s_WISEMAN_SKIFF, __pyx_k_WISEMAN_SKIFF, sizeof(__pyx_k_WISEMAN_SKIFF), 0, 0, 1, 1},
  {&__pyx_n_s_WOLF, __pyx_k_WOLF, sizeof(__pyx_k_WOLF), 0, 0, 1, 1},
  {&__pyx_n_s_WOLF_HARRINGTON, __pyx_k_WOLF_HARRINGTON, sizeof(__pyx_k_WOLF_HARRINGTON), 0, 0, 1, 1},
  {&__pyx_n_s_YMIR, __pyx_k_YMIR, sizeof(__pyx_k_YMIR), 0, 0, 1, 1},
  {&__pyx_n_s_arfilename, __pyx_k_arfilename, sizeof(__pyx_k_arfilename), 0, 0, 1, 1},
  {&__pyx_n_s_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1},
  {&__pyx_n_s_bs, __pyx_k_bs, sizeof(__pyx_k_bs), 0, 0, 1, 1},
  {&__pyx_n_s_c_arfilename, __pyx_k_c_arfilename, sizeof(__pyx_k_c_arfilename), 0, 0, 1, 1},
  {&__pyx_n_s_c_string, __pyx_k_c_string, sizeof(__pyx_k_c_string), 0, 0, 1, 1},
  {&__pyx_n_s_calcephpy, __pyx_k_calcephpy, sizeof(__pyx_k_calcephpy), 0, 0, 1, 1},
  {&__pyx_kp_s_calcephpy_pyx, __pyx_k_calcephpy_pyx, sizeof(__pyx_k_calcephpy_pyx), 0, 0, 1, 0},
  {&__pyx_n_s_center, __pyx_k_center, sizeof(__pyx_k_center), 0, 0, 1, 1},
  {&__pyx_n_s_check_chandle_null, __pyx_k_check_chandle_null, sizeof(__pyx_k_check_chandle_null), 0, 0, 1, 1},
  {&__pyx_n_s_check_returnerror_0, __pyx_k_check_returnerror_0, sizeof(__pyx_k_check_returnerror_0), 0, 0, 1, 1},
  {&__pyx_n_s_check_returnerror_null, __pyx_k_check_returnerror_null, sizeof(__pyx_k_check_returnerror_null), 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_s_cname, __pyx_k_cname, sizeof(__pyx_k_cname), 0, 0, 1, 1},
  {&__pyx_n_s_compute, __pyx_k_compute, sizeof(__pyx_k_compute), 0, 0, 1, 1},
  {&__pyx_n_s_compute_order, __pyx_k_compute_order, sizeof(__pyx_k_compute_order), 0, 0, 1, 1},
  {&__pyx_n_s_compute_unit, __pyx_k_compute_unit, sizeof(__pyx_k_compute_unit), 0, 0, 1, 1},
  {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1},
  {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_exportresult, __pyx_k_exportresult, sizeof(__pyx_k_exportresult), 0, 0, 1, 1},
  {&__pyx_n_s_filename1, __pyx_k_filename1, sizeof(__pyx_k_filename1), 0, 0, 1, 1},
  {&__pyx_n_s_float64, __pyx_k_float64, sizeof(__pyx_k_float64), 0, 0, 1, 1},
  {&__pyx_n_s_getconstant, __pyx_k_getconstant, sizeof(__pyx_k_getconstant), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantcount, __pyx_k_getconstantcount, sizeof(__pyx_k_getconstantcount), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantindex, __pyx_k_getconstantindex, sizeof(__pyx_k_getconstantindex), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantsd, __pyx_k_getconstantsd, sizeof(__pyx_k_getconstantsd), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantss, __pyx_k_getconstantss, sizeof(__pyx_k_getconstantss), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantvd, __pyx_k_getconstantvd, sizeof(__pyx_k_getconstantvd), 0, 0, 1, 1},
  {&__pyx_n_s_getconstantvs, __pyx_k_getconstantvs, sizeof(__pyx_k_getconstantvs), 0, 0, 1, 1},
  {&__pyx_n_s_getfileversion, __pyx_k_getfileversion, sizeof(__pyx_k_getfileversion), 0, 0, 1, 1},
  {&__pyx_n_s_getorientrecordcount, __pyx_k_getorientrecordcount, sizeof(__pyx_k_getorientrecordcount), 0, 0, 1, 1},
  {&__pyx_n_s_getorientrecordindex, __pyx_k_getorientrecordindex, sizeof(__pyx_k_getorientrecordindex), 0, 0, 1, 1},
  {&__pyx_n_s_getpositionrecordcount, __pyx_k_getpositionrecordcount, sizeof(__pyx_k_getpositionrecordcount), 0, 0, 1, 1},
  {&__pyx_n_s_getpositionrecordindex, __pyx_k_getpositionrecordindex, sizeof(__pyx_k_getpositionrecordindex), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_n_s_gettimescale, __pyx_k_gettimescale, sizeof(__pyx_k_gettimescale), 0, 0, 1, 1},
  {&__pyx_n_s_gettimespan, __pyx_k_gettimespan, sizeof(__pyx_k_gettimespan), 0, 0, 1, 1},
  {&__pyx_n_s_getversion_str, __pyx_k_getversion_str, sizeof(__pyx_k_getversion_str), 0, 0, 1, 1},
  {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_isarray_and_samesize, __pyx_k_isarray_and_samesize, sizeof(__pyx_k_isarray_and_samesize), 0, 0, 1, 1},
  {&__pyx_n_s_k, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
  {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1},
  {&__pyx_n_s_n, __pyx_k_n, sizeof(__pyx_k_n), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {&__pyx_n_s_ndarray, __pyx_k_ndarray, sizeof(__pyx_k_ndarray), 0, 0, 1, 1},
  {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
  {&__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1},
  {&__pyx_n_s_order, __pyx_k_order, sizeof(__pyx_k_order), 0, 0, 1, 1},
  {&__pyx_n_s_orient_order, __pyx_k_orient_order, sizeof(__pyx_k_orient_order), 0, 0, 1, 1},
  {&__pyx_n_s_orient_unit, __pyx_k_orient_unit, sizeof(__pyx_k_orient_unit), 0, 0, 1, 1},
  {&__pyx_n_s_prefetch, __pyx_k_prefetch, sizeof(__pyx_k_prefetch), 0, 0, 1, 1},
  {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
  {&__pyx_n_s_py_byte_pyarfilename, __pyx_k_py_byte_pyarfilename, sizeof(__pyx_k_py_byte_pyarfilename), 0, 0, 1, 1},
  {&__pyx_n_s_pyarfilename, __pyx_k_pyarfilename, sizeof(__pyx_k_pyarfilename), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 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_res, __pyx_k_res, sizeof(__pyx_k_res), 0, 0, 1, 1},
  {&__pyx_n_s_rotangmom_order, __pyx_k_rotangmom_order, sizeof(__pyx_k_rotangmom_order), 0, 0, 1, 1},
  {&__pyx_n_s_rotangmom_unit, __pyx_k_rotangmom_unit, sizeof(__pyx_k_rotangmom_unit), 0, 0, 1, 1},
  {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1},
  {&__pyx_n_s_scalar_compute, __pyx_k_scalar_compute, sizeof(__pyx_k_scalar_compute), 0, 0, 1, 1},
  {&__pyx_n_s_scalar_compute_order, __pyx_k_scalar_compute_order, sizeof(__pyx_k_scalar_compute_order), 0, 0, 1, 1},
  {&__pyx_n_s_scalar_compute_unit, __pyx_k_scalar_compute_unit, sizeof(__pyx_k_scalar_compute_unit), 0, 0, 1, 1},
  {&__pyx_n_s_scalar_orient_order, __pyx_k_scalar_orient_order, sizeof(__pyx_k_scalar_orient_order), 0, 0, 1, 1},
  {&__pyx_n_s_scalar_orient_unit, __pyx_k_scalar_orient_unit, sizeof(__pyx_k_scalar_orient_unit), 0, 0, 1, 1},
  {&__pyx_n_s_seterrorhandler, __pyx_k_seterrorhandler, sizeof(__pyx_k_seterrorhandler), 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_slen, __pyx_k_slen, sizeof(__pyx_k_slen), 0, 0, 1, 1},
  {&__pyx_n_s_staticmethod, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1},
  {&__pyx_n_s_supportlen, __pyx_k_supportlen, sizeof(__pyx_k_supportlen), 0, 0, 1, 1},
  {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1},
  {&__pyx_n_s_tolist, __pyx_k_tolist, sizeof(__pyx_k_tolist), 0, 0, 1, 1},
  {&__pyx_n_s_typehandler, __pyx_k_typehandler, sizeof(__pyx_k_typehandler), 0, 0, 1, 1},
  {&__pyx_n_s_typeres, __pyx_k_typeres, sizeof(__pyx_k_typeres), 0, 0, 1, 1},
  {&__pyx_n_s_unit, __pyx_k_unit, sizeof(__pyx_k_unit), 0, 0, 1, 1},
  {&__pyx_n_s_userfunc, __pyx_k_userfunc, sizeof(__pyx_k_userfunc), 0, 0, 1, 1},
  {&__pyx_n_s_userfuncerrorhandler_python, __pyx_k_userfuncerrorhandler_python, sizeof(__pyx_k_userfuncerrorhandler_python), 0, 0, 1, 1},
  {&__pyx_n_s_usertypehandler_python, __pyx_k_usertypehandler_python, sizeof(__pyx_k_usertypehandler_python), 0, 0, 1, 1},
  {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1},
  {&__pyx_n_s_v1, __pyx_k_v1, sizeof(__pyx_k_v1), 0, 0, 1, 1},
  {&__pyx_n_s_v2, __pyx_k_v2, sizeof(__pyx_k_v2), 0, 0, 1, 1},
  {&__pyx_n_s_vector_compute, __pyx_k_vector_compute, sizeof(__pyx_k_vector_compute), 0, 0, 1, 1},
  {&__pyx_n_s_vector_compute_order, __pyx_k_vector_compute_order, sizeof(__pyx_k_vector_compute_order), 0, 0, 1, 1},
  {&__pyx_n_s_vector_compute_unit, __pyx_k_vector_compute_unit, sizeof(__pyx_k_vector_compute_unit), 0, 0, 1, 1},
  {&__pyx_n_s_vector_orient_order, __pyx_k_vector_orient_order, sizeof(__pyx_k_vector_orient_order), 0, 0, 1, 1},
  {&__pyx_n_s_vector_orient_unit, __pyx_k_vector_orient_unit, sizeof(__pyx_k_vector_orient_unit), 0, 0, 1, 1},
  {&__pyx_n_s_vlist, __pyx_k_vlist, sizeof(__pyx_k_vlist), 0, 0, 1, 1},
  {&__pyx_n_s_zeros, __pyx_k_zeros, sizeof(__pyx_k_zeros), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(0, 486, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 491, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 537, __pyx_L1_error)
  __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 569, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __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);

  /* "calcephpy.pyx":491
 *         global __usertypehandler_python
 *         if (res == 0) and (__usertypehandler_python != 3):
 *             raise RuntimeError("Calceph library has encountered a problem")             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_Calceph_library_has_encountered); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "calcephpy.pyx":500
 *         """check if the ephemeris file is opened on exit and raise an exception"""
 *         if (self._c_handle is NULL) and (__usertypehandler_python != 3):
 *             raise RuntimeError("No ephemeris files are opened")             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_No_ephemeris_files_are_opened); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "calcephpy.pyx":522
 *         if supportlen :
 *             if len(v1) != len(v2):
 *                 raise RuntimeError("The two vectors of time should have the same length")             # <<<<<<<<<<<<<<
 *             return 1
 * 
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_The_two_vectors_of_time_should_h); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "calcephpy.pyx":863
 *         cdef double lPV[12]
 *         vPV = numpy.zeros(ncomp*n, dtype=numpy.float64)
 *         lPV12 = numpy.zeros(12, dtype=numpy.float64)             # <<<<<<<<<<<<<<
 *         for j in range(n):
 *             res = calcephpy.calceph_compute_order(self._c_handle, JD0[j], time[j], target, center, unit, order, lPV)
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_int_12); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "calcephpy.pyx":487
 * 
 *     @staticmethod
 *     def __check_returnerror_0(res):             # <<<<<<<<<<<<<<
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 */
  __pyx_tuple__7 = PyTuple_Pack(1, __pyx_n_s_res); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__7);
  __Pyx_GIVEREF(__pyx_tuple__7);
  __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_check_returnerror_0, 487, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 487, __pyx_L1_error)

  /* "calcephpy.pyx":512
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __isarray_and_samesize(v1, v2):             # <<<<<<<<<<<<<<
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:
 */
  __pyx_tuple__9 = PyTuple_Pack(4, __pyx_n_s_v1, __pyx_n_s_v2, __pyx_n_s_n, __pyx_n_s_supportlen); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);
  __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_isarray_and_samesize, 512, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 512, __pyx_L1_error)

  /* "calcephpy.pyx":531
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __exportresult(v,n, typeres):             # <<<<<<<<<<<<<<
 *         """internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres
 *          the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... """
 */
  __pyx_tuple__11 = PyTuple_Pack(5, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_typeres, __pyx_n_s_vlist, __pyx_n_s_k); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);
  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_exportresult, 531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 531, __pyx_L1_error)

  /* "calcephpy.pyx":548
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def open(pyarfilename):             # <<<<<<<<<<<<<<
 *         """Open the file(s) pyarfilename
 * 
 */
  __pyx_tuple__13 = PyTuple_Pack(11, __pyx_n_s_pyarfilename, __pyx_n_s_bs, __pyx_n_s_arfilename, __pyx_n_s_filename1, __pyx_n_s_c_string, __pyx_n_s_c_arfilename, __pyx_n_s_v, __pyx_n_s_py_byte_pyarfilename, __pyx_n_s_slen, __pyx_n_s_i, __pyx_n_s_s); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);
  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_open, 548, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 548, __pyx_L1_error)

  /* "calcephpy.pyx":1271
 * # /[inserted by cython to avoid comment start]* error handler *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def seterrorhandler(typehandler, userfunc):             # <<<<<<<<<<<<<<
 *     """set the error handler """
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 */
  __pyx_tuple__15 = PyTuple_Pack(2, __pyx_n_s_typehandler, __pyx_n_s_userfunc); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 1271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);
  __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_seterrorhandler, 1271, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 1271, __pyx_L1_error)

  /* "calcephpy.pyx":1281
 * # /[inserted by cython to avoid comment start]* version *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def getversion_str():             # <<<<<<<<<<<<<<
 *     """return the version of the library as a string"""
 *     cdef char cname[33]
 */
  __pyx_tuple__17 = PyTuple_Pack(2, __pyx_n_s_cname, __pyx_n_s_name_2); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);
  __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_calcephpy_pyx, __pyx_n_s_getversion_str, 1281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __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_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_33 = PyInt_FromLong(33); if (unlikely(!__pyx_int_33)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_64 = PyInt_FromLong(64); if (unlikely(!__pyx_int_64)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_128 = PyInt_FromLong(128); if (unlikely(!__pyx_int_128)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_199 = PyInt_FromLong(199); if (unlikely(!__pyx_int_199)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_299 = PyInt_FromLong(299); if (unlikely(!__pyx_int_299)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_301 = PyInt_FromLong(301); if (unlikely(!__pyx_int_301)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_399 = PyInt_FromLong(399); if (unlikely(!__pyx_int_399)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_401 = PyInt_FromLong(401); if (unlikely(!__pyx_int_401)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_402 = PyInt_FromLong(402); if (unlikely(!__pyx_int_402)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_499 = PyInt_FromLong(499); if (unlikely(!__pyx_int_499)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_501 = PyInt_FromLong(501); if (unlikely(!__pyx_int_501)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_502 = PyInt_FromLong(502); if (unlikely(!__pyx_int_502)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_503 = PyInt_FromLong(503); if (unlikely(!__pyx_int_503)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_504 = PyInt_FromLong(504); if (unlikely(!__pyx_int_504)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_505 = PyInt_FromLong(505); if (unlikely(!__pyx_int_505)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_506 = PyInt_FromLong(506); if (unlikely(!__pyx_int_506)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_507 = PyInt_FromLong(507); if (unlikely(!__pyx_int_507)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_508 = PyInt_FromLong(508); if (unlikely(!__pyx_int_508)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_509 = PyInt_FromLong(509); if (unlikely(!__pyx_int_509)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_510 = PyInt_FromLong(510); if (unlikely(!__pyx_int_510)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_511 = PyInt_FromLong(511); if (unlikely(!__pyx_int_511)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_512 = PyInt_FromLong(512); if (unlikely(!__pyx_int_512)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_513 = PyInt_FromLong(513); if (unlikely(!__pyx_int_513)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_514 = PyInt_FromLong(514); if (unlikely(!__pyx_int_514)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_515 = PyInt_FromLong(515); if (unlikely(!__pyx_int_515)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_516 = PyInt_FromLong(516); if (unlikely(!__pyx_int_516)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_517 = PyInt_FromLong(517); if (unlikely(!__pyx_int_517)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_518 = PyInt_FromLong(518); if (unlikely(!__pyx_int_518)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_519 = PyInt_FromLong(519); if (unlikely(!__pyx_int_519)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_520 = PyInt_FromLong(520); if (unlikely(!__pyx_int_520)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_521 = PyInt_FromLong(521); if (unlikely(!__pyx_int_521)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_522 = PyInt_FromLong(522); if (unlikely(!__pyx_int_522)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_523 = PyInt_FromLong(523); if (unlikely(!__pyx_int_523)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_524 = PyInt_FromLong(524); if (unlikely(!__pyx_int_524)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_525 = PyInt_FromLong(525); if (unlikely(!__pyx_int_525)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_526 = PyInt_FromLong(526); if (unlikely(!__pyx_int_526)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_527 = PyInt_FromLong(527); if (unlikely(!__pyx_int_527)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_528 = PyInt_FromLong(528); if (unlikely(!__pyx_int_528)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_529 = PyInt_FromLong(529); if (unlikely(!__pyx_int_529)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_530 = PyInt_FromLong(530); if (unlikely(!__pyx_int_530)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_531 = PyInt_FromLong(531); if (unlikely(!__pyx_int_531)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_532 = PyInt_FromLong(532); if (unlikely(!__pyx_int_532)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_533 = PyInt_FromLong(533); if (unlikely(!__pyx_int_533)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_534 = PyInt_FromLong(534); if (unlikely(!__pyx_int_534)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_535 = PyInt_FromLong(535); if (unlikely(!__pyx_int_535)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_536 = PyInt_FromLong(536); if (unlikely(!__pyx_int_536)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_537 = PyInt_FromLong(537); if (unlikely(!__pyx_int_537)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_538 = PyInt_FromLong(538); if (unlikely(!__pyx_int_538)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_539 = PyInt_FromLong(539); if (unlikely(!__pyx_int_539)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_540 = PyInt_FromLong(540); if (unlikely(!__pyx_int_540)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_541 = PyInt_FromLong(541); if (unlikely(!__pyx_int_541)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_542 = PyInt_FromLong(542); if (unlikely(!__pyx_int_542)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_543 = PyInt_FromLong(543); if (unlikely(!__pyx_int_543)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_544 = PyInt_FromLong(544); if (unlikely(!__pyx_int_544)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_545 = PyInt_FromLong(545); if (unlikely(!__pyx_int_545)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_546 = PyInt_FromLong(546); if (unlikely(!__pyx_int_546)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_547 = PyInt_FromLong(547); if (unlikely(!__pyx_int_547)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_548 = PyInt_FromLong(548); if (unlikely(!__pyx_int_548)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_549 = PyInt_FromLong(549); if (unlikely(!__pyx_int_549)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_550 = PyInt_FromLong(550); if (unlikely(!__pyx_int_550)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_553 = PyInt_FromLong(553); if (unlikely(!__pyx_int_553)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_599 = PyInt_FromLong(599); if (unlikely(!__pyx_int_599)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_601 = PyInt_FromLong(601); if (unlikely(!__pyx_int_601)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_602 = PyInt_FromLong(602); if (unlikely(!__pyx_int_602)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_603 = PyInt_FromLong(603); if (unlikely(!__pyx_int_603)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_604 = PyInt_FromLong(604); if (unlikely(!__pyx_int_604)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_605 = PyInt_FromLong(605); if (unlikely(!__pyx_int_605)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_606 = PyInt_FromLong(606); if (unlikely(!__pyx_int_606)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_607 = PyInt_FromLong(607); if (unlikely(!__pyx_int_607)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_608 = PyInt_FromLong(608); if (unlikely(!__pyx_int_608)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_609 = PyInt_FromLong(609); if (unlikely(!__pyx_int_609)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_610 = PyInt_FromLong(610); if (unlikely(!__pyx_int_610)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_611 = PyInt_FromLong(611); if (unlikely(!__pyx_int_611)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_612 = PyInt_FromLong(612); if (unlikely(!__pyx_int_612)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_613 = PyInt_FromLong(613); if (unlikely(!__pyx_int_613)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_614 = PyInt_FromLong(614); if (unlikely(!__pyx_int_614)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_615 = PyInt_FromLong(615); if (unlikely(!__pyx_int_615)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_616 = PyInt_FromLong(616); if (unlikely(!__pyx_int_616)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_617 = PyInt_FromLong(617); if (unlikely(!__pyx_int_617)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_618 = PyInt_FromLong(618); if (unlikely(!__pyx_int_618)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_619 = PyInt_FromLong(619); if (unlikely(!__pyx_int_619)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_620 = PyInt_FromLong(620); if (unlikely(!__pyx_int_620)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_621 = PyInt_FromLong(621); if (unlikely(!__pyx_int_621)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_622 = PyInt_FromLong(622); if (unlikely(!__pyx_int_622)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_623 = PyInt_FromLong(623); if (unlikely(!__pyx_int_623)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_624 = PyInt_FromLong(624); if (unlikely(!__pyx_int_624)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_625 = PyInt_FromLong(625); if (unlikely(!__pyx_int_625)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_626 = PyInt_FromLong(626); if (unlikely(!__pyx_int_626)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_627 = PyInt_FromLong(627); if (unlikely(!__pyx_int_627)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_628 = PyInt_FromLong(628); if (unlikely(!__pyx_int_628)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_629 = PyInt_FromLong(629); if (unlikely(!__pyx_int_629)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_630 = PyInt_FromLong(630); if (unlikely(!__pyx_int_630)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_631 = PyInt_FromLong(631); if (unlikely(!__pyx_int_631)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_632 = PyInt_FromLong(632); if (unlikely(!__pyx_int_632)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_633 = PyInt_FromLong(633); if (unlikely(!__pyx_int_633)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_634 = PyInt_FromLong(634); if (unlikely(!__pyx_int_634)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_635 = PyInt_FromLong(635); if (unlikely(!__pyx_int_635)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_636 = PyInt_FromLong(636); if (unlikely(!__pyx_int_636)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_637 = PyInt_FromLong(637); if (unlikely(!__pyx_int_637)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_638 = PyInt_FromLong(638); if (unlikely(!__pyx_int_638)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_639 = PyInt_FromLong(639); if (unlikely(!__pyx_int_639)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_640 = PyInt_FromLong(640); if (unlikely(!__pyx_int_640)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_641 = PyInt_FromLong(641); if (unlikely(!__pyx_int_641)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_642 = PyInt_FromLong(642); if (unlikely(!__pyx_int_642)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_643 = PyInt_FromLong(643); if (unlikely(!__pyx_int_643)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_644 = PyInt_FromLong(644); if (unlikely(!__pyx_int_644)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_645 = PyInt_FromLong(645); if (unlikely(!__pyx_int_645)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_646 = PyInt_FromLong(646); if (unlikely(!__pyx_int_646)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_647 = PyInt_FromLong(647); if (unlikely(!__pyx_int_647)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_648 = PyInt_FromLong(648); if (unlikely(!__pyx_int_648)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_649 = PyInt_FromLong(649); if (unlikely(!__pyx_int_649)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_650 = PyInt_FromLong(650); if (unlikely(!__pyx_int_650)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_651 = PyInt_FromLong(651); if (unlikely(!__pyx_int_651)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_652 = PyInt_FromLong(652); if (unlikely(!__pyx_int_652)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_653 = PyInt_FromLong(653); if (unlikely(!__pyx_int_653)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_699 = PyInt_FromLong(699); if (unlikely(!__pyx_int_699)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_701 = PyInt_FromLong(701); if (unlikely(!__pyx_int_701)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_702 = PyInt_FromLong(702); if (unlikely(!__pyx_int_702)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_703 = PyInt_FromLong(703); if (unlikely(!__pyx_int_703)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_704 = PyInt_FromLong(704); if (unlikely(!__pyx_int_704)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_705 = PyInt_FromLong(705); if (unlikely(!__pyx_int_705)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_706 = PyInt_FromLong(706); if (unlikely(!__pyx_int_706)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_707 = PyInt_FromLong(707); if (unlikely(!__pyx_int_707)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_708 = PyInt_FromLong(708); if (unlikely(!__pyx_int_708)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_709 = PyInt_FromLong(709); if (unlikely(!__pyx_int_709)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_710 = PyInt_FromLong(710); if (unlikely(!__pyx_int_710)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_711 = PyInt_FromLong(711); if (unlikely(!__pyx_int_711)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_712 = PyInt_FromLong(712); if (unlikely(!__pyx_int_712)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_713 = PyInt_FromLong(713); if (unlikely(!__pyx_int_713)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_714 = PyInt_FromLong(714); if (unlikely(!__pyx_int_714)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_715 = PyInt_FromLong(715); if (unlikely(!__pyx_int_715)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_716 = PyInt_FromLong(716); if (unlikely(!__pyx_int_716)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_717 = PyInt_FromLong(717); if (unlikely(!__pyx_int_717)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_718 = PyInt_FromLong(718); if (unlikely(!__pyx_int_718)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_719 = PyInt_FromLong(719); if (unlikely(!__pyx_int_719)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_720 = PyInt_FromLong(720); if (unlikely(!__pyx_int_720)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_721 = PyInt_FromLong(721); if (unlikely(!__pyx_int_721)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_722 = PyInt_FromLong(722); if (unlikely(!__pyx_int_722)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_723 = PyInt_FromLong(723); if (unlikely(!__pyx_int_723)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_724 = PyInt_FromLong(724); if (unlikely(!__pyx_int_724)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_725 = PyInt_FromLong(725); if (unlikely(!__pyx_int_725)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_726 = PyInt_FromLong(726); if (unlikely(!__pyx_int_726)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_727 = PyInt_FromLong(727); if (unlikely(!__pyx_int_727)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_799 = PyInt_FromLong(799); if (unlikely(!__pyx_int_799)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_801 = PyInt_FromLong(801); if (unlikely(!__pyx_int_801)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_802 = PyInt_FromLong(802); if (unlikely(!__pyx_int_802)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_803 = PyInt_FromLong(803); if (unlikely(!__pyx_int_803)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_804 = PyInt_FromLong(804); if (unlikely(!__pyx_int_804)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_805 = PyInt_FromLong(805); if (unlikely(!__pyx_int_805)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_806 = PyInt_FromLong(806); if (unlikely(!__pyx_int_806)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_807 = PyInt_FromLong(807); if (unlikely(!__pyx_int_807)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_808 = PyInt_FromLong(808); if (unlikely(!__pyx_int_808)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_809 = PyInt_FromLong(809); if (unlikely(!__pyx_int_809)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_810 = PyInt_FromLong(810); if (unlikely(!__pyx_int_810)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_811 = PyInt_FromLong(811); if (unlikely(!__pyx_int_811)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_812 = PyInt_FromLong(812); if (unlikely(!__pyx_int_812)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_813 = PyInt_FromLong(813); if (unlikely(!__pyx_int_813)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_899 = PyInt_FromLong(899); if (unlikely(!__pyx_int_899)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_901 = PyInt_FromLong(901); if (unlikely(!__pyx_int_901)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_902 = PyInt_FromLong(902); if (unlikely(!__pyx_int_902)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_903 = PyInt_FromLong(903); if (unlikely(!__pyx_int_903)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_904 = PyInt_FromLong(904); if (unlikely(!__pyx_int_904)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_905 = PyInt_FromLong(905); if (unlikely(!__pyx_int_905)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_999 = PyInt_FromLong(999); if (unlikely(!__pyx_int_999)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1024 = PyInt_FromLong(1024); if (unlikely(!__pyx_int_1024)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000001 = PyInt_FromLong(1000001L); if (unlikely(!__pyx_int_1000001)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000002 = PyInt_FromLong(1000002L); if (unlikely(!__pyx_int_1000002)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000003 = PyInt_FromLong(1000003L); if (unlikely(!__pyx_int_1000003)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000004 = PyInt_FromLong(1000004L); if (unlikely(!__pyx_int_1000004)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000005 = PyInt_FromLong(1000005L); if (unlikely(!__pyx_int_1000005)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000006 = PyInt_FromLong(1000006L); if (unlikely(!__pyx_int_1000006)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000007 = PyInt_FromLong(1000007L); if (unlikely(!__pyx_int_1000007)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000008 = PyInt_FromLong(1000008L); if (unlikely(!__pyx_int_1000008)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000009 = PyInt_FromLong(1000009L); if (unlikely(!__pyx_int_1000009)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000010 = PyInt_FromLong(1000010L); if (unlikely(!__pyx_int_1000010)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000011 = PyInt_FromLong(1000011L); if (unlikely(!__pyx_int_1000011)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000012 = PyInt_FromLong(1000012L); if (unlikely(!__pyx_int_1000012)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000013 = PyInt_FromLong(1000013L); if (unlikely(!__pyx_int_1000013)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000014 = PyInt_FromLong(1000014L); if (unlikely(!__pyx_int_1000014)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000015 = PyInt_FromLong(1000015L); if (unlikely(!__pyx_int_1000015)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000016 = PyInt_FromLong(1000016L); if (unlikely(!__pyx_int_1000016)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000017 = PyInt_FromLong(1000017L); if (unlikely(!__pyx_int_1000017)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000018 = PyInt_FromLong(1000018L); if (unlikely(!__pyx_int_1000018)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000019 = PyInt_FromLong(1000019L); if (unlikely(!__pyx_int_1000019)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000020 = PyInt_FromLong(1000020L); if (unlikely(!__pyx_int_1000020)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000021 = PyInt_FromLong(1000021L); if (unlikely(!__pyx_int_1000021)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000022 = PyInt_FromLong(1000022L); if (unlikely(!__pyx_int_1000022)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000023 = PyInt_FromLong(1000023L); if (unlikely(!__pyx_int_1000023)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000024 = PyInt_FromLong(1000024L); if (unlikely(!__pyx_int_1000024)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000025 = PyInt_FromLong(1000025L); if (unlikely(!__pyx_int_1000025)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000026 = PyInt_FromLong(1000026L); if (unlikely(!__pyx_int_1000026)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000027 = PyInt_FromLong(1000027L); if (unlikely(!__pyx_int_1000027)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000028 = PyInt_FromLong(1000028L); if (unlikely(!__pyx_int_1000028)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000029 = PyInt_FromLong(1000029L); if (unlikely(!__pyx_int_1000029)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000030 = PyInt_FromLong(1000030L); if (unlikely(!__pyx_int_1000030)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000031 = PyInt_FromLong(1000031L); if (unlikely(!__pyx_int_1000031)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000032 = PyInt_FromLong(1000032L); if (unlikely(!__pyx_int_1000032)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000033 = PyInt_FromLong(1000033L); if (unlikely(!__pyx_int_1000033)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000034 = PyInt_FromLong(1000034L); if (unlikely(!__pyx_int_1000034)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000035 = PyInt_FromLong(1000035L); if (unlikely(!__pyx_int_1000035)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000036 = PyInt_FromLong(1000036L); if (unlikely(!__pyx_int_1000036)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000037 = PyInt_FromLong(1000037L); if (unlikely(!__pyx_int_1000037)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000038 = PyInt_FromLong(1000038L); if (unlikely(!__pyx_int_1000038)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000039 = PyInt_FromLong(1000039L); if (unlikely(!__pyx_int_1000039)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000040 = PyInt_FromLong(1000040L); if (unlikely(!__pyx_int_1000040)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000041 = PyInt_FromLong(1000041L); if (unlikely(!__pyx_int_1000041)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000042 = PyInt_FromLong(1000042L); if (unlikely(!__pyx_int_1000042)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000043 = PyInt_FromLong(1000043L); if (unlikely(!__pyx_int_1000043)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000044 = PyInt_FromLong(1000044L); if (unlikely(!__pyx_int_1000044)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000045 = PyInt_FromLong(1000045L); if (unlikely(!__pyx_int_1000045)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000046 = PyInt_FromLong(1000046L); if (unlikely(!__pyx_int_1000046)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000047 = PyInt_FromLong(1000047L); if (unlikely(!__pyx_int_1000047)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000048 = PyInt_FromLong(1000048L); if (unlikely(!__pyx_int_1000048)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000049 = PyInt_FromLong(1000049L); if (unlikely(!__pyx_int_1000049)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000050 = PyInt_FromLong(1000050L); if (unlikely(!__pyx_int_1000050)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000051 = PyInt_FromLong(1000051L); if (unlikely(!__pyx_int_1000051)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000052 = PyInt_FromLong(1000052L); if (unlikely(!__pyx_int_1000052)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000053 = PyInt_FromLong(1000053L); if (unlikely(!__pyx_int_1000053)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000054 = PyInt_FromLong(1000054L); if (unlikely(!__pyx_int_1000054)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000055 = PyInt_FromLong(1000055L); if (unlikely(!__pyx_int_1000055)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000056 = PyInt_FromLong(1000056L); if (unlikely(!__pyx_int_1000056)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000057 = PyInt_FromLong(1000057L); if (unlikely(!__pyx_int_1000057)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000058 = PyInt_FromLong(1000058L); if (unlikely(!__pyx_int_1000058)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000059 = PyInt_FromLong(1000059L); if (unlikely(!__pyx_int_1000059)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000060 = PyInt_FromLong(1000060L); if (unlikely(!__pyx_int_1000060)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000061 = PyInt_FromLong(1000061L); if (unlikely(!__pyx_int_1000061)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000062 = PyInt_FromLong(1000062L); if (unlikely(!__pyx_int_1000062)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000063 = PyInt_FromLong(1000063L); if (unlikely(!__pyx_int_1000063)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000064 = PyInt_FromLong(1000064L); if (unlikely(!__pyx_int_1000064)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000065 = PyInt_FromLong(1000065L); if (unlikely(!__pyx_int_1000065)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000066 = PyInt_FromLong(1000066L); if (unlikely(!__pyx_int_1000066)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000067 = PyInt_FromLong(1000067L); if (unlikely(!__pyx_int_1000067)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000068 = PyInt_FromLong(1000068L); if (unlikely(!__pyx_int_1000068)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000069 = PyInt_FromLong(1000069L); if (unlikely(!__pyx_int_1000069)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000070 = PyInt_FromLong(1000070L); if (unlikely(!__pyx_int_1000070)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000071 = PyInt_FromLong(1000071L); if (unlikely(!__pyx_int_1000071)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000072 = PyInt_FromLong(1000072L); if (unlikely(!__pyx_int_1000072)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000073 = PyInt_FromLong(1000073L); if (unlikely(!__pyx_int_1000073)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000074 = PyInt_FromLong(1000074L); if (unlikely(!__pyx_int_1000074)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000075 = PyInt_FromLong(1000075L); if (unlikely(!__pyx_int_1000075)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000076 = PyInt_FromLong(1000076L); if (unlikely(!__pyx_int_1000076)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000077 = PyInt_FromLong(1000077L); if (unlikely(!__pyx_int_1000077)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000078 = PyInt_FromLong(1000078L); if (unlikely(!__pyx_int_1000078)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000079 = PyInt_FromLong(1000079L); if (unlikely(!__pyx_int_1000079)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000080 = PyInt_FromLong(1000080L); if (unlikely(!__pyx_int_1000080)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000081 = PyInt_FromLong(1000081L); if (unlikely(!__pyx_int_1000081)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000082 = PyInt_FromLong(1000082L); if (unlikely(!__pyx_int_1000082)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000083 = PyInt_FromLong(1000083L); if (unlikely(!__pyx_int_1000083)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000084 = PyInt_FromLong(1000084L); if (unlikely(!__pyx_int_1000084)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000085 = PyInt_FromLong(1000085L); if (unlikely(!__pyx_int_1000085)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000086 = PyInt_FromLong(1000086L); if (unlikely(!__pyx_int_1000086)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000087 = PyInt_FromLong(1000087L); if (unlikely(!__pyx_int_1000087)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000088 = PyInt_FromLong(1000088L); if (unlikely(!__pyx_int_1000088)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000089 = PyInt_FromLong(1000089L); if (unlikely(!__pyx_int_1000089)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000090 = PyInt_FromLong(1000090L); if (unlikely(!__pyx_int_1000090)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000091 = PyInt_FromLong(1000091L); if (unlikely(!__pyx_int_1000091)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000092 = PyInt_FromLong(1000092L); if (unlikely(!__pyx_int_1000092)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000093 = PyInt_FromLong(1000093L); if (unlikely(!__pyx_int_1000093)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000094 = PyInt_FromLong(1000094L); if (unlikely(!__pyx_int_1000094)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000095 = PyInt_FromLong(1000095L); if (unlikely(!__pyx_int_1000095)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000096 = PyInt_FromLong(1000096L); if (unlikely(!__pyx_int_1000096)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000097 = PyInt_FromLong(1000097L); if (unlikely(!__pyx_int_1000097)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000098 = PyInt_FromLong(1000098L); if (unlikely(!__pyx_int_1000098)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000099 = PyInt_FromLong(1000099L); if (unlikely(!__pyx_int_1000099)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000100 = PyInt_FromLong(1000100L); if (unlikely(!__pyx_int_1000100)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000101 = PyInt_FromLong(1000101L); if (unlikely(!__pyx_int_1000101)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000102 = PyInt_FromLong(1000102L); if (unlikely(!__pyx_int_1000102)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000103 = PyInt_FromLong(1000103L); if (unlikely(!__pyx_int_1000103)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000104 = PyInt_FromLong(1000104L); if (unlikely(!__pyx_int_1000104)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000105 = PyInt_FromLong(1000105L); if (unlikely(!__pyx_int_1000105)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000106 = PyInt_FromLong(1000106L); if (unlikely(!__pyx_int_1000106)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000107 = PyInt_FromLong(1000107L); if (unlikely(!__pyx_int_1000107)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000108 = PyInt_FromLong(1000108L); if (unlikely(!__pyx_int_1000108)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000109 = PyInt_FromLong(1000109L); if (unlikely(!__pyx_int_1000109)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000110 = PyInt_FromLong(1000110L); if (unlikely(!__pyx_int_1000110)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000111 = PyInt_FromLong(1000111L); if (unlikely(!__pyx_int_1000111)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000112 = PyInt_FromLong(1000112L); if (unlikely(!__pyx_int_1000112)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000113 = PyInt_FromLong(1000113L); if (unlikely(!__pyx_int_1000113)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000114 = PyInt_FromLong(1000114L); if (unlikely(!__pyx_int_1000114)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000115 = PyInt_FromLong(1000115L); if (unlikely(!__pyx_int_1000115)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000116 = PyInt_FromLong(1000116L); if (unlikely(!__pyx_int_1000116)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000117 = PyInt_FromLong(1000117L); if (unlikely(!__pyx_int_1000117)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000118 = PyInt_FromLong(1000118L); if (unlikely(!__pyx_int_1000118)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000119 = PyInt_FromLong(1000119L); if (unlikely(!__pyx_int_1000119)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000120 = PyInt_FromLong(1000120L); if (unlikely(!__pyx_int_1000120)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000121 = PyInt_FromLong(1000121L); if (unlikely(!__pyx_int_1000121)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000122 = PyInt_FromLong(1000122L); if (unlikely(!__pyx_int_1000122)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000123 = PyInt_FromLong(1000123L); if (unlikely(!__pyx_int_1000123)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000124 = PyInt_FromLong(1000124L); if (unlikely(!__pyx_int_1000124)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000125 = PyInt_FromLong(1000125L); if (unlikely(!__pyx_int_1000125)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000126 = PyInt_FromLong(1000126L); if (unlikely(!__pyx_int_1000126)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000127 = PyInt_FromLong(1000127L); if (unlikely(!__pyx_int_1000127)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000128 = PyInt_FromLong(1000128L); if (unlikely(!__pyx_int_1000128)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000129 = PyInt_FromLong(1000129L); if (unlikely(!__pyx_int_1000129)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000130 = PyInt_FromLong(1000130L); if (unlikely(!__pyx_int_1000130)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000131 = PyInt_FromLong(1000131L); if (unlikely(!__pyx_int_1000131)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000132 = PyInt_FromLong(1000132L); if (unlikely(!__pyx_int_1000132)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1003228 = PyInt_FromLong(1003228L); if (unlikely(!__pyx_int_1003228)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2000000 = PyInt_FromLong(2000000L); if (unlikely(!__pyx_int_2000000)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000000000 = PyInt_FromLong(1000000000L); if (unlikely(!__pyx_int_1000000000)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000000001 = PyInt_FromLong(1000000001L); if (unlikely(!__pyx_int_1000000001)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1000000002 = PyInt_FromLong(1000000002L); if (unlikely(!__pyx_int_1000000002)) __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
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_9calcephpy_CalcephBin = &__pyx_vtable_9calcephpy_CalcephBin;
  __pyx_vtable_9calcephpy_CalcephBin.close = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_close;
  __pyx_vtable_9calcephpy_CalcephBin.prefetch = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_prefetch;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___vector_compute = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___vector_compute;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___scalar_compute = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___scalar_compute;
  __pyx_vtable_9calcephpy_CalcephBin.compute = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_compute;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___vector_compute_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___vector_compute_unit;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___scalar_compute_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___scalar_compute_unit;
  __pyx_vtable_9calcephpy_CalcephBin.compute_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_compute_unit;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___vector_orient_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___vector_orient_unit;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___scalar_orient_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___scalar_orient_unit;
  __pyx_vtable_9calcephpy_CalcephBin.orient_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_orient_unit;
  __pyx_vtable_9calcephpy_CalcephBin.rotangmom_unit = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_rotangmom_unit;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___vector_compute_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___vector_compute_order;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___scalar_compute_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___scalar_compute_order;
  __pyx_vtable_9calcephpy_CalcephBin.compute_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_compute_order;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___vector_orient_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___vector_orient_order;
  __pyx_vtable_9calcephpy_CalcephBin.__pyx___scalar_orient_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin___scalar_orient_order;
  __pyx_vtable_9calcephpy_CalcephBin.orient_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_orient_order;
  __pyx_vtable_9calcephpy_CalcephBin.rotangmom_order = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_rotangmom_order;
  __pyx_vtable_9calcephpy_CalcephBin.getconstant = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstant;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantsd = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantsd;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantvd = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantvd;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantss = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantss;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantvs = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantvs;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantcount = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantcount;
  __pyx_vtable_9calcephpy_CalcephBin.getconstantindex = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getconstantindex;
  __pyx_vtable_9calcephpy_CalcephBin.getpositionrecordcount = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getpositionrecordcount;
  __pyx_vtable_9calcephpy_CalcephBin.getpositionrecordindex = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getpositionrecordindex;
  __pyx_vtable_9calcephpy_CalcephBin.getorientrecordcount = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getorientrecordcount;
  __pyx_vtable_9calcephpy_CalcephBin.getorientrecordindex = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getorientrecordindex;
  __pyx_vtable_9calcephpy_CalcephBin.gettimescale = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_gettimescale;
  __pyx_vtable_9calcephpy_CalcephBin.gettimespan = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_gettimespan;
  __pyx_vtable_9calcephpy_CalcephBin.getfileversion = (PyObject *(*)(struct __pyx_obj_9calcephpy_CalcephBin *, int __pyx_skip_dispatch))__pyx_f_9calcephpy_10CalcephBin_getfileversion;
  if (PyType_Ready(&__pyx_type_9calcephpy_CalcephBin) < 0) __PYX_ERR(0, 463, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_9calcephpy_CalcephBin.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_9calcephpy_CalcephBin.tp_dictoffset && __pyx_type_9calcephpy_CalcephBin.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_9calcephpy_CalcephBin.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_9calcephpy_CalcephBin.tp_dict, __pyx_vtabptr_9calcephpy_CalcephBin) < 0) __PYX_ERR(0, 463, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CalcephBin, (PyObject *)&__pyx_type_9calcephpy_CalcephBin) < 0) __PYX_ERR(0, 463, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_9calcephpy_CalcephBin) < 0) __PYX_ERR(0, 463, __pyx_L1_error)
  __pyx_ptype_9calcephpy_CalcephBin = &__pyx_type_9calcephpy_CalcephBin;
  __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;
  __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(2, 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(2, 9, __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;
}


#if PY_MAJOR_VERSION < 3
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC void
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#else
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initcalcephpy(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initcalcephpy(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_calcephpy(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_calcephpy(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_calcephpy(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'calcephpy' 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_calcephpy(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("calcephpy", __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_calcephpy) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __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, "calcephpy")) {
      if (unlikely(PyDict_SetItemString(modules, "calcephpy", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error;
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) goto __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)) goto __pyx_L1_error;
  if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __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

  /* "calcephpy.pyx":67
 * cimport cpython.version
 * cimport cpython.string
 * import numpy             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_numpy, __pyx_t_1) < 0) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":76
 * 
 * 
 * class Constants:             # <<<<<<<<<<<<<<
 *     """Constants values of the CALCEPH library.
 * 
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_Constants, __pyx_n_s_Constants, (PyObject *) NULL, __pyx_n_s_calcephpy, __pyx_kp_s_Constants_values_of_the_CALCEPH); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "calcephpy.pyx":85
 * # /[inserted by cython to avoid comment start]*----------------------------------------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # version : major number of CALCEPH library
 *     VERSION_MAJOR = 3             # <<<<<<<<<<<<<<
 * # version : minor number of CALCEPH library
 *     VERSION_MINOR = 4
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VERSION_MAJOR, __pyx_int_3) < 0) __PYX_ERR(0, 85, __pyx_L1_error)

  /* "calcephpy.pyx":87
 *     VERSION_MAJOR = 3
 * # version : minor number of CALCEPH library
 *     VERSION_MINOR = 4             # <<<<<<<<<<<<<<
 * #  version : patch number of CALCEPH library
 *     VERSION_PATCH = 1
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VERSION_MINOR, __pyx_int_4) < 0) __PYX_ERR(0, 87, __pyx_L1_error)

  /* "calcephpy.pyx":89
 *     VERSION_MINOR = 4
 * #  version : patch number of CALCEPH library
 *     VERSION_PATCH = 1             # <<<<<<<<<<<<<<
 * #  version : string of characters
 *     VERSION_STRING = '3.4.1'
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VERSION_PATCH, __pyx_int_1) < 0) __PYX_ERR(0, 89, __pyx_L1_error)

  /* "calcephpy.pyx":91
 *     VERSION_PATCH = 1
 * #  version : string of characters
 *     VERSION_STRING = '3.4.1'             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*----------------------------------------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VERSION_STRING, __pyx_kp_s_3_4_1) < 0) __PYX_ERR(0, 91, __pyx_L1_error)

  /* "calcephpy.pyx":98
 * # /[inserted by cython to avoid comment start]*! define the maximum number of characters (includeing the trailing '\0')
 * # that the name of a constant could contain. *[inserted by cython to avoid comment closer]/
 *     MAX_CONSTANTNAME = 33             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*! define the offset value for asteroid for calceph_?compute *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MAX_CONSTANTNAME, __pyx_int_33) < 0) __PYX_ERR(0, 98, __pyx_L1_error)

  /* "calcephpy.pyx":101
 * 
 * # /[inserted by cython to avoid comment start]*! define the offset value for asteroid for calceph_?compute *[inserted by cython to avoid comment closer]/
 *     ASTEROID = 2000000             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]* unit for the output *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ASTEROID, __pyx_int_2000000) < 0) __PYX_ERR(0, 101, __pyx_L1_error)

  /* "calcephpy.pyx":105
 * # /[inserted by cython to avoid comment start]* unit for the output *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*! outputs are in Astronomical Unit *[inserted by cython to avoid comment closer]/
 *     UNIT_AU = 1             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! outputs are in kilometers *[inserted by cython to avoid comment closer]/
 *     UNIT_KM = 2
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UNIT_AU, __pyx_int_1) < 0) __PYX_ERR(0, 105, __pyx_L1_error)

  /* "calcephpy.pyx":107
 *     UNIT_AU = 1
 * # /[inserted by cython to avoid comment start]*! outputs are in kilometers *[inserted by cython to avoid comment closer]/
 *     UNIT_KM = 2             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! outputs are in day *[inserted by cython to avoid comment closer]/
 *     UNIT_DAY = 4
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UNIT_KM, __pyx_int_2) < 0) __PYX_ERR(0, 107, __pyx_L1_error)

  /* "calcephpy.pyx":109
 *     UNIT_KM = 2
 * # /[inserted by cython to avoid comment start]*! outputs are in day *[inserted by cython to avoid comment closer]/
 *     UNIT_DAY = 4             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! outputs are in seconds *[inserted by cython to avoid comment closer]/
 *     UNIT_SEC = 8
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UNIT_DAY, __pyx_int_4) < 0) __PYX_ERR(0, 109, __pyx_L1_error)

  /* "calcephpy.pyx":111
 *     UNIT_DAY = 4
 * # /[inserted by cython to avoid comment start]*! outputs are in seconds *[inserted by cython to avoid comment closer]/
 *     UNIT_SEC = 8             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! outputs are in radians *[inserted by cython to avoid comment closer]/
 *     UNIT_RAD = 16
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UNIT_SEC, __pyx_int_8) < 0) __PYX_ERR(0, 111, __pyx_L1_error)

  /* "calcephpy.pyx":113
 *     UNIT_SEC = 8
 * # /[inserted by cython to avoid comment start]*! outputs are in radians *[inserted by cython to avoid comment closer]/
 *     UNIT_RAD = 16             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*! use the NAIF body identification numbers for target and center integers *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UNIT_RAD, __pyx_int_16) < 0) __PYX_ERR(0, 113, __pyx_L1_error)

  /* "calcephpy.pyx":116
 * 
 * # /[inserted by cython to avoid comment start]*! use the NAIF body identification numbers for target and center integers *[inserted by cython to avoid comment closer]/
 *     USE_NAIFID = 32             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]* kind of output *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_USE_NAIFID, __pyx_int_32) < 0) __PYX_ERR(0, 116, __pyx_L1_error)

  /* "calcephpy.pyx":120
 * # /[inserted by cython to avoid comment start]* kind of output *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*! outputs are the euler angles *[inserted by cython to avoid comment closer]/
 *     OUTPUT_EULERANGLES = 64             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! outputs are the nutation angles *[inserted by cython to avoid comment closer]/
 *     OUTPUT_NUTATIONANGLES = 128
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_OUTPUT_EULERANGLES, __pyx_int_64) < 0) __PYX_ERR(0, 120, __pyx_L1_error)

  /* "calcephpy.pyx":122
 *     OUTPUT_EULERANGLES = 64
 * # /[inserted by cython to avoid comment start]*! outputs are the nutation angles *[inserted by cython to avoid comment closer]/
 *     OUTPUT_NUTATIONANGLES = 128             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_OUTPUT_NUTATIONANGLES, __pyx_int_128) < 0) __PYX_ERR(0, 122, __pyx_L1_error)

  /* "calcephpy.pyx":76
 * 
 * 
 * class Constants:             # <<<<<<<<<<<<<<
 *     """Constants values of the CALCEPH library.
 * 
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_Constants, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Constants, __pyx_t_2) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":128
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * class NaifId:             # <<<<<<<<<<<<<<
 *     """NAIF identification numbers of the CALCEPH library.
 * 
 */
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_empty_tuple, __pyx_n_s_NaifId, __pyx_n_s_NaifId, (PyObject *) NULL, __pyx_n_s_calcephpy, __pyx_kp_s_NAIF_identification_numbers_of_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "calcephpy.pyx":134
 *     """
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the Sun and planetary barycenters (table 2 of reference 1) *[inserted by cython to avoid comment closer]/
 *     SOLAR_SYSTEM_BARYCENTER = 0             # <<<<<<<<<<<<<<
 *     MERCURY_BARYCENTER = 1
 *     VENUS_BARYCENTER = 2
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SOLAR_SYSTEM_BARYCENTER, __pyx_int_0) < 0) __PYX_ERR(0, 134, __pyx_L1_error)

  /* "calcephpy.pyx":135
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the Sun and planetary barycenters (table 2 of reference 1) *[inserted by cython to avoid comment closer]/
 *     SOLAR_SYSTEM_BARYCENTER = 0
 *     MERCURY_BARYCENTER = 1             # <<<<<<<<<<<<<<
 *     VENUS_BARYCENTER = 2
 *     EARTH_MOON_BARYCENTER = 3
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MERCURY_BARYCENTER, __pyx_int_1) < 0) __PYX_ERR(0, 135, __pyx_L1_error)

  /* "calcephpy.pyx":136
 *     SOLAR_SYSTEM_BARYCENTER = 0
 *     MERCURY_BARYCENTER = 1
 *     VENUS_BARYCENTER = 2             # <<<<<<<<<<<<<<
 *     EARTH_MOON_BARYCENTER = 3
 *     MARS_BARYCENTER = 4
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VENUS_BARYCENTER, __pyx_int_2) < 0) __PYX_ERR(0, 136, __pyx_L1_error)

  /* "calcephpy.pyx":137
 *     MERCURY_BARYCENTER = 1
 *     VENUS_BARYCENTER = 2
 *     EARTH_MOON_BARYCENTER = 3             # <<<<<<<<<<<<<<
 *     MARS_BARYCENTER = 4
 *     JUPITER_BARYCENTER = 5
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EARTH_MOON_BARYCENTER, __pyx_int_3) < 0) __PYX_ERR(0, 137, __pyx_L1_error)

  /* "calcephpy.pyx":138
 *     VENUS_BARYCENTER = 2
 *     EARTH_MOON_BARYCENTER = 3
 *     MARS_BARYCENTER = 4             # <<<<<<<<<<<<<<
 *     JUPITER_BARYCENTER = 5
 *     SATURN_BARYCENTER = 6
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MARS_BARYCENTER, __pyx_int_4) < 0) __PYX_ERR(0, 138, __pyx_L1_error)

  /* "calcephpy.pyx":139
 *     EARTH_MOON_BARYCENTER = 3
 *     MARS_BARYCENTER = 4
 *     JUPITER_BARYCENTER = 5             # <<<<<<<<<<<<<<
 *     SATURN_BARYCENTER = 6
 *     URANUS_BARYCENTER = 7
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JUPITER_BARYCENTER, __pyx_int_5) < 0) __PYX_ERR(0, 139, __pyx_L1_error)

  /* "calcephpy.pyx":140
 *     MARS_BARYCENTER = 4
 *     JUPITER_BARYCENTER = 5
 *     SATURN_BARYCENTER = 6             # <<<<<<<<<<<<<<
 *     URANUS_BARYCENTER = 7
 *     NEPTUNE_BARYCENTER = 8
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SATURN_BARYCENTER, __pyx_int_6) < 0) __PYX_ERR(0, 140, __pyx_L1_error)

  /* "calcephpy.pyx":141
 *     JUPITER_BARYCENTER = 5
 *     SATURN_BARYCENTER = 6
 *     URANUS_BARYCENTER = 7             # <<<<<<<<<<<<<<
 *     NEPTUNE_BARYCENTER = 8
 *     PLUTO_BARYCENTER = 9
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_URANUS_BARYCENTER, __pyx_int_7) < 0) __PYX_ERR(0, 141, __pyx_L1_error)

  /* "calcephpy.pyx":142
 *     SATURN_BARYCENTER = 6
 *     URANUS_BARYCENTER = 7
 *     NEPTUNE_BARYCENTER = 8             # <<<<<<<<<<<<<<
 *     PLUTO_BARYCENTER = 9
 *     SUN = 10
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEPTUNE_BARYCENTER, __pyx_int_8) < 0) __PYX_ERR(0, 142, __pyx_L1_error)

  /* "calcephpy.pyx":143
 *     URANUS_BARYCENTER = 7
 *     NEPTUNE_BARYCENTER = 8
 *     PLUTO_BARYCENTER = 9             # <<<<<<<<<<<<<<
 *     SUN = 10
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PLUTO_BARYCENTER, __pyx_int_9) < 0) __PYX_ERR(0, 143, __pyx_L1_error)

  /* "calcephpy.pyx":144
 *     NEPTUNE_BARYCENTER = 8
 *     PLUTO_BARYCENTER = 9
 *     SUN = 10             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the Coordinate Time ephemerides *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SUN, __pyx_int_10) < 0) __PYX_ERR(0, 144, __pyx_L1_error)

  /* "calcephpy.pyx":148
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the Coordinate Time ephemerides *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*! value to set as the center to get any Coordinate Time *[inserted by cython to avoid comment closer]/
 *     TIME_CENTER = 1000000000             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! value to set as the target to get the Coordinate Time TT-TDB *[inserted by cython to avoid comment closer]/
 *     TIME_TTMTDB = 1000000001
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TIME_CENTER, __pyx_int_1000000000) < 0) __PYX_ERR(0, 148, __pyx_L1_error)

  /* "calcephpy.pyx":150
 *     TIME_CENTER = 1000000000
 * # /[inserted by cython to avoid comment start]*! value to set as the target to get the Coordinate Time TT-TDB *[inserted by cython to avoid comment closer]/
 *     TIME_TTMTDB = 1000000001             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*! value to set as the target to get the Coordinate Time TCG-TCB *[inserted by cython to avoid comment closer]/
 *     TIME_TCGMTCB = 1000000002
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TIME_TTMTDB, __pyx_int_1000000001) < 0) __PYX_ERR(0, 150, __pyx_L1_error)

  /* "calcephpy.pyx":152
 *     TIME_TTMTDB = 1000000001
 * # /[inserted by cython to avoid comment start]*! value to set as the target to get the Coordinate Time TCG-TCB *[inserted by cython to avoid comment closer]/
 *     TIME_TCGMTCB = 1000000002             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the planet centers and satellites (table= 3 of reference= 1)  *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TIME_TCGMTCB, __pyx_int_1000000002) < 0) __PYX_ERR(0, 152, __pyx_L1_error)

  /* "calcephpy.pyx":155
 * 
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the planet centers and satellites (table= 3 of reference= 1)  *[inserted by cython to avoid comment closer]/
 *     MERCURY = 199             # <<<<<<<<<<<<<<
 *     VENUS = 299
 *     EARTH = 399
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MERCURY, __pyx_int_199) < 0) __PYX_ERR(0, 155, __pyx_L1_error)

  /* "calcephpy.pyx":156
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the planet centers and satellites (table= 3 of reference= 1)  *[inserted by cython to avoid comment closer]/
 *     MERCURY = 199
 *     VENUS = 299             # <<<<<<<<<<<<<<
 *     EARTH = 399
 *     MOON = 301
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VENUS, __pyx_int_299) < 0) __PYX_ERR(0, 156, __pyx_L1_error)

  /* "calcephpy.pyx":157
 *     MERCURY = 199
 *     VENUS = 299
 *     EARTH = 399             # <<<<<<<<<<<<<<
 *     MOON = 301
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EARTH, __pyx_int_399) < 0) __PYX_ERR(0, 157, __pyx_L1_error)

  /* "calcephpy.pyx":158
 *     VENUS = 299
 *     EARTH = 399
 *     MOON = 301             # <<<<<<<<<<<<<<
 * 
 *     MARS = 499
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MOON, __pyx_int_301) < 0) __PYX_ERR(0, 158, __pyx_L1_error)

  /* "calcephpy.pyx":160
 *     MOON = 301
 * 
 *     MARS = 499             # <<<<<<<<<<<<<<
 *     PHOBOS = 401
 *     DEIMOS = 402
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MARS, __pyx_int_499) < 0) __PYX_ERR(0, 160, __pyx_L1_error)

  /* "calcephpy.pyx":161
 * 
 *     MARS = 499
 *     PHOBOS = 401             # <<<<<<<<<<<<<<
 *     DEIMOS = 402
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PHOBOS, __pyx_int_401) < 0) __PYX_ERR(0, 161, __pyx_L1_error)

  /* "calcephpy.pyx":162
 *     MARS = 499
 *     PHOBOS = 401
 *     DEIMOS = 402             # <<<<<<<<<<<<<<
 * 
 *     JUPITER = 599
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DEIMOS, __pyx_int_402) < 0) __PYX_ERR(0, 162, __pyx_L1_error)

  /* "calcephpy.pyx":164
 *     DEIMOS = 402
 * 
 *     JUPITER = 599             # <<<<<<<<<<<<<<
 *     IO = 501
 *     EUROPA = 502
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JUPITER, __pyx_int_599) < 0) __PYX_ERR(0, 164, __pyx_L1_error)

  /* "calcephpy.pyx":165
 * 
 *     JUPITER = 599
 *     IO = 501             # <<<<<<<<<<<<<<
 *     EUROPA = 502
 *     GANYMEDE = 503
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_IO, __pyx_int_501) < 0) __PYX_ERR(0, 165, __pyx_L1_error)

  /* "calcephpy.pyx":166
 *     JUPITER = 599
 *     IO = 501
 *     EUROPA = 502             # <<<<<<<<<<<<<<
 *     GANYMEDE = 503
 *     CALLISTO = 504
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EUROPA, __pyx_int_502) < 0) __PYX_ERR(0, 166, __pyx_L1_error)

  /* "calcephpy.pyx":167
 *     IO = 501
 *     EUROPA = 502
 *     GANYMEDE = 503             # <<<<<<<<<<<<<<
 *     CALLISTO = 504
 *     AMALTHEA = 505
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GANYMEDE, __pyx_int_503) < 0) __PYX_ERR(0, 167, __pyx_L1_error)

  /* "calcephpy.pyx":168
 *     EUROPA = 502
 *     GANYMEDE = 503
 *     CALLISTO = 504             # <<<<<<<<<<<<<<
 *     AMALTHEA = 505
 *     HIMALIA = 506
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CALLISTO, __pyx_int_504) < 0) __PYX_ERR(0, 168, __pyx_L1_error)

  /* "calcephpy.pyx":169
 *     GANYMEDE = 503
 *     CALLISTO = 504
 *     AMALTHEA = 505             # <<<<<<<<<<<<<<
 *     HIMALIA = 506
 *     ELARA = 507
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AMALTHEA, __pyx_int_505) < 0) __PYX_ERR(0, 169, __pyx_L1_error)

  /* "calcephpy.pyx":170
 *     CALLISTO = 504
 *     AMALTHEA = 505
 *     HIMALIA = 506             # <<<<<<<<<<<<<<
 *     ELARA = 507
 *     PASIPHAE = 508
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HIMALIA, __pyx_int_506) < 0) __PYX_ERR(0, 170, __pyx_L1_error)

  /* "calcephpy.pyx":171
 *     AMALTHEA = 505
 *     HIMALIA = 506
 *     ELARA = 507             # <<<<<<<<<<<<<<
 *     PASIPHAE = 508
 *     SINOPE = 509
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ELARA, __pyx_int_507) < 0) __PYX_ERR(0, 171, __pyx_L1_error)

  /* "calcephpy.pyx":172
 *     HIMALIA = 506
 *     ELARA = 507
 *     PASIPHAE = 508             # <<<<<<<<<<<<<<
 *     SINOPE = 509
 *     LYSITHEA = 510
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PASIPHAE, __pyx_int_508) < 0) __PYX_ERR(0, 172, __pyx_L1_error)

  /* "calcephpy.pyx":173
 *     ELARA = 507
 *     PASIPHAE = 508
 *     SINOPE = 509             # <<<<<<<<<<<<<<
 *     LYSITHEA = 510
 *     CARME = 511
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SINOPE, __pyx_int_509) < 0) __PYX_ERR(0, 173, __pyx_L1_error)

  /* "calcephpy.pyx":174
 *     PASIPHAE = 508
 *     SINOPE = 509
 *     LYSITHEA = 510             # <<<<<<<<<<<<<<
 *     CARME = 511
 *     ANANKE = 512
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LYSITHEA, __pyx_int_510) < 0) __PYX_ERR(0, 174, __pyx_L1_error)

  /* "calcephpy.pyx":175
 *     SINOPE = 509
 *     LYSITHEA = 510
 *     CARME = 511             # <<<<<<<<<<<<<<
 *     ANANKE = 512
 *     LEDA = 513
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CARME, __pyx_int_511) < 0) __PYX_ERR(0, 175, __pyx_L1_error)

  /* "calcephpy.pyx":176
 *     LYSITHEA = 510
 *     CARME = 511
 *     ANANKE = 512             # <<<<<<<<<<<<<<
 *     LEDA = 513
 *     THEBE = 514
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ANANKE, __pyx_int_512) < 0) __PYX_ERR(0, 176, __pyx_L1_error)

  /* "calcephpy.pyx":177
 *     CARME = 511
 *     ANANKE = 512
 *     LEDA = 513             # <<<<<<<<<<<<<<
 *     THEBE = 514
 *     ADRASTEA = 515
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LEDA, __pyx_int_513) < 0) __PYX_ERR(0, 177, __pyx_L1_error)

  /* "calcephpy.pyx":178
 *     ANANKE = 512
 *     LEDA = 513
 *     THEBE = 514             # <<<<<<<<<<<<<<
 *     ADRASTEA = 515
 *     METIS = 516
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THEBE, __pyx_int_514) < 0) __PYX_ERR(0, 178, __pyx_L1_error)

  /* "calcephpy.pyx":179
 *     LEDA = 513
 *     THEBE = 514
 *     ADRASTEA = 515             # <<<<<<<<<<<<<<
 *     METIS = 516
 *     CALLIRRHOE = 517
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ADRASTEA, __pyx_int_515) < 0) __PYX_ERR(0, 179, __pyx_L1_error)

  /* "calcephpy.pyx":180
 *     THEBE = 514
 *     ADRASTEA = 515
 *     METIS = 516             # <<<<<<<<<<<<<<
 *     CALLIRRHOE = 517
 *     THEMISTO = 518
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_METIS, __pyx_int_516) < 0) __PYX_ERR(0, 180, __pyx_L1_error)

  /* "calcephpy.pyx":181
 *     ADRASTEA = 515
 *     METIS = 516
 *     CALLIRRHOE = 517             # <<<<<<<<<<<<<<
 *     THEMISTO = 518
 *     MAGACLITE = 519
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CALLIRRHOE, __pyx_int_517) < 0) __PYX_ERR(0, 181, __pyx_L1_error)

  /* "calcephpy.pyx":182
 *     METIS = 516
 *     CALLIRRHOE = 517
 *     THEMISTO = 518             # <<<<<<<<<<<<<<
 *     MAGACLITE = 519
 *     TAYGETE = 520
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THEMISTO, __pyx_int_518) < 0) __PYX_ERR(0, 182, __pyx_L1_error)

  /* "calcephpy.pyx":183
 *     CALLIRRHOE = 517
 *     THEMISTO = 518
 *     MAGACLITE = 519             # <<<<<<<<<<<<<<
 *     TAYGETE = 520
 *     CHALDENE = 521
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MAGACLITE, __pyx_int_519) < 0) __PYX_ERR(0, 183, __pyx_L1_error)

  /* "calcephpy.pyx":184
 *     THEMISTO = 518
 *     MAGACLITE = 519
 *     TAYGETE = 520             # <<<<<<<<<<<<<<
 *     CHALDENE = 521
 *     HARPALYKE = 522
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TAYGETE, __pyx_int_520) < 0) __PYX_ERR(0, 184, __pyx_L1_error)

  /* "calcephpy.pyx":185
 *     MAGACLITE = 519
 *     TAYGETE = 520
 *     CHALDENE = 521             # <<<<<<<<<<<<<<
 *     HARPALYKE = 522
 *     KALYKE = 523
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CHALDENE, __pyx_int_521) < 0) __PYX_ERR(0, 185, __pyx_L1_error)

  /* "calcephpy.pyx":186
 *     TAYGETE = 520
 *     CHALDENE = 521
 *     HARPALYKE = 522             # <<<<<<<<<<<<<<
 *     KALYKE = 523
 *     IOCASTE = 524
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARPALYKE, __pyx_int_522) < 0) __PYX_ERR(0, 186, __pyx_L1_error)

  /* "calcephpy.pyx":187
 *     CHALDENE = 521
 *     HARPALYKE = 522
 *     KALYKE = 523             # <<<<<<<<<<<<<<
 *     IOCASTE = 524
 *     ERINOME = 525
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KALYKE, __pyx_int_523) < 0) __PYX_ERR(0, 187, __pyx_L1_error)

  /* "calcephpy.pyx":188
 *     HARPALYKE = 522
 *     KALYKE = 523
 *     IOCASTE = 524             # <<<<<<<<<<<<<<
 *     ERINOME = 525
 *     ISONOE = 526
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_IOCASTE, __pyx_int_524) < 0) __PYX_ERR(0, 188, __pyx_L1_error)

  /* "calcephpy.pyx":189
 *     KALYKE = 523
 *     IOCASTE = 524
 *     ERINOME = 525             # <<<<<<<<<<<<<<
 *     ISONOE = 526
 *     PRAXIDIKE = 527
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ERINOME, __pyx_int_525) < 0) __PYX_ERR(0, 189, __pyx_L1_error)

  /* "calcephpy.pyx":190
 *     IOCASTE = 524
 *     ERINOME = 525
 *     ISONOE = 526             # <<<<<<<<<<<<<<
 *     PRAXIDIKE = 527
 *     AUTONOE = 528
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ISONOE, __pyx_int_526) < 0) __PYX_ERR(0, 190, __pyx_L1_error)

  /* "calcephpy.pyx":191
 *     ERINOME = 525
 *     ISONOE = 526
 *     PRAXIDIKE = 527             # <<<<<<<<<<<<<<
 *     AUTONOE = 528
 *     THYONE = 529
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PRAXIDIKE, __pyx_int_527) < 0) __PYX_ERR(0, 191, __pyx_L1_error)

  /* "calcephpy.pyx":192
 *     ISONOE = 526
 *     PRAXIDIKE = 527
 *     AUTONOE = 528             # <<<<<<<<<<<<<<
 *     THYONE = 529
 *     HERMIPPE = 530
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AUTONOE, __pyx_int_528) < 0) __PYX_ERR(0, 192, __pyx_L1_error)

  /* "calcephpy.pyx":193
 *     PRAXIDIKE = 527
 *     AUTONOE = 528
 *     THYONE = 529             # <<<<<<<<<<<<<<
 *     HERMIPPE = 530
 *     AITNE = 531
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THYONE, __pyx_int_529) < 0) __PYX_ERR(0, 193, __pyx_L1_error)

  /* "calcephpy.pyx":194
 *     AUTONOE = 528
 *     THYONE = 529
 *     HERMIPPE = 530             # <<<<<<<<<<<<<<
 *     AITNE = 531
 *     EURYDOME = 532
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HERMIPPE, __pyx_int_530) < 0) __PYX_ERR(0, 194, __pyx_L1_error)

  /* "calcephpy.pyx":195
 *     THYONE = 529
 *     HERMIPPE = 530
 *     AITNE = 531             # <<<<<<<<<<<<<<
 *     EURYDOME = 532
 *     EUANTHE = 533
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AITNE, __pyx_int_531) < 0) __PYX_ERR(0, 195, __pyx_L1_error)

  /* "calcephpy.pyx":196
 *     HERMIPPE = 530
 *     AITNE = 531
 *     EURYDOME = 532             # <<<<<<<<<<<<<<
 *     EUANTHE = 533
 *     EUPORIE = 534
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EURYDOME, __pyx_int_532) < 0) __PYX_ERR(0, 196, __pyx_L1_error)

  /* "calcephpy.pyx":197
 *     AITNE = 531
 *     EURYDOME = 532
 *     EUANTHE = 533             # <<<<<<<<<<<<<<
 *     EUPORIE = 534
 *     ORTHOSIE = 535
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EUANTHE, __pyx_int_533) < 0) __PYX_ERR(0, 197, __pyx_L1_error)

  /* "calcephpy.pyx":198
 *     EURYDOME = 532
 *     EUANTHE = 533
 *     EUPORIE = 534             # <<<<<<<<<<<<<<
 *     ORTHOSIE = 535
 *     SPONDE = 536
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EUPORIE, __pyx_int_534) < 0) __PYX_ERR(0, 198, __pyx_L1_error)

  /* "calcephpy.pyx":199
 *     EUANTHE = 533
 *     EUPORIE = 534
 *     ORTHOSIE = 535             # <<<<<<<<<<<<<<
 *     SPONDE = 536
 *     KALE = 537
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ORTHOSIE, __pyx_int_535) < 0) __PYX_ERR(0, 199, __pyx_L1_error)

  /* "calcephpy.pyx":200
 *     EUPORIE = 534
 *     ORTHOSIE = 535
 *     SPONDE = 536             # <<<<<<<<<<<<<<
 *     KALE = 537
 *     PASITHEE = 538
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SPONDE, __pyx_int_536) < 0) __PYX_ERR(0, 200, __pyx_L1_error)

  /* "calcephpy.pyx":201
 *     ORTHOSIE = 535
 *     SPONDE = 536
 *     KALE = 537             # <<<<<<<<<<<<<<
 *     PASITHEE = 538
 *     HEGEMONE = 539
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KALE, __pyx_int_537) < 0) __PYX_ERR(0, 201, __pyx_L1_error)

  /* "calcephpy.pyx":202
 *     SPONDE = 536
 *     KALE = 537
 *     PASITHEE = 538             # <<<<<<<<<<<<<<
 *     HEGEMONE = 539
 *     MNEME = 540
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PASITHEE, __pyx_int_538) < 0) __PYX_ERR(0, 202, __pyx_L1_error)

  /* "calcephpy.pyx":203
 *     KALE = 537
 *     PASITHEE = 538
 *     HEGEMONE = 539             # <<<<<<<<<<<<<<
 *     MNEME = 540
 *     AOEDE = 541
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HEGEMONE, __pyx_int_539) < 0) __PYX_ERR(0, 203, __pyx_L1_error)

  /* "calcephpy.pyx":204
 *     PASITHEE = 538
 *     HEGEMONE = 539
 *     MNEME = 540             # <<<<<<<<<<<<<<
 *     AOEDE = 541
 *     THELXINOE = 542
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MNEME, __pyx_int_540) < 0) __PYX_ERR(0, 204, __pyx_L1_error)

  /* "calcephpy.pyx":205
 *     HEGEMONE = 539
 *     MNEME = 540
 *     AOEDE = 541             # <<<<<<<<<<<<<<
 *     THELXINOE = 542
 *     ARCHE = 543
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AOEDE, __pyx_int_541) < 0) __PYX_ERR(0, 205, __pyx_L1_error)

  /* "calcephpy.pyx":206
 *     MNEME = 540
 *     AOEDE = 541
 *     THELXINOE = 542             # <<<<<<<<<<<<<<
 *     ARCHE = 543
 *     KALLICHORE = 544
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THELXINOE, __pyx_int_542) < 0) __PYX_ERR(0, 206, __pyx_L1_error)

  /* "calcephpy.pyx":207
 *     AOEDE = 541
 *     THELXINOE = 542
 *     ARCHE = 543             # <<<<<<<<<<<<<<
 *     KALLICHORE = 544
 *     HELIKE = 545
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ARCHE, __pyx_int_543) < 0) __PYX_ERR(0, 207, __pyx_L1_error)

  /* "calcephpy.pyx":208
 *     THELXINOE = 542
 *     ARCHE = 543
 *     KALLICHORE = 544             # <<<<<<<<<<<<<<
 *     HELIKE = 545
 *     CARPO = 546
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KALLICHORE, __pyx_int_544) < 0) __PYX_ERR(0, 208, __pyx_L1_error)

  /* "calcephpy.pyx":209
 *     ARCHE = 543
 *     KALLICHORE = 544
 *     HELIKE = 545             # <<<<<<<<<<<<<<
 *     CARPO = 546
 *     EUKELADE = 547
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HELIKE, __pyx_int_545) < 0) __PYX_ERR(0, 209, __pyx_L1_error)

  /* "calcephpy.pyx":210
 *     KALLICHORE = 544
 *     HELIKE = 545
 *     CARPO = 546             # <<<<<<<<<<<<<<
 *     EUKELADE = 547
 *     CYLLENE = 548
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CARPO, __pyx_int_546) < 0) __PYX_ERR(0, 210, __pyx_L1_error)

  /* "calcephpy.pyx":211
 *     HELIKE = 545
 *     CARPO = 546
 *     EUKELADE = 547             # <<<<<<<<<<<<<<
 *     CYLLENE = 548
 *     KORE = 549
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EUKELADE, __pyx_int_547) < 0) __PYX_ERR(0, 211, __pyx_L1_error)

  /* "calcephpy.pyx":212
 *     CARPO = 546
 *     EUKELADE = 547
 *     CYLLENE = 548             # <<<<<<<<<<<<<<
 *     KORE = 549
 *     HERSE = 550
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CYLLENE, __pyx_int_548) < 0) __PYX_ERR(0, 212, __pyx_L1_error)

  /* "calcephpy.pyx":213
 *     EUKELADE = 547
 *     CYLLENE = 548
 *     KORE = 549             # <<<<<<<<<<<<<<
 *     HERSE = 550
 *     DIA = 553
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KORE, __pyx_int_549) < 0) __PYX_ERR(0, 213, __pyx_L1_error)

  /* "calcephpy.pyx":214
 *     CYLLENE = 548
 *     KORE = 549
 *     HERSE = 550             # <<<<<<<<<<<<<<
 *     DIA = 553
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HERSE, __pyx_int_550) < 0) __PYX_ERR(0, 214, __pyx_L1_error)

  /* "calcephpy.pyx":215
 *     KORE = 549
 *     HERSE = 550
 *     DIA = 553             # <<<<<<<<<<<<<<
 * 
 *     SATURN = 699
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DIA, __pyx_int_553) < 0) __PYX_ERR(0, 215, __pyx_L1_error)

  /* "calcephpy.pyx":217
 *     DIA = 553
 * 
 *     SATURN = 699             # <<<<<<<<<<<<<<
 *     MIMAS = 601
 *     ENCELADUS = 602
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SATURN, __pyx_int_699) < 0) __PYX_ERR(0, 217, __pyx_L1_error)

  /* "calcephpy.pyx":218
 * 
 *     SATURN = 699
 *     MIMAS = 601             # <<<<<<<<<<<<<<
 *     ENCELADUS = 602
 *     TETHYS = 603
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MIMAS, __pyx_int_601) < 0) __PYX_ERR(0, 218, __pyx_L1_error)

  /* "calcephpy.pyx":219
 *     SATURN = 699
 *     MIMAS = 601
 *     ENCELADUS = 602             # <<<<<<<<<<<<<<
 *     TETHYS = 603
 *     DIONE = 604
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ENCELADUS, __pyx_int_602) < 0) __PYX_ERR(0, 219, __pyx_L1_error)

  /* "calcephpy.pyx":220
 *     MIMAS = 601
 *     ENCELADUS = 602
 *     TETHYS = 603             # <<<<<<<<<<<<<<
 *     DIONE = 604
 *     RHEA = 605
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TETHYS, __pyx_int_603) < 0) __PYX_ERR(0, 220, __pyx_L1_error)

  /* "calcephpy.pyx":221
 *     ENCELADUS = 602
 *     TETHYS = 603
 *     DIONE = 604             # <<<<<<<<<<<<<<
 *     RHEA = 605
 *     TITAN = 606
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DIONE, __pyx_int_604) < 0) __PYX_ERR(0, 221, __pyx_L1_error)

  /* "calcephpy.pyx":222
 *     TETHYS = 603
 *     DIONE = 604
 *     RHEA = 605             # <<<<<<<<<<<<<<
 *     TITAN = 606
 *     HYPERION = 607
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_RHEA, __pyx_int_605) < 0) __PYX_ERR(0, 222, __pyx_L1_error)

  /* "calcephpy.pyx":223
 *     DIONE = 604
 *     RHEA = 605
 *     TITAN = 606             # <<<<<<<<<<<<<<
 *     HYPERION = 607
 *     IAPETUS = 608
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TITAN, __pyx_int_606) < 0) __PYX_ERR(0, 223, __pyx_L1_error)

  /* "calcephpy.pyx":224
 *     RHEA = 605
 *     TITAN = 606
 *     HYPERION = 607             # <<<<<<<<<<<<<<
 *     IAPETUS = 608
 *     PHOEBE = 609
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HYPERION, __pyx_int_607) < 0) __PYX_ERR(0, 224, __pyx_L1_error)

  /* "calcephpy.pyx":225
 *     TITAN = 606
 *     HYPERION = 607
 *     IAPETUS = 608             # <<<<<<<<<<<<<<
 *     PHOEBE = 609
 *     JANUS = 610
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_IAPETUS, __pyx_int_608) < 0) __PYX_ERR(0, 225, __pyx_L1_error)

  /* "calcephpy.pyx":226
 *     HYPERION = 607
 *     IAPETUS = 608
 *     PHOEBE = 609             # <<<<<<<<<<<<<<
 *     JANUS = 610
 *     EPIMETHEUS = 611
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PHOEBE, __pyx_int_609) < 0) __PYX_ERR(0, 226, __pyx_L1_error)

  /* "calcephpy.pyx":227
 *     IAPETUS = 608
 *     PHOEBE = 609
 *     JANUS = 610             # <<<<<<<<<<<<<<
 *     EPIMETHEUS = 611
 *     HELENE = 612
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JANUS, __pyx_int_610) < 0) __PYX_ERR(0, 227, __pyx_L1_error)

  /* "calcephpy.pyx":228
 *     PHOEBE = 609
 *     JANUS = 610
 *     EPIMETHEUS = 611             # <<<<<<<<<<<<<<
 *     HELENE = 612
 *     TELESTO = 613
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_EPIMETHEUS, __pyx_int_611) < 0) __PYX_ERR(0, 228, __pyx_L1_error)

  /* "calcephpy.pyx":229
 *     JANUS = 610
 *     EPIMETHEUS = 611
 *     HELENE = 612             # <<<<<<<<<<<<<<
 *     TELESTO = 613
 *     CALYPSO = 614
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HELENE, __pyx_int_612) < 0) __PYX_ERR(0, 229, __pyx_L1_error)

  /* "calcephpy.pyx":230
 *     EPIMETHEUS = 611
 *     HELENE = 612
 *     TELESTO = 613             # <<<<<<<<<<<<<<
 *     CALYPSO = 614
 *     ATLAS = 615
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TELESTO, __pyx_int_613) < 0) __PYX_ERR(0, 230, __pyx_L1_error)

  /* "calcephpy.pyx":231
 *     HELENE = 612
 *     TELESTO = 613
 *     CALYPSO = 614             # <<<<<<<<<<<<<<
 *     ATLAS = 615
 *     PROMETHEUS = 616
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CALYPSO, __pyx_int_614) < 0) __PYX_ERR(0, 231, __pyx_L1_error)

  /* "calcephpy.pyx":232
 *     TELESTO = 613
 *     CALYPSO = 614
 *     ATLAS = 615             # <<<<<<<<<<<<<<
 *     PROMETHEUS = 616
 *     PANDORA = 617
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ATLAS, __pyx_int_615) < 0) __PYX_ERR(0, 232, __pyx_L1_error)

  /* "calcephpy.pyx":233
 *     CALYPSO = 614
 *     ATLAS = 615
 *     PROMETHEUS = 616             # <<<<<<<<<<<<<<
 *     PANDORA = 617
 *     PAN = 618
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PROMETHEUS, __pyx_int_616) < 0) __PYX_ERR(0, 233, __pyx_L1_error)

  /* "calcephpy.pyx":234
 *     ATLAS = 615
 *     PROMETHEUS = 616
 *     PANDORA = 617             # <<<<<<<<<<<<<<
 *     PAN = 618
 *     YMIR = 619
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PANDORA, __pyx_int_617) < 0) __PYX_ERR(0, 234, __pyx_L1_error)

  /* "calcephpy.pyx":235
 *     PROMETHEUS = 616
 *     PANDORA = 617
 *     PAN = 618             # <<<<<<<<<<<<<<
 *     YMIR = 619
 *     PAALIAQ = 620
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PAN, __pyx_int_618) < 0) __PYX_ERR(0, 235, __pyx_L1_error)

  /* "calcephpy.pyx":236
 *     PANDORA = 617
 *     PAN = 618
 *     YMIR = 619             # <<<<<<<<<<<<<<
 *     PAALIAQ = 620
 *     TARVOS = 621
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_YMIR, __pyx_int_619) < 0) __PYX_ERR(0, 236, __pyx_L1_error)

  /* "calcephpy.pyx":237
 *     PAN = 618
 *     YMIR = 619
 *     PAALIAQ = 620             # <<<<<<<<<<<<<<
 *     TARVOS = 621
 *     IJIRAQ = 622
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PAALIAQ, __pyx_int_620) < 0) __PYX_ERR(0, 237, __pyx_L1_error)

  /* "calcephpy.pyx":238
 *     YMIR = 619
 *     PAALIAQ = 620
 *     TARVOS = 621             # <<<<<<<<<<<<<<
 *     IJIRAQ = 622
 *     SUTTUNGR = 623
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TARVOS, __pyx_int_621) < 0) __PYX_ERR(0, 238, __pyx_L1_error)

  /* "calcephpy.pyx":239
 *     PAALIAQ = 620
 *     TARVOS = 621
 *     IJIRAQ = 622             # <<<<<<<<<<<<<<
 *     SUTTUNGR = 623
 *     KIVIUQ = 624
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_IJIRAQ, __pyx_int_622) < 0) __PYX_ERR(0, 239, __pyx_L1_error)

  /* "calcephpy.pyx":240
 *     TARVOS = 621
 *     IJIRAQ = 622
 *     SUTTUNGR = 623             # <<<<<<<<<<<<<<
 *     KIVIUQ = 624
 *     MUNDILFARI = 625
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SUTTUNGR, __pyx_int_623) < 0) __PYX_ERR(0, 240, __pyx_L1_error)

  /* "calcephpy.pyx":241
 *     IJIRAQ = 622
 *     SUTTUNGR = 623
 *     KIVIUQ = 624             # <<<<<<<<<<<<<<
 *     MUNDILFARI = 625
 *     ALBIORIX = 626
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KIVIUQ, __pyx_int_624) < 0) __PYX_ERR(0, 241, __pyx_L1_error)

  /* "calcephpy.pyx":242
 *     SUTTUNGR = 623
 *     KIVIUQ = 624
 *     MUNDILFARI = 625             # <<<<<<<<<<<<<<
 *     ALBIORIX = 626
 *     SKATHI = 627
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MUNDILFARI, __pyx_int_625) < 0) __PYX_ERR(0, 242, __pyx_L1_error)

  /* "calcephpy.pyx":243
 *     KIVIUQ = 624
 *     MUNDILFARI = 625
 *     ALBIORIX = 626             # <<<<<<<<<<<<<<
 *     SKATHI = 627
 *     ERRIAPUS = 628
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ALBIORIX, __pyx_int_626) < 0) __PYX_ERR(0, 243, __pyx_L1_error)

  /* "calcephpy.pyx":244
 *     MUNDILFARI = 625
 *     ALBIORIX = 626
 *     SKATHI = 627             # <<<<<<<<<<<<<<
 *     ERRIAPUS = 628
 *     SIARNAQ = 629
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SKATHI, __pyx_int_627) < 0) __PYX_ERR(0, 244, __pyx_L1_error)

  /* "calcephpy.pyx":245
 *     ALBIORIX = 626
 *     SKATHI = 627
 *     ERRIAPUS = 628             # <<<<<<<<<<<<<<
 *     SIARNAQ = 629
 *     THRYMR = 630
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ERRIAPUS, __pyx_int_628) < 0) __PYX_ERR(0, 245, __pyx_L1_error)

  /* "calcephpy.pyx":246
 *     SKATHI = 627
 *     ERRIAPUS = 628
 *     SIARNAQ = 629             # <<<<<<<<<<<<<<
 *     THRYMR = 630
 *     NARVI = 631
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SIARNAQ, __pyx_int_629) < 0) __PYX_ERR(0, 246, __pyx_L1_error)

  /* "calcephpy.pyx":247
 *     ERRIAPUS = 628
 *     SIARNAQ = 629
 *     THRYMR = 630             # <<<<<<<<<<<<<<
 *     NARVI = 631
 *     METHONE = 632
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THRYMR, __pyx_int_630) < 0) __PYX_ERR(0, 247, __pyx_L1_error)

  /* "calcephpy.pyx":248
 *     SIARNAQ = 629
 *     THRYMR = 630
 *     NARVI = 631             # <<<<<<<<<<<<<<
 *     METHONE = 632
 *     PALLENE = 633
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NARVI, __pyx_int_631) < 0) __PYX_ERR(0, 248, __pyx_L1_error)

  /* "calcephpy.pyx":249
 *     THRYMR = 630
 *     NARVI = 631
 *     METHONE = 632             # <<<<<<<<<<<<<<
 *     PALLENE = 633
 *     POLYDEUCES = 634
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_METHONE, __pyx_int_632) < 0) __PYX_ERR(0, 249, __pyx_L1_error)

  /* "calcephpy.pyx":250
 *     NARVI = 631
 *     METHONE = 632
 *     PALLENE = 633             # <<<<<<<<<<<<<<
 *     POLYDEUCES = 634
 *     DAPHNIS = 635
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PALLENE, __pyx_int_633) < 0) __PYX_ERR(0, 250, __pyx_L1_error)

  /* "calcephpy.pyx":251
 *     METHONE = 632
 *     PALLENE = 633
 *     POLYDEUCES = 634             # <<<<<<<<<<<<<<
 *     DAPHNIS = 635
 *     AEGIR = 636
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_POLYDEUCES, __pyx_int_634) < 0) __PYX_ERR(0, 251, __pyx_L1_error)

  /* "calcephpy.pyx":252
 *     PALLENE = 633
 *     POLYDEUCES = 634
 *     DAPHNIS = 635             # <<<<<<<<<<<<<<
 *     AEGIR = 636
 *     BEBHIONN = 637
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DAPHNIS, __pyx_int_635) < 0) __PYX_ERR(0, 252, __pyx_L1_error)

  /* "calcephpy.pyx":253
 *     POLYDEUCES = 634
 *     DAPHNIS = 635
 *     AEGIR = 636             # <<<<<<<<<<<<<<
 *     BEBHIONN = 637
 *     BERGELMIR = 638
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AEGIR, __pyx_int_636) < 0) __PYX_ERR(0, 253, __pyx_L1_error)

  /* "calcephpy.pyx":254
 *     DAPHNIS = 635
 *     AEGIR = 636
 *     BEBHIONN = 637             # <<<<<<<<<<<<<<
 *     BERGELMIR = 638
 *     BESTLA = 639
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BEBHIONN, __pyx_int_637) < 0) __PYX_ERR(0, 254, __pyx_L1_error)

  /* "calcephpy.pyx":255
 *     AEGIR = 636
 *     BEBHIONN = 637
 *     BERGELMIR = 638             # <<<<<<<<<<<<<<
 *     BESTLA = 639
 *     FARBAUTI = 640
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BERGELMIR, __pyx_int_638) < 0) __PYX_ERR(0, 255, __pyx_L1_error)

  /* "calcephpy.pyx":256
 *     BEBHIONN = 637
 *     BERGELMIR = 638
 *     BESTLA = 639             # <<<<<<<<<<<<<<
 *     FARBAUTI = 640
 *     FENRIR = 641
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BESTLA, __pyx_int_639) < 0) __PYX_ERR(0, 256, __pyx_L1_error)

  /* "calcephpy.pyx":257
 *     BERGELMIR = 638
 *     BESTLA = 639
 *     FARBAUTI = 640             # <<<<<<<<<<<<<<
 *     FENRIR = 641
 *     FORNJOT = 642
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FARBAUTI, __pyx_int_640) < 0) __PYX_ERR(0, 257, __pyx_L1_error)

  /* "calcephpy.pyx":258
 *     BESTLA = 639
 *     FARBAUTI = 640
 *     FENRIR = 641             # <<<<<<<<<<<<<<
 *     FORNJOT = 642
 *     HATI = 643
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FENRIR, __pyx_int_641) < 0) __PYX_ERR(0, 258, __pyx_L1_error)

  /* "calcephpy.pyx":259
 *     FARBAUTI = 640
 *     FENRIR = 641
 *     FORNJOT = 642             # <<<<<<<<<<<<<<
 *     HATI = 643
 *     HYROKKIN = 644
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FORNJOT, __pyx_int_642) < 0) __PYX_ERR(0, 259, __pyx_L1_error)

  /* "calcephpy.pyx":260
 *     FENRIR = 641
 *     FORNJOT = 642
 *     HATI = 643             # <<<<<<<<<<<<<<
 *     HYROKKIN = 644
 *     KARI = 645
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HATI, __pyx_int_643) < 0) __PYX_ERR(0, 260, __pyx_L1_error)

  /* "calcephpy.pyx":261
 *     FORNJOT = 642
 *     HATI = 643
 *     HYROKKIN = 644             # <<<<<<<<<<<<<<
 *     KARI = 645
 *     LOGE = 646
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HYROKKIN, __pyx_int_644) < 0) __PYX_ERR(0, 261, __pyx_L1_error)

  /* "calcephpy.pyx":262
 *     HATI = 643
 *     HYROKKIN = 644
 *     KARI = 645             # <<<<<<<<<<<<<<
 *     LOGE = 646
 *     SKOLL = 647
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KARI, __pyx_int_645) < 0) __PYX_ERR(0, 262, __pyx_L1_error)

  /* "calcephpy.pyx":263
 *     HYROKKIN = 644
 *     KARI = 645
 *     LOGE = 646             # <<<<<<<<<<<<<<
 *     SKOLL = 647
 *     SURTUR = 648
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LOGE, __pyx_int_646) < 0) __PYX_ERR(0, 263, __pyx_L1_error)

  /* "calcephpy.pyx":264
 *     KARI = 645
 *     LOGE = 646
 *     SKOLL = 647             # <<<<<<<<<<<<<<
 *     SURTUR = 648
 *     ANTHE = 649
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SKOLL, __pyx_int_647) < 0) __PYX_ERR(0, 264, __pyx_L1_error)

  /* "calcephpy.pyx":265
 *     LOGE = 646
 *     SKOLL = 647
 *     SURTUR = 648             # <<<<<<<<<<<<<<
 *     ANTHE = 649
 *     JARNSAXA = 650
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SURTUR, __pyx_int_648) < 0) __PYX_ERR(0, 265, __pyx_L1_error)

  /* "calcephpy.pyx":266
 *     SKOLL = 647
 *     SURTUR = 648
 *     ANTHE = 649             # <<<<<<<<<<<<<<
 *     JARNSAXA = 650
 *     GREIP = 651
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ANTHE, __pyx_int_649) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "calcephpy.pyx":267
 *     SURTUR = 648
 *     ANTHE = 649
 *     JARNSAXA = 650             # <<<<<<<<<<<<<<
 *     GREIP = 651
 *     TARQEQ = 652
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JARNSAXA, __pyx_int_650) < 0) __PYX_ERR(0, 267, __pyx_L1_error)

  /* "calcephpy.pyx":268
 *     ANTHE = 649
 *     JARNSAXA = 650
 *     GREIP = 651             # <<<<<<<<<<<<<<
 *     TARQEQ = 652
 *     AEGAEON = 653
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GREIP, __pyx_int_651) < 0) __PYX_ERR(0, 268, __pyx_L1_error)

  /* "calcephpy.pyx":269
 *     JARNSAXA = 650
 *     GREIP = 651
 *     TARQEQ = 652             # <<<<<<<<<<<<<<
 *     AEGAEON = 653
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TARQEQ, __pyx_int_652) < 0) __PYX_ERR(0, 269, __pyx_L1_error)

  /* "calcephpy.pyx":270
 *     GREIP = 651
 *     TARQEQ = 652
 *     AEGAEON = 653             # <<<<<<<<<<<<<<
 * 
 *     URANUS = 799
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AEGAEON, __pyx_int_653) < 0) __PYX_ERR(0, 270, __pyx_L1_error)

  /* "calcephpy.pyx":272
 *     AEGAEON = 653
 * 
 *     URANUS = 799             # <<<<<<<<<<<<<<
 *     ARIEL = 701
 *     UMBRIEL = 702
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_URANUS, __pyx_int_799) < 0) __PYX_ERR(0, 272, __pyx_L1_error)

  /* "calcephpy.pyx":273
 * 
 *     URANUS = 799
 *     ARIEL = 701             # <<<<<<<<<<<<<<
 *     UMBRIEL = 702
 *     TITANIA = 703
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ARIEL, __pyx_int_701) < 0) __PYX_ERR(0, 273, __pyx_L1_error)

  /* "calcephpy.pyx":274
 *     URANUS = 799
 *     ARIEL = 701
 *     UMBRIEL = 702             # <<<<<<<<<<<<<<
 *     TITANIA = 703
 *     OBERON = 704
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_UMBRIEL, __pyx_int_702) < 0) __PYX_ERR(0, 274, __pyx_L1_error)

  /* "calcephpy.pyx":275
 *     ARIEL = 701
 *     UMBRIEL = 702
 *     TITANIA = 703             # <<<<<<<<<<<<<<
 *     OBERON = 704
 *     MIRANDA = 705
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TITANIA, __pyx_int_703) < 0) __PYX_ERR(0, 275, __pyx_L1_error)

  /* "calcephpy.pyx":276
 *     UMBRIEL = 702
 *     TITANIA = 703
 *     OBERON = 704             # <<<<<<<<<<<<<<
 *     MIRANDA = 705
 *     CORDELIA = 706
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_OBERON, __pyx_int_704) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "calcephpy.pyx":277
 *     TITANIA = 703
 *     OBERON = 704
 *     MIRANDA = 705             # <<<<<<<<<<<<<<
 *     CORDELIA = 706
 *     OPHELIA = 707
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MIRANDA, __pyx_int_705) < 0) __PYX_ERR(0, 277, __pyx_L1_error)

  /* "calcephpy.pyx":278
 *     OBERON = 704
 *     MIRANDA = 705
 *     CORDELIA = 706             # <<<<<<<<<<<<<<
 *     OPHELIA = 707
 *     BIANCA = 708
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CORDELIA, __pyx_int_706) < 0) __PYX_ERR(0, 278, __pyx_L1_error)

  /* "calcephpy.pyx":279
 *     MIRANDA = 705
 *     CORDELIA = 706
 *     OPHELIA = 707             # <<<<<<<<<<<<<<
 *     BIANCA = 708
 *     CRESSIDA = 709
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_OPHELIA, __pyx_int_707) < 0) __PYX_ERR(0, 279, __pyx_L1_error)

  /* "calcephpy.pyx":280
 *     CORDELIA = 706
 *     OPHELIA = 707
 *     BIANCA = 708             # <<<<<<<<<<<<<<
 *     CRESSIDA = 709
 *     DESDEMONA = 710
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BIANCA, __pyx_int_708) < 0) __PYX_ERR(0, 280, __pyx_L1_error)

  /* "calcephpy.pyx":281
 *     OPHELIA = 707
 *     BIANCA = 708
 *     CRESSIDA = 709             # <<<<<<<<<<<<<<
 *     DESDEMONA = 710
 *     JULIET = 711
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CRESSIDA, __pyx_int_709) < 0) __PYX_ERR(0, 281, __pyx_L1_error)

  /* "calcephpy.pyx":282
 *     BIANCA = 708
 *     CRESSIDA = 709
 *     DESDEMONA = 710             # <<<<<<<<<<<<<<
 *     JULIET = 711
 *     PORTIA = 712
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DESDEMONA, __pyx_int_710) < 0) __PYX_ERR(0, 282, __pyx_L1_error)

  /* "calcephpy.pyx":283
 *     CRESSIDA = 709
 *     DESDEMONA = 710
 *     JULIET = 711             # <<<<<<<<<<<<<<
 *     PORTIA = 712
 *     ROSALIND = 713
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JULIET, __pyx_int_711) < 0) __PYX_ERR(0, 283, __pyx_L1_error)

  /* "calcephpy.pyx":284
 *     DESDEMONA = 710
 *     JULIET = 711
 *     PORTIA = 712             # <<<<<<<<<<<<<<
 *     ROSALIND = 713
 *     BELINDA = 714
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PORTIA, __pyx_int_712) < 0) __PYX_ERR(0, 284, __pyx_L1_error)

  /* "calcephpy.pyx":285
 *     JULIET = 711
 *     PORTIA = 712
 *     ROSALIND = 713             # <<<<<<<<<<<<<<
 *     BELINDA = 714
 *     PUCK = 715
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ROSALIND, __pyx_int_713) < 0) __PYX_ERR(0, 285, __pyx_L1_error)

  /* "calcephpy.pyx":286
 *     PORTIA = 712
 *     ROSALIND = 713
 *     BELINDA = 714             # <<<<<<<<<<<<<<
 *     PUCK = 715
 *     CALIBAN = 716
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BELINDA, __pyx_int_714) < 0) __PYX_ERR(0, 286, __pyx_L1_error)

  /* "calcephpy.pyx":287
 *     ROSALIND = 713
 *     BELINDA = 714
 *     PUCK = 715             # <<<<<<<<<<<<<<
 *     CALIBAN = 716
 *     SYCORAX = 717
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PUCK, __pyx_int_715) < 0) __PYX_ERR(0, 287, __pyx_L1_error)

  /* "calcephpy.pyx":288
 *     BELINDA = 714
 *     PUCK = 715
 *     CALIBAN = 716             # <<<<<<<<<<<<<<
 *     SYCORAX = 717
 *     PROSPERO = 718
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CALIBAN, __pyx_int_716) < 0) __PYX_ERR(0, 288, __pyx_L1_error)

  /* "calcephpy.pyx":289
 *     PUCK = 715
 *     CALIBAN = 716
 *     SYCORAX = 717             # <<<<<<<<<<<<<<
 *     PROSPERO = 718
 *     SETEBOS = 719
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SYCORAX, __pyx_int_717) < 0) __PYX_ERR(0, 289, __pyx_L1_error)

  /* "calcephpy.pyx":290
 *     CALIBAN = 716
 *     SYCORAX = 717
 *     PROSPERO = 718             # <<<<<<<<<<<<<<
 *     SETEBOS = 719
 *     STEPHANO = 720
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PROSPERO, __pyx_int_718) < 0) __PYX_ERR(0, 290, __pyx_L1_error)

  /* "calcephpy.pyx":291
 *     SYCORAX = 717
 *     PROSPERO = 718
 *     SETEBOS = 719             # <<<<<<<<<<<<<<
 *     STEPHANO = 720
 *     TRINCULO = 721
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SETEBOS, __pyx_int_719) < 0) __PYX_ERR(0, 291, __pyx_L1_error)

  /* "calcephpy.pyx":292
 *     PROSPERO = 718
 *     SETEBOS = 719
 *     STEPHANO = 720             # <<<<<<<<<<<<<<
 *     TRINCULO = 721
 *     FRANCISCO = 722
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_STEPHANO, __pyx_int_720) < 0) __PYX_ERR(0, 292, __pyx_L1_error)

  /* "calcephpy.pyx":293
 *     SETEBOS = 719
 *     STEPHANO = 720
 *     TRINCULO = 721             # <<<<<<<<<<<<<<
 *     FRANCISCO = 722
 *     MARGARET = 723
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TRINCULO, __pyx_int_721) < 0) __PYX_ERR(0, 293, __pyx_L1_error)

  /* "calcephpy.pyx":294
 *     STEPHANO = 720
 *     TRINCULO = 721
 *     FRANCISCO = 722             # <<<<<<<<<<<<<<
 *     MARGARET = 723
 *     FERDINAND = 724
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FRANCISCO, __pyx_int_722) < 0) __PYX_ERR(0, 294, __pyx_L1_error)

  /* "calcephpy.pyx":295
 *     TRINCULO = 721
 *     FRANCISCO = 722
 *     MARGARET = 723             # <<<<<<<<<<<<<<
 *     FERDINAND = 724
 *     PERDITA = 725
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MARGARET, __pyx_int_723) < 0) __PYX_ERR(0, 295, __pyx_L1_error)

  /* "calcephpy.pyx":296
 *     FRANCISCO = 722
 *     MARGARET = 723
 *     FERDINAND = 724             # <<<<<<<<<<<<<<
 *     PERDITA = 725
 *     MAB = 726
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FERDINAND, __pyx_int_724) < 0) __PYX_ERR(0, 296, __pyx_L1_error)

  /* "calcephpy.pyx":297
 *     MARGARET = 723
 *     FERDINAND = 724
 *     PERDITA = 725             # <<<<<<<<<<<<<<
 *     MAB = 726
 *     CUPID = 727
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PERDITA, __pyx_int_725) < 0) __PYX_ERR(0, 297, __pyx_L1_error)

  /* "calcephpy.pyx":298
 *     FERDINAND = 724
 *     PERDITA = 725
 *     MAB = 726             # <<<<<<<<<<<<<<
 *     CUPID = 727
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MAB, __pyx_int_726) < 0) __PYX_ERR(0, 298, __pyx_L1_error)

  /* "calcephpy.pyx":299
 *     PERDITA = 725
 *     MAB = 726
 *     CUPID = 727             # <<<<<<<<<<<<<<
 * 
 *     NEPTUNE = 899
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CUPID, __pyx_int_727) < 0) __PYX_ERR(0, 299, __pyx_L1_error)

  /* "calcephpy.pyx":301
 *     CUPID = 727
 * 
 *     NEPTUNE = 899             # <<<<<<<<<<<<<<
 *     TRITON = 801
 *     NEREID = 802
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEPTUNE, __pyx_int_899) < 0) __PYX_ERR(0, 301, __pyx_L1_error)

  /* "calcephpy.pyx":302
 * 
 *     NEPTUNE = 899
 *     TRITON = 801             # <<<<<<<<<<<<<<
 *     NEREID = 802
 *     NAIAD = 803
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TRITON, __pyx_int_801) < 0) __PYX_ERR(0, 302, __pyx_L1_error)

  /* "calcephpy.pyx":303
 *     NEPTUNE = 899
 *     TRITON = 801
 *     NEREID = 802             # <<<<<<<<<<<<<<
 *     NAIAD = 803
 *     THALASSA = 804
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEREID, __pyx_int_802) < 0) __PYX_ERR(0, 303, __pyx_L1_error)

  /* "calcephpy.pyx":304
 *     TRITON = 801
 *     NEREID = 802
 *     NAIAD = 803             # <<<<<<<<<<<<<<
 *     THALASSA = 804
 *     DESPINA = 805
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NAIAD, __pyx_int_803) < 0) __PYX_ERR(0, 304, __pyx_L1_error)

  /* "calcephpy.pyx":305
 *     NEREID = 802
 *     NAIAD = 803
 *     THALASSA = 804             # <<<<<<<<<<<<<<
 *     DESPINA = 805
 *     GALATEA = 806
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_THALASSA, __pyx_int_804) < 0) __PYX_ERR(0, 305, __pyx_L1_error)

  /* "calcephpy.pyx":306
 *     NAIAD = 803
 *     THALASSA = 804
 *     DESPINA = 805             # <<<<<<<<<<<<<<
 *     GALATEA = 806
 *     LARISSA = 807
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DESPINA, __pyx_int_805) < 0) __PYX_ERR(0, 306, __pyx_L1_error)

  /* "calcephpy.pyx":307
 *     THALASSA = 804
 *     DESPINA = 805
 *     GALATEA = 806             # <<<<<<<<<<<<<<
 *     LARISSA = 807
 *     PROTEUS = 808
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GALATEA, __pyx_int_806) < 0) __PYX_ERR(0, 307, __pyx_L1_error)

  /* "calcephpy.pyx":308
 *     DESPINA = 805
 *     GALATEA = 806
 *     LARISSA = 807             # <<<<<<<<<<<<<<
 *     PROTEUS = 808
 *     HALIMEDE = 809
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LARISSA, __pyx_int_807) < 0) __PYX_ERR(0, 308, __pyx_L1_error)

  /* "calcephpy.pyx":309
 *     GALATEA = 806
 *     LARISSA = 807
 *     PROTEUS = 808             # <<<<<<<<<<<<<<
 *     HALIMEDE = 809
 *     PSAMATHE = 810
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PROTEUS, __pyx_int_808) < 0) __PYX_ERR(0, 309, __pyx_L1_error)

  /* "calcephpy.pyx":310
 *     LARISSA = 807
 *     PROTEUS = 808
 *     HALIMEDE = 809             # <<<<<<<<<<<<<<
 *     PSAMATHE = 810
 *     SAO = 811
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HALIMEDE, __pyx_int_809) < 0) __PYX_ERR(0, 310, __pyx_L1_error)

  /* "calcephpy.pyx":311
 *     PROTEUS = 808
 *     HALIMEDE = 809
 *     PSAMATHE = 810             # <<<<<<<<<<<<<<
 *     SAO = 811
 *     LAOMEDEIA = 812
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PSAMATHE, __pyx_int_810) < 0) __PYX_ERR(0, 311, __pyx_L1_error)

  /* "calcephpy.pyx":312
 *     HALIMEDE = 809
 *     PSAMATHE = 810
 *     SAO = 811             # <<<<<<<<<<<<<<
 *     LAOMEDEIA = 812
 *     NESO = 813
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SAO, __pyx_int_811) < 0) __PYX_ERR(0, 312, __pyx_L1_error)

  /* "calcephpy.pyx":313
 *     PSAMATHE = 810
 *     SAO = 811
 *     LAOMEDEIA = 812             # <<<<<<<<<<<<<<
 *     NESO = 813
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LAOMEDEIA, __pyx_int_812) < 0) __PYX_ERR(0, 313, __pyx_L1_error)

  /* "calcephpy.pyx":314
 *     SAO = 811
 *     LAOMEDEIA = 812
 *     NESO = 813             # <<<<<<<<<<<<<<
 * 
 *     PLUTO = 999
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NESO, __pyx_int_813) < 0) __PYX_ERR(0, 314, __pyx_L1_error)

  /* "calcephpy.pyx":316
 *     NESO = 813
 * 
 *     PLUTO = 999             # <<<<<<<<<<<<<<
 *     CHARON = 901
 *     NIX = 902
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PLUTO, __pyx_int_999) < 0) __PYX_ERR(0, 316, __pyx_L1_error)

  /* "calcephpy.pyx":317
 * 
 *     PLUTO = 999
 *     CHARON = 901             # <<<<<<<<<<<<<<
 *     NIX = 902
 *     HYDRA = 903
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CHARON, __pyx_int_901) < 0) __PYX_ERR(0, 317, __pyx_L1_error)

  /* "calcephpy.pyx":318
 *     PLUTO = 999
 *     CHARON = 901
 *     NIX = 902             # <<<<<<<<<<<<<<
 *     HYDRA = 903
 *     KERBEROS = 904
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NIX, __pyx_int_902) < 0) __PYX_ERR(0, 318, __pyx_L1_error)

  /* "calcephpy.pyx":319
 *     CHARON = 901
 *     NIX = 902
 *     HYDRA = 903             # <<<<<<<<<<<<<<
 *     KERBEROS = 904
 *     STYX = 905
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HYDRA, __pyx_int_903) < 0) __PYX_ERR(0, 319, __pyx_L1_error)

  /* "calcephpy.pyx":320
 *     NIX = 902
 *     HYDRA = 903
 *     KERBEROS = 904             # <<<<<<<<<<<<<<
 *     STYX = 905
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KERBEROS, __pyx_int_904) < 0) __PYX_ERR(0, 320, __pyx_L1_error)

  /* "calcephpy.pyx":321
 *     HYDRA = 903
 *     KERBEROS = 904
 *     STYX = 905             # <<<<<<<<<<<<<<
 * 
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the comets (table= 4 of reference= 1)  *[inserted by cython to avoid comment closer]/
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_STYX, __pyx_int_905) < 0) __PYX_ERR(0, 321, __pyx_L1_error)

  /* "calcephpy.pyx":324
 * 
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the comets (table= 4 of reference= 1)  *[inserted by cython to avoid comment closer]/
 *     AREND = 1000001             # <<<<<<<<<<<<<<
 *     AREND_RIGAUX = 1000002
 *     ASHBROOK_JACKSON = 1000003
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AREND, __pyx_int_1000001) < 0) __PYX_ERR(0, 324, __pyx_L1_error)

  /* "calcephpy.pyx":325
 * # /[inserted by cython to avoid comment start]*! NAIF identification numbers for the comets (table= 4 of reference= 1)  *[inserted by cython to avoid comment closer]/
 *     AREND = 1000001
 *     AREND_RIGAUX = 1000002             # <<<<<<<<<<<<<<
 *     ASHBROOK_JACKSON = 1000003
 *     BOETHIN = 1000004
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_AREND_RIGAUX, __pyx_int_1000002) < 0) __PYX_ERR(0, 325, __pyx_L1_error)

  /* "calcephpy.pyx":326
 *     AREND = 1000001
 *     AREND_RIGAUX = 1000002
 *     ASHBROOK_JACKSON = 1000003             # <<<<<<<<<<<<<<
 *     BOETHIN = 1000004
 *     BORRELLY = 1000005
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ASHBROOK_JACKSON, __pyx_int_1000003) < 0) __PYX_ERR(0, 326, __pyx_L1_error)

  /* "calcephpy.pyx":327
 *     AREND_RIGAUX = 1000002
 *     ASHBROOK_JACKSON = 1000003
 *     BOETHIN = 1000004             # <<<<<<<<<<<<<<
 *     BORRELLY = 1000005
 *     BOWELL_SKIFF = 1000006
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BOETHIN, __pyx_int_1000004) < 0) __PYX_ERR(0, 327, __pyx_L1_error)

  /* "calcephpy.pyx":328
 *     ASHBROOK_JACKSON = 1000003
 *     BOETHIN = 1000004
 *     BORRELLY = 1000005             # <<<<<<<<<<<<<<
 *     BOWELL_SKIFF = 1000006
 *     BRADFIELD = 1000007
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BORRELLY, __pyx_int_1000005) < 0) __PYX_ERR(0, 328, __pyx_L1_error)

  /* "calcephpy.pyx":329
 *     BOETHIN = 1000004
 *     BORRELLY = 1000005
 *     BOWELL_SKIFF = 1000006             # <<<<<<<<<<<<<<
 *     BRADFIELD = 1000007
 *     BROOKS_2 = 1000008
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BOWELL_SKIFF, __pyx_int_1000006) < 0) __PYX_ERR(0, 329, __pyx_L1_error)

  /* "calcephpy.pyx":330
 *     BORRELLY = 1000005
 *     BOWELL_SKIFF = 1000006
 *     BRADFIELD = 1000007             # <<<<<<<<<<<<<<
 *     BROOKS_2 = 1000008
 *     BRORSEN_METCALF = 1000009
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BRADFIELD, __pyx_int_1000007) < 0) __PYX_ERR(0, 330, __pyx_L1_error)

  /* "calcephpy.pyx":331
 *     BOWELL_SKIFF = 1000006
 *     BRADFIELD = 1000007
 *     BROOKS_2 = 1000008             # <<<<<<<<<<<<<<
 *     BRORSEN_METCALF = 1000009
 *     BUS = 1000010
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BROOKS_2, __pyx_int_1000008) < 0) __PYX_ERR(0, 331, __pyx_L1_error)

  /* "calcephpy.pyx":332
 *     BRADFIELD = 1000007
 *     BROOKS_2 = 1000008
 *     BRORSEN_METCALF = 1000009             # <<<<<<<<<<<<<<
 *     BUS = 1000010
 *     CHERNYKH = 1000011
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BRORSEN_METCALF, __pyx_int_1000009) < 0) __PYX_ERR(0, 332, __pyx_L1_error)

  /* "calcephpy.pyx":333
 *     BROOKS_2 = 1000008
 *     BRORSEN_METCALF = 1000009
 *     BUS = 1000010             # <<<<<<<<<<<<<<
 *     CHERNYKH = 1000011
 *     CHURYUMOV_GERASIMENKO = 1000012
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_BUS, __pyx_int_1000010) < 0) __PYX_ERR(0, 333, __pyx_L1_error)

  /* "calcephpy.pyx":334
 *     BRORSEN_METCALF = 1000009
 *     BUS = 1000010
 *     CHERNYKH = 1000011             # <<<<<<<<<<<<<<
 *     CHURYUMOV_GERASIMENKO = 1000012
 *     CIFFREO = 1000013
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CHERNYKH, __pyx_int_1000011) < 0) __PYX_ERR(0, 334, __pyx_L1_error)

  /* "calcephpy.pyx":335
 *     BUS = 1000010
 *     CHERNYKH = 1000011
 *     CHURYUMOV_GERASIMENKO = 1000012             # <<<<<<<<<<<<<<
 *     CIFFREO = 1000013
 *     CLARK = 1000014
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CHURYUMOV_GERASIMENKO, __pyx_int_1000012) < 0) __PYX_ERR(0, 335, __pyx_L1_error)

  /* "calcephpy.pyx":336
 *     CHERNYKH = 1000011
 *     CHURYUMOV_GERASIMENKO = 1000012
 *     CIFFREO = 1000013             # <<<<<<<<<<<<<<
 *     CLARK = 1000014
 *     COMAS_SOLA = 1000015
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CIFFREO, __pyx_int_1000013) < 0) __PYX_ERR(0, 336, __pyx_L1_error)

  /* "calcephpy.pyx":337
 *     CHURYUMOV_GERASIMENKO = 1000012
 *     CIFFREO = 1000013
 *     CLARK = 1000014             # <<<<<<<<<<<<<<
 *     COMAS_SOLA = 1000015
 *     CROMMELIN = 1000016
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CLARK, __pyx_int_1000014) < 0) __PYX_ERR(0, 337, __pyx_L1_error)

  /* "calcephpy.pyx":338
 *     CIFFREO = 1000013
 *     CLARK = 1000014
 *     COMAS_SOLA = 1000015             # <<<<<<<<<<<<<<
 *     CROMMELIN = 1000016
 *     D__ARREST = 1000017
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_COMAS_SOLA, __pyx_int_1000015) < 0) __PYX_ERR(0, 338, __pyx_L1_error)

  /* "calcephpy.pyx":339
 *     CLARK = 1000014
 *     COMAS_SOLA = 1000015
 *     CROMMELIN = 1000016             # <<<<<<<<<<<<<<
 *     D__ARREST = 1000017
 *     DANIEL = 1000018
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_CROMMELIN, __pyx_int_1000016) < 0) __PYX_ERR(0, 339, __pyx_L1_error)

  /* "calcephpy.pyx":340
 *     COMAS_SOLA = 1000015
 *     CROMMELIN = 1000016
 *     D__ARREST = 1000017             # <<<<<<<<<<<<<<
 *     DANIEL = 1000018
 *     DE_VICO_SWIFT = 1000019
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_D__ARREST, __pyx_int_1000017) < 0) __PYX_ERR(0, 340, __pyx_L1_error)

  /* "calcephpy.pyx":341
 *     CROMMELIN = 1000016
 *     D__ARREST = 1000017
 *     DANIEL = 1000018             # <<<<<<<<<<<<<<
 *     DE_VICO_SWIFT = 1000019
 *     DENNING_FUJIKAWA = 1000020
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DANIEL, __pyx_int_1000018) < 0) __PYX_ERR(0, 341, __pyx_L1_error)

  /* "calcephpy.pyx":342
 *     D__ARREST = 1000017
 *     DANIEL = 1000018
 *     DE_VICO_SWIFT = 1000019             # <<<<<<<<<<<<<<
 *     DENNING_FUJIKAWA = 1000020
 *     DU_TOIT_1 = 1000021
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DE_VICO_SWIFT, __pyx_int_1000019) < 0) __PYX_ERR(0, 342, __pyx_L1_error)

  /* "calcephpy.pyx":343
 *     DANIEL = 1000018
 *     DE_VICO_SWIFT = 1000019
 *     DENNING_FUJIKAWA = 1000020             # <<<<<<<<<<<<<<
 *     DU_TOIT_1 = 1000021
 *     DU_TOIT_HARTLEY = 1000022
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DENNING_FUJIKAWA, __pyx_int_1000020) < 0) __PYX_ERR(0, 343, __pyx_L1_error)

  /* "calcephpy.pyx":344
 *     DE_VICO_SWIFT = 1000019
 *     DENNING_FUJIKAWA = 1000020
 *     DU_TOIT_1 = 1000021             # <<<<<<<<<<<<<<
 *     DU_TOIT_HARTLEY = 1000022
 *     DUTOIT_NEUJMIN_DELPORTE = 1000023
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DU_TOIT_1, __pyx_int_1000021) < 0) __PYX_ERR(0, 344, __pyx_L1_error)

  /* "calcephpy.pyx":345
 *     DENNING_FUJIKAWA = 1000020
 *     DU_TOIT_1 = 1000021
 *     DU_TOIT_HARTLEY = 1000022             # <<<<<<<<<<<<<<
 *     DUTOIT_NEUJMIN_DELPORTE = 1000023
 *     DUBIAGO = 1000024
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DU_TOIT_HARTLEY, __pyx_int_1000022) < 0) __PYX_ERR(0, 345, __pyx_L1_error)

  /* "calcephpy.pyx":346
 *     DU_TOIT_1 = 1000021
 *     DU_TOIT_HARTLEY = 1000022
 *     DUTOIT_NEUJMIN_DELPORTE = 1000023             # <<<<<<<<<<<<<<
 *     DUBIAGO = 1000024
 *     ENCKE = 1000025
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DUTOIT_NEUJMIN_DELPORTE, __pyx_int_1000023) < 0) __PYX_ERR(0, 346, __pyx_L1_error)

  /* "calcephpy.pyx":347
 *     DU_TOIT_HARTLEY = 1000022
 *     DUTOIT_NEUJMIN_DELPORTE = 1000023
 *     DUBIAGO = 1000024             # <<<<<<<<<<<<<<
 *     ENCKE = 1000025
 *     FAYE = 1000026
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_DUBIAGO, __pyx_int_1000024) < 0) __PYX_ERR(0, 347, __pyx_L1_error)

  /* "calcephpy.pyx":348
 *     DUTOIT_NEUJMIN_DELPORTE = 1000023
 *     DUBIAGO = 1000024
 *     ENCKE = 1000025             # <<<<<<<<<<<<<<
 *     FAYE = 1000026
 *     FINLAY = 1000027
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ENCKE, __pyx_int_1000025) < 0) __PYX_ERR(0, 348, __pyx_L1_error)

  /* "calcephpy.pyx":349
 *     DUBIAGO = 1000024
 *     ENCKE = 1000025
 *     FAYE = 1000026             # <<<<<<<<<<<<<<
 *     FINLAY = 1000027
 *     FORBES = 1000028
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FAYE, __pyx_int_1000026) < 0) __PYX_ERR(0, 349, __pyx_L1_error)

  /* "calcephpy.pyx":350
 *     ENCKE = 1000025
 *     FAYE = 1000026
 *     FINLAY = 1000027             # <<<<<<<<<<<<<<
 *     FORBES = 1000028
 *     GEHRELS_1 = 1000029
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FINLAY, __pyx_int_1000027) < 0) __PYX_ERR(0, 350, __pyx_L1_error)

  /* "calcephpy.pyx":351
 *     FAYE = 1000026
 *     FINLAY = 1000027
 *     FORBES = 1000028             # <<<<<<<<<<<<<<
 *     GEHRELS_1 = 1000029
 *     GEHRELS_2 = 1000030
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_FORBES, __pyx_int_1000028) < 0) __PYX_ERR(0, 351, __pyx_L1_error)

  /* "calcephpy.pyx":352
 *     FINLAY = 1000027
 *     FORBES = 1000028
 *     GEHRELS_1 = 1000029             # <<<<<<<<<<<<<<
 *     GEHRELS_2 = 1000030
 *     GEHRELS_3 = 1000031
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GEHRELS_1, __pyx_int_1000029) < 0) __PYX_ERR(0, 352, __pyx_L1_error)

  /* "calcephpy.pyx":353
 *     FORBES = 1000028
 *     GEHRELS_1 = 1000029
 *     GEHRELS_2 = 1000030             # <<<<<<<<<<<<<<
 *     GEHRELS_3 = 1000031
 *     GIACOBINI_ZINNER = 1000032
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GEHRELS_2, __pyx_int_1000030) < 0) __PYX_ERR(0, 353, __pyx_L1_error)

  /* "calcephpy.pyx":354
 *     GEHRELS_1 = 1000029
 *     GEHRELS_2 = 1000030
 *     GEHRELS_3 = 1000031             # <<<<<<<<<<<<<<
 *     GIACOBINI_ZINNER = 1000032
 *     GICLAS = 1000033
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GEHRELS_3, __pyx_int_1000031) < 0) __PYX_ERR(0, 354, __pyx_L1_error)

  /* "calcephpy.pyx":355
 *     GEHRELS_2 = 1000030
 *     GEHRELS_3 = 1000031
 *     GIACOBINI_ZINNER = 1000032             # <<<<<<<<<<<<<<
 *     GICLAS = 1000033
 *     GRIGG_SKJELLERUP = 1000034
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GIACOBINI_ZINNER, __pyx_int_1000032) < 0) __PYX_ERR(0, 355, __pyx_L1_error)

  /* "calcephpy.pyx":356
 *     GEHRELS_3 = 1000031
 *     GIACOBINI_ZINNER = 1000032
 *     GICLAS = 1000033             # <<<<<<<<<<<<<<
 *     GRIGG_SKJELLERUP = 1000034
 *     GUNN = 1000035
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GICLAS, __pyx_int_1000033) < 0) __PYX_ERR(0, 356, __pyx_L1_error)

  /* "calcephpy.pyx":357
 *     GIACOBINI_ZINNER = 1000032
 *     GICLAS = 1000033
 *     GRIGG_SKJELLERUP = 1000034             # <<<<<<<<<<<<<<
 *     GUNN = 1000035
 *     HALLEY = 1000036
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GRIGG_SKJELLERUP, __pyx_int_1000034) < 0) __PYX_ERR(0, 357, __pyx_L1_error)

  /* "calcephpy.pyx":358
 *     GICLAS = 1000033
 *     GRIGG_SKJELLERUP = 1000034
 *     GUNN = 1000035             # <<<<<<<<<<<<<<
 *     HALLEY = 1000036
 *     HANEDA_CAMPOS = 1000037
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_GUNN, __pyx_int_1000035) < 0) __PYX_ERR(0, 358, __pyx_L1_error)

  /* "calcephpy.pyx":359
 *     GRIGG_SKJELLERUP = 1000034
 *     GUNN = 1000035
 *     HALLEY = 1000036             # <<<<<<<<<<<<<<
 *     HANEDA_CAMPOS = 1000037
 *     HARRINGTON = 1000038
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HALLEY, __pyx_int_1000036) < 0) __PYX_ERR(0, 359, __pyx_L1_error)

  /* "calcephpy.pyx":360
 *     GUNN = 1000035
 *     HALLEY = 1000036
 *     HANEDA_CAMPOS = 1000037             # <<<<<<<<<<<<<<
 *     HARRINGTON = 1000038
 *     HARRINGTON_ABELL = 1000039
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HANEDA_CAMPOS, __pyx_int_1000037) < 0) __PYX_ERR(0, 360, __pyx_L1_error)

  /* "calcephpy.pyx":361
 *     HALLEY = 1000036
 *     HANEDA_CAMPOS = 1000037
 *     HARRINGTON = 1000038             # <<<<<<<<<<<<<<
 *     HARRINGTON_ABELL = 1000039
 *     HARTLEY_1 = 1000040
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARRINGTON, __pyx_int_1000038) < 0) __PYX_ERR(0, 361, __pyx_L1_error)

  /* "calcephpy.pyx":362
 *     HANEDA_CAMPOS = 1000037
 *     HARRINGTON = 1000038
 *     HARRINGTON_ABELL = 1000039             # <<<<<<<<<<<<<<
 *     HARTLEY_1 = 1000040
 *     HARTLEY_2 = 1000041
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARRINGTON_ABELL, __pyx_int_1000039) < 0) __PYX_ERR(0, 362, __pyx_L1_error)

  /* "calcephpy.pyx":363
 *     HARRINGTON = 1000038
 *     HARRINGTON_ABELL = 1000039
 *     HARTLEY_1 = 1000040             # <<<<<<<<<<<<<<
 *     HARTLEY_2 = 1000041
 *     HARTLEY_IRAS = 1000042
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARTLEY_1, __pyx_int_1000040) < 0) __PYX_ERR(0, 363, __pyx_L1_error)

  /* "calcephpy.pyx":364
 *     HARRINGTON_ABELL = 1000039
 *     HARTLEY_1 = 1000040
 *     HARTLEY_2 = 1000041             # <<<<<<<<<<<<<<
 *     HARTLEY_IRAS = 1000042
 *     HERSCHEL_RIGOLLET = 1000043
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARTLEY_2, __pyx_int_1000041) < 0) __PYX_ERR(0, 364, __pyx_L1_error)

  /* "calcephpy.pyx":365
 *     HARTLEY_1 = 1000040
 *     HARTLEY_2 = 1000041
 *     HARTLEY_IRAS = 1000042             # <<<<<<<<<<<<<<
 *     HERSCHEL_RIGOLLET = 1000043
 *     HOLMES = 1000044
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARTLEY_IRAS, __pyx_int_1000042) < 0) __PYX_ERR(0, 365, __pyx_L1_error)

  /* "calcephpy.pyx":366
 *     HARTLEY_2 = 1000041
 *     HARTLEY_IRAS = 1000042
 *     HERSCHEL_RIGOLLET = 1000043             # <<<<<<<<<<<<<<
 *     HOLMES = 1000044
 *     HONDA_MRKOS_PAJDUSAKOVA = 1000045
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HERSCHEL_RIGOLLET, __pyx_int_1000043) < 0) __PYX_ERR(0, 366, __pyx_L1_error)

  /* "calcephpy.pyx":367
 *     HARTLEY_IRAS = 1000042
 *     HERSCHEL_RIGOLLET = 1000043
 *     HOLMES = 1000044             # <<<<<<<<<<<<<<
 *     HONDA_MRKOS_PAJDUSAKOVA = 1000045
 *     HOWELL = 1000046
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HOLMES, __pyx_int_1000044) < 0) __PYX_ERR(0, 367, __pyx_L1_error)

  /* "calcephpy.pyx":368
 *     HERSCHEL_RIGOLLET = 1000043
 *     HOLMES = 1000044
 *     HONDA_MRKOS_PAJDUSAKOVA = 1000045             # <<<<<<<<<<<<<<
 *     HOWELL = 1000046
 *     IRAS = 1000047
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HONDA_MRKOS_PAJDUSAKOVA, __pyx_int_1000045) < 0) __PYX_ERR(0, 368, __pyx_L1_error)

  /* "calcephpy.pyx":369
 *     HOLMES = 1000044
 *     HONDA_MRKOS_PAJDUSAKOVA = 1000045
 *     HOWELL = 1000046             # <<<<<<<<<<<<<<
 *     IRAS = 1000047
 *     JACKSON_NEUJMIN = 1000048
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HOWELL, __pyx_int_1000046) < 0) __PYX_ERR(0, 369, __pyx_L1_error)

  /* "calcephpy.pyx":370
 *     HONDA_MRKOS_PAJDUSAKOVA = 1000045
 *     HOWELL = 1000046
 *     IRAS = 1000047             # <<<<<<<<<<<<<<
 *     JACKSON_NEUJMIN = 1000048
 *     JOHNSON = 1000049
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_IRAS, __pyx_int_1000047) < 0) __PYX_ERR(0, 370, __pyx_L1_error)

  /* "calcephpy.pyx":371
 *     HOWELL = 1000046
 *     IRAS = 1000047
 *     JACKSON_NEUJMIN = 1000048             # <<<<<<<<<<<<<<
 *     JOHNSON = 1000049
 *     KEARNS_KWEE = 1000050
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JACKSON_NEUJMIN, __pyx_int_1000048) < 0) __PYX_ERR(0, 371, __pyx_L1_error)

  /* "calcephpy.pyx":372
 *     IRAS = 1000047
 *     JACKSON_NEUJMIN = 1000048
 *     JOHNSON = 1000049             # <<<<<<<<<<<<<<
 *     KEARNS_KWEE = 1000050
 *     KLEMOLA = 1000051
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_JOHNSON, __pyx_int_1000049) < 0) __PYX_ERR(0, 372, __pyx_L1_error)

  /* "calcephpy.pyx":373
 *     JACKSON_NEUJMIN = 1000048
 *     JOHNSON = 1000049
 *     KEARNS_KWEE = 1000050             # <<<<<<<<<<<<<<
 *     KLEMOLA = 1000051
 *     KOHOUTEK = 1000052
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KEARNS_KWEE, __pyx_int_1000050) < 0) __PYX_ERR(0, 373, __pyx_L1_error)

  /* "calcephpy.pyx":374
 *     JOHNSON = 1000049
 *     KEARNS_KWEE = 1000050
 *     KLEMOLA = 1000051             # <<<<<<<<<<<<<<
 *     KOHOUTEK = 1000052
 *     KOJIMA = 1000053
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KLEMOLA, __pyx_int_1000051) < 0) __PYX_ERR(0, 374, __pyx_L1_error)

  /* "calcephpy.pyx":375
 *     KEARNS_KWEE = 1000050
 *     KLEMOLA = 1000051
 *     KOHOUTEK = 1000052             # <<<<<<<<<<<<<<
 *     KOJIMA = 1000053
 *     KOPFF = 1000054
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOHOUTEK, __pyx_int_1000052) < 0) __PYX_ERR(0, 375, __pyx_L1_error)

  /* "calcephpy.pyx":376
 *     KLEMOLA = 1000051
 *     KOHOUTEK = 1000052
 *     KOJIMA = 1000053             # <<<<<<<<<<<<<<
 *     KOPFF = 1000054
 *     KOWAL_1 = 1000055
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOJIMA, __pyx_int_1000053) < 0) __PYX_ERR(0, 376, __pyx_L1_error)

  /* "calcephpy.pyx":377
 *     KOHOUTEK = 1000052
 *     KOJIMA = 1000053
 *     KOPFF = 1000054             # <<<<<<<<<<<<<<
 *     KOWAL_1 = 1000055
 *     KOWAL_2 = 1000056
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOPFF, __pyx_int_1000054) < 0) __PYX_ERR(0, 377, __pyx_L1_error)

  /* "calcephpy.pyx":378
 *     KOJIMA = 1000053
 *     KOPFF = 1000054
 *     KOWAL_1 = 1000055             # <<<<<<<<<<<<<<
 *     KOWAL_2 = 1000056
 *     KOWAL_MRKOS = 1000057
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOWAL_1, __pyx_int_1000055) < 0) __PYX_ERR(0, 378, __pyx_L1_error)

  /* "calcephpy.pyx":379
 *     KOPFF = 1000054
 *     KOWAL_1 = 1000055
 *     KOWAL_2 = 1000056             # <<<<<<<<<<<<<<
 *     KOWAL_MRKOS = 1000057
 *     KOWAL_VAVROVA = 1000058
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOWAL_2, __pyx_int_1000056) < 0) __PYX_ERR(0, 379, __pyx_L1_error)

  /* "calcephpy.pyx":380
 *     KOWAL_1 = 1000055
 *     KOWAL_2 = 1000056
 *     KOWAL_MRKOS = 1000057             # <<<<<<<<<<<<<<
 *     KOWAL_VAVROVA = 1000058
 *     LONGMORE = 1000059
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOWAL_MRKOS, __pyx_int_1000057) < 0) __PYX_ERR(0, 380, __pyx_L1_error)

  /* "calcephpy.pyx":381
 *     KOWAL_2 = 1000056
 *     KOWAL_MRKOS = 1000057
 *     KOWAL_VAVROVA = 1000058             # <<<<<<<<<<<<<<
 *     LONGMORE = 1000059
 *     LOVAS_1 = 1000060
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_KOWAL_VAVROVA, __pyx_int_1000058) < 0) __PYX_ERR(0, 381, __pyx_L1_error)

  /* "calcephpy.pyx":382
 *     KOWAL_MRKOS = 1000057
 *     KOWAL_VAVROVA = 1000058
 *     LONGMORE = 1000059             # <<<<<<<<<<<<<<
 *     LOVAS_1 = 1000060
 *     MACHHOLZ = 1000061
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LONGMORE, __pyx_int_1000059) < 0) __PYX_ERR(0, 382, __pyx_L1_error)

  /* "calcephpy.pyx":383
 *     KOWAL_VAVROVA = 1000058
 *     LONGMORE = 1000059
 *     LOVAS_1 = 1000060             # <<<<<<<<<<<<<<
 *     MACHHOLZ = 1000061
 *     MAURY = 1000062
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LOVAS_1, __pyx_int_1000060) < 0) __PYX_ERR(0, 383, __pyx_L1_error)

  /* "calcephpy.pyx":384
 *     LONGMORE = 1000059
 *     LOVAS_1 = 1000060
 *     MACHHOLZ = 1000061             # <<<<<<<<<<<<<<
 *     MAURY = 1000062
 *     NEUJMIN_1 = 1000063
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MACHHOLZ, __pyx_int_1000061) < 0) __PYX_ERR(0, 384, __pyx_L1_error)

  /* "calcephpy.pyx":385
 *     LOVAS_1 = 1000060
 *     MACHHOLZ = 1000061
 *     MAURY = 1000062             # <<<<<<<<<<<<<<
 *     NEUJMIN_1 = 1000063
 *     NEUJMIN_2 = 1000064
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MAURY, __pyx_int_1000062) < 0) __PYX_ERR(0, 385, __pyx_L1_error)

  /* "calcephpy.pyx":386
 *     MACHHOLZ = 1000061
 *     MAURY = 1000062
 *     NEUJMIN_1 = 1000063             # <<<<<<<<<<<<<<
 *     NEUJMIN_2 = 1000064
 *     NEUJMIN_3 = 1000065
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEUJMIN_1, __pyx_int_1000063) < 0) __PYX_ERR(0, 386, __pyx_L1_error)

  /* "calcephpy.pyx":387
 *     MAURY = 1000062
 *     NEUJMIN_1 = 1000063
 *     NEUJMIN_2 = 1000064             # <<<<<<<<<<<<<<
 *     NEUJMIN_3 = 1000065
 *     OLBERS = 1000066
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEUJMIN_2, __pyx_int_1000064) < 0) __PYX_ERR(0, 387, __pyx_L1_error)

  /* "calcephpy.pyx":388
 *     NEUJMIN_1 = 1000063
 *     NEUJMIN_2 = 1000064
 *     NEUJMIN_3 = 1000065             # <<<<<<<<<<<<<<
 *     OLBERS = 1000066
 *     PETERS_HARTLEY = 1000067
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_NEUJMIN_3, __pyx_int_1000065) < 0) __PYX_ERR(0, 388, __pyx_L1_error)

  /* "calcephpy.pyx":389
 *     NEUJMIN_2 = 1000064
 *     NEUJMIN_3 = 1000065
 *     OLBERS = 1000066             # <<<<<<<<<<<<<<
 *     PETERS_HARTLEY = 1000067
 *     PONS_BROOKS = 1000068
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_OLBERS, __pyx_int_1000066) < 0) __PYX_ERR(0, 389, __pyx_L1_error)

  /* "calcephpy.pyx":390
 *     NEUJMIN_3 = 1000065
 *     OLBERS = 1000066
 *     PETERS_HARTLEY = 1000067             # <<<<<<<<<<<<<<
 *     PONS_BROOKS = 1000068
 *     PONS_WINNECKE = 1000069
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PETERS_HARTLEY, __pyx_int_1000067) < 0) __PYX_ERR(0, 390, __pyx_L1_error)

  /* "calcephpy.pyx":391
 *     OLBERS = 1000066
 *     PETERS_HARTLEY = 1000067
 *     PONS_BROOKS = 1000068             # <<<<<<<<<<<<<<
 *     PONS_WINNECKE = 1000069
 *     REINMUTH_1 = 1000070
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PONS_BROOKS, __pyx_int_1000068) < 0) __PYX_ERR(0, 391, __pyx_L1_error)

  /* "calcephpy.pyx":392
 *     PETERS_HARTLEY = 1000067
 *     PONS_BROOKS = 1000068
 *     PONS_WINNECKE = 1000069             # <<<<<<<<<<<<<<
 *     REINMUTH_1 = 1000070
 *     REINMUTH_2 = 1000071
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PONS_WINNECKE, __pyx_int_1000069) < 0) __PYX_ERR(0, 392, __pyx_L1_error)

  /* "calcephpy.pyx":393
 *     PONS_BROOKS = 1000068
 *     PONS_WINNECKE = 1000069
 *     REINMUTH_1 = 1000070             # <<<<<<<<<<<<<<
 *     REINMUTH_2 = 1000071
 *     RUSSELL_1 = 1000072
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_REINMUTH_1, __pyx_int_1000070) < 0) __PYX_ERR(0, 393, __pyx_L1_error)

  /* "calcephpy.pyx":394
 *     PONS_WINNECKE = 1000069
 *     REINMUTH_1 = 1000070
 *     REINMUTH_2 = 1000071             # <<<<<<<<<<<<<<
 *     RUSSELL_1 = 1000072
 *     RUSSELL_2 = 1000073
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_REINMUTH_2, __pyx_int_1000071) < 0) __PYX_ERR(0, 394, __pyx_L1_error)

  /* "calcephpy.pyx":395
 *     REINMUTH_1 = 1000070
 *     REINMUTH_2 = 1000071
 *     RUSSELL_1 = 1000072             # <<<<<<<<<<<<<<
 *     RUSSELL_2 = 1000073
 *     RUSSELL_3 = 1000074
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_RUSSELL_1, __pyx_int_1000072) < 0) __PYX_ERR(0, 395, __pyx_L1_error)

  /* "calcephpy.pyx":396
 *     REINMUTH_2 = 1000071
 *     RUSSELL_1 = 1000072
 *     RUSSELL_2 = 1000073             # <<<<<<<<<<<<<<
 *     RUSSELL_3 = 1000074
 *     RUSSELL_4 = 1000075
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_RUSSELL_2, __pyx_int_1000073) < 0) __PYX_ERR(0, 396, __pyx_L1_error)

  /* "calcephpy.pyx":397
 *     RUSSELL_1 = 1000072
 *     RUSSELL_2 = 1000073
 *     RUSSELL_3 = 1000074             # <<<<<<<<<<<<<<
 *     RUSSELL_4 = 1000075
 *     SANGUIN = 1000076
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_RUSSELL_3, __pyx_int_1000074) < 0) __PYX_ERR(0, 397, __pyx_L1_error)

  /* "calcephpy.pyx":398
 *     RUSSELL_2 = 1000073
 *     RUSSELL_3 = 1000074
 *     RUSSELL_4 = 1000075             # <<<<<<<<<<<<<<
 *     SANGUIN = 1000076
 *     SCHAUMASSE = 1000077
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_RUSSELL_4, __pyx_int_1000075) < 0) __PYX_ERR(0, 398, __pyx_L1_error)

  /* "calcephpy.pyx":399
 *     RUSSELL_3 = 1000074
 *     RUSSELL_4 = 1000075
 *     SANGUIN = 1000076             # <<<<<<<<<<<<<<
 *     SCHAUMASSE = 1000077
 *     SCHUSTER = 1000078
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SANGUIN, __pyx_int_1000076) < 0) __PYX_ERR(0, 399, __pyx_L1_error)

  /* "calcephpy.pyx":400
 *     RUSSELL_4 = 1000075
 *     SANGUIN = 1000076
 *     SCHAUMASSE = 1000077             # <<<<<<<<<<<<<<
 *     SCHUSTER = 1000078
 *     SCHWASSMANN_WACHMANN_1 = 1000079
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SCHAUMASSE, __pyx_int_1000077) < 0) __PYX_ERR(0, 400, __pyx_L1_error)

  /* "calcephpy.pyx":401
 *     SANGUIN = 1000076
 *     SCHAUMASSE = 1000077
 *     SCHUSTER = 1000078             # <<<<<<<<<<<<<<
 *     SCHWASSMANN_WACHMANN_1 = 1000079
 *     SCHWASSMANN_WACHMANN_2 = 1000080
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SCHUSTER, __pyx_int_1000078) < 0) __PYX_ERR(0, 401, __pyx_L1_error)

  /* "calcephpy.pyx":402
 *     SCHAUMASSE = 1000077
 *     SCHUSTER = 1000078
 *     SCHWASSMANN_WACHMANN_1 = 1000079             # <<<<<<<<<<<<<<
 *     SCHWASSMANN_WACHMANN_2 = 1000080
 *     SCHWASSMANN_WACHMANN_3 = 1000081
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SCHWASSMANN_WACHMANN_1, __pyx_int_1000079) < 0) __PYX_ERR(0, 402, __pyx_L1_error)

  /* "calcephpy.pyx":403
 *     SCHUSTER = 1000078
 *     SCHWASSMANN_WACHMANN_1 = 1000079
 *     SCHWASSMANN_WACHMANN_2 = 1000080             # <<<<<<<<<<<<<<
 *     SCHWASSMANN_WACHMANN_3 = 1000081
 *     SHAJN_SCHALDACH = 1000082
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SCHWASSMANN_WACHMANN_2, __pyx_int_1000080) < 0) __PYX_ERR(0, 403, __pyx_L1_error)

  /* "calcephpy.pyx":404
 *     SCHWASSMANN_WACHMANN_1 = 1000079
 *     SCHWASSMANN_WACHMANN_2 = 1000080
 *     SCHWASSMANN_WACHMANN_3 = 1000081             # <<<<<<<<<<<<<<
 *     SHAJN_SCHALDACH = 1000082
 *     SHOEMAKER_1 = 1000083
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SCHWASSMANN_WACHMANN_3, __pyx_int_1000081) < 0) __PYX_ERR(0, 404, __pyx_L1_error)

  /* "calcephpy.pyx":405
 *     SCHWASSMANN_WACHMANN_2 = 1000080
 *     SCHWASSMANN_WACHMANN_3 = 1000081
 *     SHAJN_SCHALDACH = 1000082             # <<<<<<<<<<<<<<
 *     SHOEMAKER_1 = 1000083
 *     SHOEMAKER_2 = 1000084
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHAJN_SCHALDACH, __pyx_int_1000082) < 0) __PYX_ERR(0, 405, __pyx_L1_error)

  /* "calcephpy.pyx":406
 *     SCHWASSMANN_WACHMANN_3 = 1000081
 *     SHAJN_SCHALDACH = 1000082
 *     SHOEMAKER_1 = 1000083             # <<<<<<<<<<<<<<
 *     SHOEMAKER_2 = 1000084
 *     SHOEMAKER_3 = 1000085
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_1, __pyx_int_1000083) < 0) __PYX_ERR(0, 406, __pyx_L1_error)

  /* "calcephpy.pyx":407
 *     SHAJN_SCHALDACH = 1000082
 *     SHOEMAKER_1 = 1000083
 *     SHOEMAKER_2 = 1000084             # <<<<<<<<<<<<<<
 *     SHOEMAKER_3 = 1000085
 *     SINGER_BREWSTER = 1000086
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_2, __pyx_int_1000084) < 0) __PYX_ERR(0, 407, __pyx_L1_error)

  /* "calcephpy.pyx":408
 *     SHOEMAKER_1 = 1000083
 *     SHOEMAKER_2 = 1000084
 *     SHOEMAKER_3 = 1000085             # <<<<<<<<<<<<<<
 *     SINGER_BREWSTER = 1000086
 *     SLAUGHTER_BURNHAM = 1000087
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_3, __pyx_int_1000085) < 0) __PYX_ERR(0, 408, __pyx_L1_error)

  /* "calcephpy.pyx":409
 *     SHOEMAKER_2 = 1000084
 *     SHOEMAKER_3 = 1000085
 *     SINGER_BREWSTER = 1000086             # <<<<<<<<<<<<<<
 *     SLAUGHTER_BURNHAM = 1000087
 *     SMIRNOVA_CHERNYKH = 1000088
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SINGER_BREWSTER, __pyx_int_1000086) < 0) __PYX_ERR(0, 409, __pyx_L1_error)

  /* "calcephpy.pyx":410
 *     SHOEMAKER_3 = 1000085
 *     SINGER_BREWSTER = 1000086
 *     SLAUGHTER_BURNHAM = 1000087             # <<<<<<<<<<<<<<
 *     SMIRNOVA_CHERNYKH = 1000088
 *     STEPHAN_OTERMA = 1000089
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SLAUGHTER_BURNHAM, __pyx_int_1000087) < 0) __PYX_ERR(0, 410, __pyx_L1_error)

  /* "calcephpy.pyx":411
 *     SINGER_BREWSTER = 1000086
 *     SLAUGHTER_BURNHAM = 1000087
 *     SMIRNOVA_CHERNYKH = 1000088             # <<<<<<<<<<<<<<
 *     STEPHAN_OTERMA = 1000089
 *     SWIFT_GEHRELS = 1000090
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SMIRNOVA_CHERNYKH, __pyx_int_1000088) < 0) __PYX_ERR(0, 411, __pyx_L1_error)

  /* "calcephpy.pyx":412
 *     SLAUGHTER_BURNHAM = 1000087
 *     SMIRNOVA_CHERNYKH = 1000088
 *     STEPHAN_OTERMA = 1000089             # <<<<<<<<<<<<<<
 *     SWIFT_GEHRELS = 1000090
 *     TAKAMIZAWA = 1000091
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_STEPHAN_OTERMA, __pyx_int_1000089) < 0) __PYX_ERR(0, 412, __pyx_L1_error)

  /* "calcephpy.pyx":413
 *     SMIRNOVA_CHERNYKH = 1000088
 *     STEPHAN_OTERMA = 1000089
 *     SWIFT_GEHRELS = 1000090             # <<<<<<<<<<<<<<
 *     TAKAMIZAWA = 1000091
 *     TAYLOR = 1000092
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SWIFT_GEHRELS, __pyx_int_1000090) < 0) __PYX_ERR(0, 413, __pyx_L1_error)

  /* "calcephpy.pyx":414
 *     STEPHAN_OTERMA = 1000089
 *     SWIFT_GEHRELS = 1000090
 *     TAKAMIZAWA = 1000091             # <<<<<<<<<<<<<<
 *     TAYLOR = 1000092
 *     TEMPEL_1 = 1000093
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TAKAMIZAWA, __pyx_int_1000091) < 0) __PYX_ERR(0, 414, __pyx_L1_error)

  /* "calcephpy.pyx":415
 *     SWIFT_GEHRELS = 1000090
 *     TAKAMIZAWA = 1000091
 *     TAYLOR = 1000092             # <<<<<<<<<<<<<<
 *     TEMPEL_1 = 1000093
 *     TEMPEL_2 = 1000094
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TAYLOR, __pyx_int_1000092) < 0) __PYX_ERR(0, 415, __pyx_L1_error)

  /* "calcephpy.pyx":416
 *     TAKAMIZAWA = 1000091
 *     TAYLOR = 1000092
 *     TEMPEL_1 = 1000093             # <<<<<<<<<<<<<<
 *     TEMPEL_2 = 1000094
 *     TEMPEL_TUTTLE = 1000095
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TEMPEL_1, __pyx_int_1000093) < 0) __PYX_ERR(0, 416, __pyx_L1_error)

  /* "calcephpy.pyx":417
 *     TAYLOR = 1000092
 *     TEMPEL_1 = 1000093
 *     TEMPEL_2 = 1000094             # <<<<<<<<<<<<<<
 *     TEMPEL_TUTTLE = 1000095
 *     TRITTON = 1000096
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TEMPEL_2, __pyx_int_1000094) < 0) __PYX_ERR(0, 417, __pyx_L1_error)

  /* "calcephpy.pyx":418
 *     TEMPEL_1 = 1000093
 *     TEMPEL_2 = 1000094
 *     TEMPEL_TUTTLE = 1000095             # <<<<<<<<<<<<<<
 *     TRITTON = 1000096
 *     TSUCHINSHAN_1 = 1000097
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TEMPEL_TUTTLE, __pyx_int_1000095) < 0) __PYX_ERR(0, 418, __pyx_L1_error)

  /* "calcephpy.pyx":419
 *     TEMPEL_2 = 1000094
 *     TEMPEL_TUTTLE = 1000095
 *     TRITTON = 1000096             # <<<<<<<<<<<<<<
 *     TSUCHINSHAN_1 = 1000097
 *     TSUCHINSHAN_2 = 1000098
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TRITTON, __pyx_int_1000096) < 0) __PYX_ERR(0, 419, __pyx_L1_error)

  /* "calcephpy.pyx":420
 *     TEMPEL_TUTTLE = 1000095
 *     TRITTON = 1000096
 *     TSUCHINSHAN_1 = 1000097             # <<<<<<<<<<<<<<
 *     TSUCHINSHAN_2 = 1000098
 *     TUTTLE = 1000099
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TSUCHINSHAN_1, __pyx_int_1000097) < 0) __PYX_ERR(0, 420, __pyx_L1_error)

  /* "calcephpy.pyx":421
 *     TRITTON = 1000096
 *     TSUCHINSHAN_1 = 1000097
 *     TSUCHINSHAN_2 = 1000098             # <<<<<<<<<<<<<<
 *     TUTTLE = 1000099
 *     TUTTLE_GIACOBINI_KRESAK = 1000100
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TSUCHINSHAN_2, __pyx_int_1000098) < 0) __PYX_ERR(0, 421, __pyx_L1_error)

  /* "calcephpy.pyx":422
 *     TSUCHINSHAN_1 = 1000097
 *     TSUCHINSHAN_2 = 1000098
 *     TUTTLE = 1000099             # <<<<<<<<<<<<<<
 *     TUTTLE_GIACOBINI_KRESAK = 1000100
 *     VAISALA_1 = 1000101
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TUTTLE, __pyx_int_1000099) < 0) __PYX_ERR(0, 422, __pyx_L1_error)

  /* "calcephpy.pyx":423
 *     TSUCHINSHAN_2 = 1000098
 *     TUTTLE = 1000099
 *     TUTTLE_GIACOBINI_KRESAK = 1000100             # <<<<<<<<<<<<<<
 *     VAISALA_1 = 1000101
 *     VAN_BIESBROECK = 1000102
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_TUTTLE_GIACOBINI_KRESAK, __pyx_int_1000100) < 0) __PYX_ERR(0, 423, __pyx_L1_error)

  /* "calcephpy.pyx":424
 *     TUTTLE = 1000099
 *     TUTTLE_GIACOBINI_KRESAK = 1000100
 *     VAISALA_1 = 1000101             # <<<<<<<<<<<<<<
 *     VAN_BIESBROECK = 1000102
 *     VAN_HOUTEN = 1000103
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VAISALA_1, __pyx_int_1000101) < 0) __PYX_ERR(0, 424, __pyx_L1_error)

  /* "calcephpy.pyx":425
 *     TUTTLE_GIACOBINI_KRESAK = 1000100
 *     VAISALA_1 = 1000101
 *     VAN_BIESBROECK = 1000102             # <<<<<<<<<<<<<<
 *     VAN_HOUTEN = 1000103
 *     WEST_KOHOUTEK_IKEMURA = 1000104
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VAN_BIESBROECK, __pyx_int_1000102) < 0) __PYX_ERR(0, 425, __pyx_L1_error)

  /* "calcephpy.pyx":426
 *     VAISALA_1 = 1000101
 *     VAN_BIESBROECK = 1000102
 *     VAN_HOUTEN = 1000103             # <<<<<<<<<<<<<<
 *     WEST_KOHOUTEK_IKEMURA = 1000104
 *     WHIPPLE = 1000105
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_VAN_HOUTEN, __pyx_int_1000103) < 0) __PYX_ERR(0, 426, __pyx_L1_error)

  /* "calcephpy.pyx":427
 *     VAN_BIESBROECK = 1000102
 *     VAN_HOUTEN = 1000103
 *     WEST_KOHOUTEK_IKEMURA = 1000104             # <<<<<<<<<<<<<<
 *     WHIPPLE = 1000105
 *     WILD_1 = 1000106
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WEST_KOHOUTEK_IKEMURA, __pyx_int_1000104) < 0) __PYX_ERR(0, 427, __pyx_L1_error)

  /* "calcephpy.pyx":428
 *     VAN_HOUTEN = 1000103
 *     WEST_KOHOUTEK_IKEMURA = 1000104
 *     WHIPPLE = 1000105             # <<<<<<<<<<<<<<
 *     WILD_1 = 1000106
 *     WILD_2 = 1000107
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WHIPPLE, __pyx_int_1000105) < 0) __PYX_ERR(0, 428, __pyx_L1_error)

  /* "calcephpy.pyx":429
 *     WEST_KOHOUTEK_IKEMURA = 1000104
 *     WHIPPLE = 1000105
 *     WILD_1 = 1000106             # <<<<<<<<<<<<<<
 *     WILD_2 = 1000107
 *     WILD_3 = 1000108
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WILD_1, __pyx_int_1000106) < 0) __PYX_ERR(0, 429, __pyx_L1_error)

  /* "calcephpy.pyx":430
 *     WHIPPLE = 1000105
 *     WILD_1 = 1000106
 *     WILD_2 = 1000107             # <<<<<<<<<<<<<<
 *     WILD_3 = 1000108
 *     WIRTANEN = 1000109
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WILD_2, __pyx_int_1000107) < 0) __PYX_ERR(0, 430, __pyx_L1_error)

  /* "calcephpy.pyx":431
 *     WILD_1 = 1000106
 *     WILD_2 = 1000107
 *     WILD_3 = 1000108             # <<<<<<<<<<<<<<
 *     WIRTANEN = 1000109
 *     WOLF = 1000110
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WILD_3, __pyx_int_1000108) < 0) __PYX_ERR(0, 431, __pyx_L1_error)

  /* "calcephpy.pyx":432
 *     WILD_2 = 1000107
 *     WILD_3 = 1000108
 *     WIRTANEN = 1000109             # <<<<<<<<<<<<<<
 *     WOLF = 1000110
 *     WOLF_HARRINGTON = 1000111
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WIRTANEN, __pyx_int_1000109) < 0) __PYX_ERR(0, 432, __pyx_L1_error)

  /* "calcephpy.pyx":433
 *     WILD_3 = 1000108
 *     WIRTANEN = 1000109
 *     WOLF = 1000110             # <<<<<<<<<<<<<<
 *     WOLF_HARRINGTON = 1000111
 *     LOVAS_2 = 1000112
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WOLF, __pyx_int_1000110) < 0) __PYX_ERR(0, 433, __pyx_L1_error)

  /* "calcephpy.pyx":434
 *     WIRTANEN = 1000109
 *     WOLF = 1000110
 *     WOLF_HARRINGTON = 1000111             # <<<<<<<<<<<<<<
 *     LOVAS_2 = 1000112
 *     URATA_NIIJIMA = 1000113
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WOLF_HARRINGTON, __pyx_int_1000111) < 0) __PYX_ERR(0, 434, __pyx_L1_error)

  /* "calcephpy.pyx":435
 *     WOLF = 1000110
 *     WOLF_HARRINGTON = 1000111
 *     LOVAS_2 = 1000112             # <<<<<<<<<<<<<<
 *     URATA_NIIJIMA = 1000113
 *     WISEMAN_SKIFF = 1000114
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LOVAS_2, __pyx_int_1000112) < 0) __PYX_ERR(0, 435, __pyx_L1_error)

  /* "calcephpy.pyx":436
 *     WOLF_HARRINGTON = 1000111
 *     LOVAS_2 = 1000112
 *     URATA_NIIJIMA = 1000113             # <<<<<<<<<<<<<<
 *     WISEMAN_SKIFF = 1000114
 *     HELIN = 1000115
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_URATA_NIIJIMA, __pyx_int_1000113) < 0) __PYX_ERR(0, 436, __pyx_L1_error)

  /* "calcephpy.pyx":437
 *     LOVAS_2 = 1000112
 *     URATA_NIIJIMA = 1000113
 *     WISEMAN_SKIFF = 1000114             # <<<<<<<<<<<<<<
 *     HELIN = 1000115
 *     MUELLER = 1000116
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WISEMAN_SKIFF, __pyx_int_1000114) < 0) __PYX_ERR(0, 437, __pyx_L1_error)

  /* "calcephpy.pyx":438
 *     URATA_NIIJIMA = 1000113
 *     WISEMAN_SKIFF = 1000114
 *     HELIN = 1000115             # <<<<<<<<<<<<<<
 *     MUELLER = 1000116
 *     SHOEMAKER_HOLT_1 = 1000117
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HELIN, __pyx_int_1000115) < 0) __PYX_ERR(0, 438, __pyx_L1_error)

  /* "calcephpy.pyx":439
 *     WISEMAN_SKIFF = 1000114
 *     HELIN = 1000115
 *     MUELLER = 1000116             # <<<<<<<<<<<<<<
 *     SHOEMAKER_HOLT_1 = 1000117
 *     HELIN_ROMAN_CROCKETT = 1000118
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MUELLER, __pyx_int_1000116) < 0) __PYX_ERR(0, 439, __pyx_L1_error)

  /* "calcephpy.pyx":440
 *     HELIN = 1000115
 *     MUELLER = 1000116
 *     SHOEMAKER_HOLT_1 = 1000117             # <<<<<<<<<<<<<<
 *     HELIN_ROMAN_CROCKETT = 1000118
 *     HARTLEY_3 = 1000119
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_HOLT_1, __pyx_int_1000117) < 0) __PYX_ERR(0, 440, __pyx_L1_error)

  /* "calcephpy.pyx":441
 *     MUELLER = 1000116
 *     SHOEMAKER_HOLT_1 = 1000117
 *     HELIN_ROMAN_CROCKETT = 1000118             # <<<<<<<<<<<<<<
 *     HARTLEY_3 = 1000119
 *     PARKER_HARTLEY = 1000120
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HELIN_ROMAN_CROCKETT, __pyx_int_1000118) < 0) __PYX_ERR(0, 441, __pyx_L1_error)

  /* "calcephpy.pyx":442
 *     SHOEMAKER_HOLT_1 = 1000117
 *     HELIN_ROMAN_CROCKETT = 1000118
 *     HARTLEY_3 = 1000119             # <<<<<<<<<<<<<<
 *     PARKER_HARTLEY = 1000120
 *     HELIN_ROMAN_ALU_1 = 1000121
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HARTLEY_3, __pyx_int_1000119) < 0) __PYX_ERR(0, 442, __pyx_L1_error)

  /* "calcephpy.pyx":443
 *     HELIN_ROMAN_CROCKETT = 1000118
 *     HARTLEY_3 = 1000119
 *     PARKER_HARTLEY = 1000120             # <<<<<<<<<<<<<<
 *     HELIN_ROMAN_ALU_1 = 1000121
 *     WILD_4 = 1000122
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_PARKER_HARTLEY, __pyx_int_1000120) < 0) __PYX_ERR(0, 443, __pyx_L1_error)

  /* "calcephpy.pyx":444
 *     HARTLEY_3 = 1000119
 *     PARKER_HARTLEY = 1000120
 *     HELIN_ROMAN_ALU_1 = 1000121             # <<<<<<<<<<<<<<
 *     WILD_4 = 1000122
 *     MUELLER_2 = 1000123
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HELIN_ROMAN_ALU_1, __pyx_int_1000121) < 0) __PYX_ERR(0, 444, __pyx_L1_error)

  /* "calcephpy.pyx":445
 *     PARKER_HARTLEY = 1000120
 *     HELIN_ROMAN_ALU_1 = 1000121
 *     WILD_4 = 1000122             # <<<<<<<<<<<<<<
 *     MUELLER_2 = 1000123
 *     MUELLER_3 = 1000124
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_WILD_4, __pyx_int_1000122) < 0) __PYX_ERR(0, 445, __pyx_L1_error)

  /* "calcephpy.pyx":446
 *     HELIN_ROMAN_ALU_1 = 1000121
 *     WILD_4 = 1000122
 *     MUELLER_2 = 1000123             # <<<<<<<<<<<<<<
 *     MUELLER_3 = 1000124
 *     SHOEMAKER_LEVY_1 = 1000125
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MUELLER_2, __pyx_int_1000123) < 0) __PYX_ERR(0, 446, __pyx_L1_error)

  /* "calcephpy.pyx":447
 *     WILD_4 = 1000122
 *     MUELLER_2 = 1000123
 *     MUELLER_3 = 1000124             # <<<<<<<<<<<<<<
 *     SHOEMAKER_LEVY_1 = 1000125
 *     SHOEMAKER_LEVY_2 = 1000126
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_MUELLER_3, __pyx_int_1000124) < 0) __PYX_ERR(0, 447, __pyx_L1_error)

  /* "calcephpy.pyx":448
 *     MUELLER_2 = 1000123
 *     MUELLER_3 = 1000124
 *     SHOEMAKER_LEVY_1 = 1000125             # <<<<<<<<<<<<<<
 *     SHOEMAKER_LEVY_2 = 1000126
 *     HOLT_OLMSTEAD = 1000127
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_LEVY_1, __pyx_int_1000125) < 0) __PYX_ERR(0, 448, __pyx_L1_error)

  /* "calcephpy.pyx":449
 *     MUELLER_3 = 1000124
 *     SHOEMAKER_LEVY_1 = 1000125
 *     SHOEMAKER_LEVY_2 = 1000126             # <<<<<<<<<<<<<<
 *     HOLT_OLMSTEAD = 1000127
 *     METCALF_BREWINGTON = 1000128
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_LEVY_2, __pyx_int_1000126) < 0) __PYX_ERR(0, 449, __pyx_L1_error)

  /* "calcephpy.pyx":450
 *     SHOEMAKER_LEVY_1 = 1000125
 *     SHOEMAKER_LEVY_2 = 1000126
 *     HOLT_OLMSTEAD = 1000127             # <<<<<<<<<<<<<<
 *     METCALF_BREWINGTON = 1000128
 *     LEVY = 1000129
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HOLT_OLMSTEAD, __pyx_int_1000127) < 0) __PYX_ERR(0, 450, __pyx_L1_error)

  /* "calcephpy.pyx":451
 *     SHOEMAKER_LEVY_2 = 1000126
 *     HOLT_OLMSTEAD = 1000127
 *     METCALF_BREWINGTON = 1000128             # <<<<<<<<<<<<<<
 *     LEVY = 1000129
 *     SHOEMAKER_LEVY_9 = 1000130
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_METCALF_BREWINGTON, __pyx_int_1000128) < 0) __PYX_ERR(0, 451, __pyx_L1_error)

  /* "calcephpy.pyx":452
 *     HOLT_OLMSTEAD = 1000127
 *     METCALF_BREWINGTON = 1000128
 *     LEVY = 1000129             # <<<<<<<<<<<<<<
 *     SHOEMAKER_LEVY_9 = 1000130
 *     HYAKUTAKE = 1000131
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_LEVY, __pyx_int_1000129) < 0) __PYX_ERR(0, 452, __pyx_L1_error)

  /* "calcephpy.pyx":453
 *     METCALF_BREWINGTON = 1000128
 *     LEVY = 1000129
 *     SHOEMAKER_LEVY_9 = 1000130             # <<<<<<<<<<<<<<
 *     HYAKUTAKE = 1000131
 *     HALE_BOPP = 1000132
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SHOEMAKER_LEVY_9, __pyx_int_1000130) < 0) __PYX_ERR(0, 453, __pyx_L1_error)

  /* "calcephpy.pyx":454
 *     LEVY = 1000129
 *     SHOEMAKER_LEVY_9 = 1000130
 *     HYAKUTAKE = 1000131             # <<<<<<<<<<<<<<
 *     HALE_BOPP = 1000132
 *     SIDING_SPRING = 1003228
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HYAKUTAKE, __pyx_int_1000131) < 0) __PYX_ERR(0, 454, __pyx_L1_error)

  /* "calcephpy.pyx":455
 *     SHOEMAKER_LEVY_9 = 1000130
 *     HYAKUTAKE = 1000131
 *     HALE_BOPP = 1000132             # <<<<<<<<<<<<<<
 *     SIDING_SPRING = 1003228
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_HALE_BOPP, __pyx_int_1000132) < 0) __PYX_ERR(0, 455, __pyx_L1_error)

  /* "calcephpy.pyx":456
 *     HYAKUTAKE = 1000131
 *     HALE_BOPP = 1000132
 *     SIDING_SPRING = 1003228             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_SIDING_SPRING, __pyx_int_1003228) < 0) __PYX_ERR(0, 456, __pyx_L1_error)

  /* "calcephpy.pyx":128
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * class NaifId:             # <<<<<<<<<<<<<<
 *     """NAIF identification numbers of the CALCEPH library.
 * 
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&__Pyx_DefaultClassType), __pyx_n_s_NaifId, __pyx_empty_tuple, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_NaifId, __pyx_t_2) < 0) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":487
 * 
 *     @staticmethod
 *     def __check_returnerror_0(res):             # <<<<<<<<<<<<<<
 *         """internal : check the error of the library  and raise an exception"""
 *         global __usertypehandler_python
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_10CalcephBin_5__check_returnerror_0, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_check_returnerror_0, __pyx_t_1) < 0) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":486
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def __check_returnerror_0(res):
 *         """internal : check the error of the library  and raise an exception"""
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_9calcephpy_CalcephBin, __pyx_n_s_check_returnerror_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_check_returnerror_0, __pyx_t_2) < 0) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":512
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __isarray_and_samesize(v1, v2):             # <<<<<<<<<<<<<<
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 *         try:
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_10CalcephBin_11__isarray_and_samesize, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_isarray_and_samesize, __pyx_t_2) < 0) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":511
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def __isarray_and_samesize(v1, v2):
 *         """internal : return non-zero value if v1 and v2 are two arrays of same size """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_9calcephpy_CalcephBin, __pyx_n_s_isarray_and_samesize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_isarray_and_samesize, __pyx_t_1) < 0) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":531
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def __exportresult(v,n, typeres):             # <<<<<<<<<<<<<<
 *         """internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres
 *          the vector[1] is extracted as v[1::n],  the vector[2] is extracted as v[2::n], ... """
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_10CalcephBin_13__exportresult, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_exportresult, __pyx_t_1) < 0) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":530
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def __exportresult(v,n, typeres):
 *         """internal : return the numpy-array v as n vectors. These n vectors have the same type as typeres
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_9calcephpy_CalcephBin, __pyx_n_s_exportresult); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_exportresult, __pyx_t_2) < 0) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":548
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod
 *     def open(pyarfilename):             # <<<<<<<<<<<<<<
 *         """Open the file(s) pyarfilename
 * 
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_10CalcephBin_15open, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_open, __pyx_t_2) < 0) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":547
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def open(pyarfilename):
 *         """Open the file(s) pyarfilename
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_9calcephpy_CalcephBin, __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_9calcephpy_CalcephBin->tp_dict, __pyx_n_s_open, __pyx_t_1) < 0) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_9calcephpy_CalcephBin);

  /* "calcephpy.pyx":1271
 * # /[inserted by cython to avoid comment start]* error handler *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def seterrorhandler(typehandler, userfunc):             # <<<<<<<<<<<<<<
 *     """set the error handler """
 *     global __userfuncerrorhandler_python, __usertypehandler_python
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_1seterrorhandler, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_seterrorhandler, __pyx_t_1) < 0) __PYX_ERR(0, 1271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":1281
 * # /[inserted by cython to avoid comment start]* version *[inserted by cython to avoid comment closer]/
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/
 * def getversion_str():             # <<<<<<<<<<<<<<
 *     """return the version of the library as a string"""
 *     cdef char cname[33]
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_9calcephpy_3getversion_str, NULL, __pyx_n_s_calcephpy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_getversion_str, __pyx_t_1) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "calcephpy.pyx":1296
 * 
 * # default initialization of the kind of error handler
 * __usertypehandler_python = 1             # <<<<<<<<<<<<<<
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_usertypehandler_python, __pyx_int_1) < 0) __PYX_ERR(0, 1296, __pyx_L1_error)

  /* "calcephpy.pyx":1
 * # /[inserted by cython to avoid comment start]*-----------------------------------------------------------------*[inserted by cython to avoid comment closer]/             # <<<<<<<<<<<<<<
 * # /[inserted by cython to avoid comment start]*!
 * #  \file calcephpy.pyx
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "carray.to_py":124
 * 
 * @cname("__Pyx_carray_to_tuple_double")
 * cdef inline tuple __Pyx_carray_to_tuple_double(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

  /*--- 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 calcephpy", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init calcephpy");
  }
  __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;
}

/* 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);
}

/* 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;
}

/* 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_CheckExact(key)) || 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
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(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
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(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;
}

/* PyIntCompare */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a == b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_FALSE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_FALSE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a == (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* PyIntCompare */
static CYTHON_INLINE PyObject* __Pyx_PyInt_NeObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_FALSE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a != b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_TRUE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_TRUE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal != 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a != (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_NE));
}

/* 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);
}

/* 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

/* 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

/* 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

/* 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;
}

/* 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

/* 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

/* 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

/* 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 (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
            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));
}

/* 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

/* 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

/* 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;
}

/* PyIntBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, int inplace, int zerodivision_check) {
    (void)inplace;
    (void)zerodivision_check;
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
            x = (long)((unsigned long)a + b);
            if (likely((x^a) >= 0 || (x^b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        if (likely(__Pyx_sst_abs(size) <= 1)) {
            a = likely(size) ? digits[0] : 0;
            if (size == -1) a = -a;
        } else {
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_add(op1, op2);
            }
        }
                x = a + b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla + llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
            double result;
            PyFPE_START_PROTECT("add", return NULL)
            result = ((double)a) + (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#endif

/* SliceObject */
static CYTHON_INLINE int __Pyx_PyObject_SetSlice(PyObject* obj, PyObject* value,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp;
#if PY_MAJOR_VERSION < 3
    PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
    if (likely(ms && ms->sq_ass_slice)) {
        if (!has_cstart) {
            if (_py_start && (*_py_start != Py_None)) {
                cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
                if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstart = 0;
        }
        if (!has_cstop) {
            if (_py_stop && (*_py_stop != Py_None)) {
                cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
                if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstop = PY_SSIZE_T_MAX;
        }
        if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
            Py_ssize_t l = ms->sq_length(obj);
            if (likely(l >= 0)) {
                if (cstop < 0) {
                    cstop += l;
                    if (cstop < 0) cstop = 0;
                }
                if (cstart < 0) {
                    cstart += l;
                    if (cstart < 0) cstart = 0;
                }
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    goto bad;
                PyErr_Clear();
            }
        }
        return ms->sq_ass_slice(obj, cstart, cstop, value);
    }
#endif
    mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_ass_subscript))
#endif
    {
        int result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyInt_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyInt_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_ass_subscript(obj, py_slice, value);
#else
        result = value ? PyObject_SetItem(obj, py_slice, value) : PyObject_DelItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    PyErr_Format(PyExc_TypeError,
        "'%.200s' object does not support slice %.10s",
        Py_TYPE(obj)->tp_name, value ? "assignment" : "deletion");
bad:
    return -1;
}

/* SliceObject */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp;
#if PY_MAJOR_VERSION < 3
    PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
    if (likely(ms && ms->sq_slice)) {
        if (!has_cstart) {
            if (_py_start && (*_py_start != Py_None)) {
                cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
                if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstart = 0;
        }
        if (!has_cstop) {
            if (_py_stop && (*_py_stop != Py_None)) {
                cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
                if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstop = PY_SSIZE_T_MAX;
        }
        if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
            Py_ssize_t l = ms->sq_length(obj);
            if (likely(l >= 0)) {
                if (cstop < 0) {
                    cstop += l;
                    if (cstop < 0) cstop = 0;
                }
                if (cstart < 0) {
                    cstart += l;
                    if (cstart < 0) cstart = 0;
                }
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    goto bad;
                PyErr_Clear();
            }
        }
        return ms->sq_slice(obj, cstart, cstop);
    }
#endif
    mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyInt_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyInt_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    PyErr_Format(PyExc_TypeError,
        "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
bad:
    return NULL;
}

/* decode_c_string */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    Py_ssize_t length;
    if (unlikely((start < 0) | (stop < 0))) {
        size_t slen = strlen(cstring);
        if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) {
            PyErr_SetString(PyExc_OverflowError,
                            "c-string too long to convert to Python");
            return NULL;
        }
        length = (Py_ssize_t) slen;
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    length = stop - start;
    if (unlikely(length <= 0))
        return PyUnicode_FromUnicode(NULL, 0);
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* 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
}

/* 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

/* SetVTable */
static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* 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);
  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 GOOD;
#else
    if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto GOOD;
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto 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 BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython); if (unlikely(!reduce_cython)) goto BAD;
            ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto BAD;
            ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto 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_GetAttrStr(type_obj, __pyx_n_s_setstate_cython); if (unlikely(!setstate_cython)) goto BAD;
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto BAD;
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto GOOD;
BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
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

/* 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 (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;
}

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
        tmptype = Py_TYPE(tmp);
#if PY_MAJOR_VERSION < 3
        if (tmptype == &PyClass_Type)
            continue;
#endif
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
#if PY_MAJOR_VERSION < 3
        metaclass = &PyClass_Type;
#else
        metaclass = &PyType_Type;
#endif
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare);
        if (prep) {
            PyObject *pargs = PyTuple_Pack(2, name, bases);
            if (unlikely(!pargs)) {
                Py_DECREF(prep);
                return NULL;
            }
            ns = PyObject_Call(prep, pargs, mkw);
            Py_DECREF(prep);
            Py_DECREF(pargs);
        } else {
            if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError)))
                return NULL;
            PyErr_Clear();
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result, *margs;
    PyObject *owned_metaclass = NULL;
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    margs = PyTuple_Pack(3, name, bases, dict);
    if (unlikely(!margs)) {
        result = NULL;
    } else {
        result = PyObject_Call(metaclass, margs, mkw);
        Py_DECREF(margs);
    }
    Py_XDECREF(owned_metaclass);
    return result;
}

/* 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

/* GetNameInClass */
static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) {
    PyObject *result;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    result = __Pyx_PyObject_GetAttrStr(nmspace, name);
    if (!result) {
        result = __Pyx_GetGlobalNameAfterAttributeLookup(name);
    }
    return result;
}

/* CLineInTraceback */
#ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(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);
}

/* 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;\
    }

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    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);
    }
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
    const size_t neg_one = (size_t) ((size_t) 0 - (size_t) 1), const_zero = (size_t) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(size_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (size_t) 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 (size_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(size_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 2 * PyLong_SHIFT) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 3 * PyLong_SHIFT) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) >= 4 * PyLong_SHIFT) {
                            return (size_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
#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 (size_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(size_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, 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 (size_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(size_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(size_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((((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(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_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
            if (sizeof(size_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, 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
            size_t 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 (size_t) -1;
        }
    } else {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyInt_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    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;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    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);
    }
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    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;
}

/* 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

/* 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 */
