diff --git a/INSTALL b/INSTALL index 007e939..7d1c323 100644 --- a/INSTALL +++ b/INSTALL @@ -1,8 +1,8 @@ Installation Instructions ************************* -Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, -Inc. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -226,11 +226,6 @@ order to use an ANSI C compiler: and if that doesn't work, install pre-built binaries of GCC for HP-UX. - HP-UX `make' updates targets which have the same time stamps as -their prerequisites, which makes it generally unusable when shipped -generated files such as `configure' are involved. Use GNU `make' -instead. - On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended @@ -309,10 +304,9 @@ causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to -an Autoconf limitation. Until the limitation is lifted, you can use -this workaround: +an Autoconf bug. Until the bug is fixed you can use this workaround: - CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== @@ -368,3 +362,4 @@ operates. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. + diff --git a/autogen_sfbd.sh b/autogen_sfbd.sh index f78ca14..3ba1831 100644 --- a/autogen_sfbd.sh +++ b/autogen_sfbd.sh @@ -23,7 +23,7 @@ automake --force --add-missing --copy #Used by ./configure #Assumes format ${EPICS}/base-3.14.12 #source cafeVersion-gcc-7.3.0 -CAFE_V="cafe-1.15.0" +CAFE_V="cafe-1.15.1" #For later check of existence of HOST_ARCH for $EPICS/include/os/$HOST_ARCH #Assume Linux but check if Darwin CAFE_HOST_FLAG_DARWIN=$(echo ${EPICS_HOST_ARCH} | grep -c "Darwin") diff --git a/autogen_sfbd.sh- b/autogen_sfbd.sh- new file mode 100644 index 0000000..3ba1831 --- /dev/null +++ b/autogen_sfbd.sh- @@ -0,0 +1,306 @@ +### psi specific - select compiler +#source +# default is sf +# +module unload gcc +module load gcc/7.3.0 +### psi specific - end + +rm -f configure.ac +ln -s configurePSI.ac configure.ac + +rm -f ./aclocal.m4 +rm -rf ./autom4te.cache +aclocal --force -I m4 +/opt/gfa/python-3.7/latest/bin/libtoolize --force --copy #select libtools 2.4.6 +#libtoolize --force --copy +autoconf --force #interprets configure.ac +autoheader --force +automake --force --add-missing --copy +#autoreconf not wanted + +#Check what the EPICS RELEASE IS from ${EPICS}/base +#Used by ./configure +#Assumes format ${EPICS}/base-3.14.12 +#source cafeVersion-gcc-7.3.0 +CAFE_V="cafe-1.15.1" +#For later check of existence of HOST_ARCH for $EPICS/include/os/$HOST_ARCH +#Assume Linux but check if Darwin +CAFE_HOST_FLAG_DARWIN=$(echo ${EPICS_HOST_ARCH} | grep -c "Darwin") +export CAFE_HOST_FLAG_DARWIN=$CAFE_HOST_FLAG_DARWIN + +RETURN_ON_WRONG_INPUT=true +RETURN_FLAG=false + +EPICS_BASE=$(readlink ${EPICS}/base) +#EB=$(readlink /afs/psi.ch/project/cafe/gitworkspace/CAFE/cpp/base) +echo $EPICS_BASE +if [ -z "$EPICS_BASE" ] +then + EPICS_BASE='base-7' #7.0 = 7+0 = 7 for major release +fi + +echo 'input' "$0" "$1" "$2" +echo $EPICS_BASE + +FACILITY=$(echo "$1" | tr '[:upper:]' '[:lower:]') +CACLIENT=$(echo "$2" | tr '[:upper:]' '[:lower:]') + +FACILITY_DEFAULT="sf" +CACLIENT_DEFAULT="python" + +FACILITY_TEMP="" +CACLIENT_TEMP="" + +echo 'input arg. facility/target' $FACILITY $CACLIENT + +if [ -n "$FACILITY" ] +then + if [ "$FACILITY" = "matlab" ] || [ "$FACILITY" = "python" ] || \ + [ "$FACILITY" = "py310" ] || [ "$FACILITY" = "py38" ] || \ + [ "$FACILITY" = "py37" ] || [ "$FACILITY" = "py35" ] || \ + [ "$FACILITY" = "julia" ] || [ "$FACILITY" = "cpp" ] || \ + [ "$FACILITY" = "cc" ] || [ "$FACILITY" = "py34" ] + then + CACLIENT_TEMP=$FACILITY + FACILITY_TEMP=$2 + fi +fi + +if [ -n "$CACLIENT" ] +then + if [ "$CACLIENT" = "sls" ] || [ "$CACLIENT" = "sls2" ] || \ + [ "$CACLIENT" = "sf" ] || [ "$CACLIENT" = "swissfel" ] || \ + [ "$CACLIENT" = "sfel" ] || [ "$CACLIENT" = "hipa" ] + then + if [ -z $FACILITY_TEMP ] + then + FACILITY_TEMP=$CACLIENT + CACLIENT_TEMP=$1 + fi + fi +fi + + + +if [ -z "$FACILITY" ] +then + FACILITY="sf" + echo "FACILITY = " $FACILITY + if [ -z $CACLIENT ] + then + CACLIENT=$CACLIENT_DEFAULT + fi +elif [ "$FACILITY" = "sls" ] || [ "$FACILITY" = "sls2" ] || \ + [ "$FACILITY" = "sf" ] || [ "$FACILITY" = "swissfel" ] || \ + [ "$FACILITY" = "sfel" ] || [ "$FACILITY" = "hipa" ] +then + echo "FACILITY = " $FACILITY +elif [ -n "$FACILITY_TEMP" ] +then + if [ "$FACILITY_TEMP" = "sls" ] || [ "$FACILITY_TEMP" = "sls2" ] || \ + [ "$FACILITY_TEMP" = "sf" ] || [ "$FACILITY_TEMP" = "swissfel" ] || \ + [ "$FACILITY_TEMP" = "sfel" ] || [ "$FACILITY_TEMP" = "hipa" ] + then + + + FACILITY=$FACILITY_TEMP + else + if [ -n "$2" ] + then + echo "***UNRECOGNIZED INPUT FACILITY***" $FACILITY + echo "***VALID VALUES ARE: sls sls2 sf hipa" + RETURN_FLAG=true + fi + echo "***OTHERWISE THE DEFAULT FACILITY IS:" $FACILITY_DEFAULT + FACILITY=$FACILITY_DEFAULT + fi +else + echo "***UNRECOGNIZED INPUT FACILITY***" $FACILITY + echo "***VALID VALUES ARE: sls sls2 sf hipa" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT FACILITY IS: " $FACILITY_DEFAULT + FACILITY=$FACILITY_DEFAULT +fi + +if [ -n "$CACLIENT" ] +then + if [ "$CACLIENT" = "matlab" ] || [ "$CACLIENT" = "python" ] || \ + [ "$CACLIENT" = "py310" ] || [ "$CACLIENT" = "py38" ] || \ + [ "$CACLIENT" = "py37" ] || [ "$CACLIENT" = "py35" ] || \ + [ "$CACLIENT" = "julia" ] || [ "$CACLIENT" = "cpp" ] || \ + [ "$CACLIENT" = "cc" ] || [ "$CACLIENT" = "py34" ] + then + echo "CA TARGET = " $CACLIENT + else + if [ -n "$CACLIENT_TEMP" ] + then + if [ "$CACLIENT_TEMP" = "matlab" ] || [ "$CACLIENT_TEMP" = "python" ] || \ + [ "$CACLIENT_TEMP" = "py310" ] || [ "$CACLIENT_TEMP" = "py38" ] || \ + [ "$CACLIENT_TEMP" = "py37" ] || [ "$CACLIENT_TEMP" = "py35" ] || \ + [ "$CACLIENT_TEMP" = "julia" ] || [ "$CACLIENT_TEMP" = "cpp" ] || \ + [ "$CACLIENT_TEMP" = "cc" ] || [ "$CACLIENT_TEMP" = "py34" ] + then + CACLIENT=$CACLIENT_TEMP + else + echo "***UNRECOGNIZED INPUT CA TARGET***" $CACLIENT + echo "***VALID VALUES ARE: cpp matlab python" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT CA TARGET IS:" $CACLIENT_DEFAULT + CACLIENT=$CACLIENT_DEFAULT + fi + else + echo "***UNRECOGNIZED INPUT CA TARGET***" $CACLIENT + echo "***VALID VALUES ARE: cpp matlab python" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT CA TARGET IS:" $CACLIENT_DEFAULT + CACLIENT=$CACLIENT_DEFAULT + fi + fi +else + CACLIENT=$CACLIENT_DEFAULT +fi + + + +if [ $RETURN_ON_WRONG_INPUT = true ] ; then + if [ $RETURN_FLAG = true ] ; then + return 1 2>/dev/null + exit 1 + fi +fi + +echo "FACILITY SELECTED = " $FACILITY +echo "CA TARGET SELECTED = " $CACLIENT + +ENABLE_OPTIONS="--enable-boost-inc" + +if [ "$FACILITY" = "sfel" ] || [ "$FACILITY" = "swissfel" ] +then + FACILITY="sf" +fi + +if [ "$CACLIENT" = "python" ] || [ "$CACLIENT" = "julia" ] +then + CACLIENT="py37" +fi + + +if [ "$FACILITY" = "sls2" ] +then + ENABLE_OPTIONS+=" --enable-epics7" + #CAFE_V+="-sls2" +else + ENABLE_OPTIONS+=" --enable-epics3" + if [ "$FACILITY" = "sf" ] && [ "$CACLIENT" != "matlab" ] + then + CAFE_V+="-sf" + elif [ "$FACILITY" = "sls" ] && [ "$CACLIENT" != "matlab" ] + then + CAFE_V+="-epics3" + fi + +fi + + +if [ "$CACLIENT" = "py34" ] +then + ENABLE_OPTIONS+=" --enable-python34" + ENABLE_OPTIONS+=" --enable-qt4py34" + CAFE_V+="-py34" +elif [ "$CACLIENT" = "py35" ] +then + ENABLE_OPTIONS+=" --enable-python35" + ENABLE_OPTIONS+=" --enable-qt4" + CAFE_V+="-py35" +elif [ "$CACLIENT" = "py37" ] +then + ENABLE_OPTIONS+=" --enable-python37" + ENABLE_OPTIONS+=" --enable-qt5" + CAFE_V+="-py37" +elif [ "$CACLIENT" = "py38" ] +then + ENABLE_OPTIONS+=" --enable-python38" + ENABLE_OPTIONS+=" --enable-qt5py38" + CAFE_V+="-py38" +elif [ "$CACLIENT" = "py310" ] +then + ENABLE_OPTIONS+=" --enable-python310" + #ENABLE_OPTIONS+=" --enable-qt5py310" + CAFE_V+="-py310" +else + ENABLE_OPTIONS+=" --enable-qt5" +fi + +if [ "$FACILITY" = "sf" ] && [ "$CACLIENT" != "matlab" ] +then + #rm -f src/PyCafe.cpp + #ln -s PyCafe3.cpp src/PyCafe.cpp + ENABLE_OPTIONS+=" --enable-json" + ENABLE_OPTIONS+=" --enable-zeromq" + ENABLE_OPTIONS+=" --enable-curl" + ENABLE_OPTIONS+=" --enable-lz4" +#else + #rm -f src/PyCafe.cpp + #ln -s PyCafe_sls.cpp src/PyCafe.cpp +fi + +CAFE_V+="-gcc-"$GCC_VERSION + +echo "$CAFE_V" + +#echo 'EPICS BASE IS='$EPICS_BASE +#echo 'EPICS BASE DIR='${EPICS}/base-7.0.4.1 + +EB1=$(echo $EPICS_BASE | sed -e "s/[a-zA-Z]*-//g") +EBMAJ=$(echo $EB1 | sed -e "s/[[:punct:]].*//g") +EBMIN1=$(echo $EB1 | sed -e "s/^[[:digit:]]*[[:punct:]]//g") +EBMIN=$(echo $EBMIN1 | sed -e "s/[[:punct:]][[:digit:]]*//g") +EBPAT=$(echo $EB1 | sed -e "s/[[:digit:]]*[[:punct:]]//g") +echo EPICS_MAJOR=$EBMAJ +echo EPICS_MINOR=$EBMIN +echo EPICS_PATCH=$EBPAT +#echo $EBMIN1 + +export CAFE_EPICS_V_MAJOR=$EBMAJ +export CAFE_EPICS_V_MINOR=$EBMIN +export CAFE_EPICS_V_PATCH=$EBPAT + +#ENABLE_OPTIONS+=" --enable-qt5" +##ENABLE_OPTIONS+=" --enable-qt4" +#ENABLE_OPTIONS+=" --enable-python37" +##ENABLE_OPTIONS+=" --enable-python35" +#ENABLE_OPTIONS+=" --enable-json" +#ENABLE_OPTIONS+=" --enable-zeromq" +#ENABLE_OPTIONS+=" --enable-curl" +#ENABLE_OPTIONS+=" --enable-lz4" + +echo 'ENABLE_OPTIONS='$ENABLE_OPTIONS + +./configure \ + --prefix=/opt/gfa/cafe/cpp/${CAFE_V} \ + --libdir=/opt/gfa/cafe/cpp/${CAFE_V}/lib/${EPICS_HOST_ARCH} \ + ${ENABLE_OPTIONS} \ + --with-boost-inc=/opt/gfa/cafe/boost/boost_1_61_0/include \ + --with-epics3=${EPICS}/base \ + --with-python310=/ioc/python/latest \ + --with-python38=/opt/gfa/python-3.8/latest \ + --with-python37=/opt/gfa/python-3.7/latest \ + --with-python35=/opt/gfa/python-3.5/latest \ + --with-python34=/opt/psi/Programming/psi-python34/2.1.0 \ + --with-qt5py310=/ioc/python/latest \ + --with-qt5py38=/opt/gfa/python-3.8/latest \ + --with-qt5=/opt/gfa/python-3.7/latest \ + --with-qt4=/opt/gfa/python-3.5/latest \ + --with-qt4py34=/opt/psi/Programming/psi-python34/2.1.0 \ + --with-json=/sf/bd/deps/zmq/json/jsoncpp-src-0.6.0-rc2 \ + --with-zeromq=/sf/bd/deps/zmq/zeromq-4.2.3-gcc-6.3.0 \ + --with-curl=/sf/bd/deps/zmq/curl-7.55.1 \ + --with-lz4=/sf/bd/deps/zmq/lz4/lib \ + --with-epics7=${EPICS}/base-7.0.6 +unset CAFE_EPICS_V_PATCH +unset CAFE_EPICS_V_MINOR +unset CAFE_EPICS_V_MAJOR + +unset CAFE_HOST_FLAG_DARWIN + diff --git a/autogen_slsbd.sh- b/autogen_slsbd.sh- new file mode 100644 index 0000000..0715e81 --- /dev/null +++ b/autogen_slsbd.sh- @@ -0,0 +1,286 @@ +### psi specific - select compiler +#source +# default is sf +# +module unload gcc +module load gcc/7.3.0 +### psi specific - end + +rm -f configure.ac +ln -s configurePSI.ac configure.ac + +rm -f ./aclocal.m4 +rm -rf ./autom4te.cache +aclocal --force -I m4 +/opt/gfa/python-3.7/latest/bin/libtoolize --force --copy #select libtools 2.4.6 +autoconf --force #interprets configure.ac +autoheader --force +automake --force --add-missing --copy +#autoreconf not wanted + +#Check what the EPICS RELEASE IS from ${EPICS}/base +#Used by ./configure +#Assumes format ${EPICS}/base-3.14.12 +#source cafeVersion-gcc-7.3.0 +CAFE_V="cafe-1.15.1" +#For later check of existence of HOST_ARCH for $EPICS/include/os/$HOST_ARCH +#Assume Linux but check if Darwin +CAFE_HOST_FLAG_DARWIN=$(echo ${EPICS_HOST_ARCH} | grep -c "Darwin") +export CAFE_HOST_FLAG_DARWIN=$CAFE_HOST_FLAG_DARWIN + +RETURN_ON_WRONG_INPUT=true +RETURN_FLAG=false + +EPICS_BASE=$(readlink ${EPICS}/base) +#EB=$(readlink /afs/psi.ch/project/cafe/gitworkspace/CAFE/cpp/base) +echo $EPICS_BASE +if [ -z "$EPICS_BASE" ] +then + EPICS_BASE='base-7.4.1' #7.0 = 7+0 = 7 for major release +fi + +echo 'input' "$0" "$1" "$2" +echo $EPICS_BASE + +FACILITY=$(echo "$1" | tr '[:upper:]' '[:lower:]') +CACLIENT=$(echo "$2" | tr '[:upper:]' '[:lower:]') + +FACILITY_DEFAULT="sf" +CACLIENT_DEFAULT="python" + +FACILITY_TEMP="" +CACLIENT_TEMP="" + +echo 'input arg. facility/target' $FACILITY $CACLIENT + +if [ -n "$FACILITY" ] +then + if [ "$FACILITY" = "matlab" ] || [ "$FACILITY" = "python" ] || \ + [ "$FACILITY" = "py37" ] || [ "$FACILITY" = "py35" ] || \ + [ "$FACILITY" = "julia" ] || [ "$FACILITY" = "cpp" ] || \ + [ "$FACILITY" = "cc" ] + then + CACLIENT_TEMP=$FACILITY + FACILITY_TEMP=$2 + fi +fi + +if [ -n "$CACLIENT" ] +then + if [ "$CACLIENT" = "sls" ] || [ "$CACLIENT" = "sls2" ] || \ + [ "$CACLIENT" = "sf" ] || [ "$CACLIENT" = "swissfel" ] || \ + [ "$CACLIENT" = "sfel" ] || [ "$CACLIENT" = "hipa" ] + then + if [ -z $FACILITY_TEMP ] + then + FACILITY_TEMP=$CACLIENT + CACLIENT_TEMP=$1 + fi + fi +fi + + + +if [ -z "$FACILITY" ] +then + FACILITY="sf" + echo "FACILITY = " $FACILITY + if [ -z $CACLIENT ] + then + CACLIENT=$CACLIENT_DEFAULT + fi +elif [ "$FACILITY" = "sls" ] || [ "$FACILITY" = "sls2" ] || \ + [ "$FACILITY" = "sf" ] || [ "$FACILITY" = "swissfel" ] || \ + [ "$FACILITY" = "sfel" ] || [ "$FACILITY" = "hipa" ] +then + echo "FACILITY = " $FACILITY +elif [ -n "$FACILITY_TEMP" ] +then + if [ "$FACILITY_TEMP" = "sls" ] || [ "$FACILITY_TEMP" = "sls2" ] || \ + [ "$FACILITY_TEMP" = "sf" ] || [ "$FACILITY_TEMP" = "swissfel" ] || \ + [ "$FACILITY_TEMP" = "sfel" ] || [ "$FACILITY_TEMP" = "hipa" ] + then + + + FACILITY=$FACILITY_TEMP + else + if [ -n "$2" ] + then + echo "***UNRECOGNIZED INPUT FACILITY***" $FACILITY + echo "***VALID VALUES ARE: sls sls2 sf hipa" + RETURN_FLAG=true + fi + echo "***OTHERWISE THE DEFAULT FACILITY IS:" $FACILITY_DEFAULT + FACILITY=$FACILITY_DEFAULT + fi +else + echo "***UNRECOGNIZED INPUT FACILITY***" $FACILITY + echo "***VALID VALUES ARE: sls sls2 sf hipa" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT FACILITY IS: " $FACILITY_DEFAULT + FACILITY=$FACILITY_DEFAULT +fi + +if [ -n "$CACLIENT" ] +then + if [ "$CACLIENT" = "matlab" ] || [ "$CACLIENT" = "python" ] || \ + [ "$CACLIENT" = "py37" ] || [ "$CACLIENT" = "py35" ] || \ + [ "$CACLIENT" = "julia" ] || [ "$CACLIENT" = "cpp" ] || \ + [ "$CACLIENT" = "cc" ] + then + echo "CA TARGET = " $CACLIENT + else + if [ -n "$CACLIENT_TEMP" ] + then + if [ "$CACLIENT_TEMP" = "matlab" ] || [ "$CACLIENT_TEMP" = "python" ] || \ + [ "$CACLIENT_TEMP" = "py37" ] || [ "$CACLIENT_TEMP" = "py35" ] || \ + [ "$CACLIENT_TEMP" = "julia" ] || [ "$CACLIENT_TEMP" = "cpp" ] || \ + [ "$CACLIENT_TEMP" = "cc" ] + then + CACLIENT=$CACLIENT_TEMP + else + echo "***UNRECOGNIZED INPUT CA TARGET***" $CACLIENT + echo "***VALID VALUES ARE: cpp matlab python" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT CA TARGET IS:" $CACLIENT_DEFAULT + CACLIENT=$CACLIENT_DEFAULT + fi + else + echo "***UNRECOGNIZED INPUT CA TARGET***" $CACLIENT + echo "***VALID VALUES ARE: cpp matlab python" + RETURN_FLAG=true + echo "***OTHERWISE THE DEFAULT CA TARGET IS:" $CACLIENT_DEFAULT + CACLIENT=$CACLIENT_DEFAULT + fi + fi +else + CACLIENT=$CACLIENT_DEFAULT +fi + + + +if [ $RETURN_ON_WRONG_INPUT = true ] ; then + if [ $RETURN_FLAG = true ] ; then + return 1 2>/dev/null + exit 1 + fi +fi + +echo "FACILITY SELECTED = " $FACILITY +echo "CA TARGET SELECTED = " $CACLIENT + +ENABLE_OPTIONS="--enable-boost-inc" + +if [ "$FACILITY" = "sfel" ] || [ "$FACILITY" = "swissfel" ] +then + FACILITY="sf" +fi + +if [ "$CACLIENT" = "python" ] || [ "$CACLIENT" = "julia" ] +then + CACLIENT="py37" +fi + + +if [ "$FACILITY" = "sls2" ] +then + ENABLE_OPTIONS+=" --enable-epics7" + CAFE_V+="-sls2" +else + ENABLE_OPTIONS+=" --enable-epics3" + if [ "$FACILITY" = "sf" ] && [ "$CACLIENT" != "matlab" ] + then + CAFE_V+="-sf" + fi +fi + +if [ "$CACLIENT" = "py35" ] +then + ENABLE_OPTIONS+=" --enable-python35" + ENABLE_OPTIONS+=" --enable-qt4" + CAFE_V+="-py35" +elif [ "$CACLIENT" = "py37" ] +then + ENABLE_OPTIONS+=" --enable-python37" + ENABLE_OPTIONS+=" --enable-qt5" + CAFE_V+="-py37" +#else + #ENABLE_OPTIONS+=" --enable-qt5" +elif [ "$CACLIENT" = "py34" ] +then + ENABLE_OPTIONS+=" --enable-python34" + ENABLE_OPTIONS+=" --enable-qt4" + CAFE_V+="-py34" +#else + #ENABLE_OPTIONS+=" --enable-qt5" +fi + + +if [ "$FACILITY" = "sf" ] && [ "$CACLIENT" != "matlab" ] +then + #rm -f src/PyCafe.cpp + #ln -s PyCafe3.cpp src/PyCafe.cpp + ENABLE_OPTIONS+=" --enable-json" + ENABLE_OPTIONS+=" --enable-zeromq" + ENABLE_OPTIONS+=" --enable-curl" + ENABLE_OPTIONS+=" --enable-lz4" +#else + #rm -f src/PyCafe.cpp + #ln -s PyCafe_sls.cpp src/PyCafe.cpp +fi + +CAFE_V+="-gcc-"$GCC_VERSION + +echo "CAFE VERSION: $CAFE_V" + +#echo 'EPICS BASE IS='$EPICS_BASE +#echo 'EPICS BASE DIR='${EPICS}/base-7.0.4.1 + +EB1=$(echo $EPICS_BASE | sed -e "s/[a-zA-Z]*-//g") +EBMAJ=$(echo $EB1 | sed -e "s/[[:punct:]].*//g") +EBMIN1=$(echo $EB1 | sed -e "s/^[[:digit:]]*[[:punct:]]//g") +EBMIN=$(echo $EBMIN1 | sed -e "s/[[:punct:]][[:digit:]]*//g") +EBPAT=$(echo $EB1 | sed -e "s/[[:digit:]]*[[:punct:]]//g") +echo EPICS_MAJOR=$EBMAJ +echo EPICS_MINOR=$EBMIN +echo EPICS_PATCH=$EBPAT +#echo $EBMIN1 + +export CAFE_EPICS_V_MAJOR=$EBMAJ +export CAFE_EPICS_V_MINOR=$EBMIN +export CAFE_EPICS_V_PATCH=$EBPAT + +#ENABLE_OPTIONS+=" --enable-qt5" +##ENABLE_OPTIONS+=" --enable-qt4" +#ENABLE_OPTIONS+=" --enable-python37" +##ENABLE_OPTIONS+=" --enable-python35" +#ENABLE_OPTIONS+=" --enable-json" +#ENABLE_OPTIONS+=" --enable-zeromq" +#ENABLE_OPTIONS+=" --enable-curl" +#ENABLE_OPTIONS+=" --enable-lz4" + +echo 'ENABLE_OPTIONS='$ENABLE_OPTIONS +echo 'EPICS='${EPICS} + +./configure \ + --prefix=/opt/gfa/cafe/cpp/${CAFE_V} \ + --libdir=/opt/gfa/cafe/cpp/${CAFE_V}/lib/${EPICS_HOST_ARCH} \ + ${ENABLE_OPTIONS} \ + --with-boost-inc=/afs/psi.ch/project/cafe/gitlab/CAFE/boost/boost_1_61_0/include \ + --with-epics7=${EPICS}/base-7.0.4.1 \ + --with-epics3=${EPICS}/base \ + --with-python37=/opt/gfa/python-3.7/latest \ + --with-python35=/opt/gfa/python-3.5/latest \ + --with-python34=/opt/psi/Programming/psi-python34/2.1.0 \ + --with-qt5=/opt/gfa/python-3.7/latest \ + --with-qt4=/opt/gfa/python-3.5/latest \ + --with-json=/opt/gfa/zmsglog/json/jsoncpp-src-0.6.0-rc2 \ + --with-zeromq=/opt/gfa/zmq/zeromq-4.2.3-gcc-6.3.0 \ + --with-curl=/opt/gfa/zmq/curl-7.55.1 \ + --with-lz4=/opt/gfa/zmq/lz4/lib + +unset CAFE_EPICS_V_PATCH +unset CAFE_EPICS_V_MINOR +unset CAFE_EPICS_V_MAJOR + +unset CAFE_HOST_FLAG_DARWIN diff --git a/configurePSI.ac b/configurePSI.ac index 22946be..3c63c36 100644 --- a/configurePSI.ac +++ b/configurePSI.ac @@ -9,7 +9,7 @@ # Standard macros AC_PREREQ(2.63) AC_COPYRIGHT([CAFE,Jan Chrin, 2010-2021]) -AC_INIT([CAFE], [1.15.0], [Bug reports to: jan.chrin@psi.ch]) +AC_INIT([CAFE], [1.15.1], [Bug reports to: jan.chrin@psi.ch]) AC_CONFIG_AUX_DIR(./) diff --git a/configurePSI.ac-Mar10 b/configurePSI.ac-Mar10 new file mode 100644 index 0000000..54a8d3f --- /dev/null +++ b/configurePSI.ac-Mar10 @@ -0,0 +1,1191 @@ +## CAFE (Channel Access interFacE) +## Author: Jan Chrin, GFA, PSI +## +## configure.ac is processed by autoconf +## +## output: configure.in file for building the cafe library +## + +# Standard macros +AC_PREREQ(2.63) +AC_COPYRIGHT([CAFE,Jan Chrin, 2010-2021]) +AC_INIT([CAFE], [1.15.0], [Bug reports to: jan.chrin@psi.ch]) + +AC_CONFIG_AUX_DIR(./) + +AC_CONFIG_MACRO_DIR([m4]) +m4_pattern_allow([AC_CONFIG_MACRO]) + +AM_INIT_AUTOMAKE([gnu subdir-objects]) +AC_CONFIG_SRCDIR([./include/cafe.h]) + +AC_LANG_CPLUSPLUS + +AC_CONFIG_HEADER([./include/config.h:./include/config.in]) +AC_PROG_CXX + +# library creation +AC_PROG_LIBTOOL +AM_PROG_LIBTOOL + +LT_PREREQ([2.4.6]) +LT_INIT + + +#AX_CHECK_COMPILE_FLAG([-std=c++14], [CPPFLAGS="$CPPFLAGS -std=c++14"]) + +AC_LANG([C++]) + +AC_DEFINE_UNQUOTED(HAVE_LINUX, 1, [linux dependency (sleep)]) + +CPPFLAGS=" -fexceptions -fPIC -std=c++1z" + +# provide include directories +AC_SUBST([CAFE_CPPFLAGS], '-I$(top_srcdir)/include ') + +##--------------------------------------------------------------------------- +##-- EPICS -- path and options +## +EPICS_PREFIX="" +EPICS_INCL_PATH="" +EPICS_LIB_PATH="" + + + +## Host Arch +if test x"${HOST_ARCH}" == x""; then + HOST_ARCH=Linux + #echo ${EPICS_HOST_ARCH} | grep -c 'SL6' + #echo ${EPICS_HOST_ARCH} | grep -c 'darwin' + if test x"${CAFE_HOST_FLAG_DARWIN}" == x"1"; then + HOST_ARCH=Darwin + fi + echo "HOST_ARCH="${HOST_ARCH} +fi + +echo "HOST_ARCH="${HOST_ARCH} + + +AC_ARG_ENABLE( + [epics3], + AC_HELP_STRING([--enable-epics3], + [enable epics use [default=no]]), + [HAVE_EPICS=true + HAVE_EPICS_3=true] +) + + +AC_ARG_ENABLE( + [epics7], + AC_HELP_STRING([--enable-epics7], + [enable epics use [default=no]]), + [HAVE_EPICS=true + HAVE_EPICS_7=true] +) + +if test x$HAVE_EPICS_3 == xtrue ; then + AC_ARG_WITH( + epics3, + AC_HELP_STRING( + [--with-epics3 location of EPICS], + [prefix where the epics libraries and include files are to be found]), + [#HAVE_EPICS=true + EPICS_PREFIX=$withval + EPICS_INCL_PATH="-I"${EPICS_PREFIX}"/include/ \ +-I"${EPICS_PREFIX}"/include/os/"${HOST_ARCH} + EPICS_LIB_PATH=${EPICS_PREFIX}"/lib/"${EPICS_HOST_ARCH} + ## Add epics release + EPICS_MAJOR_DEFAULT="3" + EPICS_MINOR_DEFAULT="14" + EPICS_PATCH_DEFAULT="12" + ] +) +fi + +if test x$HAVE_EPICS_7 == xtrue ; then + AC_ARG_WITH( + epics7, + AC_HELP_STRING( + [--with-epics7 location of EPICS], + [prefix where the epics libraries and include files are to be found]), + [#HAVE_EPICS=true + EPICS_PREFIX=$withval + EPICS_INCL_PATH="-I"${EPICS_PREFIX}"/include/ \ +-I"${EPICS_PREFIX}"/include/os/"${HOST_ARCH} + EPICS_INCL_PATH=${EPICS_INCL_PATH}" \ +-I"${EPICS_PREFIX}"/include/compiler/gcc" + EPICS_LIB_PATH=${EPICS_PREFIX}"/lib/"${EPICS_HOST_ARCH} + ## Add epics release + EPICS_MAJOR_DEFAULT="7" + EPICS_MINOR_DEFAULT="4" + EPICS_PATCH_DEFAULT="1" + ] +) +fi + +EPICS_MAJOR_REL=${EPICS_MAJOR_DEFAULT} +EPICS_MINOR_REL=${EPICS_MINOR_DEFAULT} +EPICS_PATCH_REL=${EPICS_PATCH_DEFAULT} + +#overwrite default with actual if determined +if test x"${CAFE_EPICS_V_MAJOR}" != x""; then + EPICS_MAJOR_REL=${CAFE_EPICS_V_MAJOR} +fi +if test x"${CAFE_EPICS_V_MINOR}" != x""; then + EPICS_MINOR_REL=${CAFE_EPICS_V_MINOR} +fi +if test x"${CAFE_EPICS_V_PATCH}" != x""; then + EPICS_PATCH_REL=${CAFE_EPICS_V_PATCH} +fi + +echo EPICS_MAJOR=$EPICS_MAJOR_REL +echo EPICS_MINOR=$EPICS_MINOR_REL +echo EPICS_PATCH=$EPICS_PATCH_REL + + +#echo "TEST ", $EPICS_LIB_PATH +## +##-- end EPICS -- path and options +##--------------------------------------------------------------------------- + +##=========================================================================== +##== Check for header files and libraries. +##=========================================================================== + +##--------------------------------------------------------------------------- +##-- EPICS -- check header files and libs +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_EPICS == xtrue; then + + # Change flags: if all tests are successfull, accept these changes; if + # the tests are not successfull, use the old flags. + if test x"${EPICS_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${EPICS_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${EPICS_LIB_PATH}" -Wl,-rpath,"${EPICS_LIB_PATH} + #LDFLAGS=${LDFLAGS}" -L/opt/psi/Programming/gcc/7.3.0/lib64 -Wl,-rpath,/opt/psi/Programming/gcc/7.3.0/lib64" + #LDFLAGS=${LDFLAGS}" -L/opt/psi/Programming/gcc/7.3.0/lib -Wl,-rpath,/opt/psi/Programming/gcc/7.3.0/lib" + fi + + if test x$HAVE_EPICS == xtrue ; then + AC_CHECK_HEADERS( + [cadef.h], + [HAVE_EPICS=true], + [HAVE_EPICS=true + AC_MSG_WARN(cadef.h not not found!)], + []) + fi + + if test x$HAVE_EPICS == xtrue ; then + AC_CHECK_HEADERS( + [epicsTypes.h], + [HAVE_EPICS=true], + [HAVE_EPICS=true + AC_MSG_WARN(epicsTypes.h not found!)], + []) + fi + + if test x$HAVE_EPICS == xtrue ; then + AC_CHECK_LIB(ca,[main], + [HAVE_EPICS=true], + [HAVE_EPICS=false + AC_MSG_WARN(libca either not found or not operational!)]) + fi + + if test x$HAVE_EPICS == xtrue ; then + AC_CHECK_LIB(Com,[main], + [HAVE_EPICS=true], + [HAVE_EPICS=false + AC_MSG_WARN(libCom either not found or not operational!)]) + fi + + if test x$HAVE_EPICS == xtrue ; then + AC_CHECK_LIB(dl,[main], + [HAVE_EPICS=true], + [HAVE_EPICS=false + AC_MSG_WARN(libdl either not found or not operational!)]) + fi + + # If all checks are OK we add rlog to the CXXFLAGS. + if test x$HAVE_EPICS != xtrue ; then + + if test x"${EPICS_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + fi + fi + + echo "LDFLAGS__> $LDFLAGS " + + if test x$HAVE_EPICS == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_EPICS, ${EPICS_MAJOR_REL}.${EPICS_MINOR_REL}.${EPICS_PATCH_REL},[epics version]) + AC_DEFINE_UNQUOTED(EPICS_MAJOR,${EPICS_MAJOR_REL}, [epics major release]) + AC_DEFINE_UNQUOTED(EPICS_MINOR,${EPICS_MINOR_REL}, [epics minor release]) + AC_DEFINE_UNQUOTED(EPICS_PATCH,${EPICS_PATCH_REL}, [epics patch release]) + echo "EPICS PATH ====================================>" ${EPICS_INCL_PATH} + echo "EPICS LIB ====================================>" ${EPICS_LIB_PATH} + fi +fi + +AC_LANG_POP + +## +##-- end EPICS -- check header files and libs +##--------------------------------------------------------------------------- + + +##--------------------------------------------------------------------------- +##-- BOOST -- path and options - +##-- Boost libraries are mainly header-only, i.e. they consist of header files +##-- containing templates and inline functions, and require no separately-compiled +##-- library binaries or special treatment when linking +## +BOOST_PREFIX="" +BOOST_INCL_PATH="" +BOOST_LIB_PATH="" +BOOST_OPTION="" + +AC_ARG_ENABLE( + [boost-inc], + AC_HELP_STRING([--enable-boost-inc], + [enable boost use [default=no]]), + [HAVE_BOOST_=true] +) + +AC_ARG_WITH( + boost-inc, + AC_HELP_STRING([--with-boost-inc = location of BOOST], + [prefix giving the boost base directory]), + [#HAVE_BOOST_=true + BOOST_PREFIX=$withval + BOOST_INCL_PATH="-I"${BOOST_PREFIX}"/boost -I"${BOOST_PREFIX} + ] +) + +AC_ARG_ENABLE( + [boost-lib], + AC_HELP_STRING([--enable-boost-lib], + [enable boost lib use [default=no]]), + [HAVE_BOOST_LIB_=true] +) + +AC_ARG_WITH( + boost-lib, + AC_HELP_STRING([--with-boost-lib = location of BOOST], + [prefix giving the boost base directory]), + [#HAVE_BOOST_LIB=true + BOOST_LIB_PATH=$withval + ] +) + +## +##-- end BOOST -- path and options +##--------------------------------------------------------- + + + +##--------------------------------------------------------------------------- +##-- BOOST -- check header files (and lib if selected) only +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_BOOST_LIB_ == xtrue ; then + + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${BOOST_LIB_PATH}" -Wl,-rpath,"${BOOST_LIB_PATH} + #echo ${BOOST_LIB_PATH} + #echo ${LDFLAGS} + + if test x$HAVE_BOOST_LIB_ == xtrue ; then + AC_CHECK_LIB(boost_thread,[main], + [], + [HAVE_BOOST_LIB=false + AC_MSG_WARN(boost_thread not found!)]) + fi + + # If all checks are OK we add boost lib version to the FLAGS. + if test x$HAVE_BOOST_LIB_ != xtrue ; then + LDFLAGS=${TEMP_LDFLAGS} + fi + + if test x$HAVE_BOOST_LIB_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_BOOST_THREAD, 1, [boost thread library]) + fi +fi + + +if test x$HAVE_BOOST_ == xtrue ; then + + # Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${BOOST_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${BOOST_INCL_PATH} + echo ${BOOST_INCL_PATH} + echo ${CPPFLAGS} + fi + + if test x$HAVE_BOOST_ == xtrue ; then + AC_CHECK_HEADERS( + [multi_index_container.hpp], + [HAVE_BOOST_=true], + [HAVE_BOOST_=false + AC_MSG_WARN(multi_index_container.hpp not found!)], + []) + fi + + if test x$HAVE_BOOST_ != xtrue ; then + if test x"${BOOST_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + echo ${CPPFLAGS} + fi + fi + + if test x$HAVE_BOOST_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_BOOST, 1, [Availability of boost]) + echo "BOOST PATH ====================================>" ${BOOST_INCL_PATH} + fi +fi + +AC_LANG_POP + +## +##-- end BOOST-- check header files only +##----------------------------- + + +PYTHON_PREFIX="" +PYTHON_INCL_PATH="" +PYTHON_LIB_PATH="" +PYTHON_OPTION="" +##--------------------------------------------------------------------------- +##-- Python 3.5/3.7 -- path and options +##-- Python header files required for callbacks + + +AC_ARG_ENABLE( + [python35], + AC_HELP_STRING([--enable-python35], + [enable python use [default=no]]), + [HAVE_PYTHON_=true + HAVE_PY35_=true] +) + +if test x$HAVE_PY35_ == xtrue ; then + AC_ARG_WITH( + python35, + AC_HELP_STRING( + [--with-python35 = location of python], + [prefix giving the python base directory]), + [#HAVE_PYTHON_=true + PYTHON_PREFIX=$withval + PYTHON_INCL_PATH="-I"${PYTHON_PREFIX}/include/python3.5m + PYTHON_INCL_PATH=${PYTHON_INCL_PATH}" -I"${PYTHON_PREFIX}\ +"/lib/python3.5/site-packages/numpy/core/include" + PYTHON_LIB_PATH=${PYTHON_PREFIX}"/lib" + ] + ) +fi + +AC_ARG_ENABLE( + [python37], + AC_HELP_STRING([--enable-python37], + [enable python use [default=no]]), + [HAVE_PYTHON_=true + HAVE_PY37_=true + HAVE_PY35_=false] +) + +if test x$HAVE_PY37_ == xtrue ; then + AC_ARG_WITH( + python37, + AC_HELP_STRING( + [--with-python37 = location of python], + [prefix giving the python base directory]), + [#HAVE_PYTHON_=true + PYTHON_PREFIX=$withval + PYTHON_INCL_PATH="-I"${PYTHON_PREFIX}/include/python3.7m + PYTHON_INCL_PATH=${PYTHON_INCL_PATH}" -I"${PYTHON_PREFIX}\ +"/lib/python3.7/site-packages/numpy/core/include" + PYTHON_LIB_PATH=${PYTHON_PREFIX}"/lib" + ] + ) +fi + + +AC_ARG_ENABLE( + [python38], + AC_HELP_STRING([--enable-python38], + [enable python use [default=no]]), + [HAVE_PYTHON_=true + HAVE_PY38_=true + HAVE_PY37_=false + HAVE_PY35_=false] +) + +if test x$HAVE_PY38_ == xtrue ; then + AC_ARG_WITH( + python38, + AC_HELP_STRING( + [--with-python38 = location of python], + [prefix giving the python base directory]), + [#HAVE_PYTHON_=true + PYTHON_PREFIX=$withval + PYTHON_INCL_PATH="-I"${PYTHON_PREFIX}/include/python3.8 + PYTHON_INCL_PATH=${PYTHON_INCL_PATH}" -I"${PYTHON_PREFIX}\ +"/lib/python3.8/site-packages/numpy/core/include" + PYTHON_LIB_PATH=${PYTHON_PREFIX}"/lib" + ] + ) +fi + + +AC_ARG_ENABLE( + [python310], + AC_HELP_STRING([--enable-python310], + [enable python use [default=no]]), + [HAVE_PYTHON_=true + HAVE_PY310_=true + HAVE_PY38_=false + HAVE_PY37_=false + HAVE_PY35_=false] +) + +if test x$HAVE_PY310_ == xtrue ; then + AC_ARG_WITH( + python310, + AC_HELP_STRING( + [--with-python310 = location of python], + [prefix giving the python base directory]), + [#HAVE_PYTHON_=true + PYTHON_PREFIX=$withval + PYTHON_INCL_PATH="-I"${PYTHON_PREFIX}/include/python3.10 + PYTHON_INCL_PATH=${PYTHON_INCL_PATH}" -I"${PYTHON_PREFIX}\ +"/lib/python3.10/site-packages/numpy/core/include" + PYTHON_LIB_PATH=${PYTHON_PREFIX}"/lib" + ] + ) +fi + + + +## +##--------------------------------------------------------------------------- + + +## +##-- end PYTHON -- path and options +##--------------------------------------------------------------------------- + + + +##--------------------------------------------------------------------------- +##-- Python -- check header files and library +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_PYTHON_ == xtrue ; then + + #Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${PYTHON_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${PYTHON_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${PYTHON_LIB_PATH}" -Wl,-rpath,"${PYTHON_LIB_PATH} + echo ${PYTHON_INCL_PATH} + echo ${CPPFLAGS} + fi + + #if test x$HAVE_PYTHON_ == xtrue ; then + AC_CHECK_HEADERS( + [Python.h], + [HAVE_PYTHON_=true], + [HAVE_PYTHON_=false + AC_MSG_WARN(Python.h not found!)], + []) + #fi + + + if test x$HAVE_PY310_ == xtrue ; then + + AC_CHECK_LIB(python3.10,[main], [], + [HAVE_PYTHON_=false + AC_MSG_WARN(libpython3.10 not found!)] + ) + fi + + if test x$HAVE_PY38_ == xtrue ; then + + AC_CHECK_LIB(python3.8,[main], [], + [HAVE_PYTHON_=false + AC_MSG_WARN(libpython3.8 not found!)] + ) + fi + + if test x$HAVE_PY37_ == xtrue ; then + + AC_CHECK_LIB(python3.7m,[main], [], + [HAVE_PYTHON_=false + AC_MSG_WARN(libpython3.7m not found!)] + ) + fi + + if test x$HAVE_PY35_ == xtrue ; then + + AC_CHECK_LIB(python3.5m,[main], [], + [HAVE_PYTHON_=false + AC_MSG_WARN(libpython3.5m not found!)] + ) + fi + + # If all checks are OK we add Qt version 4 to the FLAGS. + + if test x$HAVE_PYTHON_ != xtrue ; then + if test x"${PYTHON_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + echo ${CPPFLAGS} + fi + fi + + + if test x$HAVE_PYTHON_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_PYTHON, 1, [Availability of python]) + ##_PYCAFE_EXT IF FLAG SET ELSE USE DEFAULT PYCAFE_API_H + AC_DEFINE_UNQUOTED(HAVE_PYCAFE_EXT, 1, [pycafe extern C]) + echo "PYTHON PATH ====================================>" ${PYTHON_INCL_PATH} + echo "PYTHON LIB ====================================>" ${PYTHON_LIB_PATH} + fi +fi + +AC_LANG_POP +## +##-- end Python 3.7(3.8 -- check header files and library +##----------------------------- + + + + + +##--------------------------------------------------------------------------- +##-- Qt4/5 -- path and options +## +QT_PREFIX="" +QT_INCL_PATH="" +QT_LIB_PATH="" + + +AC_ARG_ENABLE( + [qt4], + AC_HELP_STRING([--enable-qt4], + [enable Qt version 4 use [default=no]]), + [HAVE_QT_=true + HAVE_QT_4_=true] +) + + +#Only if enable flag is set +if test x$HAVE_QT_4_ == xtrue ; then + AC_ARG_WITH( + qt4, + AC_HELP_STRING([--with-qt4=PREFIX], + [prefix, parent directory where the Qt version 4 library is installed]), + [#HAVE_QT_=true + QT_PREFIX=$withval + QT_INCL_BASE=" -I"${QT_PREFIX}"/include" + QT_INCL_PATH=${QT_INCL_BASE} + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtCore" + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtXml" + QT_LIB_PATH=${QT_PREFIX}"/lib " + ] + ) +fi + +AC_ARG_ENABLE( + [qt5], + AC_HELP_STRING([--enable-qt5], + [enable Qt version 5 use [default=no]]), + [HAVE_QT_=true + HAVE_QT_5_=true + HAVE_QT_4_=false] +) + + + +#Only if enable flag is set +if test x$HAVE_QT_5_ == xtrue ; then + AC_ARG_WITH( + qt5, + AC_HELP_STRING([--with-qt5=PREFIX], + [prefix, parent directory where the Qt version 5 library is installed]), + [#HAVE_QT_=true + QT_PREFIX=$withval + QT_INCL_BASE=" -I"${QT_PREFIX}"/include/qt" + QT_INCL_PATH=${QT_INCL_BASE} + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtCore" + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtXml" + QT_LIB_PATH=${QT_PREFIX}"/lib " + ] + ) +fi + + +AC_ARG_ENABLE( + [qt5py38], + AC_HELP_STRING([--enable-qt5py38], + [enable Qt version 5 use [default=no]]), + [HAVE_QT_=true + HAVE_QT_5py38_=true + HAVE_QT_5_=false + HAVE_QT_4_=false] +) + + +#Only if enable flag is set +if test x$HAVE_QT_5py38_ == xtrue ; then + AC_ARG_WITH( + qt5py38, + AC_HELP_STRING([--with-qt5py38=PREFIX], + [prefix, parent directory where the Qt version 5 library is installed]), + [#HAVE_QT_=true + QT_PREFIX=$withval + QT_INCL_BASE=" -I"${QT_PREFIX}"/include/qt" + QT_INCL_PATH=${QT_INCL_BASE} + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtCore" + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtXml" + QT_LIB_PATH=${QT_PREFIX}"/lib " + ] + ) +fi + + + +AC_ARG_ENABLE( + [qt5py310], + AC_HELP_STRING([--enable-qt5py310], + [enable Qt version 5 use [default=no]]), + [HAVE_QT_=true + HAVE_QT_5py310_=true + HAVE_QT_5py38_=false + HAVE_QT_5_=false + HAVE_QT_4_=false] +) + + +#Only if enable flag is set +if test x$HAVE_QT_5py310_ == xtrue ; then + AC_ARG_WITH( + qt5py310, + AC_HELP_STRING([--with-qt5py310=PREFIX], + [prefix, parent directory where the Qt version 5 library is installed]), + [#HAVE_QT_=true + QT_PREFIX=$withval + QT_INCL_BASE=" -I"${QT_PREFIX}"/include/qt" + QT_INCL_PATH=${QT_INCL_BASE} + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtCore" + QT_INCL_PATH=${QT_INCL_PATH}" "${QT_INCL_BASE}"/QtXml" + QT_LIB_PATH=${QT_PREFIX}"/lib " + ] + ) +fi + + +## +##--------------------------------------------------------------------------- + +##--------------------------------------------------------------------------- +##-- Qt version 5 -- check header files and libs +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_QT_ == xtrue ; then + + # Change flags: if all tests are successfull, accept this changes; if + # the tests are not successfull, use the old flags. + if test x"${QT_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${QT_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${QT_LIB_PATH}" -Wl,-rpath,"${QT_LIB_PATH} + fi + + + #if test x$HAVE_QT_ == xtrue ; then + AC_CHECK_HEADERS( + [qxml.h], + [HAVE_QT_=true], + [HAVE_QT_=false + AC_MSG_WARN(qxml.h not found!)], + []) + #fi + + + if test x$HAVE_QT_4_ == xtrue ; then + AC_CHECK_LIB(QtCore,[main], + [], + [HAVE_QT_=false + AC_MSG_WARN(libQtCore not found!)]) + fi + + if test x$HAVE_QT_4_ == xtrue ; then + AC_CHECK_LIB(QtXml,[main], + [], + [HAVE_QT_=false + AC_MSG_WARN(libQtXml not found!)]) + fi + + if test x$HAVE_QT_5_ == xtrue ; then + AC_CHECK_LIB(Qt5Core,[write], + [], + [HAVE_QT_=true #force true if there but not found + AC_MSG_WARN(libQt5Core not checked for!)]) + fi + + if test x$HAVE_QT_5_ == xtrue ; then + AC_CHECK_LIB(Qt5Xml,[qt_version_tag], + [], + [HAVE_QT_=true + AC_MSG_WARN(libQt5Xml not checked for!)]) + fi + + + + + # If all checks are OK we add Qt version 5 to the FLAGS. + if test x$HAVE_QT_ != xtrue ; then + if test x"${QT_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + fi + fi + + if test x$HAVE_QT_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_QT, 1,[Availability of Qt version 5 confirmed]) + AC_DEFINE_UNQUOTED(HAVE_LIBQTXML, 1, [Availability of Qt version 5 confirmed]) + AC_DEFINE(QT_NO_VERSION_TAGGING, 1,[Availability of Qt version 5 confirmed]) + echo "QT PATH ====================================>" ${QT_INCL_PATH} + echo "QT LIB ====================================>" ${QT_LIB_PATH} + fi + +fi + +AC_LANG_POP +## +##-- end QT5 -- check header files and libs + + +##--------------------------------------------------------------------------- +##--------------------------------------------------------------------------- +##-- JSON -- path and options - +##-- JSON header files required +## + +JSON_PREFIX="" +JSON_INCL_PATH="" +JSON_LIB_PATH="" +JSON_OPTION="" + +AC_ARG_ENABLE( + [json], + AC_HELP_STRING([--enable-json-inc], + [enable json use [default=no]]), + [HAVE_JSON_=true] +) + + +if test x$HAVE_JSON_ == xtrue ; then + AC_ARG_WITH( + json, + AC_HELP_STRING( + [--with-json= location of json], + [prefix giving the json base directory]), + [HAVE_JSON_=true + JSON_PREFIX=$withval + JSON_INCL_PATH="-I"${JSON_PREFIX}"/include" + JSON_LIB_PATH=${JSON_PREFIX}"/libs/linux-gcc-6.3.0" + ] +) +fi +## +##-- end JSON -- path and options +##--------------------------------------------------------- + + + + +##--------------------------------------------------------------------------- +##-- JSON -- check header files only +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_JSON_ == xtrue ; then + + # Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${JSON_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${JSON_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${JSON_LIB_PATH}" -Wl,-rpath,"${JSON_LIB_PATH} + echo ${JSON_INCL_PATH} + echo ${CPPFLAGS} + fi + + #if test x$HAVE_JSON_ == xtrue ; then + AC_CHECK_HEADERS( + [json/json.h], + [HAVE_JSON_=true], + [HAVE_JSON_=false + AC_MSG_WARN(json.h not found!)], + []) + #fi + + + if test x$HAVE_JSON_ == xtrue ; then + AC_CHECK_LIB(json_linux-gcc-6.3.0_libmt,[main], + [], + [HAVE_JSON=false + AC_MSG_WARN(libjson_linux-gcc-6.3.0_libmt not found!)]) + fi + + + # If all checks are OK we add json to the FLAGS. + if test x$HAVE_JSON_ != xtrue ; then + if test x"${JSON_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + echo ${CPPFLAGS} + fi + fi + + + if test x$HAVE_JSON_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_JSON, 1, [Availability of json]) + echo "JSON PATH ====================================>" ${JSON_INCL_PATH} + echo "JSON LIB ====================================>" ${JSON_LIB_PATH} + fi +fi + +AC_LANG_POP +## +##-- end JSON-- check header files only +##----------------------------- + +##--------------------------------------------------------------------------- +##--------------------------------------------------------------------------- +##-- Zeromq -- path and options - +##-- Zeromq header files required +## + +ZEROMQ_PREFIX="" +ZEROMQ_INCL_PATH="" +ZEROMQ_LIB_PATH="" +ZEROMQ_OPTION="" + +AC_ARG_ENABLE( + [zeromq], + AC_HELP_STRING([--enable-zeromq], + [enable zeromq use [default=no]]), + [HAVE_ZEROMQ_=true] +) + +if test x$HAVE_ZEROMQ_ == xtrue ; then + AC_ARG_WITH( + zeromq, + AC_HELP_STRING( + [--with-zeromq = location of zeromq], + [prefix giving the zeromq base directory]), + [HAVE_ZEROMQ_=true + ZEROMQ_PREFIX=$withval + ZEROMQ_INCL_PATH="-I"${ZEROMQ_PREFIX}"/include" + ZEROMQ_LIB_PATH=${ZEROMQ_PREFIX}"/lib" + ] + ) +fi + +## +##-- end ZEROMQ -- path and options +##--------------------------------------------------------- + + +##--------------------------------------------------------------------------- +##-- ZEROMQ -- check header files and library +# +AC_LANG_PUSH([C++]) + +if test x"$HAVE_ZEROMQ_" == xtrue ; then + + # Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${ZEROMQ_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${ZEROMQ_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${ZEROMQ_LIB_PATH}" -Wl,-rpath,"${ZEROMQ_LIB_PATH} + echo ${ZEROMQ_INCL_PATH} + echo ${CPPFLAGS} + fi + + #if test x$HAVE_ZEROMQ_ == xtrue ; then + AC_CHECK_HEADERS( + [zmq.h], + [HAVE_ZEROMQ_=true], + [HAVE_ZEROMQ_=false + AC_MSG_WARN(zmq.h not found!)], + []) + #fi + + if test x$HAVE_ZEROMQ_ == xtrue ; then + AC_CHECK_LIB(zmq,[main], + [], + [HAVE_ZEROMQ_=false + AC_MSG_WARN(libzmq not found!)]) + fi + + + # If all checks are OK we add Zeromq to the FLAGS. + + if test x$HAVE_ZEROMQ_ != xtrue ; then + if test x"${ZEROMQ_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + echo ${CPPFLAGS} + fi + fi + + + if test x$HAVE_ZEROMQ_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_ZEROMQ, 1, [Availability of zeromq]) + echo "ZMQ PATH ====================================>" ${ZEROMQ_INCL_PATH} + echo "ZMQ LIB ====================================>" ${ZEROMQ_LIB_PATH} + fi +fi + +AC_LANG_POP +## +##-- end ZEROMQ-- check header files and lib +##----------------------------- + + +##--------------------------------------------------------------------------- +##--------------------------------------------------------------------------- +##-- CURL -- path and options - +##-- CURL header files required +## + +CURL_PREFIX="" +CURL_INCL_PATH="" +CURL_LIB_PATH="" +CURL_OPTION="" + +AC_ARG_ENABLE( + [curl], + AC_HELP_STRING([--enable-curl], + [enable curl use [default=no]]), + [HAVE_CURL_=true] +) + +if test x$HAVE_CURL_ == xtrue ; then + AC_ARG_WITH( + curl, + AC_HELP_STRING( + [--with-curl = location of curl], + [prefix giving the curl base directory]), + [HAVE_CURL_=true + CURL_PREFIX=$withval + CURL_INCL_PATH="-I"${CURL_PREFIX}"/include" + CURL_LIB_PATH=${CURL_PREFIX}"/lib/.libs" + ] + ) +fi + +## +##-- end CURL -- path and options +##--------------------------------------------------------- + + +##--------------------------------------------------------------------------- +##-- CURL -- check header files only +## +AC_LANG_PUSH([C++]) + +if test x$HAVE_CURL_ == xtrue ; then + + # Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${CURL_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${CURL_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${CURL_LIB_PATH}" -Wl,-rpath,"${CURL_LIB_PATH} + echo ${CURL_INCL_PATH} + echo ${CPPFLAGS} + fi + + #if test x$HAVE_CURL_ == xtrue ; then + AC_CHECK_HEADERS( + [curl/curl.h], + [HAVE_CURL_=true], + [HAVE_CURL_=false + AC_MSG_WARN(curl/curl.h not found!)], + []) + #fi + + if test x$HAVE_CURL_ == xtrue ; then + AC_CHECK_LIB(curl,[main], + [], + [HAVE_CURL=false + AC_MSG_WARN(libcurl not found!)]) + fi + + + # If all checks are OK we add curl to the FLAGS. + + if test x$HAVE_CURL_ != xtrue ; then + if test x"${CURL_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + echo ${CPPFLAGS} + fi + fi + + + if test x$HAVE_CURL_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [Availability of curl]) + echo "CURL PATH ====================================>" ${CURL_INCL_PATH} + echo "CURL LIB ====================================>" ${CURL_LIB_PATH} + fi +fi + +AC_LANG_POP +## +##-- end CURL-- check header files only +##----------------------------- + + + +##--------------------------------------------------------------------------- +##--------------------------------------------------------------------------- +##-- LZ4 -- path and options - +##-- LZ4 header files required +## + +LZ4_PREFIX="" +LZ4_INCL_PATH="" +LZ4_LIB_PATH="" +LZ4_OPTION="" + +AC_ARG_ENABLE( + [lz4], + AC_HELP_STRING([--enable-lz4], + [enable LZ4 use [default=no]]), + [HAVE_LZ4_=true] +) + +if test x$HAVE_LZ4_ == xtrue ; then + AC_ARG_WITH( + lz4, + AC_HELP_STRING( + [--with-lz4 = location of lz4], + [prefix giving the lz4 base directory]), + [#HAVE_LZ4_=true + LZ4_PREFIX=$withval + LZ4_INCL_PATH="-I"${LZ4_PREFIX} + LZ4_LIB_PATH=${LZ4_PREFIX} + ] +) +fi + +## +##-- end LZ4 -- path and options +##--------------------------------------------------------- + + +##--------------------------------------------------------------------------- +##-- LZ4 -- check header files and library +## + +AC_LANG_PUSH([C++]) + +if test x$HAVE_LZ4_ == xtrue ; then + + # Change flags: if all tests are successful, accept these additions, + # else use the old flags. + if test x"${LZ4_PREFIX}" != x"" ; then + TEMP_CPPFLAGS=${CPPFLAGS} + CPPFLAGS=${CPPFLAGS}" "${LZ4_INCL_PATH} + TEMP_LDFLAGS=${LDFLAGS} + LDFLAGS=${LDFLAGS}" -L"${LZ4_LIB_PATH}" -Wl,-rpath,"${LZ4_LIB_PATH} + echo ${LZ4_INCL_PATH} + echo ${CPPFLAGS} + fi + + #if test x$HAVE_LZ4_ == xtrue ; then + AC_CHECK_HEADERS( + [lz4.h], + [HAVE_LZ4_=true], + [HAVE_LZ4_=false + AC_MSG_WARN(lz4.h not found!)], + []) + #fi + + if test x$HAVE_LZ4_ == xtrue ; then + AC_CHECK_LIB(lz4,[main], + [], + [HAVE_LZ4=false + AC_MSG_WARN(liblz4 not found!)]) + fi + + + # If all checks are OK we add LZ4 to the FLAGS. + + if test x$HAVE_LZ4_ != xtrue ; then + if test x"${LZ4_PREFIX}" != x"" ; then + CPPFLAGS=${TEMP_CPPFLAGS} + LDFLAGS=${TEMP_LDFLAGS} + echo ${CPPFLAGS} + fi + fi + + if test x$HAVE_LZ4_ == xtrue ; then + AC_DEFINE_UNQUOTED(HAVE_LZ4, 1, [Availability of LZ4]) + echo "LZ4 PATH ====================================>" ${LZ4_INCL_PATH} + echo "LZ4 LIB ====================================>" ${LZ4_LIB_PATH} + fi +fi + +AC_LANG_POP +## +##-- end LZ4-- check header files only +##----------------------------- + +CPPFLAGS=$CPPFLAGS +echo "REPORTING -> current CPPFLAGS = "$CPPFLAGS +LDFLAGS=$LDFLAGS +echo "REPORTING -> current LDFLAGS = "$LDFLAGS + +## +##-- end Check +##-- + +# Generate makefiles + +AC_SUBST(AM_CPPFLAGS, $CPPFLAGS) +AC_SUBST(AM_LDFLAGS, $LDFLAGS) + +#echo "HAVE_PYTHON_="$HAVE_PYTHON_ +#echo "HAVE_ZEROMQ_="$HAVE_ZEROMQ_ + +AM_CONDITIONAL(HAVE_PYTHON_, test x$HAVE_PYTHON_ == xtrue) +AM_CONDITIONAL(HAVE_PYCAFE_EXT_, test x$HAVE_PYTHON_ == xtrue) +AM_CONDITIONAL(HAVE_ZEROMQ_, test x$HAVE_ZEROMQ_ == xtrue) + +AC_CONFIG_FILES([makefile + src/makefile + include/makefile]) + +AC_OUTPUT diff --git a/examples/cafeTest/#makfile7# b/examples/cafeTest/#makfile7# new file mode 100644 index 0000000..b28b04f --- /dev/null +++ b/examples/cafeTest/#makfile7# @@ -0,0 +1,3 @@ + + + diff --git a/examples/cafeTest/cafeTest b/examples/cafeTest/cafeTest new file mode 100755 index 0000000..22d7c9b Binary files /dev/null and b/examples/cafeTest/cafeTest differ diff --git a/examples/cafeTest/cafeTest-- b/examples/cafeTest/cafeTest-- new file mode 100755 index 0000000..68c92a9 Binary files /dev/null and b/examples/cafeTest/cafeTest-- differ diff --git a/include/cafe.h b/include/cafe.h index 9230c90..3ec0efb 100644 --- a/include/cafe.h +++ b/include/cafe.h @@ -7,12 +7,13 @@ #ifndef CAFE_H #define CAFE_H + #include #include #include #include #include -#include + #if HAVE_PYTHON_H #include #endif diff --git a/include/cafeCache.h b/include/cafeCache.h index 0033e16..68bfe67 100644 --- a/include/cafeCache.h +++ b/include/cafeCache.h @@ -182,6 +182,10 @@ int getCache(const unsigned int handle, dbr_long_t * _val, dbr_short_t &alarm return cafeLatte.getCache(handle, DBR_TIME_LONG, _val, alarmStatus, alarmSeverity, ts); }; //4 +int getCacheCharArray(const unsigned int handle, dbr_char_t * _val) +{ + return cafeCappuccino.getCache(handle, DBR_CHAR, _val); +}; int getCache(const unsigned int handle, dbr_char_t * _val) { return cafeCappuccino.getCache(handle, DBR_CHAR, _val); diff --git a/include/global.h b/include/global.h index 582a127..ed885df 100644 --- a/include/global.h +++ b/include/global.h @@ -9,7 +9,7 @@ #ifndef GLOBAL_H #define GLOBAL_H - +#include #include #include #include diff --git a/include/instant.h b/include/instant.h index 0bf59fe..3c5c5cc 100644 --- a/include/instant.h +++ b/include/instant.h @@ -456,13 +456,8 @@ public: }; - - //include - - - /** * \brief Set values of data type CTYPE * \param _handle input: handle to CAFEConduit object @@ -819,8 +814,6 @@ template int Instant::getCache(const unsigned int _handle }; //unlock } - - //ifNeverConnected - return error if ( (*it_handle).getChannelRegalia().getCafeConnectionState() == ICAFE_CS_NEVER_CONN) { diff --git a/include/makefile b/include/makefile index 345af33..99ecdf2 100644 --- a/include/makefile +++ b/include/makefile @@ -1,8 +1,9 @@ -# makefile.in generated by automake 1.13.4 from makefile.am. +# makefile.in generated by automake 1.11.1 from makefile.am. # include/makefile. Generated from makefile.in by configure. -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,51 +16,6 @@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/cafe pkgincludedir = $(includedir)/cafe pkglibdir = $(libdir)/cafe @@ -89,8 +45,8 @@ host_triplet = x86_64-unknown-linux-gnu am__append_2 = PyCafe.h #am__append_3 = PyCafe_api.h subdir = include -DIST_COMMON = $(srcdir)/makefile.in $(srcdir)/makefile.am \ - $(am__include_HEADERS_DIST) +DIST_COMMON = $(am__include_HEADERS_DIST) $(srcdir)/makefile.am \ + $(srcdir)/makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ @@ -102,25 +58,8 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/./include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_$(V)) -am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -am__v_at_1 = SOURCES = DIST_SOURCES = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac am__include_HEADERS_DIST = config.h cafe.h cafeCache.h cafeConvert.h \ cafeDataType.h cafeDataTypeHelper.h cafeEnum.h \ cafeEnumStrings.h cafeRoast.h cafeVectors.h cafeXML.h \ @@ -158,50 +97,26 @@ am__nobase_list = $(am__nobase_strip_setup); \ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } am__installdirs = "$(DESTDIR)$(includedir)" HEADERS = $(include_HEADERS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing aclocal-1.13 -AMTAR = $${TAR-tar} -AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -AM_DEFAULT_VERBOSITY = 1 -AM_LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run aclocal-1.11 +AMTAR = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run tar +AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml +AM_LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib AR = ar -AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoconf -AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoheader -AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing automake-1.13 +AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoconf +AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoheader +AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run automake-1.11 AWK = gawk CAFE_CPPFLAGS = -I$(top_srcdir)/include CC = /opt/psi/Programming/gcc/7.3.0/bin/gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = /opt/psi/Programming/gcc/7.3.0/bin/gcc -E -CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml +CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml CXX = /opt/psi/Programming/gcc/7.3.0/bin/g++ CXXCPP = /opt/psi/Programming/gcc/7.3.0/bin/g++ -E CXXDEPMODE = depmode=gcc3 @@ -215,17 +130,17 @@ DUMPBIN = ECHO_C = ECHO_N = -n ECHO_T = -EGREP = /usr/bin/grep -E +EGREP = /bin/grep -E EXEEXT = -FGREP = /usr/bin/grep -F -GREP = /usr/bin/grep +FGREP = /bin/grep -F +GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s LD = /usr/bin/ld -m elf_x86_64 -LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib LIBOBJS = LIBS = -lQtXml -lQtCore -lpython3.5m LIBTOOL = $(SHELL) $(top_builddir)/libtool @@ -233,9 +148,9 @@ LIPO = LN_S = ln -s LTLIBOBJS = LT_SYS_LIBRARY_PATH = -MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing makeinfo +MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run makeinfo MANIFEST_TOOL = : -MKDIR_P = /usr/bin/mkdir -p +MKDIR_P = /bin/mkdir -p NM = /usr/bin/nm -B NMEDIT = OBJDUMP = objdump @@ -245,17 +160,16 @@ OTOOL64 = PACKAGE = cafe PACKAGE_BUGREPORT = Bug reports to: jan.chrin@psi.ch PACKAGE_NAME = CAFE -PACKAGE_STRING = CAFE 1.15.0 +PACKAGE_STRING = CAFE 1.15.1 PACKAGE_TARNAME = cafe -PACKAGE_URL = -PACKAGE_VERSION = 1.15.0 +PACKAGE_VERSION = 1.15.1 PATH_SEPARATOR = : RANLIB = ranlib -SED = /usr/bin/sed +SED = /bin/sed SET_MAKE = SHELL = /bin/sh STRIP = strip -VERSION = 1.15.0 +VERSION = 1.15.1 abs_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/include abs_srcdir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/include abs_top_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp @@ -267,8 +181,8 @@ ac_ct_DUMPBIN = am__include = include am__leading_dot = . am__quote = -am__tar = $${TAR-tar} chof - "$$tardir" -am__untar = $${TAR-tar} xf - +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - bindir = ${exec_prefix}/bin build = x86_64-unknown-linux-gnu build_alias = @@ -290,15 +204,15 @@ htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/install-sh -libdir = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0/lib/RHEL7-x86_64 +libdir = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0/lib/SL6-x86_64 libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man -mkdir_p = $(MKDIR_P) +mkdir_p = /bin/mkdir -p oldincludedir = /usr/include pdfdir = ${docdir} -prefix = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0 +prefix = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0 program_transform_name = s,x,x, psdir = ${docdir} sbindir = ${exec_prefix}/sbin @@ -363,11 +277,8 @@ clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ - fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -381,17 +292,30 @@ uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ - $(am__define_uniq_tagged_files); \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -403,11 +327,15 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $$unique; \ fi; \ fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -416,21 +344,6 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -482,15 +395,10 @@ install-am: all-am installcheck: installcheck-am install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: @@ -570,19 +478,18 @@ uninstall-am: uninstall-includeHEADERS .MAKE: install-am install-strip -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libtool ctags distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-am uninstall uninstall-am \ - uninstall-includeHEADERS + ps ps-am tags uninstall uninstall-am uninstall-includeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/libtool b/libtool index b24eff2..4389ba1 100755 --- a/libtool +++ b/libtool @@ -1,6 +1,6 @@ #! /bin/sh -# Generated automatically by config.status (cafe) 1.15.0 -# Libtool was configured on host sf-lc7a.psi.ch: +# Generated automatically by config.status (cafe) 1.15.1 +# Libtool was configured on host gfa-lc6-64: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. @@ -76,19 +76,19 @@ build=x86_64-unknown-linux-gnu build_os=linux-gnu # A sed program that does not truncate output. -SED="/usr/bin/sed" +SED="/bin/sed" # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # A grep program that handles long lines. -GREP="/usr/bin/grep" +GREP="/bin/grep" # An ERE matcher. -EGREP="/usr/bin/grep -E" +EGREP="/bin/grep -E" # A literal string matcher. -FGREP="/usr/bin/grep -F" +FGREP="/bin/grep -F" # A BSD- or MS-compatible name lister. NM="/usr/bin/nm -B" @@ -97,7 +97,7 @@ NM="/usr/bin/nm -B" LN_S="ln -s" # What is the maximum length of a command? -max_cmd_len=1572864 +max_cmd_len=1966080 # Object file suffix (normally "o"). objext=o @@ -192,7 +192,7 @@ nm_file_list_spec="@" lt_sysroot= # Command to truncate a binary pipe. -lt_truncate_bin="/usr/bin/dd bs=4096 count=1" +lt_truncate_bin="/bin/dd bs=4096 count=1" # The name of the directory that contains temporary libtool files. objdir=.libs @@ -285,7 +285,7 @@ hardcode_into_libs=yes sys_lib_search_path_spec="/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/lib/gcc/x86_64-pc-linux-gnu/7.3.0 /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/lib/gcc /opt/psi/Programming/gcc/7.3.0/lib64 /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/lib64 /lib64 /usr/lib64 /opt/psi/Programming/gcc/7.3.0/lib /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/lib /lib /usr/lib " # Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64/atlas /usr/lib64//bind9-export/ /usr/lib64/dyninst /usr/lib64/mysql /usr/lib/oracle/12.2/client64/lib /usr/lib64/tcl8.5/tclx8.4 " +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib64/atlas /usr/lib64/ctapi /prod/sls/lib /prod /usr/lib64/llvm /usr/lib64/mysql /usr/lib/oracle/12.1/client64/lib /usr/lib64/papi-4.1.3 /usr/lib64/papi-5.1.1/usr/lib /usr/lib/qt-3.3/lib /usr/lib64/qt-3.3/lib /usr/lib64/tcl8.5/tclx8.4 /usr/lib64/tcl8.5 /usr/lib/vmware-tools/lib/libvmGuestLib.so /usr/lib/vmware-tools/lib/libvmGuestLibJava.so /usr/lib/vmware-tools/lib/libDeployPkg.so /usr/lib64/xulrunner " # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path="" @@ -11819,8 +11819,8 @@ compiler_lib_search_dirs="/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/ # Dependencies to place before and after the objects being linked to # create a shared library. -predep_objects="/lib/../lib64/crti.o /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o" -postdep_objects="/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /lib/../lib64/crtn.o" +predep_objects="/usr/lib/../lib64/crti.o /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o" +postdep_objects="/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/7.3.0/bin/../lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/../lib64/crtn.o" predeps="" postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" diff --git a/makefile b/makefile index 755983f..6d74ccd 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,9 @@ -# makefile.in generated by automake 1.13.4 from makefile.am. +# makefile.in generated by automake 1.11.1 from makefile.am. # makefile. Generated from makefile.in by configure. -# Copyright (C) 1994-2013 Free Software Foundation, Inc. - +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,51 +16,6 @@ -am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/cafe pkgincludedir = $(includedir)/cafe pkglibdir = $(libdir)/cafe @@ -79,16 +35,14 @@ POST_UNINSTALL = : build_triplet = x86_64-unknown-linux-gnu host_triplet = x86_64-unknown-linux-gnu subdir = . -DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ - $(srcdir)/makefile.in $(srcdir)/makefile.am \ - $(top_srcdir)/configure $(am__configure_deps) \ - $(top_srcdir)/./include/config.in $(include_HEADERS) \ - .//AUTHORS COPYING .//COPYING .//ChangeLog .//INSTALL .//NEWS \ - .//README config.guess .//config.guess config.sub \ - .//config.sub install-sh .//install-sh missing .//missing \ - ltmain.sh .//ltmain.sh $(top_srcdir)/./config.guess \ - $(top_srcdir)/./config.sub $(top_srcdir)/./install-sh \ - $(top_srcdir)/./ltmain.sh $(top_srcdir)/./missing +DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \ + $(srcdir)/makefile.am $(srcdir)/makefile.in \ + $(top_srcdir)/./include/config.in $(top_srcdir)/configure \ + .//AUTHORS .//COPYING .//ChangeLog .//INSTALL .//NEWS \ + .//README .//config.guess .//config.sub .//depcomp \ + .//install-sh .//ltmain.sh .//missing AUTHORS COPYING \ + ChangeLog INSTALL NEWS config.guess config.sub depcomp \ + install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ @@ -102,33 +56,15 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/./include/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -AM_V_P = $(am__v_P_$(V)) -am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ - ctags-recursive dvi-recursive html-recursive info-recursive \ - install-data-recursive install-dvi-recursive \ - install-exec-recursive install-html-recursive \ - install-info-recursive install-pdf-recursive \ - install-ps-recursive install-recursive installcheck-recursive \ - installdirs-recursive pdf-recursive ps-recursive \ - tags-recursive uninstall-recursive -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -150,53 +86,23 @@ am__nobase_list = $(am__nobase_strip_setup); \ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } am__installdirs = "$(DESTDIR)$(includedir)" HEADERS = $(include_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -am__recursive_targets = \ - $(RECURSIVE_TARGETS) \ - $(RECURSIVE_CLEAN_TARGETS) \ - $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope distdir dist dist-all distcheck -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags -CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ - || { sleep 5 && rm -rf "$(distdir)"; }; \ - else :; fi -am__post_remove_distdir = $(am__remove_distdir) + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ @@ -224,27 +130,23 @@ am__relativize = \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best -DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print -ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing aclocal-1.13 -AMTAR = $${TAR-tar} -AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -I$(top_srcdir)/include -AM_DEFAULT_VERBOSITY = 1 -AM_LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib @CAFE_LIBS@ +ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run aclocal-1.11 +AMTAR = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run tar +AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -I$(top_srcdir)/include +AM_LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib @CAFE_LIBS@ AR = ar -AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoconf -AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoheader -AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing automake-1.13 +AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoconf +AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoheader +AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run automake-1.11 AWK = gawk CAFE_CPPFLAGS = -I$(top_srcdir)/include CC = /opt/psi/Programming/gcc/7.3.0/bin/gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = /opt/psi/Programming/gcc/7.3.0/bin/gcc -E -CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml +CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml CXX = /opt/psi/Programming/gcc/7.3.0/bin/g++ CXXCPP = /opt/psi/Programming/gcc/7.3.0/bin/g++ -E CXXDEPMODE = depmode=gcc3 @@ -258,17 +160,17 @@ DUMPBIN = ECHO_C = ECHO_N = -n ECHO_T = -EGREP = /usr/bin/grep -E +EGREP = /bin/grep -E EXEEXT = -FGREP = /usr/bin/grep -F -GREP = /usr/bin/grep +FGREP = /bin/grep -F +GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s LD = /usr/bin/ld -m elf_x86_64 -LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib LIBOBJS = LIBS = -lQtXml -lQtCore -lpython3.5m LIBTOOL = $(SHELL) $(top_builddir)/libtool @@ -276,9 +178,9 @@ LIPO = LN_S = ln -s LTLIBOBJS = LT_SYS_LIBRARY_PATH = -MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing makeinfo +MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run makeinfo MANIFEST_TOOL = : -MKDIR_P = /usr/bin/mkdir -p +MKDIR_P = /bin/mkdir -p NM = /usr/bin/nm -B NMEDIT = OBJDUMP = objdump @@ -288,17 +190,16 @@ OTOOL64 = PACKAGE = cafe PACKAGE_BUGREPORT = Bug reports to: jan.chrin@psi.ch PACKAGE_NAME = CAFE -PACKAGE_STRING = CAFE 1.15.0 +PACKAGE_STRING = CAFE 1.15.1 PACKAGE_TARNAME = cafe -PACKAGE_URL = -PACKAGE_VERSION = 1.15.0 +PACKAGE_VERSION = 1.15.1 PATH_SEPARATOR = : RANLIB = ranlib -SED = /usr/bin/sed +SED = /bin/sed SET_MAKE = SHELL = /bin/sh STRIP = strip -VERSION = 1.15.0 +VERSION = 1.15.1 abs_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp abs_srcdir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp abs_top_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp @@ -310,8 +211,8 @@ ac_ct_DUMPBIN = am__include = include am__leading_dot = . am__quote = -am__tar = $${TAR-tar} chof - "$$tardir" -am__untar = $${TAR-tar} xf - +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - bindir = ${exec_prefix}/bin build = x86_64-unknown-linux-gnu build_alias = @@ -333,15 +234,15 @@ htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/install-sh -libdir = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0/lib/RHEL7-x86_64 +libdir = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0/lib/SL6-x86_64 libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man -mkdir_p = $(MKDIR_P) +mkdir_p = /bin/mkdir -p oldincludedir = /usr/include pdfdir = ${docdir} -prefix = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0 +prefix = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0 program_transform_name = s,x,x, psdir = ${docdir} sbindir = ${exec_prefix}/sbin @@ -358,7 +259,7 @@ ACLOCAL_AMFLAGS = -I m4 all: all-recursive .SUFFIXES: -am--refresh: makefile +am--refresh: @: $(srcdir)/makefile.in: $(srcdir)/makefile.am $(am__configure_deps) @for dep in $?; do \ @@ -394,8 +295,10 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__aclocal_m4_deps): ./include/config.h: ./include/stamp-h1 - @if test ! -f $@; then rm -f ./include/stamp-h1; else :; fi - @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) ./include/stamp-h1; else :; fi + @if test ! -f $@; then \ + rm -f ./include/stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) ./include/stamp-h1; \ + else :; fi ./include/stamp-h1: $(top_srcdir)/./include/config.in $(top_builddir)/config.status @rm -f ./include/stamp-h1 @@ -418,11 +321,8 @@ distclean-libtool: -rm -f libtool config.lt install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ - fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -436,28 +336,27 @@ uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd -# into them and run 'make' without going through this Makefile. -# To change the values of 'make' variables: instead of editing Makefiles, -# (1) if the variable is set in 'config.status', edit 'config.status' -# (which will cause the Makefiles to be regenerated when you run 'make'); -# (2) otherwise, pass the desired values on the 'make' command line. -$(am__recursive_targets): - @fail=; \ - if $(am__make_keepgoing); then \ - failcom='fail=yes'; \ - else \ - failcom='exit 1'; \ - fi; \ +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - for subdir in $$list; do \ + list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -472,12 +371,57 @@ $(am__recursive_targets): $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-recursive -TAGS: tags +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ @@ -493,7 +437,12 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - $(am__define_uniq_tagged_files); \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -505,11 +454,15 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $$unique; \ fi; \ fi -ctags: ctags-recursive - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -518,31 +471,9 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist -cscopelist: cscopelist-recursive - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) @@ -578,10 +509,13 @@ distdir: $(DISTFILES) done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ - $(am__make_dryrun) \ - || test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ @@ -610,36 +544,36 @@ distdir: $(DISTFILES) || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__post_remove_distdir) + $(am__remove_distdir) dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__post_remove_distdir) + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__post_remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__post_remove_distdir) + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) + $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__post_remove_distdir) + $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) - $(am__post_remove_distdir) + $(am__remove_distdir) -dist dist-all: - $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' - $(am__post_remove_distdir) +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another @@ -650,8 +584,8 @@ distcheck: dist GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lz*) \ - lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ @@ -661,9 +595,9 @@ distcheck: dist *.zip*) \ unzip $(distdir).zip ;;\ esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_inst + chmod -R a-w $(distdir); chmod u+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ @@ -671,7 +605,6 @@ distcheck: dist && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ @@ -695,21 +628,13 @@ distcheck: dist && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 - $(am__post_remove_distdir) + $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @test -n '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: trying to run $@ with an empty' \ - '$$(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - $(am__cd) '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ @@ -743,15 +668,10 @@ install-am: all-am installcheck: installcheck-recursive install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: @@ -833,24 +753,25 @@ ps-am: uninstall-am: uninstall-includeHEADERS -.MAKE: $(am__recursive_targets) install-am install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-cscope clean-generic \ - clean-libtool cscope cscopelist-am ctags ctags-am dist \ - dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ - dist-xz dist-zip distcheck distclean distclean-generic \ - distclean-hdr distclean-libtool distclean-tags distcleancheck \ - distdir distuninstallcheck dvi dvi-am html html-am info \ - info-am install install-am install-data install-data-am \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-includeHEADERS \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-includeHEADERS +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-generic distclean-hdr \ + distclean-libtool distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-includeHEADERS install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am uninstall-includeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/src/#makefile# b/src/#makefile# new file mode 100644 index 0000000..47a54b1 --- /dev/null +++ b/src/#makefile# @@ -0,0 +1,778 @@ +# makefile.in generated by automake 1.13.4 from makefile.am. +# src/makefile. Generated from makefile.in by configure. + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/cafe +pkgincludedir = $(includedir)/cafe +pkglibdir = $(libdir)/cafe +pkglibexecdir = $(libexecdir)/cafe +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +am__append_1 = PyCafe.cpp +#am__append_2 = zbsCafeService.cpp zbsDataHolders.cpp \ +# bitshuffle/bitshuffle_core.c bitshuffle/bitshuffle.c bitshuffle/iochain.c + +subdir = src +DIST_COMMON = $(srcdir)/makefile.in $(srcdir)/makefile.am \ + $(top_srcdir)/./depcomp +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/./include/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +libcafe_la_LIBADD = +am__libcafe_la_SOURCES_DIST = cafe.cpp cafeCache.cpp cafeGroup.cpp \ + cafeVectors.cpp cafeXML.cpp callbackHandlerCreate.cpp \ + callbackHandlerMonitor.cpp conduit.cpp connect.cpp \ + connectCallbacks.cpp exceptionsHelper.cpp granules.cpp \ + handleHelper.cpp loadCollectionXMLParser.cpp \ + loadGroupXMLParser.cpp methodCallbacks.cpp helper.cpp \ + policyHelper.cpp conduitGroup.cpp connectGroup.cpp \ + transpose.cpp restorePVGroupXMLParser.cpp PyCafe.cpp \ + zbsCafeService.cpp zbsDataHolders.cpp \ + bitshuffle/bitshuffle_core.c bitshuffle/bitshuffle.c \ + bitshuffle/iochain.c +am__objects_1 = PyCafe.lo +am__dirstamp = $(am__leading_dot)dirstamp +#am__objects_2 = zbsCafeService.lo zbsDataHolders.lo \ +# bitshuffle/bitshuffle_core.lo \ +# bitshuffle/bitshuffle.lo \ +# bitshuffle/iochain.lo +am_libcafe_la_OBJECTS = cafe.lo cafeCache.lo cafeGroup.lo \ + cafeVectors.lo cafeXML.lo callbackHandlerCreate.lo \ + callbackHandlerMonitor.lo conduit.lo connect.lo \ + connectCallbacks.lo exceptionsHelper.lo granules.lo \ + handleHelper.lo loadCollectionXMLParser.lo \ + loadGroupXMLParser.lo methodCallbacks.lo helper.lo \ + policyHelper.lo conduitGroup.lo connectGroup.lo transpose.lo \ + restorePVGroupXMLParser.lo $(am__objects_1) $(am__objects_2) +libcafe_la_OBJECTS = $(am_libcafe_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +libcafe_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(libcafe_la_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_$(V)) +am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I. -I$(top_builddir)/./include +depcomp = $(SHELL) $(top_srcdir)/./depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_$(V)) +am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_$(V)) +am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = +SOURCES = $(libcafe_la_SOURCES) +DIST_SOURCES = $(am__libcafe_la_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing aclocal-1.13 +AMTAR = $${TAR-tar} + +#if HAVE_PYCAFE_EXT_ +#libcafe_la_SOURCES += PyCafe.cpp +#endif +#else +#if HAVE_PYTHON_ +#libcafe_la_SOURCES += pycafe/PyCafe.cpp +#endif +AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -I$(top_srcdir)/include +AM_DEFAULT_VERBOSITY = 1 +AM_LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +AR = ar +AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoconf +AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoheader +AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing automake-1.13 +AWK = gawk +CAFE_CPPFLAGS = -I$(top_srcdir)/include +CC = /opt/psi/Programming/gcc/7.3.0/bin/gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = /opt/psi/Programming/gcc/7.3.0/bin/gcc -E +CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml +CXX = /opt/psi/Programming/gcc/7.3.0/bin/g++ +CXXCPP = /opt/psi/Programming/gcc/7.3.0/bin/g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = false +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /usr/bin/grep -E +EXEEXT = +FGREP = /usr/bin/grep -F +GREP = /usr/bin/grep +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +LIBOBJS = +LIBS = -lQtXml -lQtCore -lpython3.5m +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LTLIBOBJS = +LT_SYS_LIBRARY_PATH = +MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing makeinfo +MANIFEST_TOOL = : +MKDIR_P = /usr/bin/mkdir -p +NM = /usr/bin/nm -B +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OTOOL = +OTOOL64 = +PACKAGE = cafe +PACKAGE_BUGREPORT = Bug reports to: jan.chrin@psi.ch +PACKAGE_NAME = CAFE +PACKAGE_STRING = CAFE 1.15.1 +PACKAGE_TARNAME = cafe +PACKAGE_URL = +PACKAGE_VERSION = 1.15.1 +PATH_SEPARATOR = : +RANLIB = ranlib +SED = /usr/bin/sed +SET_MAKE = +SHELL = /bin/sh +STRIP = strip +VERSION = 1.15.1 +abs_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/src +abs_srcdir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/src +abs_top_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp +abs_top_srcdir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp +ac_ct_AR = ar +ac_ct_CC = /opt/psi/Programming/gcc/7.3.0/bin/gcc +ac_ct_CXX = +ac_ct_DUMPBIN = +am__include = include +am__leading_dot = . +am__quote = +am__tar = $${TAR-tar} chof - "$$tardir" +am__untar = $${TAR-tar} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/install-sh +libdir = /opt/gfa/cafe/cpp/cafe-1.15.1-py35-gcc-7.3.0/lib/RHEL7-x86_64 +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = $(MKDIR_P) +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /opt/gfa/cafe/cpp/cafe-1.15.1-py35-gcc-7.3.0 +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../ +top_builddir = .. +top_srcdir = .. +lib_LTLIBRARIES = libcafe.la + +#10:2:9 11:2:10 12:0:11 12:1:11 13.0.12 13.1.12 13:2:12 13.4.12 +#current:revision:age +#maps in soname to: +#1st: current-age +#2nd: age +#3rd: revision +#1.9.1 1.10.2 1.11.0 1.11.1 1.12.0 1.12.1 1.12.2 1.12.4 +libcafe_la_LDFLAGS = -version-info 16:1:15 +libcafe_la_SOURCES = cafe.cpp cafeCache.cpp cafeGroup.cpp \ + cafeVectors.cpp cafeXML.cpp callbackHandlerCreate.cpp \ + callbackHandlerMonitor.cpp conduit.cpp connect.cpp \ + connectCallbacks.cpp exceptionsHelper.cpp granules.cpp \ + handleHelper.cpp loadCollectionXMLParser.cpp \ + loadGroupXMLParser.cpp methodCallbacks.cpp helper.cpp \ + policyHelper.cpp conduitGroup.cpp connectGroup.cpp \ + transpose.cpp restorePVGroupXMLParser.cpp $(am__append_1) \ + $(am__append_2) +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .cpp .lo .o .obj +$(srcdir)/makefile.in: $(srcdir)/makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/makefile +.PRECIOUS: makefile +makefile: $(srcdir)/makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +bitshuffle/$(am__dirstamp): + @$(MKDIR_P) bitshuffle + @: > bitshuffle/$(am__dirstamp) +bitshuffle/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) bitshuffle/$(DEPDIR) + @: > bitshuffle/$(DEPDIR)/$(am__dirstamp) +bitshuffle/bitshuffle_core.lo: bitshuffle/$(am__dirstamp) \ + bitshuffle/$(DEPDIR)/$(am__dirstamp) +bitshuffle/bitshuffle.lo: bitshuffle/$(am__dirstamp) \ + bitshuffle/$(DEPDIR)/$(am__dirstamp) +bitshuffle/iochain.lo: bitshuffle/$(am__dirstamp) \ + bitshuffle/$(DEPDIR)/$(am__dirstamp) + +libcafe.la: $(libcafe_la_OBJECTS) $(libcafe_la_DEPENDENCIES) $(EXTRA_libcafe_la_DEPENDENCIES) + $(AM_V_CXXLD)$(libcafe_la_LINK) -rpath $(libdir) $(libcafe_la_OBJECTS) $(libcafe_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f bitshuffle/*.$(OBJEXT) + -rm -f bitshuffle/*.lo + +distclean-compile: + -rm -f *.tab.c + +include ./$(DEPDIR)/PyCafe.Plo +include ./$(DEPDIR)/cafe.Plo +include ./$(DEPDIR)/cafeCache.Plo +include ./$(DEPDIR)/cafeGroup.Plo +include ./$(DEPDIR)/cafeVectors.Plo +include ./$(DEPDIR)/cafeXML.Plo +include ./$(DEPDIR)/callbackHandlerCreate.Plo +include ./$(DEPDIR)/callbackHandlerMonitor.Plo +include ./$(DEPDIR)/conduit.Plo +include ./$(DEPDIR)/conduitGroup.Plo +include ./$(DEPDIR)/connect.Plo +include ./$(DEPDIR)/connectCallbacks.Plo +include ./$(DEPDIR)/connectGroup.Plo +include ./$(DEPDIR)/exceptionsHelper.Plo +include ./$(DEPDIR)/granules.Plo +include ./$(DEPDIR)/handleHelper.Plo +include ./$(DEPDIR)/helper.Plo +include ./$(DEPDIR)/loadCollectionXMLParser.Plo +include ./$(DEPDIR)/loadGroupXMLParser.Plo +include ./$(DEPDIR)/methodCallbacks.Plo +include ./$(DEPDIR)/policyHelper.Plo +include ./$(DEPDIR)/restorePVGroupXMLParser.Plo +include ./$(DEPDIR)/transpose.Plo +include ./$(DEPDIR)/zbsCafeService.Plo +include ./$(DEPDIR)/zbsDataHolders.Plo +include bitshuffle/$(DEPDIR)/bitshuffle.Plo +include bitshuffle/$(DEPDIR)/bitshuffle_core.Plo +include bitshuffle/$(DEPDIR)/iochain.Plo + +.c.o: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< + +.c.obj: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< + +.cpp.o: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: + $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CXX)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ +# $(AM_V_CXX_no)$(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf bitshuffle/.libs bitshuffle/_libs + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: makefile $(LTLIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(libdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f bitshuffle/$(DEPDIR)/$(am__dirstamp) + -rm -f bitshuffle/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) bitshuffle/$(DEPDIR) + -rm -f makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) bitshuffle/$(DEPDIR) + -rm -f makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ + ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-libLTLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/PyCafe_sls_py37.cpp b/src/PyCafe_sls_py37.cpp index 62e3ec1..c666ee5 100644 --- a/src/PyCafe_sls_py37.cpp +++ b/src/PyCafe_sls_py37.cpp @@ -6,30 +6,29 @@ "depends": [ "/opt/gfa/cafe/boost/boost_1_61_0/include/boost/multi_index_container.hpp", "/opt/gfa/cafe/boost/boost_1_61_0/include/boost/smart_ptr/shared_ptr.hpp", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/PVCtrlHolder.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/PVDataHolder.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/PVGroup.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/cafe.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/cafeDataType.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/cafeEnum.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/caopCodes.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/channelRegalia.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/defines.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/exceptions.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/handleHelper.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/policies.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/policyHelper.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/statusCodes.h", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include/tmDateMap.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/PVCtrlHolder.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/PVDataHolder.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/PVGroup.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/cafe.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/cafeDataType.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/cafeEnum.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/caopCodes.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/channelRegalia.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/defines.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/exceptions.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/handleHelper.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/policies.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/policyHelper.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/statusCodes.h", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include/tmDateMap.h", + "/opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h", + "/opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/numpy/core/include/numpy/ufuncobject.h", "/opt/gfa/python-3.7/latest/include/python3.7m/Python.h", "/opt/gfa/python-3.7/latest/include/python3.7m/pythread.h", - "/opt/gfa/python-3.7/latest/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h", - "/opt/gfa/python-3.7/latest/lib/python3.7/site-packages/numpy/core/include/numpy/ufuncobject.h", "/usr/local/epics/base-7.0.6/include/cadef.h", "/usr/local/epics/base-7.0.6/include/caerr.h", "/usr/local/epics/base-7.0.6/include/caeventmask.h", "/usr/local/epics/base-7.0.6/include/db_access.h", - "/usr/local/epics/base-7.0.6/include/epicsMutex.h", "/usr/local/epics/base-7.0.6/include/epicsTime.h" ], "include_dirs": [ @@ -39,9 +38,9 @@ "/usr/local/epics/base-7.0.6/include/compiler/gcc", "/opt/gfa/cafe/boost/boost_1_61_0/include", "/opt/gfa/cafe/boost/boost_1_61_0/include/boost", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/include", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/include", ".", - "/opt/gfa/python-3.7/latest/lib/python3.7/site-packages/numpy/core/include" + "/opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/numpy/core/include" ], "language": "c++", "libraries": [ @@ -52,7 +51,7 @@ ], "library_dirs": [ "/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/lib/RHEL7-x86_64", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/lib/RHEL7-x86_64", "/opt/psi/Programming/gcc/7.3.0/lib64", "/opt/psi/Programming/gcc/7.3.0/lib", "/opt/gfa/python-3.7/latest/lib" @@ -60,7 +59,7 @@ "name": "PyCafe", "runtime_library_dirs": [ "/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64", - "/opt/gfa/cafe/cpp/cafe-1.15.0-py37-gcc-7.3.0/lib/RHEL7-x86_64", + "/opt/gfa/cafe/cpp/cafe-1.15.1-py37-gcc-7.3.0/lib/RHEL7-x86_64", "/opt/psi/Programming/gcc/7.3.0/lib64", "/opt/psi/Programming/gcc/7.3.0/lib" ], @@ -708,7 +707,6 @@ static CYTHON_INLINE float __PYX_NAN() { #include "numpy/ufuncobject.h" #include "boost/multi_index_container.hpp" #include "boost/smart_ptr/shared_ptr.hpp" -#include "epicsMutex.h" #include "cadef.h" #include "defines.h" #include "caeventmask.h" @@ -1081,7 +1079,7 @@ typedef struct { } __Pyx_BufFmt_Context; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":776 * # in Cython to enable them only on the right systems. * * ctypedef npy_int8 int8_t # <<<<<<<<<<<<<< @@ -1090,7 +1088,7 @@ typedef struct { */ typedef npy_int8 __pyx_t_5numpy_int8_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":777 * * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t # <<<<<<<<<<<<<< @@ -1099,7 +1097,7 @@ typedef npy_int8 __pyx_t_5numpy_int8_t; */ typedef npy_int16 __pyx_t_5numpy_int16_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":778 * ctypedef npy_int8 int8_t * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t # <<<<<<<<<<<<<< @@ -1108,7 +1106,7 @@ typedef npy_int16 __pyx_t_5numpy_int16_t; */ typedef npy_int32 __pyx_t_5numpy_int32_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":779 * ctypedef npy_int16 int16_t * ctypedef npy_int32 int32_t * ctypedef npy_int64 int64_t # <<<<<<<<<<<<<< @@ -1117,7 +1115,7 @@ typedef npy_int32 __pyx_t_5numpy_int32_t; */ typedef npy_int64 __pyx_t_5numpy_int64_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":783 * #ctypedef npy_int128 int128_t * * ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<< @@ -1126,7 +1124,7 @@ typedef npy_int64 __pyx_t_5numpy_int64_t; */ typedef npy_uint8 __pyx_t_5numpy_uint8_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":784 * * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<< @@ -1135,7 +1133,7 @@ typedef npy_uint8 __pyx_t_5numpy_uint8_t; */ typedef npy_uint16 __pyx_t_5numpy_uint16_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":785 * ctypedef npy_uint8 uint8_t * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<< @@ -1144,7 +1142,7 @@ typedef npy_uint16 __pyx_t_5numpy_uint16_t; */ typedef npy_uint32 __pyx_t_5numpy_uint32_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":786 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":786 * ctypedef npy_uint16 uint16_t * ctypedef npy_uint32 uint32_t * ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<< @@ -1153,7 +1151,7 @@ typedef npy_uint32 __pyx_t_5numpy_uint32_t; */ typedef npy_uint64 __pyx_t_5numpy_uint64_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":790 * #ctypedef npy_uint128 uint128_t * * ctypedef npy_float32 float32_t # <<<<<<<<<<<<<< @@ -1162,7 +1160,7 @@ typedef npy_uint64 __pyx_t_5numpy_uint64_t; */ typedef npy_float32 __pyx_t_5numpy_float32_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":791 * * ctypedef npy_float32 float32_t * ctypedef npy_float64 float64_t # <<<<<<<<<<<<<< @@ -1171,7 +1169,7 @@ typedef npy_float32 __pyx_t_5numpy_float32_t; */ typedef npy_float64 __pyx_t_5numpy_float64_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":800 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":800 * # The int types are mapped a bit surprising -- * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t # <<<<<<<<<<<<<< @@ -1180,7 +1178,7 @@ typedef npy_float64 __pyx_t_5numpy_float64_t; */ typedef npy_long __pyx_t_5numpy_int_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":801 * # numpy.int corresponds to 'l' and numpy.long to 'q' * ctypedef npy_long int_t * ctypedef npy_longlong long_t # <<<<<<<<<<<<<< @@ -1189,7 +1187,7 @@ typedef npy_long __pyx_t_5numpy_int_t; */ typedef npy_longlong __pyx_t_5numpy_long_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":802 * ctypedef npy_long int_t * ctypedef npy_longlong long_t * ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<< @@ -1198,7 +1196,7 @@ typedef npy_longlong __pyx_t_5numpy_long_t; */ typedef npy_longlong __pyx_t_5numpy_longlong_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":804 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":804 * ctypedef npy_longlong longlong_t * * ctypedef npy_ulong uint_t # <<<<<<<<<<<<<< @@ -1207,7 +1205,7 @@ typedef npy_longlong __pyx_t_5numpy_longlong_t; */ typedef npy_ulong __pyx_t_5numpy_uint_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":805 * * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<< @@ -1216,7 +1214,7 @@ typedef npy_ulong __pyx_t_5numpy_uint_t; */ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":806 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":806 * ctypedef npy_ulong uint_t * ctypedef npy_ulonglong ulong_t * ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<< @@ -1225,7 +1223,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulong_t; */ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":808 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":808 * ctypedef npy_ulonglong ulonglong_t * * ctypedef npy_intp intp_t # <<<<<<<<<<<<<< @@ -1234,7 +1232,7 @@ typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t; */ typedef npy_intp __pyx_t_5numpy_intp_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":809 * * ctypedef npy_intp intp_t * ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<< @@ -1243,7 +1241,7 @@ typedef npy_intp __pyx_t_5numpy_intp_t; */ typedef npy_uintp __pyx_t_5numpy_uintp_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":811 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":811 * ctypedef npy_uintp uintp_t * * ctypedef npy_double float_t # <<<<<<<<<<<<<< @@ -1252,7 +1250,7 @@ typedef npy_uintp __pyx_t_5numpy_uintp_t; */ typedef npy_double __pyx_t_5numpy_float_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":812 * * ctypedef npy_double float_t * ctypedef npy_double double_t # <<<<<<<<<<<<<< @@ -1261,7 +1259,7 @@ typedef npy_double __pyx_t_5numpy_float_t; */ typedef npy_double __pyx_t_5numpy_double_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":813 * ctypedef npy_double float_t * ctypedef npy_double double_t * ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<< @@ -1313,7 +1311,7 @@ struct __pyx_MemviewEnum_obj; struct __pyx_memoryview_obj; struct __pyx_memoryviewslice_obj; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":815 * ctypedef npy_longdouble longdouble_t * * ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<< @@ -1322,7 +1320,7 @@ struct __pyx_memoryviewslice_obj; */ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":816 * * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<< @@ -1331,7 +1329,7 @@ typedef npy_cfloat __pyx_t_5numpy_cfloat_t; */ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":817 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":817 * ctypedef npy_cfloat cfloat_t * ctypedef npy_cdouble cdouble_t * ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<< @@ -1340,7 +1338,7 @@ typedef npy_cdouble __pyx_t_5numpy_cdouble_t; */ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t; -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":819 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":819 * ctypedef npy_clongdouble clongdouble_t * * ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<< @@ -1355,7 +1353,7 @@ struct __pyx_opt_args_6PyCafe_6CyCafe_checkForHandle; struct __pyx_opt_args_6PyCafe_6CyCafe_checkForHandleList; struct __pyx_opt_args_6PyCafe_6CyCafe_checkForGroupHandle; -/* "PyCafeDefs.pxi":1173 +/* "PyCafeDefs.pxi":1202 * ################################################################################# * * cdef pvdata PVDataHolderToStruct(PVDataHolder pvd, dt=None): # <<<<<<<<<<<<<< @@ -1367,7 +1365,7 @@ struct __pyx_opt_args_6PyCafe_PVDataHolderToStruct { PyObject *dt; }; -/* "PyCafeDefs.pxi":1296 +/* "PyCafeDefs.pxi":1327 * ################################################################################# * * cdef pvctrl PVCtrlHolderToStruct(PVCtrlHolder pvc, dt=None): # <<<<<<<<<<<<<< @@ -1379,7 +1377,7 @@ struct __pyx_opt_args_6PyCafe_PVCtrlHolderToStruct { PyObject *dt; }; -/* "PyCafe.pyx":322 +/* "PyCafe.pyx":321 * * cdef prepareCafeException( * self, int status, str _METHOD, # <<<<<<<<<<<<<< @@ -1392,7 +1390,7 @@ struct __pyx_opt_args_6PyCafe_6CyCafe_prepareCafeException { PyObject *pv_name; }; -/* "PyCafe.pyx":1645 +/* "PyCafe.pyx":1644 * ############################################################################ * ### Allow user to choose whether or not to open ##### * cpdef checkForHandle(self, str pv, bint force=True): # <<<<<<<<<<<<<< @@ -1404,7 +1402,7 @@ struct __pyx_opt_args_6PyCafe_6CyCafe_checkForHandle { int force; }; -/* "PyCafe.pyx":1658 +/* "PyCafe.pyx":1657 * * ############################################################################ * cpdef checkForHandleList(self, list pvList, bint force=True): # <<<<<<<<<<<<<< @@ -1416,7 +1414,7 @@ struct __pyx_opt_args_6PyCafe_6CyCafe_checkForHandleList { int force; }; -/* "PyCafe.pyx":1679 +/* "PyCafe.pyx":1678 * * ############################################################################ * cpdef checkForGroupHandle(self, str gName, bint force=True): # <<<<<<<<<<<<<< @@ -2337,6 +2335,25 @@ static PyObject* __Pyx_PyObject_Format(PyObject* s, PyObject* f); #define __Pyx_PyObject_Format(s, f) PyObject_Format(s, f) #endif +/* GetTopmostException.proto */ +#if CYTHON_USE_EXC_INFO_STACK +static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); +#endif + +/* SaveResetException.proto */ +#if CYTHON_FAST_THREAD_STATE +#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); +#else +#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) +#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) +#endif + +/* None.proto */ +static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); + /* 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; @@ -2367,22 +2384,6 @@ static CYTHON_INLINE PyObject* __Pyx_decode_bytes( start, stop, encoding, errors, decode_func); } -/* 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 - /* ListAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { @@ -2409,9 +2410,6 @@ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name /* append.proto */ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x); -/* None.proto */ -static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); - /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) @@ -2583,33 +2581,6 @@ static CYTHON_INLINE int __Pyx_IterFinish(void); /* UnpackItemEndCheck.proto */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); -/* PyObjectCallMethod0.proto */ -static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); - -/* RaiseNoneIterError.proto */ -static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); - -/* UnpackTupleError.proto */ -static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); - -/* UnpackTuple2.proto */ -#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\ - (likely(is_tuple || PyTuple_Check(tuple)) ?\ - (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\ - __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\ - (__Pyx_UnpackTupleError(tuple, 2), -1)) :\ - __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple)) -static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( - PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple); -static int __Pyx_unpack_tuple2_generic( - PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple); - -/* dict_iter.proto */ -static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, - Py_ssize_t* p_orig_length, int* p_is_dict); -static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, - PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); - /* py_dict_values.proto */ static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d); @@ -2677,6 +2648,9 @@ static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif +/* RaiseNoneIterError.proto */ +static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); + /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); @@ -3510,6 +3484,7 @@ __PYX_EXTERN_C void cy_handle_handler_wrapper(void *, unsigned int); /*proto*/ __PYX_EXTERN_C void cy_connect_handler_wrapper(void *, unsigned int, std::string, int); /*proto*/ __PYX_EXTERN_C void cy_cb_handle_get_wrapper(void *, unsigned int); /*proto*/ __PYX_EXTERN_C void cy_cb_handle_put_wrapper(void *, unsigned int); /*proto*/ +static PyObject *__pyx_f_6PyCafe_encodeString(PyObject *); /*proto*/ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *, PyObject *); /*proto*/ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVDataHolder, struct __pyx_opt_args_6PyCafe_PVDataHolderToStruct *__pyx_optional_args); /*proto*/ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVCtrlHolder, struct __pyx_opt_args_6PyCafe_PVCtrlHolderToStruct *__pyx_optional_args); /*proto*/ @@ -3596,7 +3571,6 @@ static PyObject *__pyx_builtin_Ellipsis; static PyObject *__pyx_builtin_id; static PyObject *__pyx_builtin_IndexError; static const char __pyx_k_0[] = "({0})"; -static const char __pyx_k_1[] = "============//1//"; static const char __pyx_k_C[] = "C"; static const char __pyx_k_O[] = "O"; static const char __pyx_k_c[] = "c"; @@ -3650,13 +3624,12 @@ static const char __pyx_k_None[] = "None"; static const char __pyx_k_PV_2[] = "PV="; static const char __pyx_k_PV_3[] = " PV="; static const char __pyx_k_PV_4[] = "PV"; -static const char __pyx_k__103[] = "============"; -static const char __pyx_k__106[] = "======================================================"; -static const char __pyx_k__110[] = "=============="; -static const char __pyx_k__113[] = "["; -static const char __pyx_k__114[] = "]"; -static const char __pyx_k__135[] = " : "; -static const char __pyx_k__168[] = "."; +static const char __pyx_k__101[] = "======================================================"; +static const char __pyx_k__105[] = "=============="; +static const char __pyx_k__108[] = "["; +static const char __pyx_k__109[] = "]"; +static const char __pyx_k__130[] = " : "; +static const char __pyx_k__163[] = "."; static const char __pyx_k_args[] = "args"; static const char __pyx_k_base[] = "base"; static const char __pyx_k_bool[] = "bool"; @@ -3671,8 +3644,6 @@ static const char __pyx_k_int8[] = "int8"; static const char __pyx_k_intc[] = "intc"; static const char __pyx_k_intp[] = "intp"; static const char __pyx_k_keys[] = "keys"; -static const char __pyx_k_len1[] = "len1"; -static const char __pyx_k_len2[] = "len2"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_mask[] = "mask ="; static const char __pyx_k_mode[] = "mode"; @@ -3739,7 +3710,7 @@ static const char __pyx_k_uchar[] = "uchar"; static const char __pyx_k_uint8[] = "uint8"; static const char __pyx_k_uintc[] = "uintc"; static const char __pyx_k_uintp[] = "uintp"; -static const char __pyx_k_utf_8[] = "utf_8"; +static const char __pyx_k_utf_8[] = "utf-8"; static const char __pyx_k_value[] = "value = "; static const char __pyx_k_CyCafe[] = "CyCafe"; static const char __pyx_k_Cython[] = "Cython"; @@ -3756,6 +3727,7 @@ static const char __pyx_k_c_char[] = "c_char"; static const char __pyx_k_c_int8[] = "c_int8"; static const char __pyx_k_c_long[] = "c_long"; static const char __pyx_k_c_uint[] = "c_uint"; +static const char __pyx_k_client[] = "client"; static const char __pyx_k_ctypes[] = "ctypes"; static const char __pyx_k_decode[] = "decode"; static const char __pyx_k_double[] = "double"; @@ -3795,7 +3767,7 @@ static const char __pyx_k_uint64[] = "uint64"; static const char __pyx_k_unpack[] = "unpack"; static const char __pyx_k_update[] = "update"; static const char __pyx_k_ushort[] = "ushort"; -static const char __pyx_k_utf_16[] = "utf_16"; +static const char __pyx_k_utf_16[] = "utf-16"; static const char __pyx_k_utf_32[] = "utf_32"; static const char __pyx_k_valSet[] = "valSet"; static const char __pyx_k_values[] = "values"; @@ -3814,6 +3786,7 @@ static const char __pyx_k_c_voidp[] = "c_voidp"; static const char __pyx_k_c_wchar[] = "c_wchar"; static const char __pyx_k_dbrBase[] = "dbrBase"; static const char __pyx_k_deltaMS[] = "deltaMS"; +static const char __pyx_k_dtcheck[] = "dtcheck"; static const char __pyx_k_float16[] = "float16"; static const char __pyx_k_float32[] = "float32"; static const char __pyx_k_float64[] = "float64"; @@ -3839,11 +3812,12 @@ static const char __pyx_k_numbers[] = "numbers"; static const char __pyx_k_pulseID[] = "pulseID ="; static const char __pyx_k_pv_name[] = "_pv_name"; static const char __pyx_k_pvgroup[] = "pvgroup"; +static const char __pyx_k_request[] = "request"; static const char __pyx_k_showMax[] = "showMax"; static const char __pyx_k_timeout[] = "timeout"; static const char __pyx_k_unicode[] = "unicode"; static const char __pyx_k_units_s[] = "units = %s"; -static const char __pyx_k_utf_8_2[] = "utf-8"; +static const char __pyx_k_utf_8_2[] = "utf_8"; static const char __pyx_k_valList[] = "valList"; static const char __pyx_k_value_2[] = "value ="; static const char __pyx_k_value_3[] = "value\t = "; @@ -3898,13 +3872,11 @@ static const char __pyx_k_status_d[] = "status = %d"; static const char __pyx_k_string_2[] = "string_"; static const char __pyx_k_tsDate_2[] = "tsDate"; static const char __pyx_k_userArgs[] = "userArgs ="; -static const char __pyx_k_utf_16_2[] = "utf-16"; +static const char __pyx_k_utf_16_2[] = "utf_16"; static const char __pyx_k_utf_32_2[] = "utf-32"; static const char __pyx_k_utf_none[] = "utf-none"; static const char __pyx_k_waveform[] = "waveform"; static const char __pyx_k_CafeError[] = "CafeError"; -static const char __pyx_k_Parameter[] = "Parameter:"; -static const char __pyx_k_SIGNATURE[] = "SIGNATURE:"; static const char __pyx_k_TypeError[] = "TypeError"; static const char __pyx_k_c_ssize_t[] = "c_ssize_t"; static const char __pyx_k_c_wchar_p[] = "c_wchar_p"; @@ -3916,7 +3888,6 @@ static const char __pyx_k_getStatus[] = "getStatus"; static const char __pyx_k_groupOpen[] = "groupOpen"; static const char __pyx_k_handlesPV[] = "handlesPV"; static const char __pyx_k_has_error[] = " has error: "; -static const char __pyx_k_monitorid[] = "monitorid"; static const char __pyx_k_np_string[] = "np.string"; static const char __pyx_k_np_uint16[] = "np.uint16"; static const char __pyx_k_np_uint32[] = "np.uint32"; @@ -3950,7 +3921,6 @@ static const char __pyx_k_getPVGroup[] = "getPVGroup"; static const char __pyx_k_handleList[] = "handleList"; static const char __pyx_k_hostName_s[] = "hostName = %s"; static const char __pyx_k_memoryview[] = "memoryview"; -static const char __pyx_k_monitor_id[] = "monitor id"; static const char __pyx_k_np_float16[] = "np.float16"; static const char __pyx_k_np_float32[] = "np.float32"; static const char __pyx_k_np_float64[] = "np.float64"; @@ -3970,7 +3940,6 @@ static const char __pyx_k_ImportError[] = "ImportError"; static const char __pyx_k_MemoryError[] = "MemoryError"; static const char __pyx_k_OrderedDict[] = "OrderedDict"; static const char __pyx_k_PickleError[] = "PickleError"; -static const char __pyx_k_SIGNATURE_2[] = "SIGNATURE//2//:"; static const char __pyx_k_UserWarning[] = "UserWarning"; static const char __pyx_k_alarmStatus[] = "alarmStatus = "; static const char __pyx_k_array_array[] = "array.array"; @@ -4016,6 +3985,7 @@ static const char __pyx_k_stringsource[] = "stringsource"; static const char __pyx_k_version_info[] = "version_info"; static const char __pyx_k_CAFEException[] = "CAFEException"; static const char __pyx_k_CafeException[] = "------CafeException-----------------------------------------------------"; +static const char __pyx_k_END_TIME_CHAR[] = "END TIME CHAR"; static const char __pyx_k_accessWrite_d[] = "accessWrite = %d"; static const char __pyx_k_alarmSeverity[] = "alarmSeverity = "; static const char __pyx_k_alarmStatus_2[] = "alarmStatus"; @@ -4073,6 +4043,7 @@ static const char __pyx_k_verify_handlepv[] = "verify_handlepv"; static const char __pyx_k_waitForGetEvent[] = "waitForGetEvent"; static const char __pyx_k_Error_in_Element[] = "Error in Element "; static const char __pyx_k_getChannelDevice[] = "getChannelDevice"; +static const char __pyx_k_length_of_ui8val[] = "length of ui8val"; static const char __pyx_k_maskHasDBE_ALARM[] = "maskHasDBE_ALARM ="; static const char __pyx_k_maskHasDBE_VALUE[] = "maskHasDBE_VALUE ="; static const char __pyx_k_no_encoding_done[] = "no encoding done"; @@ -4132,7 +4103,7 @@ static const char __pyx_k_getDbrBaseInCallback[] = "getDbrBaseInCallback"; static const char __pyx_k_groupOpen_char_gname[] = "groupOpen(char * gname)"; static const char __pyx_k_initCallbackComplete[] = "initCallbackComplete"; static const char __pyx_k_strided_and_indirect[] = ""; -static const char __pyx_k_1_15_0_py37_gcc_7_3_0[] = "1.15.0-py37-gcc-7.3.0"; +static const char __pyx_k_1_15_1_py37_gcc_7_3_0[] = "1.15.1-py37-gcc-7.3.0"; static const char __pyx_k_Allowed_DBR_TYPEs_are[] = "Allowed DBR_TYPEs are:"; static const char __pyx_k_ICAFE_CA_OP_CONN_DOWN[] = "ICAFE_CA_OP_CONN_DOWN"; static const char __pyx_k_The_value_entered_was[] = "The value entered was"; @@ -4178,7 +4149,6 @@ static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cyt static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous"; static const char __pyx_k_reports_the_following_error[] = ") reports the following error:"; static const char __pyx_k_Error_in_def_getCompoundList[] = "Error in def getCompoundList: "; -static const char __pyx_k_dbr_mask_notify_milliseconds[] = "dbr, mask, notify_milliseconds)"; static const char __pyx_k_groupMonitorStop_ghandleName[] = "groupMonitorStop(ghandleName)"; static const char __pyx_k_in_PyCafe_def_getCompundList[] = " in PyCafe def getCompundList"; static const char __pyx_k_in_PyCafe_def_getScalarArray[] = " in PyCafe def getScalarArray"; @@ -4289,7 +4259,7 @@ static const char __pyx_k_getPVCache_handlePV_str_dt_nativ[] = "getPVCache(handl static const char __pyx_k_getPVGroup_ghandleName_str_dt_na[] = "getPVGroup(ghandleName, str dt='native')"; static const char __pyx_k_getScalarArray_handleList_str_dt[] = "getScalarArray(handleList, str dt, bint cacheFlag)"; static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension %d (got %d and %d)"; -static const char __pyx_k_groupMonitorStartWithCBList_ghan[] = "groupMonitorStartWithCBList(ghandleName, cb,"; +static const char __pyx_k_groupMonitorStartWithCBList_ghan[] = "groupMonitorStartWithCBList(ghandleName, cb,dbr, mask, notify_milliseconds)"; static const char __pyx_k_groupMonitorStart_ghandleName_cb[] = "groupMonitorStart(ghandleName, cb, dbr, mask)"; static const char __pyx_k_grouping_char_gname_list__pvlist[] = "grouping(char * gname, list _pvlist)"; static const char __pyx_k_handleMatch_list_member_should_b[] = "handleMatch list member should be of type if handle, else if PV"; @@ -4370,8 +4340,7 @@ static const char __pyx_k_First_input_argument_should_be_o_10[] = "First input a static const char __pyx_k_First_input_argument_should_be_o_11[] = "First input argument should be of type if group handle, else if group name"; static PyObject *__pyx_kp_u_0; static PyObject *__pyx_kp_u_0_1_2_3_4_5; -static PyObject *__pyx_kp_u_1; -static PyObject *__pyx_kp_u_1_15_0_py37_gcc_7_3_0; +static PyObject *__pyx_kp_u_1_15_1_py37_gcc_7_3_0; static PyObject *__pyx_kp_u_7_0_6; static PyObject *__pyx_n_s_ASCII; static PyObject *__pyx_kp_u_A_handle_can_never_hold_a_negati; @@ -4401,6 +4370,7 @@ static PyObject *__pyx_kp_u_DBR_PLAIN_0_DBR_STS_1_DBR_TIME_2; static PyObject *__pyx_kp_u_Data_to_be_presented_in_native_d; static PyObject *__pyx_kp_u_Datatype_unknown_returning_value; static PyObject *__pyx_kp_u_EGU; +static PyObject *__pyx_kp_u_END_TIME_CHAR; static PyObject *__pyx_kp_u_ENUM_string_value; static PyObject *__pyx_kp_u_ENUM_value; static PyObject *__pyx_kp_u_ERROR_GROUP_MEMBER_MISMATCH; @@ -4526,7 +4496,6 @@ static PyObject *__pyx_kp_u_PV_2; static PyObject *__pyx_kp_u_PV_3; static PyObject *__pyx_n_u_PV_4; static PyObject *__pyx_kp_u_PY_VERSION_HEX_is; -static PyObject *__pyx_kp_u_Parameter; static PyObject *__pyx_n_s_PickleError; static PyObject *__pyx_kp_u_Possible_types_are; static PyObject *__pyx_n_s_PyCafe; @@ -4538,8 +4507,6 @@ static PyObject *__pyx_kp_u_PyCafe_pyx_We_do_not_cater_for_t; static PyObject *__pyx_kp_u_PyCafe_pyx_getArray_array_type_d; static PyObject *__pyx_kp_u_Returning_memoryview; static PyObject *__pyx_n_s_RuntimeError; -static PyObject *__pyx_kp_u_SIGNATURE; -static PyObject *__pyx_kp_u_SIGNATURE_2; static PyObject *__pyx_kp_u_Second_input_argument_if_not_a_l; static PyObject *__pyx_kp_u_Second_input_argument_should_be; static PyObject *__pyx_kp_u_Second_input_argument_should_be_2; @@ -4577,14 +4544,13 @@ static PyObject *__pyx_kp_u_Warning_from_groupMonitorStart; static PyObject *__pyx_kp_u_Warning_from_groupMonitorStartW; static PyObject *__pyx_kp_u_Warning_from_monitorStart_for_h; static PyObject *__pyx_kp_u__10; -static PyObject *__pyx_kp_u__103; -static PyObject *__pyx_kp_u__106; -static PyObject *__pyx_kp_u__110; -static PyObject *__pyx_kp_u__113; -static PyObject *__pyx_kp_u__114; -static PyObject *__pyx_kp_u__135; +static PyObject *__pyx_kp_u__101; +static PyObject *__pyx_kp_u__105; +static PyObject *__pyx_kp_u__108; +static PyObject *__pyx_kp_u__109; +static PyObject *__pyx_kp_u__130; static PyObject *__pyx_kp_u__15; -static PyObject *__pyx_kp_u__168; +static PyObject *__pyx_kp_u__163; static PyObject *__pyx_kp_u__23; static PyObject *__pyx_kp_u__24; static PyObject *__pyx_kp_u__26; @@ -4677,6 +4643,7 @@ static PyObject *__pyx_n_s_checkForHandleList; static PyObject *__pyx_n_u_cinit; static PyObject *__pyx_n_s_class; static PyObject *__pyx_kp_u_className_s; +static PyObject *__pyx_n_u_client; static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_u_close; static PyObject *__pyx_n_u_closeChannelKeepHandle; @@ -4701,7 +4668,6 @@ static PyObject *__pyx_n_s_dbrBase; static PyObject *__pyx_kp_u_dbrDataType; static PyObject *__pyx_kp_u_dbr_base_type_should_be_one_of_D; static PyObject *__pyx_kp_u_dbr_base_type_should_be_one_of_D_2; -static PyObject *__pyx_kp_u_dbr_mask_notify_milliseconds; static PyObject *__pyx_n_s_decode; static PyObject *__pyx_kp_u_decode_utf_16_error; static PyObject *__pyx_n_s_deepcopy; @@ -4716,6 +4682,7 @@ static PyObject *__pyx_kp_u_does_not_match_the_length_of_da_2; static PyObject *__pyx_n_s_double; static PyObject *__pyx_n_u_double; static PyObject *__pyx_n_s_dt; +static PyObject *__pyx_n_u_dtcheck; static PyObject *__pyx_n_s_dtype; static PyObject *__pyx_n_s_dtype_is_object; static PyObject *__pyx_n_s_empty; @@ -4901,8 +4868,7 @@ static PyObject *__pyx_n_s_keepGroupName; static PyObject *__pyx_n_s_keys; static PyObject *__pyx_n_s_kwargs; static PyObject *__pyx_kp_u_latin_1; -static PyObject *__pyx_n_u_len1; -static PyObject *__pyx_n_u_len2; +static PyObject *__pyx_kp_u_length_of_ui8val; static PyObject *__pyx_n_s_longlong; static PyObject *__pyx_kp_u_lowerAlarmLimit_f; static PyObject *__pyx_kp_u_lowerControlLimit_f; @@ -4934,8 +4900,6 @@ static PyObject *__pyx_kp_u_monitorStart_handlePV_object_cb; static PyObject *__pyx_n_s_monitorStop; static PyObject *__pyx_kp_u_monitorStopAll; static PyObject *__pyx_kp_u_monitorStop_handlePV_mpid_None; -static PyObject *__pyx_kp_u_monitor_id; -static PyObject *__pyx_n_u_monitorid; static PyObject *__pyx_n_s_monitorpolicy; static PyObject *__pyx_n_s_mpid; static PyObject *__pyx_n_u_mv; @@ -5048,6 +5012,7 @@ static PyObject *__pyx_n_s_reduce; static PyObject *__pyx_n_s_reduce_cython; static PyObject *__pyx_n_s_reduce_ex; static PyObject *__pyx_kp_u_reports_the_following_error; +static PyObject *__pyx_n_u_request; static PyObject *__pyx_kp_u_s; static PyObject *__pyx_n_s_scalarOnly; static PyObject *__pyx_n_s_self; @@ -5151,12 +5116,12 @@ static PyObject *__pyx_kp_u_upperWarningLimit_f; static PyObject *__pyx_kp_u_userArgs; static PyObject *__pyx_n_s_ushort; static PyObject *__pyx_n_u_ushort; -static PyObject *__pyx_n_u_utf_16; -static PyObject *__pyx_kp_u_utf_16_2; +static PyObject *__pyx_kp_u_utf_16; +static PyObject *__pyx_n_u_utf_16_2; static PyObject *__pyx_n_u_utf_32; static PyObject *__pyx_kp_u_utf_32_2; -static PyObject *__pyx_n_u_utf_8; -static PyObject *__pyx_kp_u_utf_8_2; +static PyObject *__pyx_kp_u_utf_8; +static PyObject *__pyx_n_u_utf_8_2; static PyObject *__pyx_kp_u_utf_none; static PyObject *__pyx_n_s_valAction; static PyObject *__pyx_n_s_valList; @@ -5838,12 +5803,12 @@ static DBR_TYPE __pyx_k__91; static unsigned int __pyx_k__92; static DBR_TYPE __pyx_k__93; static unsigned int __pyx_k__94; -static DBR_TYPE __pyx_k__99; -static unsigned int __pyx_k__100; -static DBR_TYPE __pyx_k__115; -static unsigned int __pyx_k__116; -static DBR_TYPE __pyx_k__117; -static unsigned int __pyx_k__118; +static DBR_TYPE __pyx_k__97; +static unsigned int __pyx_k__98; +static DBR_TYPE __pyx_k__110; +static unsigned int __pyx_k__111; +static DBR_TYPE __pyx_k__112; +static unsigned int __pyx_k__113; static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__6; @@ -5920,18 +5885,19 @@ static PyObject *__pyx_tuple__89; static PyObject *__pyx_tuple__90; static PyObject *__pyx_tuple__95; static PyObject *__pyx_tuple__96; -static PyObject *__pyx_tuple__97; -static PyObject *__pyx_tuple__98; -static PyObject *__pyx_slice__164; -static PyObject *__pyx_tuple__101; +static PyObject *__pyx_tuple__99; +static PyObject *__pyx_slice__159; +static PyObject *__pyx_tuple__100; static PyObject *__pyx_tuple__102; +static PyObject *__pyx_tuple__103; static PyObject *__pyx_tuple__104; -static PyObject *__pyx_tuple__105; +static PyObject *__pyx_tuple__106; static PyObject *__pyx_tuple__107; -static PyObject *__pyx_tuple__108; -static PyObject *__pyx_tuple__109; -static PyObject *__pyx_tuple__111; -static PyObject *__pyx_tuple__112; +static PyObject *__pyx_tuple__114; +static PyObject *__pyx_tuple__115; +static PyObject *__pyx_tuple__116; +static PyObject *__pyx_tuple__117; +static PyObject *__pyx_tuple__118; static PyObject *__pyx_tuple__119; static PyObject *__pyx_tuple__120; static PyObject *__pyx_tuple__121; @@ -5943,11 +5909,11 @@ static PyObject *__pyx_tuple__126; static PyObject *__pyx_tuple__127; static PyObject *__pyx_tuple__128; static PyObject *__pyx_tuple__129; -static PyObject *__pyx_tuple__130; static PyObject *__pyx_tuple__131; static PyObject *__pyx_tuple__132; static PyObject *__pyx_tuple__133; static PyObject *__pyx_tuple__134; +static PyObject *__pyx_tuple__135; static PyObject *__pyx_tuple__136; static PyObject *__pyx_tuple__137; static PyObject *__pyx_tuple__138; @@ -5971,27 +5937,22 @@ static PyObject *__pyx_tuple__155; static PyObject *__pyx_tuple__156; static PyObject *__pyx_tuple__157; static PyObject *__pyx_tuple__158; -static PyObject *__pyx_tuple__159; static PyObject *__pyx_tuple__160; static PyObject *__pyx_tuple__161; static PyObject *__pyx_tuple__162; -static PyObject *__pyx_tuple__163; +static PyObject *__pyx_tuple__164; static PyObject *__pyx_tuple__165; -static PyObject *__pyx_tuple__166; static PyObject *__pyx_tuple__167; static PyObject *__pyx_tuple__169; static PyObject *__pyx_tuple__170; +static PyObject *__pyx_tuple__171; static PyObject *__pyx_tuple__172; +static PyObject *__pyx_tuple__173; static PyObject *__pyx_tuple__174; -static PyObject *__pyx_tuple__175; -static PyObject *__pyx_tuple__176; -static PyObject *__pyx_tuple__177; -static PyObject *__pyx_tuple__178; -static PyObject *__pyx_tuple__179; static PyObject *__pyx_codeobj__33; -static PyObject *__pyx_codeobj__171; -static PyObject *__pyx_codeobj__173; -static PyObject *__pyx_codeobj__180; +static PyObject *__pyx_codeobj__166; +static PyObject *__pyx_codeobj__168; +static PyObject *__pyx_codeobj__175; /* Late includes */ /* "PyCafeDefs_pub.pxi":11 @@ -30679,7 +30640,486 @@ static PyObject *__pyx_pf_6PyCafe_7pvgroup_10__setstate_cython__(CYTHON_UNUSED s return __pyx_r; } -/* "PyCafeDefs.pxi":1120 +/* "PyCafeDefs.pxi":1118 + * ################################################################################## + * + * cdef encodeString(bytes_input): # <<<<<<<<<<<<<< + * bytesVal = bytes_input + * encoding = False + */ + +static PyObject *__pyx_f_6PyCafe_encodeString(PyObject *__pyx_v_bytes_input) { + PyObject *__pyx_v_bytesVal = NULL; + int __pyx_v_encoding; + PyObject *__pyx_v_strVal = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + int __pyx_t_8; + __Pyx_RefNannySetupContext("encodeString", 0); + + /* "PyCafeDefs.pxi":1119 + * + * cdef encodeString(bytes_input): + * bytesVal = bytes_input # <<<<<<<<<<<<<< + * encoding = False + * if not encoding: + */ + __Pyx_INCREF(__pyx_v_bytes_input); + __pyx_v_bytesVal = __pyx_v_bytes_input; + + /* "PyCafeDefs.pxi":1120 + * cdef encodeString(bytes_input): + * bytesVal = bytes_input + * encoding = False # <<<<<<<<<<<<<< + * if not encoding: + * try: + */ + __pyx_v_encoding = 0; + + /* "PyCafeDefs.pxi":1121 + * bytesVal = bytes_input + * encoding = False + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal = (bytesVal).decode('utf-8') + */ + __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); + if (__pyx_t_1) { + + /* "PyCafeDefs.pxi":1122 + * encoding = False + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-8') + * encoding = True + */ + { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); + __Pyx_XGOTREF(__pyx_t_2); + __Pyx_XGOTREF(__pyx_t_3); + __Pyx_XGOTREF(__pyx_t_4); + /*try:*/ { + + /* "PyCafeDefs.pxi":1123 + * if not encoding: + * try: + * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< + * encoding = True + * #print('utf-8 for umlauts CONFIRMED!') + */ + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 1123, __pyx_L4_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = NULL; + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_7)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_8); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1123, __pyx_L4_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_v_strVal = __pyx_t_5; + __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1124 + * try: + * strVal = (bytesVal).decode('utf-8') + * encoding = True # <<<<<<<<<<<<<< + * #print('utf-8 for umlauts CONFIRMED!') + * except UnicodeDecodeError: + */ + __pyx_v_encoding = 1; + + /* "PyCafeDefs.pxi":1122 + * encoding = False + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-8') + * encoding = True + */ + } + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + goto __pyx_L9_try_end; + __pyx_L4_error:; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1126 + * encoding = True + * #print('utf-8 for umlauts CONFIRMED!') + * except UnicodeDecodeError: # <<<<<<<<<<<<<< + * pass + * if not encoding: + */ + __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); + if (__pyx_t_8) { + __Pyx_ErrRestore(0,0,0); + goto __pyx_L5_exception_handled; + } + goto __pyx_L6_except_error; + __pyx_L6_except_error:; + + /* "PyCafeDefs.pxi":1122 + * encoding = False + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-8') + * encoding = True + */ + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + goto __pyx_L1_error; + __pyx_L5_exception_handled:; + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + __pyx_L9_try_end:; + } + + /* "PyCafeDefs.pxi":1121 + * bytesVal = bytes_input + * encoding = False + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal = (bytesVal).decode('utf-8') + */ + } + + /* "PyCafeDefs.pxi":1128 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal = (bytesVal).decode('utf-16') + */ + __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); + if (__pyx_t_1) { + + /* "PyCafeDefs.pxi":1129 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-16') + * encoding = True + */ + { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2); + __Pyx_XGOTREF(__pyx_t_4); + __Pyx_XGOTREF(__pyx_t_3); + __Pyx_XGOTREF(__pyx_t_2); + /*try:*/ { + + /* "PyCafeDefs.pxi":1130 + * if not encoding: + * try: + * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< + * encoding = True + * #print('utf-16 for umlauts') + */ + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 1130, __pyx_L11_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = NULL; + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_7)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_kp_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_16); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1130, __pyx_L11_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); + __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1131 + * try: + * strVal = (bytesVal).decode('utf-16') + * encoding = True # <<<<<<<<<<<<<< + * #print('utf-16 for umlauts') + * except UnicodeDecodeError: + */ + __pyx_v_encoding = 1; + + /* "PyCafeDefs.pxi":1129 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-16') + * encoding = True + */ + } + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + goto __pyx_L16_try_end; + __pyx_L11_error:; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1133 + * encoding = True + * #print('utf-16 for umlauts') + * except UnicodeDecodeError: # <<<<<<<<<<<<<< + * pass + * if not encoding: + */ + __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); + if (__pyx_t_8) { + __Pyx_ErrRestore(0,0,0); + goto __pyx_L12_exception_handled; + } + goto __pyx_L13_except_error; + __pyx_L13_except_error:; + + /* "PyCafeDefs.pxi":1129 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal = (bytesVal).decode('utf-16') + * encoding = True + */ + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); + goto __pyx_L1_error; + __pyx_L12_exception_handled:; + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); + __pyx_L16_try_end:; + } + + /* "PyCafeDefs.pxi":1128 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal = (bytesVal).decode('utf-16') + */ + } + + /* "PyCafeDefs.pxi":1135 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal= (bytesVal).decode('latin-1') + */ + __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); + if (__pyx_t_1) { + + /* "PyCafeDefs.pxi":1136 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal= (bytesVal).decode('latin-1') + * encoding = True + */ + { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); + __Pyx_XGOTREF(__pyx_t_2); + __Pyx_XGOTREF(__pyx_t_3); + __Pyx_XGOTREF(__pyx_t_4); + /*try:*/ { + + /* "PyCafeDefs.pxi":1137 + * if not encoding: + * try: + * strVal= (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< + * encoding = True + * #print('latin1 for umlauts') + */ + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 1137, __pyx_L18_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = NULL; + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_7)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_kp_u_latin_1) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_latin_1); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1137, __pyx_L18_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); + __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1138 + * try: + * strVal= (bytesVal).decode('latin-1') + * encoding = True # <<<<<<<<<<<<<< + * #print('latin1 for umlauts') + * except UnicodeDecodeError: + */ + __pyx_v_encoding = 1; + + /* "PyCafeDefs.pxi":1136 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal= (bytesVal).decode('latin-1') + * encoding = True + */ + } + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + goto __pyx_L23_try_end; + __pyx_L18_error:; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "PyCafeDefs.pxi":1140 + * encoding = True + * #print('latin1 for umlauts') + * except UnicodeDecodeError: # <<<<<<<<<<<<<< + * pass + * if not encoding: + */ + __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); + if (__pyx_t_8) { + __Pyx_ErrRestore(0,0,0); + goto __pyx_L19_exception_handled; + } + goto __pyx_L20_except_error; + __pyx_L20_except_error:; + + /* "PyCafeDefs.pxi":1136 + * pass + * if not encoding: + * try: # <<<<<<<<<<<<<< + * strVal= (bytesVal).decode('latin-1') + * encoding = True + */ + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + goto __pyx_L1_error; + __pyx_L19_exception_handled:; + __Pyx_XGIVEREF(__pyx_t_2); + __Pyx_XGIVEREF(__pyx_t_3); + __Pyx_XGIVEREF(__pyx_t_4); + __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); + __pyx_L23_try_end:; + } + + /* "PyCafeDefs.pxi":1135 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * try: + * strVal= (bytesVal).decode('latin-1') + */ + } + + /* "PyCafeDefs.pxi":1142 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * strVal = bytes_input + * + */ + __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); + if (__pyx_t_1) { + + /* "PyCafeDefs.pxi":1143 + * pass + * if not encoding: + * strVal = bytes_input # <<<<<<<<<<<<<< + * + * return strVal + */ + __Pyx_INCREF(__pyx_v_bytes_input); + __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_v_bytes_input); + + /* "PyCafeDefs.pxi":1142 + * except UnicodeDecodeError: + * pass + * if not encoding: # <<<<<<<<<<<<<< + * strVal = bytes_input + * + */ + } + + /* "PyCafeDefs.pxi":1145 + * strVal = bytes_input + * + * return strVal # <<<<<<<<<<<<<< + * + * + */ + __Pyx_XDECREF(__pyx_r); + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(2, 1145, __pyx_L1_error) } + __Pyx_INCREF(__pyx_v_strVal); + __pyx_r = __pyx_v_strVal; + goto __pyx_L0; + + /* "PyCafeDefs.pxi":1118 + * ################################################################################## + * + * cdef encodeString(bytes_input): # <<<<<<<<<<<<<< + * bytesVal = bytes_input + * encoding = False + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_AddTraceback("PyCafe.encodeString", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = 0; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_bytesVal); + __Pyx_XDECREF(__pyx_v_strVal); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "PyCafeDefs.pxi":1149 * * ################################################################################## * cdef getMatchedDataType(dt, dtn): # <<<<<<<<<<<<<< @@ -30697,17 +31137,17 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje int __pyx_t_4; __Pyx_RefNannySetupContext("getMatchedDataType", 0); - /* "PyCafeDefs.pxi":1125 + /* "PyCafeDefs.pxi":1154 * # dtcheck: matching data type for pvd convert method * * cdef unsigned int dtcheck = dtn # <<<<<<<<<<<<<< * * if dt in ['uchar', 'uint8']: */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_dtn); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1125, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_dtn); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1154, __pyx_L1_error) __pyx_v_dtcheck = __pyx_t_1; - /* "PyCafeDefs.pxi":1127 + /* "PyCafeDefs.pxi":1156 * cdef unsigned int dtcheck = dtn * * if dt in ['uchar', 'uint8']: # <<<<<<<<<<<<<< @@ -30716,20 +31156,20 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1127, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1156, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1127, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1156, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L4_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1128 + /* "PyCafeDefs.pxi":1157 * * if dt in ['uchar', 'uint8']: * dtcheck = CAFE_CHAR # <<<<<<<<<<<<<< @@ -30738,7 +31178,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_CHAR; - /* "PyCafeDefs.pxi":1127 + /* "PyCafeDefs.pxi":1156 * cdef unsigned int dtcheck = dtn * * if dt in ['uchar', 'uint8']: # <<<<<<<<<<<<<< @@ -30748,7 +31188,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1129 + /* "PyCafeDefs.pxi":1158 * if dt in ['uchar', 'uint8']: * dtcheck = CAFE_CHAR * elif dt in ['np.uint8']: # <<<<<<<<<<<<<< @@ -30757,12 +31197,12 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1129, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1130 + /* "PyCafeDefs.pxi":1159 * dtcheck = CAFE_CHAR * elif dt in ['np.uint8']: * dtcheck = CAFE_CHAR # <<<<<<<<<<<<<< @@ -30771,7 +31211,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_CHAR; - /* "PyCafeDefs.pxi":1129 + /* "PyCafeDefs.pxi":1158 * if dt in ['uchar', 'uint8']: * dtcheck = CAFE_CHAR * elif dt in ['np.uint8']: # <<<<<<<<<<<<<< @@ -30781,7 +31221,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1131 + /* "PyCafeDefs.pxi":1160 * elif dt in ['np.uint8']: * dtcheck = CAFE_CHAR * elif dt in ['ushort', 'uint16']: # <<<<<<<<<<<<<< @@ -30790,20 +31230,20 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_ushort, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1131, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_ushort, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1160, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L6_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1131, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1160, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L6_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1132 + /* "PyCafeDefs.pxi":1161 * dtcheck = CAFE_CHAR * elif dt in ['ushort', 'uint16']: * dtcheck = CAFE_USHORT # <<<<<<<<<<<<<< @@ -30812,7 +31252,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_USHORT; - /* "PyCafeDefs.pxi":1131 + /* "PyCafeDefs.pxi":1160 * elif dt in ['np.uint8']: * dtcheck = CAFE_CHAR * elif dt in ['ushort', 'uint16']: # <<<<<<<<<<<<<< @@ -30822,7 +31262,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1133 + /* "PyCafeDefs.pxi":1162 * elif dt in ['ushort', 'uint16']: * dtcheck = CAFE_USHORT * elif dt in ['np.ushort', 'np.uint16']: # <<<<<<<<<<<<<< @@ -30831,20 +31271,20 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ushort, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1133, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ushort, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1162, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L8_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1133, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1162, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L8_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1134 + /* "PyCafeDefs.pxi":1163 * dtcheck = CAFE_USHORT * elif dt in ['np.ushort', 'np.uint16']: * dtcheck = CAFE_USHORT # <<<<<<<<<<<<<< @@ -30853,7 +31293,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_USHORT; - /* "PyCafeDefs.pxi":1133 + /* "PyCafeDefs.pxi":1162 * elif dt in ['ushort', 'uint16']: * dtcheck = CAFE_USHORT * elif dt in ['np.ushort', 'np.uint16']: # <<<<<<<<<<<<<< @@ -30863,7 +31303,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1135 + /* "PyCafeDefs.pxi":1164 * elif dt in ['np.ushort', 'np.uint16']: * dtcheck = CAFE_USHORT * elif dt in ['short', 'int16', 'int8', 'bool', 'byte']: # <<<<<<<<<<<<<< @@ -30872,38 +31312,38 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1135, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1164, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L10_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1135, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1164, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L10_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1135, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1164, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L10_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1135, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1164, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L10_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1135, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1164, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L10_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1136 + /* "PyCafeDefs.pxi":1165 * dtcheck = CAFE_USHORT * elif dt in ['short', 'int16', 'int8', 'bool', 'byte']: * dtcheck = CAFE_SHORT # <<<<<<<<<<<<<< @@ -30912,7 +31352,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_SHORT; - /* "PyCafeDefs.pxi":1135 + /* "PyCafeDefs.pxi":1164 * elif dt in ['np.ushort', 'np.uint16']: * dtcheck = CAFE_USHORT * elif dt in ['short', 'int16', 'int8', 'bool', 'byte']: # <<<<<<<<<<<<<< @@ -30922,7 +31362,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1137 + /* "PyCafeDefs.pxi":1166 * elif dt in ['short', 'int16', 'int8', 'bool', 'byte']: * dtcheck = CAFE_SHORT * elif dt in ['np.short', 'np.int16', 'np.int8', 'np.bool_', 'np.byte']: # <<<<<<<<<<<<<< @@ -30931,38 +31371,38 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1137, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1166, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L15_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1137, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1166, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L15_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1137, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1166, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L15_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1137, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1166, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L15_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1137, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1166, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L15_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1138 + /* "PyCafeDefs.pxi":1167 * dtcheck = CAFE_SHORT * elif dt in ['np.short', 'np.int16', 'np.int8', 'np.bool_', 'np.byte']: * dtcheck = CAFE_SHORT # <<<<<<<<<<<<<< @@ -30971,7 +31411,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_SHORT; - /* "PyCafeDefs.pxi":1137 + /* "PyCafeDefs.pxi":1166 * elif dt in ['short', 'int16', 'int8', 'bool', 'byte']: * dtcheck = CAFE_SHORT * elif dt in ['np.short', 'np.int16', 'np.int8', 'np.bool_', 'np.byte']: # <<<<<<<<<<<<<< @@ -30981,7 +31421,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1139 + /* "PyCafeDefs.pxi":1168 * elif dt in ['np.short', 'np.int16', 'np.int8', 'np.bool_', 'np.byte']: * dtcheck = CAFE_SHORT * elif dt in ['int', 'int_', 'uint', 'ushort', 'int32', 'uint32']: # <<<<<<<<<<<<<< @@ -30990,44 +31430,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L20_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L20_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L20_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_ushort, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_ushort, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L20_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L20_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1139, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1168, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L20_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1140 + /* "PyCafeDefs.pxi":1169 * dtcheck = CAFE_SHORT * elif dt in ['int', 'int_', 'uint', 'ushort', 'int32', 'uint32']: * dtcheck = CAFE_LONG # <<<<<<<<<<<<<< @@ -31036,7 +31476,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_LONG; - /* "PyCafeDefs.pxi":1139 + /* "PyCafeDefs.pxi":1168 * elif dt in ['np.short', 'np.int16', 'np.int8', 'np.bool_', 'np.byte']: * dtcheck = CAFE_SHORT * elif dt in ['int', 'int_', 'uint', 'ushort', 'int32', 'uint32']: # <<<<<<<<<<<<<< @@ -31046,7 +31486,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1141 + /* "PyCafeDefs.pxi":1170 * elif dt in ['int', 'int_', 'uint', 'ushort', 'int32', 'uint32']: * dtcheck = CAFE_LONG * elif dt in ['np.intc', 'np.int_', 'np.long', 'np.ushort', 'np.int32', 'np.uint32']: # <<<<<<<<<<<<<< @@ -31055,44 +31495,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_intc, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_intc, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L26_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L26_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_long, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_long, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L26_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ushort, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ushort, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L26_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L26_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1141, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1170, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L26_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1142 + /* "PyCafeDefs.pxi":1171 * dtcheck = CAFE_LONG * elif dt in ['np.intc', 'np.int_', 'np.long', 'np.ushort', 'np.int32', 'np.uint32']: * dtcheck = CAFE_LONG # <<<<<<<<<<<<<< @@ -31101,7 +31541,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_LONG; - /* "PyCafeDefs.pxi":1141 + /* "PyCafeDefs.pxi":1170 * elif dt in ['int', 'int_', 'uint', 'ushort', 'int32', 'uint32']: * dtcheck = CAFE_LONG * elif dt in ['np.intc', 'np.int_', 'np.long', 'np.ushort', 'np.int32', 'np.uint32']: # <<<<<<<<<<<<<< @@ -31111,7 +31551,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1143 + /* "PyCafeDefs.pxi":1172 * elif dt in ['np.intc', 'np.int_', 'np.long', 'np.ushort', 'np.int32', 'np.uint32']: * dtcheck = CAFE_LONG * elif dt in ['double', 'float', 'float_', 'float64', 'int64', 'uint64']: # <<<<<<<<<<<<<< @@ -31120,44 +31560,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_double, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_double, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_int64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L32_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1143, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_uint64, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1172, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L32_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1144 + /* "PyCafeDefs.pxi":1173 * dtcheck = CAFE_LONG * elif dt in ['double', 'float', 'float_', 'float64', 'int64', 'uint64']: * dtcheck = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -31166,7 +31606,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_DOUBLE; - /* "PyCafeDefs.pxi":1143 + /* "PyCafeDefs.pxi":1172 * elif dt in ['np.intc', 'np.int_', 'np.long', 'np.ushort', 'np.int32', 'np.uint32']: * dtcheck = CAFE_LONG * elif dt in ['double', 'float', 'float_', 'float64', 'int64', 'uint64']: # <<<<<<<<<<<<<< @@ -31176,7 +31616,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1145 + /* "PyCafeDefs.pxi":1174 * elif dt in ['double', 'float', 'float_', 'float64', 'int64', 'uint64']: * dtcheck = CAFE_DOUBLE * elif dt in ['np.float_', 'np.float64', 'np.long', 'np.ulong', 'np.int64', 'np.uint64']: # <<<<<<<<<<<<<< @@ -31185,44 +31625,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L38_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L38_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_long, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_long, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L38_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ulong, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_ulong, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L38_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_int64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L38_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1145, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_uint64, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1174, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L38_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1146 + /* "PyCafeDefs.pxi":1175 * dtcheck = CAFE_DOUBLE * elif dt in ['np.float_', 'np.float64', 'np.long', 'np.ulong', 'np.int64', 'np.uint64']: * dtcheck = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -31231,7 +31671,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_DOUBLE; - /* "PyCafeDefs.pxi":1145 + /* "PyCafeDefs.pxi":1174 * elif dt in ['double', 'float', 'float_', 'float64', 'int64', 'uint64']: * dtcheck = CAFE_DOUBLE * elif dt in ['np.float_', 'np.float64', 'np.long', 'np.ulong', 'np.int64', 'np.uint64']: # <<<<<<<<<<<<<< @@ -31241,7 +31681,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1147 + /* "PyCafeDefs.pxi":1176 * elif dt in ['np.float_', 'np.float64', 'np.long', 'np.ulong', 'np.int64', 'np.uint64']: * dtcheck = CAFE_DOUBLE * elif dt in ['float16', 'float32']: # <<<<<<<<<<<<<< @@ -31250,20 +31690,20 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1147, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float16, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1176, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L44_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1147, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_float32, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1176, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L44_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1148 + /* "PyCafeDefs.pxi":1177 * dtcheck = CAFE_DOUBLE * elif dt in ['float16', 'float32']: * dtcheck = CAFE_FLOAT # <<<<<<<<<<<<<< @@ -31272,7 +31712,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_FLOAT; - /* "PyCafeDefs.pxi":1147 + /* "PyCafeDefs.pxi":1176 * elif dt in ['np.float_', 'np.float64', 'np.long', 'np.ulong', 'np.int64', 'np.uint64']: * dtcheck = CAFE_DOUBLE * elif dt in ['float16', 'float32']: # <<<<<<<<<<<<<< @@ -31282,7 +31722,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1149 + /* "PyCafeDefs.pxi":1178 * elif dt in ['float16', 'float32']: * dtcheck = CAFE_FLOAT * elif dt in ['np.float16', 'np.float32']: # <<<<<<<<<<<<<< @@ -31291,20 +31731,20 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1149, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float16, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1178, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L46_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1149, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_float32, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1178, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L46_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1150 + /* "PyCafeDefs.pxi":1179 * dtcheck = CAFE_FLOAT * elif dt in ['np.float16', 'np.float32']: * dtcheck = CAFE_FLOAT # <<<<<<<<<<<<<< @@ -31313,7 +31753,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_FLOAT; - /* "PyCafeDefs.pxi":1149 + /* "PyCafeDefs.pxi":1178 * elif dt in ['float16', 'float32']: * dtcheck = CAFE_FLOAT * elif dt in ['np.float16', 'np.float32']: # <<<<<<<<<<<<<< @@ -31323,7 +31763,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1151 + /* "PyCafeDefs.pxi":1180 * elif dt in ['np.float16', 'np.float32']: * dtcheck = CAFE_FLOAT * elif dt in ['string', 'str', 'unicode', 'string_', 'str_', 'unicode_']: # <<<<<<<<<<<<<< @@ -31332,44 +31772,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_string, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_string, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L48_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_str, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_str, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L48_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_unicode, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_unicode, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L48_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_string_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_string_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L48_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_str_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_str_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L48_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_unicode_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1151, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_unicode_2, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1180, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L48_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1152 + /* "PyCafeDefs.pxi":1181 * dtcheck = CAFE_FLOAT * elif dt in ['string', 'str', 'unicode', 'string_', 'str_', 'unicode_']: * dtcheck = CAFE_STRING # <<<<<<<<<<<<<< @@ -31378,7 +31818,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_STRING; - /* "PyCafeDefs.pxi":1151 + /* "PyCafeDefs.pxi":1180 * elif dt in ['np.float16', 'np.float32']: * dtcheck = CAFE_FLOAT * elif dt in ['string', 'str', 'unicode', 'string_', 'str_', 'unicode_']: # <<<<<<<<<<<<<< @@ -31388,7 +31828,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1153 + /* "PyCafeDefs.pxi":1182 * elif dt in ['string', 'str', 'unicode', 'string_', 'str_', 'unicode_']: * dtcheck = CAFE_STRING * elif dt in ['np.string', 'np.str', 'np.unicode', 'np.string_', 'np.str_', 'np.unicode_']: # <<<<<<<<<<<<<< @@ -31397,44 +31837,44 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_string, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_string, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L54_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_str, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_str, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L54_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_unicode, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_unicode, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L54_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_string_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_string_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L54_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_str_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_str_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L54_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_unicode_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1153, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u_np_unicode_2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 1182, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; __pyx_L54_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafeDefs.pxi":1154 + /* "PyCafeDefs.pxi":1183 * dtcheck = CAFE_STRING * elif dt in ['np.string', 'np.str', 'np.unicode', 'np.string_', 'np.str_', 'np.unicode_']: * dtcheck = CAFE_STRING # <<<<<<<<<<<<<< @@ -31443,7 +31883,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __pyx_v_dtcheck = CAFE_STRING; - /* "PyCafeDefs.pxi":1153 + /* "PyCafeDefs.pxi":1182 * elif dt in ['string', 'str', 'unicode', 'string_', 'str_', 'unicode_']: * dtcheck = CAFE_STRING * elif dt in ['np.string', 'np.str', 'np.unicode', 'np.string_', 'np.str_', 'np.unicode_']: # <<<<<<<<<<<<<< @@ -31453,7 +31893,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1155 + /* "PyCafeDefs.pxi":1184 * elif dt in ['np.string', 'np.str', 'np.unicode', 'np.string_', 'np.str_', 'np.unicode_']: * dtcheck = CAFE_STRING * elif dt in ['native', '']: # <<<<<<<<<<<<<< @@ -31462,30 +31902,30 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_2 = __pyx_v_dt; - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_native, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1155, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_n_u_native, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1184, __pyx_L1_error) if (!__pyx_t_4) { } else { __pyx_t_3 = __pyx_t_4; goto __pyx_L60_bool_binop_done; } - __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u__3, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1155, __pyx_L1_error) + __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_kp_u__3, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(2, 1184, __pyx_L1_error) __pyx_t_3 = __pyx_t_4; __pyx_L60_bool_binop_done:; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafeDefs.pxi":1156 + /* "PyCafeDefs.pxi":1185 * dtcheck = CAFE_STRING * elif dt in ['native', '']: * dtcheck = dtn # need a line here # <<<<<<<<<<<<<< * else: * print("Valid input parameters for data type are variations of: 'int', 'float', 'str', or 'native'") */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_dtn); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1156, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_dtn); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1185, __pyx_L1_error) __pyx_v_dtcheck = __pyx_t_1; - /* "PyCafeDefs.pxi":1155 + /* "PyCafeDefs.pxi":1184 * elif dt in ['np.string', 'np.str', 'np.unicode', 'np.string_', 'np.str_', 'np.unicode_']: * dtcheck = CAFE_STRING * elif dt in ['native', '']: # <<<<<<<<<<<<<< @@ -31495,7 +31935,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje goto __pyx_L3; } - /* "PyCafeDefs.pxi":1158 + /* "PyCafeDefs.pxi":1187 * dtcheck = dtn # need a line here * else: * print("Valid input parameters for data type are variations of: 'int', 'float', 'str', or 'native'") # <<<<<<<<<<<<<< @@ -31503,24 +31943,24 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje * */ /*else*/ { - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1158, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafeDefs.pxi":1159 + /* "PyCafeDefs.pxi":1188 * else: * print("Valid input parameters for data type are variations of: 'int', 'float', 'str', or 'native'") * print("Data to be presented in native data type") # <<<<<<<<<<<<<< * * return dtcheck */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1159, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_L3:; - /* "PyCafeDefs.pxi":1161 + /* "PyCafeDefs.pxi":1190 * print("Data to be presented in native data type") * * return dtcheck # <<<<<<<<<<<<<< @@ -31528,13 +31968,13 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1161, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafeDefs.pxi":1120 + /* "PyCafeDefs.pxi":1149 * * ################################################################################## * cdef getMatchedDataType(dt, dtn): # <<<<<<<<<<<<<< @@ -31555,7 +31995,7 @@ static PyObject *__pyx_f_6PyCafe_getMatchedDataType(PyObject *__pyx_v_dt, PyObje return __pyx_r; } -/* "PyCafeDefs.pxi":1173 +/* "PyCafeDefs.pxi":1202 * ################################################################################# * * cdef pvdata PVDataHolderToStruct(PVDataHolder pvd, dt=None): # <<<<<<<<<<<<<< @@ -31596,19 +32036,19 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD } } - /* "PyCafeDefs.pxi":1177 + /* "PyCafeDefs.pxi":1206 * cdef CAFEDataTypeCode cdt * #global p1 * cdef pvdata p1 = pvdata() # <<<<<<<<<<<<<< * * cdef unsigned int dtn = pvd.getDataType() */ - __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1177, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p1 = ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1179 + /* "PyCafeDefs.pxi":1208 * cdef pvdata p1 = pvdata() * * cdef unsigned int dtn = pvd.getDataType() # <<<<<<<<<<<<<< @@ -31617,7 +32057,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_dtn = __pyx_v_pvd.getDataType(); - /* "PyCafeDefs.pxi":1180 + /* "PyCafeDefs.pxi":1209 * * cdef unsigned int dtn = pvd.getDataType() * cdef unsigned int dtcheck = dtn # <<<<<<<<<<<<<< @@ -31626,45 +32066,45 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_dtcheck = __pyx_v_dtn; - /* "PyCafeDefs.pxi":1181 + /* "PyCafeDefs.pxi":1210 * cdef unsigned int dtn = pvd.getDataType() * cdef unsigned int dtcheck = dtn * cdef localList = [] # <<<<<<<<<<<<<< * * cdef bytes bytesVal */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1181, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_localList = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1185 + /* "PyCafeDefs.pxi":1214 * cdef bytes bytesVal * * if dt: # <<<<<<<<<<<<<< * dtcheck = getMatchedDataType(dt, dtn) * */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_dt); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1185, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_dt); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1214, __pyx_L1_error) if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1186 + /* "PyCafeDefs.pxi":1215 * * if dt: * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * if dtcheck == CAFE_STRING: */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1186, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1186, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1186, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dtcheck = __pyx_t_4; - /* "PyCafeDefs.pxi":1185 + /* "PyCafeDefs.pxi":1214 * cdef bytes bytesVal * * if dt: # <<<<<<<<<<<<<< @@ -31673,7 +32113,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ } - /* "PyCafeDefs.pxi":1188 + /* "PyCafeDefs.pxi":1217 * dtcheck = getMatchedDataType(dt, dtn) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -31683,7 +32123,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafeDefs.pxi":1189 + /* "PyCafeDefs.pxi":1218 * * if dtcheck == CAFE_STRING: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -31695,14 +32135,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1190 + /* "PyCafeDefs.pxi":1219 * if dtcheck == CAFE_STRING: * for i in range(0, pvd.getNelem()): * bytesVal = pvd.getAsString(i) # <<<<<<<<<<<<<< * encoding = False * #if not encoding: */ - __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1190, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); @@ -31710,7 +32150,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1191 + /* "PyCafeDefs.pxi":1220 * for i in range(0, pvd.getNelem()): * bytesVal = pvd.getAsString(i) * encoding = False # <<<<<<<<<<<<<< @@ -31719,7 +32159,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_encoding = 0; - /* "PyCafeDefs.pxi":1198 + /* "PyCafeDefs.pxi":1227 * # except UnicodeDecodeError: * # pass * if not encoding: # <<<<<<<<<<<<<< @@ -31729,7 +32169,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1199 + /* "PyCafeDefs.pxi":1228 * # pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31745,7 +32185,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "PyCafeDefs.pxi":1200 + /* "PyCafeDefs.pxi":1229 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -31754,14 +32194,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1200, __pyx_L7_error) + __PYX_ERR(2, 1229, __pyx_L7_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1200, __pyx_L7_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1229, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1201 + /* "PyCafeDefs.pxi":1230 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -31770,7 +32210,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_encoding = 1; - /* "PyCafeDefs.pxi":1199 + /* "PyCafeDefs.pxi":1228 * # pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31786,7 +32226,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1203 + /* "PyCafeDefs.pxi":1232 * encoding = True * #print('utf-8 for umlauts CONFIRMED!') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -31801,7 +32241,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD goto __pyx_L9_except_error; __pyx_L9_except_error:; - /* "PyCafeDefs.pxi":1199 + /* "PyCafeDefs.pxi":1228 * # pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31821,7 +32261,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_L14_try_end:; } - /* "PyCafeDefs.pxi":1198 + /* "PyCafeDefs.pxi":1227 * # except UnicodeDecodeError: * # pass * if not encoding: # <<<<<<<<<<<<<< @@ -31830,7 +32270,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ } - /* "PyCafeDefs.pxi":1205 + /* "PyCafeDefs.pxi":1234 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -31840,7 +32280,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1206 + /* "PyCafeDefs.pxi":1235 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31856,7 +32296,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "PyCafeDefs.pxi":1207 + /* "PyCafeDefs.pxi":1236 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -31865,14 +32305,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1207, __pyx_L16_error) + __PYX_ERR(2, 1236, __pyx_L16_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1207, __pyx_L16_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1236, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1208 + /* "PyCafeDefs.pxi":1237 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -31881,7 +32321,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_encoding = 1; - /* "PyCafeDefs.pxi":1206 + /* "PyCafeDefs.pxi":1235 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31897,7 +32337,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1210 + /* "PyCafeDefs.pxi":1239 * encoding = True * #print('utf-16 for umlauts') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -31912,7 +32352,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD goto __pyx_L18_except_error; __pyx_L18_except_error:; - /* "PyCafeDefs.pxi":1206 + /* "PyCafeDefs.pxi":1235 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31932,7 +32372,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_L23_try_end:; } - /* "PyCafeDefs.pxi":1205 + /* "PyCafeDefs.pxi":1234 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -31941,7 +32381,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ } - /* "PyCafeDefs.pxi":1212 + /* "PyCafeDefs.pxi":1241 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -31951,7 +32391,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1213 + /* "PyCafeDefs.pxi":1242 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -31967,7 +32407,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "PyCafeDefs.pxi":1214 + /* "PyCafeDefs.pxi":1243 * if not encoding: * try: * strVal= (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -31976,14 +32416,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1214, __pyx_L25_error) + __PYX_ERR(2, 1243, __pyx_L25_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1214, __pyx_L25_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1243, __pyx_L25_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1215 + /* "PyCafeDefs.pxi":1244 * try: * strVal= (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -31992,7 +32432,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_encoding = 1; - /* "PyCafeDefs.pxi":1213 + /* "PyCafeDefs.pxi":1242 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -32008,7 +32448,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1217 + /* "PyCafeDefs.pxi":1246 * encoding = True * #print('latin1 for umlauts') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -32023,7 +32463,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD goto __pyx_L27_except_error; __pyx_L27_except_error:; - /* "PyCafeDefs.pxi":1213 + /* "PyCafeDefs.pxi":1242 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -32043,7 +32483,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_L32_try_end:; } - /* "PyCafeDefs.pxi":1212 + /* "PyCafeDefs.pxi":1241 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -32052,7 +32492,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ } - /* "PyCafeDefs.pxi":1219 + /* "PyCafeDefs.pxi":1248 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -32062,19 +32502,19 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1220 + /* "PyCafeDefs.pxi":1249 * pass * if not encoding: * strVal = pvd.getAsString(i) # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1220, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1219 + /* "PyCafeDefs.pxi":1248 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -32083,18 +32523,18 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ } - /* "PyCafeDefs.pxi":1222 + /* "PyCafeDefs.pxi":1251 * strVal = pvd.getAsString(i) * * localList.append(strVal) # <<<<<<<<<<<<<< * * elif dtcheck == CAFE_SHORT: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(2, 1222, __pyx_L1_error) } - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1222, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(2, 1251, __pyx_L1_error) } + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1251, __pyx_L1_error) } - /* "PyCafeDefs.pxi":1188 + /* "PyCafeDefs.pxi":1217 * dtcheck = getMatchedDataType(dt, dtn) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -32104,7 +32544,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_SHORT: - /* "PyCafeDefs.pxi":1225 + /* "PyCafeDefs.pxi":1254 * * elif dtcheck == CAFE_SHORT: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32116,20 +32556,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1226 + /* "PyCafeDefs.pxi":1255 * elif dtcheck == CAFE_SHORT: * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsLong(i)) # getAsShort(i) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvd.getNelem()): */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1226, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1226, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1224 + /* "PyCafeDefs.pxi":1253 * localList.append(strVal) * * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -32139,7 +32579,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_FLOAT: - /* "PyCafeDefs.pxi":1228 + /* "PyCafeDefs.pxi":1257 * localList.append(pvd.getAsLong(i)) # getAsShort(i) * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32151,20 +32591,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1229 + /* "PyCafeDefs.pxi":1258 * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsDouble(i)) # getAsFloat(i) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvd.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1229, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvd.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1229, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1227 + /* "PyCafeDefs.pxi":1256 * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsLong(i)) # getAsShort(i) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -32174,7 +32614,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_ENUM: - /* "PyCafeDefs.pxi":1233 + /* "PyCafeDefs.pxi":1262 * # if enum, string taken as native * # if self._c_cafe.isEnum(handle)==1: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32186,20 +32626,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1234 + /* "PyCafeDefs.pxi":1263 * # if self._c_cafe.isEnum(handle)==1: * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsString(i)) # <<<<<<<<<<<<<< * # else: * # for i in range(0, pvd.getNelem()): */ - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1234, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvd.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1234, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1230 + /* "PyCafeDefs.pxi":1259 * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsDouble(i)) # getAsFloat(i) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -32209,7 +32649,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_CHAR: - /* "PyCafeDefs.pxi":1239 + /* "PyCafeDefs.pxi":1268 * # localList.append(pvd.getAsLong(i)) #getAsUShort(i) * elif dtcheck == CAFE_CHAR: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32221,20 +32661,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1241 + /* "PyCafeDefs.pxi":1270 * for i in range(0, pvd.getNelem()): * # pvd.getAsChar(i) * localList.append(pvd.getAsLong(i)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for i in range(0, pvd.getNelem()): */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1241, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1241, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1238 + /* "PyCafeDefs.pxi":1267 * # for i in range(0, pvd.getNelem()): * # localList.append(pvd.getAsLong(i)) #getAsUShort(i) * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -32244,7 +32684,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_LONG: - /* "PyCafeDefs.pxi":1243 + /* "PyCafeDefs.pxi":1272 * localList.append(pvd.getAsLong(i)) * elif dtcheck == CAFE_LONG: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32256,20 +32696,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1244 + /* "PyCafeDefs.pxi":1273 * elif dtcheck == CAFE_LONG: * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsLong(i)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvd.getNelem()): */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1244, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1244, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1242 + /* "PyCafeDefs.pxi":1271 * # pvd.getAsChar(i) * localList.append(pvd.getAsLong(i)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -32279,7 +32719,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; case CAFE_DOUBLE: - /* "PyCafeDefs.pxi":1246 + /* "PyCafeDefs.pxi":1275 * localList.append(pvd.getAsLong(i)) * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvd.getNelem()): # <<<<<<<<<<<<<< @@ -32291,20 +32731,20 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1247 + /* "PyCafeDefs.pxi":1276 * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsDouble(i)) # <<<<<<<<<<<<<< * else: * localList.append(0) */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvd.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1247, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvd.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1247, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1276, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafeDefs.pxi":1245 + /* "PyCafeDefs.pxi":1274 * for i in range(0, pvd.getNelem()): * localList.append(pvd.getAsLong(i)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -32314,25 +32754,25 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD break; default: - /* "PyCafeDefs.pxi":1249 + /* "PyCafeDefs.pxi":1278 * localList.append(pvd.getAsDouble(i)) * else: * localList.append(0) # <<<<<<<<<<<<<< * # print ("This line in PyCafe def getDataHolderToStruct should never appear!" * # print ("No Data! Error. Is channel connected?" */ - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1249, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1278, __pyx_L1_error) break; } - /* "PyCafeDefs.pxi":1253 + /* "PyCafeDefs.pxi":1282 * # print ("No Data! Error. Is channel connected?" * * p1.value = localList # <<<<<<<<<<<<<< * p1.status = pvd.getStatus() * p1.statusAsString = pvd.getStatusAsString() */ - if (!(likely(PyList_CheckExact(__pyx_v_localList))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_localList)->tp_name), 0))) __PYX_ERR(2, 1253, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_localList))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_localList)->tp_name), 0))) __PYX_ERR(2, 1282, __pyx_L1_error) __pyx_t_1 = __pyx_v_localList; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); @@ -32341,7 +32781,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->value = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1254 + /* "PyCafeDefs.pxi":1283 * * p1.value = localList * p1.status = pvd.getStatus() # <<<<<<<<<<<<<< @@ -32350,14 +32790,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->status = __pyx_v_pvd.getStatus(); - /* "PyCafeDefs.pxi":1255 + /* "PyCafeDefs.pxi":1284 * p1.value = localList * p1.status = pvd.getStatus() * p1.statusAsString = pvd.getStatusAsString() # <<<<<<<<<<<<<< * p1.nelem = pvd.getNelem() * p1.alarmStatus = pvd.getAlarmStatus() */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getStatusAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1255, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getStatusAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_p1->statusAsString); @@ -32365,7 +32805,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->statusAsString = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1256 + /* "PyCafeDefs.pxi":1285 * p1.status = pvd.getStatus() * p1.statusAsString = pvd.getStatusAsString() * p1.nelem = pvd.getNelem() # <<<<<<<<<<<<<< @@ -32374,7 +32814,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->nelem = __pyx_v_pvd.getNelem(); - /* "PyCafeDefs.pxi":1257 + /* "PyCafeDefs.pxi":1286 * p1.statusAsString = pvd.getStatusAsString() * p1.nelem = pvd.getNelem() * p1.alarmStatus = pvd.getAlarmStatus() # <<<<<<<<<<<<<< @@ -32383,7 +32823,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->alarmStatus = __pyx_v_pvd.getAlarmStatus(); - /* "PyCafeDefs.pxi":1258 + /* "PyCafeDefs.pxi":1287 * p1.nelem = pvd.getNelem() * p1.alarmStatus = pvd.getAlarmStatus() * p1.alarmSeverity = pvd.getAlarmSeverity() # <<<<<<<<<<<<<< @@ -32392,14 +32832,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->alarmSeverity = __pyx_v_pvd.getAlarmSeverity(); - /* "PyCafeDefs.pxi":1260 + /* "PyCafeDefs.pxi":1289 * p1.alarmSeverity = pvd.getAlarmSeverity() * * p1.alarmStatusAsString = pvd.getAlarmStatusAsString() # <<<<<<<<<<<<<< * p1.alarmSeverityAsString = pvd.getAlarmSeverityAsString() * */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getAlarmStatusAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1260, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getAlarmStatusAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_p1->alarmStatusAsString); @@ -32407,14 +32847,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->alarmStatusAsString = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1261 + /* "PyCafeDefs.pxi":1290 * * p1.alarmStatusAsString = pvd.getAlarmStatusAsString() * p1.alarmSeverityAsString = pvd.getAlarmSeverityAsString() # <<<<<<<<<<<<<< * * p1.pulseID = pvd.getPulseID() */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getAlarmSeverityAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1261, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getAlarmSeverityAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_p1->alarmSeverityAsString); @@ -32422,7 +32862,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->alarmSeverityAsString = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1263 + /* "PyCafeDefs.pxi":1292 * p1.alarmSeverityAsString = pvd.getAlarmSeverityAsString() * * p1.pulseID = pvd.getPulseID() # <<<<<<<<<<<<<< @@ -32431,7 +32871,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->pulseID = __pyx_v_pvd.getPulseID(); - /* "PyCafeDefs.pxi":1265 + /* "PyCafeDefs.pxi":1294 * p1.pulseID = pvd.getPulseID() * * p1.dataType = pvd.getDataType() # <<<<<<<<<<<<<< @@ -32440,14 +32880,14 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_p1->dataType = __pyx_v_pvd.getDataType(); - /* "PyCafeDefs.pxi":1266 + /* "PyCafeDefs.pxi":1295 * * p1.dataType = pvd.getDataType() * p1.dataTypeAsString = cdt.message(pvd.getDataType()) # <<<<<<<<<<<<<< * - * p1.tsDateAsString = pvd.getEpicsTimeStampAsString() + * p1.tsDateAsString = encodeString( pvd.getEpicsTimeStampAsString()) */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_cdt.message(__pyx_v_pvd.getDataType())); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1266, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_cdt.message(__pyx_v_pvd.getDataType())); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_p1->dataTypeAsString); @@ -32455,89 +32895,97 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->dataTypeAsString = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1268 + /* "PyCafeDefs.pxi":1297 * p1.dataTypeAsString = cdt.message(pvd.getDataType()) * - * p1.tsDateAsString = pvd.getEpicsTimeStampAsString() # <<<<<<<<<<<<<< - * p1.bsDateAsString = pvd.getBSTimeStampAsString() + * p1.tsDateAsString = encodeString( pvd.getEpicsTimeStampAsString()) # <<<<<<<<<<<<<< + * p1.bsDateAsString = encodeString( pvd.getBSTimeStampAsString()) * */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getEpicsTimeStampAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1268, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvd.getEpicsTimeStampAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GIVEREF(__pyx_t_1); + __pyx_t_3 = __pyx_f_6PyCafe_encodeString(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(2, 1297, __pyx_L1_error) + __Pyx_GIVEREF(__pyx_t_3); __Pyx_GOTREF(__pyx_v_p1->tsDateAsString); __Pyx_DECREF(__pyx_v_p1->tsDateAsString); - __pyx_v_p1->tsDateAsString = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; + __pyx_v_p1->tsDateAsString = ((PyObject*)__pyx_t_3); + __pyx_t_3 = 0; - /* "PyCafeDefs.pxi":1269 + /* "PyCafeDefs.pxi":1298 * - * p1.tsDateAsString = pvd.getEpicsTimeStampAsString() - * p1.bsDateAsString = pvd.getBSTimeStampAsString() # <<<<<<<<<<<<<< + * p1.tsDateAsString = encodeString( pvd.getEpicsTimeStampAsString()) + * p1.bsDateAsString = encodeString( pvd.getBSTimeStampAsString()) # <<<<<<<<<<<<<< * - * pvd._etsNorm = pvd.getEpicsTimeStampAsUInt32() + * #Mr 21, 2002 11:59:11.856568682 */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pvd.getBSTimeStampAsString()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1269, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvd.getBSTimeStampAsString()); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_1 = __pyx_f_6PyCafe_encodeString(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 1298, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_p1->bsDateAsString); __Pyx_DECREF(__pyx_v_p1->bsDateAsString); __pyx_v_p1->bsDateAsString = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1271 - * p1.bsDateAsString = pvd.getBSTimeStampAsString() - * + /* "PyCafeDefs.pxi":1302 + * #Mr 21, 2002 11:59:11.856568682 + * #print( p1.tsDateAsString, "//", p1.bsDateAsString) * pvd._etsNorm = pvd.getEpicsTimeStampAsUInt32() # <<<<<<<<<<<<<< * * cpdef ll = [] */ __pyx_v_pvd._etsNorm = __pyx_v_pvd.getEpicsTimeStampAsUInt32(); - /* "PyCafeDefs.pxi":1273 + /* "PyCafeDefs.pxi":1304 * pvd._etsNorm = pvd.getEpicsTimeStampAsUInt32() * * cpdef ll = [] # <<<<<<<<<<<<<< * ll.append((pvd._etsNorm).secPastEpoch) * ll.append((pvd._etsNorm).nsec) */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1273, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_ll = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1274 + /* "PyCafeDefs.pxi":1305 * * cpdef ll = [] * ll.append((pvd._etsNorm).secPastEpoch) # <<<<<<<<<<<<<< * ll.append((pvd._etsNorm).nsec) * p1.ts = ll */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvd._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1274, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvd._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1274, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1305, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1275 + /* "PyCafeDefs.pxi":1306 * cpdef ll = [] * ll.append((pvd._etsNorm).secPastEpoch) * ll.append((pvd._etsNorm).nsec) # <<<<<<<<<<<<<< * p1.ts = ll * */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvd._etsNorm.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1275, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvd._etsNorm.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1275, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1276 + /* "PyCafeDefs.pxi":1307 * ll.append((pvd._etsNorm).secPastEpoch) * ll.append((pvd._etsNorm).nsec) * p1.ts = ll # <<<<<<<<<<<<<< * * pvd._etsDate = pvd.getEpicsTimeStampAsDate() */ - if (!(likely(PyList_CheckExact(__pyx_v_ll))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_ll)->tp_name), 0))) __PYX_ERR(2, 1276, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_ll))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_ll)->tp_name), 0))) __PYX_ERR(2, 1307, __pyx_L1_error) __pyx_t_1 = __pyx_v_ll; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); @@ -32546,7 +32994,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->ts = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1278 + /* "PyCafeDefs.pxi":1309 * p1.ts = ll * * pvd._etsDate = pvd.getEpicsTimeStampAsDate() # <<<<<<<<<<<<<< @@ -32555,110 +33003,110 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD */ __pyx_v_pvd._etsDate = __pyx_v_pvd.getEpicsTimeStampAsDate(); - /* "PyCafeDefs.pxi":1280 + /* "PyCafeDefs.pxi":1311 * pvd._etsDate = pvd.getEpicsTimeStampAsDate() * * cpdef ld = [] # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).year) * ld.append((pvd._etsDate).mon) */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1280, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_ld = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1281 + /* "PyCafeDefs.pxi":1312 * * cpdef ld = [] * ld.append((pvd._etsDate).year) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).mon) * ld.append((pvd._etsDate).day) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.year); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1281, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.year); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1281, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1312, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1282 + /* "PyCafeDefs.pxi":1313 * cpdef ld = [] * ld.append((pvd._etsDate).year) * ld.append((pvd._etsDate).mon) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).day) * ld.append((pvd._etsDate).hour) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.mon); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1282, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.mon); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1282, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1283 + /* "PyCafeDefs.pxi":1314 * ld.append((pvd._etsDate).year) * ld.append((pvd._etsDate).mon) * ld.append((pvd._etsDate).day) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).hour) * ld.append((pvd._etsDate).min) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.day); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1283, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.day); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1283, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1314, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1284 + /* "PyCafeDefs.pxi":1315 * ld.append((pvd._etsDate).mon) * ld.append((pvd._etsDate).day) * ld.append((pvd._etsDate).hour) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).min) * ld.append((pvd._etsDate).sec) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.hour); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1284, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.hour); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1284, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1285 + /* "PyCafeDefs.pxi":1316 * ld.append((pvd._etsDate).day) * ld.append((pvd._etsDate).hour) * ld.append((pvd._etsDate).min) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).sec) * ld.append((pvd._etsDate).nsec) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.min); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1285, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.min); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1285, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1286 + /* "PyCafeDefs.pxi":1317 * ld.append((pvd._etsDate).hour) * ld.append((pvd._etsDate).min) * ld.append((pvd._etsDate).sec) # <<<<<<<<<<<<<< * ld.append((pvd._etsDate).nsec) * p1.tsDate = ld */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.sec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1286, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_pvd._etsDate.sec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1286, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1287 + /* "PyCafeDefs.pxi":1318 * ld.append((pvd._etsDate).min) * ld.append((pvd._etsDate).sec) * ld.append((pvd._etsDate).nsec) # <<<<<<<<<<<<<< * p1.tsDate = ld * */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(__pyx_v_pvd._etsDate.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1287, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(__pyx_v_pvd._etsDate.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1287, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 1318, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1288 + /* "PyCafeDefs.pxi":1319 * ld.append((pvd._etsDate).sec) * ld.append((pvd._etsDate).nsec) * p1.tsDate = ld # <<<<<<<<<<<<<< * * return p1 */ - if (!(likely(PyList_CheckExact(__pyx_v_ld))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_ld)->tp_name), 0))) __PYX_ERR(2, 1288, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_ld))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_ld)->tp_name), 0))) __PYX_ERR(2, 1319, __pyx_L1_error) __pyx_t_1 = __pyx_v_ld; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); @@ -32667,7 +33115,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_v_p1->tsDate = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1290 + /* "PyCafeDefs.pxi":1321 * p1.tsDate = ld * * return p1 # <<<<<<<<<<<<<< @@ -32679,7 +33127,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD __pyx_r = __pyx_v_p1; goto __pyx_L0; - /* "PyCafeDefs.pxi":1173 + /* "PyCafeDefs.pxi":1202 * ################################################################################# * * cdef pvdata PVDataHolderToStruct(PVDataHolder pvd, dt=None): # <<<<<<<<<<<<<< @@ -32707,7 +33155,7 @@ static struct __pyx_obj_6PyCafe_pvdata *__pyx_f_6PyCafe_PVDataHolderToStruct(PVD return __pyx_r; } -/* "PyCafeDefs.pxi":1296 +/* "PyCafeDefs.pxi":1327 * ################################################################################# * * cdef pvctrl PVCtrlHolderToStruct(PVCtrlHolder pvc, dt=None): # <<<<<<<<<<<<<< @@ -32751,20 +33199,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC } } - /* "PyCafeDefs.pxi":1299 + /* "PyCafeDefs.pxi":1330 * * #global c1 * cdef pvctrl c1 = pvctrl() # <<<<<<<<<<<<<< * - * + * cdef unsigned int dtn = pvc.getDataType() */ - __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvctrl)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1299, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvctrl)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_c1 = ((struct __pyx_obj_6PyCafe_pvctrl *)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1303 - * + /* "PyCafeDefs.pxi":1332 + * cdef pvctrl c1 = pvctrl() * * cdef unsigned int dtn = pvc.getDataType() # <<<<<<<<<<<<<< * @@ -32772,7 +33220,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_dtn = __pyx_v_pvc.getDataType(); - /* "PyCafeDefs.pxi":1305 + /* "PyCafeDefs.pxi":1334 * cdef unsigned int dtn = pvc.getDataType() * * cdef unsigned int dtcheck = dtn # <<<<<<<<<<<<<< @@ -32781,45 +33229,45 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_dtcheck = __pyx_v_dtn; - /* "PyCafeDefs.pxi":1308 + /* "PyCafeDefs.pxi":1337 * cdef bytes bytesVal * * cdef localList = [] # <<<<<<<<<<<<<< * * if dt: */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1308, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_localList = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1310 + /* "PyCafeDefs.pxi":1339 * cdef localList = [] * * if dt: # <<<<<<<<<<<<<< * dtcheck = getMatchedDataType(dt, dtn) * */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_dt); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1310, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_dt); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1339, __pyx_L1_error) if (__pyx_t_2) { - /* "PyCafeDefs.pxi":1311 + /* "PyCafeDefs.pxi":1340 * * if dt: * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * if dtcheck == CAFE_STRING: */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1311, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1311, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1311, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 1340, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dtcheck = __pyx_t_4; - /* "PyCafeDefs.pxi":1310 + /* "PyCafeDefs.pxi":1339 * cdef localList = [] * * if dt: # <<<<<<<<<<<<<< @@ -32828,7 +33276,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ } - /* "PyCafeDefs.pxi":1313 + /* "PyCafeDefs.pxi":1342 * dtcheck = getMatchedDataType(dt, dtn) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -32838,7 +33286,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafeDefs.pxi":1314 + /* "PyCafeDefs.pxi":1343 * * if dtcheck == CAFE_STRING: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -32850,14 +33298,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1315 + /* "PyCafeDefs.pxi":1344 * if dtcheck == CAFE_STRING: * for i in range(0, pvc.getNelem()): * bytesVal = pvc.getAsString(i) # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('utf-8') */ - __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1315, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __Pyx_INCREF(__pyx_t_1); @@ -32865,7 +33313,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1316 + /* "PyCafeDefs.pxi":1345 * for i in range(0, pvc.getNelem()): * bytesVal = pvc.getAsString(i) * try: # <<<<<<<<<<<<<< @@ -32881,7 +33329,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "PyCafeDefs.pxi":1317 + /* "PyCafeDefs.pxi":1346 * bytesVal = pvc.getAsString(i) * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -32890,14 +33338,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1317, __pyx_L6_error) + __PYX_ERR(2, 1346, __pyx_L6_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1317, __pyx_L6_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1346, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1316 + /* "PyCafeDefs.pxi":1345 * for i in range(0, pvc.getNelem()): * bytesVal = pvc.getAsString(i) * try: # <<<<<<<<<<<<<< @@ -32913,7 +33361,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1318 + /* "PyCafeDefs.pxi":1347 * try: * strVal = (bytesVal).decode('utf-8') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -32928,7 +33376,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC goto __pyx_L8_except_error; __pyx_L8_except_error:; - /* "PyCafeDefs.pxi":1316 + /* "PyCafeDefs.pxi":1345 * for i in range(0, pvc.getNelem()): * bytesVal = pvc.getAsString(i) * try: # <<<<<<<<<<<<<< @@ -32948,7 +33396,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_L13_try_end:; } - /* "PyCafeDefs.pxi":1320 + /* "PyCafeDefs.pxi":1349 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -32964,7 +33412,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "PyCafeDefs.pxi":1321 + /* "PyCafeDefs.pxi":1350 * pass * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -32973,14 +33421,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1321, __pyx_L14_error) + __PYX_ERR(2, 1350, __pyx_L14_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1321, __pyx_L14_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1350, __pyx_L14_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1320 + /* "PyCafeDefs.pxi":1349 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -32996,7 +33444,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1322 + /* "PyCafeDefs.pxi":1351 * try: * strVal = (bytesVal).decode('utf-16') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -33011,7 +33459,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC goto __pyx_L16_except_error; __pyx_L16_except_error:; - /* "PyCafeDefs.pxi":1320 + /* "PyCafeDefs.pxi":1349 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -33031,7 +33479,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_L21_try_end:; } - /* "PyCafeDefs.pxi":1324 + /* "PyCafeDefs.pxi":1353 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -33047,7 +33495,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "PyCafeDefs.pxi":1325 + /* "PyCafeDefs.pxi":1354 * pass * try: * strVal= (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -33056,14 +33504,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1325, __pyx_L22_error) + __PYX_ERR(2, 1354, __pyx_L22_error) } - __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1325, __pyx_L22_error) + __pyx_t_1 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1354, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1324 + /* "PyCafeDefs.pxi":1353 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -33079,7 +33527,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1326 + /* "PyCafeDefs.pxi":1355 * try: * strVal= (bytesVal).decode('latin-1') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -33089,19 +33537,19 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); if (__pyx_t_10) { __Pyx_AddTraceback("PyCafe.PVCtrlHolderToStruct", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_11) < 0) __PYX_ERR(2, 1326, __pyx_L24_except_error) + if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_11) < 0) __PYX_ERR(2, 1355, __pyx_L24_except_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_11); - /* "PyCafeDefs.pxi":1327 + /* "PyCafeDefs.pxi":1356 * strVal= (bytesVal).decode('latin-1') * except UnicodeDecodeError: * strVal = pvc.getAsString(i) # <<<<<<<<<<<<<< * localList.append(strVal) * elif dtcheck == CAFE_SHORT: */ - __pyx_t_12 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 1327, __pyx_L24_except_error) + __pyx_t_12 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 1356, __pyx_L24_except_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_12); __pyx_t_12 = 0; @@ -33113,7 +33561,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC goto __pyx_L24_except_error; __pyx_L24_except_error:; - /* "PyCafeDefs.pxi":1324 + /* "PyCafeDefs.pxi":1353 * except UnicodeDecodeError: * pass * try: # <<<<<<<<<<<<<< @@ -33133,17 +33581,17 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_L29_try_end:; } - /* "PyCafeDefs.pxi":1328 + /* "PyCafeDefs.pxi":1357 * except UnicodeDecodeError: * strVal = pvc.getAsString(i) * localList.append(strVal) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_SHORT: * for i in range(0, pvc.getNelem()): */ - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1328, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1357, __pyx_L1_error) } - /* "PyCafeDefs.pxi":1313 + /* "PyCafeDefs.pxi":1342 * dtcheck = getMatchedDataType(dt, dtn) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -33153,7 +33601,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_SHORT: - /* "PyCafeDefs.pxi":1330 + /* "PyCafeDefs.pxi":1359 * localList.append(strVal) * elif dtcheck == CAFE_SHORT: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33165,20 +33613,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1331 + /* "PyCafeDefs.pxi":1360 * elif dtcheck == CAFE_SHORT: * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsLong(i)) # getAsShort(i) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvc.getNelem()): */ - __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1331, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1331, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1360, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1329 + /* "PyCafeDefs.pxi":1358 * strVal = pvc.getAsString(i) * localList.append(strVal) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -33188,7 +33636,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_FLOAT: - /* "PyCafeDefs.pxi":1333 + /* "PyCafeDefs.pxi":1362 * localList.append(pvc.getAsLong(i)) # getAsShort(i) * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33200,20 +33648,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1334 + /* "PyCafeDefs.pxi":1363 * elif dtcheck == CAFE_FLOAT: * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsDouble(i)) # getAsFloat(i) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_11 = PyFloat_FromDouble(__pyx_v_pvc.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1334, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble(__pyx_v_pvc.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1334, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1332 + /* "PyCafeDefs.pxi":1361 * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsLong(i)) # getAsShort(i) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -33223,7 +33671,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_ENUM: - /* "PyCafeDefs.pxi":1338 + /* "PyCafeDefs.pxi":1367 * # if enum, string taken as native * # if self._c_cafe.isEnum(handle)==1: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33235,20 +33683,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1339 + /* "PyCafeDefs.pxi":1368 * # if self._c_cafe.isEnum(handle)==1: * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsString(i)) # <<<<<<<<<<<<<< * # else: * # for i in range(0, pvd.getNelem()): */ - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1339, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvc.getAsString(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1339, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1335 + /* "PyCafeDefs.pxi":1364 * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsDouble(i)) # getAsFloat(i) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -33258,7 +33706,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_CHAR: - /* "PyCafeDefs.pxi":1344 + /* "PyCafeDefs.pxi":1373 * # localList.append(pvd.getAsLong(i)) #getAsUShort(i) * elif dtcheck == CAFE_CHAR: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33270,20 +33718,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1346 + /* "PyCafeDefs.pxi":1375 * for i in range(0, pvc.getNelem()): * # pvd.getAsChar(i) * localList.append(pvc.getAsLong(i)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for i in range(0, pvc.getNelem()): */ - __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1346, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1346, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1343 + /* "PyCafeDefs.pxi":1372 * # for i in range(0, pvd.getNelem()): * # localList.append(pvd.getAsLong(i)) #getAsUShort(i) * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -33293,7 +33741,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_LONG: - /* "PyCafeDefs.pxi":1348 + /* "PyCafeDefs.pxi":1377 * localList.append(pvc.getAsLong(i)) * elif dtcheck == CAFE_LONG: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33305,20 +33753,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1349 + /* "PyCafeDefs.pxi":1378 * elif dtcheck == CAFE_LONG: * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsLong(i)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvc.getNelem()): */ - __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1349, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_pvc.getAsLong(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1349, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1347 + /* "PyCafeDefs.pxi":1376 * # pvd.getAsChar(i) * localList.append(pvc.getAsLong(i)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -33328,7 +33776,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; case CAFE_DOUBLE: - /* "PyCafeDefs.pxi":1351 + /* "PyCafeDefs.pxi":1380 * localList.append(pvc.getAsLong(i)) * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvc.getNelem()): # <<<<<<<<<<<<<< @@ -33340,20 +33788,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1352 + /* "PyCafeDefs.pxi":1381 * elif dtcheck == CAFE_DOUBLE: * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsDouble(i)) # <<<<<<<<<<<<<< * else: * localList.append(0) */ - __pyx_t_11 = PyFloat_FromDouble(__pyx_v_pvc.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1352, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble(__pyx_v_pvc.getAsDouble(__pyx_v_i)); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1352, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1381, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1350 + /* "PyCafeDefs.pxi":1379 * for i in range(0, pvc.getNelem()): * localList.append(pvc.getAsLong(i)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -33363,25 +33811,25 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC break; default: - /* "PyCafeDefs.pxi":1354 + /* "PyCafeDefs.pxi":1383 * localList.append(pvc.getAsDouble(i)) * else: * localList.append(0) # <<<<<<<<<<<<<< * # print ("This line in PyCafe def getDataHolderToStruct should never appear!" * # print ("No Data! Error. Is channel connected?" */ - __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1354, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1383, __pyx_L1_error) break; } - /* "PyCafeDefs.pxi":1357 + /* "PyCafeDefs.pxi":1386 * # print ("This line in PyCafe def getDataHolderToStruct should never appear!" * # print ("No Data! Error. Is channel connected?" * c1.value = localList # <<<<<<<<<<<<<< * c1.status = pvc.getStatus() * c1.nelem = pvc.getNelem() */ - if (!(likely(PyList_CheckExact(__pyx_v_localList))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_localList)->tp_name), 0))) __PYX_ERR(2, 1357, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_localList))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_localList)->tp_name), 0))) __PYX_ERR(2, 1386, __pyx_L1_error) __pyx_t_11 = __pyx_v_localList; __Pyx_INCREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_11); @@ -33390,7 +33838,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->value = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafeDefs.pxi":1358 + /* "PyCafeDefs.pxi":1387 * # print ("No Data! Error. Is channel connected?" * c1.value = localList * c1.status = pvc.getStatus() # <<<<<<<<<<<<<< @@ -33399,7 +33847,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->status = __pyx_v_pvc.getStatus(); - /* "PyCafeDefs.pxi":1359 + /* "PyCafeDefs.pxi":1388 * c1.value = localList * c1.status = pvc.getStatus() * c1.nelem = pvc.getNelem() # <<<<<<<<<<<<<< @@ -33408,7 +33856,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->nelem = __pyx_v_pvc.getNelem(); - /* "PyCafeDefs.pxi":1360 + /* "PyCafeDefs.pxi":1389 * c1.status = pvc.getStatus() * c1.nelem = pvc.getNelem() * c1.alarmStatus = pvc.getAlarmStatus() # <<<<<<<<<<<<<< @@ -33417,7 +33865,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->alarmStatus = __pyx_v_pvc.getAlarmStatus(); - /* "PyCafeDefs.pxi":1361 + /* "PyCafeDefs.pxi":1390 * c1.nelem = pvc.getNelem() * c1.alarmStatus = pvc.getAlarmStatus() * c1.alarmSeverity = pvc.getAlarmSeverity() # <<<<<<<<<<<<<< @@ -33426,7 +33874,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->alarmSeverity = __pyx_v_pvc.getAlarmSeverity(); - /* "PyCafeDefs.pxi":1363 + /* "PyCafeDefs.pxi":1392 * c1.alarmSeverity = pvc.getAlarmSeverity() * * c1.precision = pvc.getPrecision() # <<<<<<<<<<<<<< @@ -33435,7 +33883,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->precision = __pyx_v_pvc.getPrecision(); - /* "PyCafeDefs.pxi":1364 + /* "PyCafeDefs.pxi":1393 * * c1.precision = pvc.getPrecision() * c1.noEnumStrings = pvc.getNoEnumStrings() # <<<<<<<<<<<<<< @@ -33444,19 +33892,19 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ __pyx_v_c1->noEnumStrings = __pyx_v_pvc.getNoEnumStrings(); - /* "PyCafeDefs.pxi":1366 + /* "PyCafeDefs.pxi":1395 * c1.noEnumStrings = pvc.getNoEnumStrings() * * enumList = [] # <<<<<<<<<<<<<< * for i in range(0, pvc.getNoEnumStrings()): * enumList.append(pvc.getEnumStrings()[i]) */ - __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1366, __pyx_L1_error) + __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_v_enumList = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafeDefs.pxi":1367 + /* "PyCafeDefs.pxi":1396 * * enumList = [] * for i in range(0, pvc.getNoEnumStrings()): # <<<<<<<<<<<<<< @@ -33468,20 +33916,20 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_15; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafeDefs.pxi":1368 + /* "PyCafeDefs.pxi":1397 * enumList = [] * for i in range(0, pvc.getNoEnumStrings()): * enumList.append(pvc.getEnumStrings()[i]) # <<<<<<<<<<<<<< * * c1.enumStrings = enumList */ - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvc.getEnumStrings()[__pyx_v_i])); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1368, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvc.getEnumStrings()[__pyx_v_i])); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_enumList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1368, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_enumList, __pyx_t_11); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(2, 1397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafeDefs.pxi":1370 + /* "PyCafeDefs.pxi":1399 * enumList.append(pvc.getEnumStrings()[i]) * * c1.enumStrings = enumList # <<<<<<<<<<<<<< @@ -33494,7 +33942,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_DECREF(__pyx_v_c1->enumStrings); __pyx_v_c1->enumStrings = __pyx_v_enumList; - /* "PyCafeDefs.pxi":1373 + /* "PyCafeDefs.pxi":1402 * * cdef bytes bVal * try: # <<<<<<<<<<<<<< @@ -33510,14 +33958,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "PyCafeDefs.pxi":1374 + /* "PyCafeDefs.pxi":1403 * cdef bytes bVal * try: * c1.units = pvc.getUnits() # <<<<<<<<<<<<<< * except UnicodeDecodeError: * #c1.units = str("") */ - __pyx_t_11 = __Pyx_PyUnicode_FromString(__pyx_v_pvc.getUnits()); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1374, __pyx_L46_error) + __pyx_t_11 = __Pyx_PyUnicode_FromString(__pyx_v_pvc.getUnits()); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 1403, __pyx_L46_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_11); __Pyx_GOTREF(__pyx_v_c1->units); @@ -33525,7 +33973,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->units = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafeDefs.pxi":1373 + /* "PyCafeDefs.pxi":1402 * * cdef bytes bVal * try: # <<<<<<<<<<<<<< @@ -33543,7 +33991,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafeDefs.pxi":1375 + /* "PyCafeDefs.pxi":1404 * try: * c1.units = pvc.getUnits() * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -33553,19 +34001,19 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); if (__pyx_t_10) { __Pyx_AddTraceback("PyCafe.PVCtrlHolderToStruct", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_3, &__pyx_t_1) < 0) __PYX_ERR(2, 1375, __pyx_L48_except_error) + if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_3, &__pyx_t_1) < 0) __PYX_ERR(2, 1404, __pyx_L48_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_1); - /* "PyCafeDefs.pxi":1378 + /* "PyCafeDefs.pxi":1407 * #c1.units = str("") * * bVal = pvc.getUnits() # <<<<<<<<<<<<<< * c1.units = (bVal).decode('latin-1') * */ - __pyx_t_12 = __Pyx_PyBytes_FromString(__pyx_v_pvc.getUnits()); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 1378, __pyx_L48_except_error) + __pyx_t_12 = __Pyx_PyBytes_FromString(__pyx_v_pvc.getUnits()); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 1407, __pyx_L48_except_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_16 = __pyx_t_12; __Pyx_INCREF(__pyx_t_16); @@ -33573,7 +34021,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_bVal = ((PyObject*)__pyx_t_16); __pyx_t_16 = 0; - /* "PyCafeDefs.pxi":1379 + /* "PyCafeDefs.pxi":1408 * * bVal = pvc.getUnits() * c1.units = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -33582,9 +34030,9 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(2, 1379, __pyx_L48_except_error) + __PYX_ERR(2, 1408, __pyx_L48_except_error) } - __pyx_t_16 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 1379, __pyx_L48_except_error) + __pyx_t_16 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 1408, __pyx_L48_except_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_GIVEREF(__pyx_t_16); __Pyx_GOTREF(__pyx_v_c1->units); @@ -33599,7 +34047,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC goto __pyx_L48_except_error; __pyx_L48_except_error:; - /* "PyCafeDefs.pxi":1373 + /* "PyCafeDefs.pxi":1402 * * cdef bytes bVal * try: # <<<<<<<<<<<<<< @@ -33619,14 +34067,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_L51_try_end:; } - /* "PyCafeDefs.pxi":1393 + /* "PyCafeDefs.pxi":1422 * ''' * * c1.upperDisplayLimit = pvc.getUpperDispLimit_AsDouble() # <<<<<<<<<<<<<< * c1.lowerDisplayLimit = pvc.getLowerDispLimit_AsDouble() * c1.upperAlarmLimit = pvc.getUpperAlarmLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperDispLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1393, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperDispLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->upperDisplayLimit); @@ -33634,14 +34082,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->upperDisplayLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1394 + /* "PyCafeDefs.pxi":1423 * * c1.upperDisplayLimit = pvc.getUpperDispLimit_AsDouble() * c1.lowerDisplayLimit = pvc.getLowerDispLimit_AsDouble() # <<<<<<<<<<<<<< * c1.upperAlarmLimit = pvc.getUpperAlarmLimit_AsDouble() * c1.upperWarningLimit = pvc.getUpperWarningLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerDispLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1394, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerDispLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->lowerDisplayLimit); @@ -33649,14 +34097,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->lowerDisplayLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1395 + /* "PyCafeDefs.pxi":1424 * c1.upperDisplayLimit = pvc.getUpperDispLimit_AsDouble() * c1.lowerDisplayLimit = pvc.getLowerDispLimit_AsDouble() * c1.upperAlarmLimit = pvc.getUpperAlarmLimit_AsDouble() # <<<<<<<<<<<<<< * c1.upperWarningLimit = pvc.getUpperWarningLimit_AsDouble() * c1.lowerWarningLimit = pvc.getLowerWarningLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperAlarmLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1395, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperAlarmLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->upperAlarmLimit); @@ -33664,14 +34112,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->upperAlarmLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1396 + /* "PyCafeDefs.pxi":1425 * c1.lowerDisplayLimit = pvc.getLowerDispLimit_AsDouble() * c1.upperAlarmLimit = pvc.getUpperAlarmLimit_AsDouble() * c1.upperWarningLimit = pvc.getUpperWarningLimit_AsDouble() # <<<<<<<<<<<<<< * c1.lowerWarningLimit = pvc.getLowerWarningLimit_AsDouble() * c1.lowerAlarmLimit = pvc.getLowerAlarmLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperWarningLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1396, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperWarningLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->upperWarningLimit); @@ -33679,14 +34127,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->upperWarningLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1397 + /* "PyCafeDefs.pxi":1426 * c1.upperAlarmLimit = pvc.getUpperAlarmLimit_AsDouble() * c1.upperWarningLimit = pvc.getUpperWarningLimit_AsDouble() * c1.lowerWarningLimit = pvc.getLowerWarningLimit_AsDouble() # <<<<<<<<<<<<<< * c1.lowerAlarmLimit = pvc.getLowerAlarmLimit_AsDouble() * c1.upperControlLimit = pvc.getUpperCtrlLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerWarningLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1397, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerWarningLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->lowerWarningLimit); @@ -33694,14 +34142,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->lowerWarningLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1398 + /* "PyCafeDefs.pxi":1427 * c1.upperWarningLimit = pvc.getUpperWarningLimit_AsDouble() * c1.lowerWarningLimit = pvc.getLowerWarningLimit_AsDouble() * c1.lowerAlarmLimit = pvc.getLowerAlarmLimit_AsDouble() # <<<<<<<<<<<<<< * c1.upperControlLimit = pvc.getUpperCtrlLimit_AsDouble() * c1.lowerControlLimit = pvc.getLowerCtrlLimit_AsDouble() */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerAlarmLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1398, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerAlarmLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->lowerAlarmLimit); @@ -33709,14 +34157,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->lowerAlarmLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1399 + /* "PyCafeDefs.pxi":1428 * c1.lowerWarningLimit = pvc.getLowerWarningLimit_AsDouble() * c1.lowerAlarmLimit = pvc.getLowerAlarmLimit_AsDouble() * c1.upperControlLimit = pvc.getUpperCtrlLimit_AsDouble() # <<<<<<<<<<<<<< * c1.lowerControlLimit = pvc.getLowerCtrlLimit_AsDouble() * */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperCtrlLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1399, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getUpperCtrlLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->upperControlLimit); @@ -33724,14 +34172,14 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->upperControlLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1400 + /* "PyCafeDefs.pxi":1429 * c1.lowerAlarmLimit = pvc.getLowerAlarmLimit_AsDouble() * c1.upperControlLimit = pvc.getUpperCtrlLimit_AsDouble() * c1.lowerControlLimit = pvc.getLowerCtrlLimit_AsDouble() # <<<<<<<<<<<<<< * * return c1 */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerCtrlLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1400, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_pvc.getLowerCtrlLimit_AsDouble()); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_c1->lowerControlLimit); @@ -33739,7 +34187,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_v_c1->lowerControlLimit = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1402 + /* "PyCafeDefs.pxi":1431 * c1.lowerControlLimit = pvc.getLowerCtrlLimit_AsDouble() * * return c1 # <<<<<<<<<<<<<< @@ -33751,7 +34199,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC __pyx_r = __pyx_v_c1; goto __pyx_L0; - /* "PyCafeDefs.pxi":1296 + /* "PyCafeDefs.pxi":1327 * ################################################################################# * * cdef pvctrl PVCtrlHolderToStruct(PVCtrlHolder pvc, dt=None): # <<<<<<<<<<<<<< @@ -33782,7 +34230,7 @@ static struct __pyx_obj_6PyCafe_pvctrl *__pyx_f_6PyCafe_PVCtrlHolderToStruct(PVC return __pyx_r; } -/* "PyCafeDefs.pxi":1408 +/* "PyCafeDefs.pxi":1437 * ################################################################################# * * cdef channelInfo channelRegaliaToStruct(ChannelRegalia cr): # <<<<<<<<<<<<<< @@ -33798,19 +34246,19 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("channelRegaliaToStruct", 0); - /* "PyCafeDefs.pxi":1410 + /* "PyCafeDefs.pxi":1439 * cdef channelInfo channelRegaliaToStruct(ChannelRegalia cr): * * cdef channelInfo ci = channelInfo() # <<<<<<<<<<<<<< * cdef CAFEDataTypeCode cdt * */ - __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_channelInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1410, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_channelInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_ci = ((struct __pyx_obj_6PyCafe_channelInfo *)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafeDefs.pxi":1413 + /* "PyCafeDefs.pxi":1442 * cdef CAFEDataTypeCode cdt * * ci.channelID = ( < long > cr.getChannelID()) # <<<<<<<<<<<<<< @@ -33819,7 +34267,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->channelID = ((long)__pyx_v_cr.getChannelID()); - /* "PyCafeDefs.pxi":1414 + /* "PyCafeDefs.pxi":1443 * * ci.channelID = ( < long > cr.getChannelID()) * ci.connectFlag = cr.getConnectFlag() # <<<<<<<<<<<<<< @@ -33828,7 +34276,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->connectFlag = __pyx_v_cr.getConnectFlag(); - /* "PyCafeDefs.pxi":1415 + /* "PyCafeDefs.pxi":1444 * ci.channelID = ( < long > cr.getChannelID()) * ci.connectFlag = cr.getConnectFlag() * ci.hostName = cr.getHostNameAsString() # <<<<<<<<<<<<<< @@ -33837,7 +34285,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->hostName = __pyx_v_cr.getHostNameAsString(); - /* "PyCafeDefs.pxi":1416 + /* "PyCafeDefs.pxi":1445 * ci.connectFlag = cr.getConnectFlag() * ci.hostName = cr.getHostNameAsString() * ci.dataType = cr.getDataType() # <<<<<<<<<<<<<< @@ -33846,7 +34294,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->dataType = __pyx_v_cr.getDataType(); - /* "PyCafeDefs.pxi":1417 + /* "PyCafeDefs.pxi":1446 * ci.hostName = cr.getHostNameAsString() * ci.dataType = cr.getDataType() * ci.dataTypeAsString = cdt.message(cr.getDataType()) # <<<<<<<<<<<<<< @@ -33855,7 +34303,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->dataTypeAsString = __pyx_v_cdt.message(__pyx_v_cr.getDataType()); - /* "PyCafeDefs.pxi":1418 + /* "PyCafeDefs.pxi":1447 * ci.dataType = cr.getDataType() * ci.dataTypeAsString = cdt.message(cr.getDataType()) * ci.className = cr.getClassNameAsString() # <<<<<<<<<<<<<< @@ -33864,7 +34312,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->className = __pyx_v_cr.getClassNameAsString(); - /* "PyCafeDefs.pxi":1419 + /* "PyCafeDefs.pxi":1448 * ci.dataTypeAsString = cdt.message(cr.getDataType()) * ci.className = cr.getClassNameAsString() * ci.accessRead = cr.getAccessRead() # <<<<<<<<<<<<<< @@ -33873,7 +34321,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->accessRead = __pyx_v_cr.getAccessRead(); - /* "PyCafeDefs.pxi":1420 + /* "PyCafeDefs.pxi":1449 * ci.className = cr.getClassNameAsString() * ci.accessRead = cr.getAccessRead() * ci.accessWrite = cr.getAccessWrite() # <<<<<<<<<<<<<< @@ -33882,7 +34330,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->accessWrite = __pyx_v_cr.getAccessWrite(); - /* "PyCafeDefs.pxi":1421 + /* "PyCafeDefs.pxi":1450 * ci.accessRead = cr.getAccessRead() * ci.accessWrite = cr.getAccessWrite() * ci.nelem = cr.getNelem() # <<<<<<<<<<<<<< @@ -33891,7 +34339,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->nelem = __pyx_v_cr.getNelem(); - /* "PyCafeDefs.pxi":1422 + /* "PyCafeDefs.pxi":1451 * ci.accessWrite = cr.getAccessWrite() * ci.nelem = cr.getNelem() * ci.connectionState = cr.getConnectionState() # <<<<<<<<<<<<<< @@ -33900,7 +34348,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->connectionState = __pyx_v_cr.getConnectionState(); - /* "PyCafeDefs.pxi":1423 + /* "PyCafeDefs.pxi":1452 * ci.nelem = cr.getNelem() * ci.connectionState = cr.getConnectionState() * ci.cafeConnectionState = cr.getCafeConnectionState() # <<<<<<<<<<<<<< @@ -33909,7 +34357,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->cafeConnectionState = __pyx_v_cr.getCafeConnectionState(); - /* "PyCafeDefs.pxi":1424 + /* "PyCafeDefs.pxi":1453 * ci.connectionState = cr.getConnectionState() * ci.cafeConnectionState = cr.getCafeConnectionState() * ci.connectionStateAsString = cr.getConnectionStateAsString() # <<<<<<<<<<<<<< @@ -33918,7 +34366,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->connectionStateAsString = __pyx_v_cr.getConnectionStateAsString(); - /* "PyCafeDefs.pxi":1425 + /* "PyCafeDefs.pxi":1454 * ci.cafeConnectionState = cr.getCafeConnectionState() * ci.connectionStateAsString = cr.getConnectionStateAsString() * ci.cafeConnectionStateAsString = cr.getCafeConnectionStateAsString() # <<<<<<<<<<<<<< @@ -33927,7 +34375,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr */ __pyx_v_ci->cafeConnectionStateAsString = __pyx_v_cr.getCafeConnectionStateAsString(); - /* "PyCafeDefs.pxi":1426 + /* "PyCafeDefs.pxi":1455 * ci.connectionStateAsString = cr.getConnectionStateAsString() * ci.cafeConnectionStateAsString = cr.getCafeConnectionStateAsString() * return ci # <<<<<<<<<<<<<< @@ -33938,7 +34386,7 @@ static struct __pyx_obj_6PyCafe_channelInfo *__pyx_f_6PyCafe_channelRegaliaToStr __pyx_r = __pyx_v_ci; goto __pyx_L0; - /* "PyCafeDefs.pxi":1408 + /* "PyCafeDefs.pxi":1437 * ################################################################################# * * cdef channelInfo channelRegaliaToStruct(ChannelRegalia cr): # <<<<<<<<<<<<<< @@ -34941,7 +35389,7 @@ static PyObject *__pyx_pf_6PyCafe_verify_handlepv(CYTHON_UNUSED PyObject *__pyx_ return __pyx_r; } -/* "PyCafe.pyx":176 +/* "PyCafe.pyx":175 * * ########################################################################### * def __cinit__(self): # <<<<<<<<<<<<<< @@ -34980,7 +35428,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "PyCafe.pyx":180 + /* "PyCafe.pyx":179 * * """ * cdef str _METHOD = "__cinit__" # <<<<<<<<<<<<<< @@ -34990,7 +35438,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ __Pyx_INCREF(__pyx_n_u_cinit); __pyx_v__METHOD = __pyx_n_u_cinit; - /* "PyCafe.pyx":181 + /* "PyCafe.pyx":180 * """ * cdef str _METHOD = "__cinit__" * self._c_cafe = new ccafe.CAFE() ##_c_cafe ## # <<<<<<<<<<<<<< @@ -35001,11 +35449,11 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ __pyx_t_1 = new CAFE(); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 181, __pyx_L1_error) + __PYX_ERR(3, 180, __pyx_L1_error) } __pyx_v_self->_c_cafe = __pyx_t_1; - /* "PyCafe.pyx":183 + /* "PyCafe.pyx":182 * self._c_cafe = new ccafe.CAFE() ##_c_cafe ## * * if self._c_cafe is NULL: # <<<<<<<<<<<<<< @@ -35015,20 +35463,20 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ __pyx_t_2 = ((__pyx_v_self->_c_cafe == NULL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":184 + /* "PyCafe.pyx":183 * * if self._c_cafe is NULL: * raise MemoryError("Failed to instantiate CAFE()") # <<<<<<<<<<<<<< * * self.cs = self._c_cafe.getCafeStatus() */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 184, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 184, __pyx_L1_error) + __PYX_ERR(3, 183, __pyx_L1_error) - /* "PyCafe.pyx":183 + /* "PyCafe.pyx":182 * self._c_cafe = new ccafe.CAFE() ##_c_cafe ## * * if self._c_cafe is NULL: # <<<<<<<<<<<<<< @@ -35037,7 +35485,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ */ } - /* "PyCafe.pyx":186 + /* "PyCafe.pyx":185 * raise MemoryError("Failed to instantiate CAFE()") * * self.cs = self._c_cafe.getCafeStatus() # <<<<<<<<<<<<<< @@ -35046,7 +35494,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ */ __pyx_v_self->cs = __pyx_v_self->_c_cafe->getCafeStatus(); - /* "PyCafe.pyx":188 + /* "PyCafe.pyx":187 * self.cs = self._c_cafe.getCafeStatus() * * self._exception_text = "Exception raised in PyCafe.pyx:" # <<<<<<<<<<<<<< @@ -35059,7 +35507,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ __Pyx_DECREF(__pyx_v_self->_exception_text); __pyx_v_self->_exception_text = __pyx_kp_u_Exception_raised_in_PyCafe_pyx; - /* "PyCafe.pyx":189 + /* "PyCafe.pyx":188 * * self._exception_text = "Exception raised in PyCafe.pyx:" * self._enable_exceptions = False # <<<<<<<<<<<<<< @@ -35068,7 +35516,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ */ __pyx_v_self->_enable_exceptions = 0; - /* "PyCafe.pyx":191 + /* "PyCafe.pyx":190 * self._enable_exceptions = False * * self._min_timeout = 0.001 #cannot be zero # <<<<<<<<<<<<<< @@ -35077,7 +35525,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ */ __pyx_v_self->_min_timeout = 0.001; - /* "PyCafe.pyx":193 + /* "PyCafe.pyx":192 * self._min_timeout = 0.001 #cannot be zero * * try: # <<<<<<<<<<<<<< @@ -35088,7 +35536,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ (void)__pyx_t_4; (void)__pyx_t_5; (void)__pyx_t_6; /* mark used */ /*try:*/ { - /* "PyCafe.pyx":194 + /* "PyCafe.pyx":193 * * try: * self._c_cafe.init() # <<<<<<<<<<<<<< @@ -35097,7 +35545,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ */ (void)(__pyx_v_self->_c_cafe->init()); - /* "PyCafe.pyx":193 + /* "PyCafe.pyx":192 * self._min_timeout = 0.001 #cannot be zero * * try: # <<<<<<<<<<<<<< @@ -35107,16 +35555,16 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ } } - /* "PyCafe.pyx":208 + /* "PyCafe.pyx":207 * * * print("PY_VERSION_HEX is ", hex(PY_VERSION_HEX)) # <<<<<<<<<<<<<< * * IF PY_EXT_C: */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_hex, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 208, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_hex, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 208, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_kp_u_PY_VERSION_HEX_is); __Pyx_GIVEREF(__pyx_kp_u_PY_VERSION_HEX_is); @@ -35124,23 +35572,23 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 208, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":211 + /* "PyCafe.pyx":210 * * IF PY_EXT_C: * print("USING PUBLIC PyCafe.h INTERFACE FOR CALLBACKS") # <<<<<<<<<<<<<< * ELSE: * print("USING API PyCafe_api.h INTERFACE FOR CALLBACKS") */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 211, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":176 + /* "PyCafe.pyx":175 * * ########################################################################### * def __cinit__(self): # <<<<<<<<<<<<<< @@ -35164,7 +35612,7 @@ static int __pyx_pf_6PyCafe_6CyCafe___cinit__(struct __pyx_obj_6PyCafe_CyCafe *_ return __pyx_r; } -/* "PyCafe.pyx":221 +/* "PyCafe.pyx":220 * * ########################################################################### * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -35187,7 +35635,7 @@ static void __pyx_pf_6PyCafe_6CyCafe_2__dealloc__(struct __pyx_obj_6PyCafe_CyCaf __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); - /* "PyCafe.pyx":222 + /* "PyCafe.pyx":221 * ########################################################################### * def __dealloc__(self): * del self._c_cafe # <<<<<<<<<<<<<< @@ -35196,7 +35644,7 @@ static void __pyx_pf_6PyCafe_6CyCafe_2__dealloc__(struct __pyx_obj_6PyCafe_CyCaf */ delete __pyx_v_self->_c_cafe; - /* "PyCafe.pyx":221 + /* "PyCafe.pyx":220 * * ########################################################################### * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -35208,7 +35656,7 @@ static void __pyx_pf_6PyCafe_6CyCafe_2__dealloc__(struct __pyx_obj_6PyCafe_CyCaf __Pyx_RefNannyFinishContext(); } -/* "PyCafe.pyx":226 +/* "PyCafe.pyx":225 * ########################################################################### * * def ca_version(self): # <<<<<<<<<<<<<< @@ -35235,7 +35683,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_4ca_version(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("ca_version", 0); - /* "PyCafe.pyx":227 + /* "PyCafe.pyx":226 * * def ca_version(self): * return self._c_cafe._ca_version() # <<<<<<<<<<<<<< @@ -35243,13 +35691,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_4ca_version(struct __pyx_obj_6PyCafe_C * def epics_version_string(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->_ca_version()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 227, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->_ca_version()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":226 + /* "PyCafe.pyx":225 * ########################################################################### * * def ca_version(self): # <<<<<<<<<<<<<< @@ -35270,7 +35718,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_4ca_version(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":229 +/* "PyCafe.pyx":228 * return self._c_cafe._ca_version() * * def epics_version_string(self): # <<<<<<<<<<<<<< @@ -35297,7 +35745,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_6epics_version_string(struct __pyx_obj PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("epics_version_string", 0); - /* "PyCafe.pyx":230 + /* "PyCafe.pyx":229 * * def epics_version_string(self): * return self._c_cafe._epics_version() # <<<<<<<<<<<<<< @@ -35305,13 +35753,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_6epics_version_string(struct __pyx_obj * def CAFE_version(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->_epics_version()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 230, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->_epics_version()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":229 + /* "PyCafe.pyx":228 * return self._c_cafe._ca_version() * * def epics_version_string(self): # <<<<<<<<<<<<<< @@ -35332,7 +35780,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_6epics_version_string(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":232 +/* "PyCafe.pyx":231 * return self._c_cafe._epics_version() * * def CAFE_version(self): # <<<<<<<<<<<<<< @@ -35358,7 +35806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_8CAFE_version(CYTHON_UNUSED struct __p __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("CAFE_version", 0); - /* "PyCafe.pyx":233 + /* "PyCafe.pyx":232 * * def CAFE_version(self): * return CAFE_VERSION # <<<<<<<<<<<<<< @@ -35366,11 +35814,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_8CAFE_version(CYTHON_UNUSED struct __p * def EPICS_version(self): */ __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_kp_u_1_15_0_py37_gcc_7_3_0); - __pyx_r = __pyx_kp_u_1_15_0_py37_gcc_7_3_0; + __Pyx_INCREF(__pyx_kp_u_1_15_1_py37_gcc_7_3_0); + __pyx_r = __pyx_kp_u_1_15_1_py37_gcc_7_3_0; goto __pyx_L0; - /* "PyCafe.pyx":232 + /* "PyCafe.pyx":231 * return self._c_cafe._epics_version() * * def CAFE_version(self): # <<<<<<<<<<<<<< @@ -35386,7 +35834,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_8CAFE_version(CYTHON_UNUSED struct __p return __pyx_r; } -/* "PyCafe.pyx":235 +/* "PyCafe.pyx":234 * return CAFE_VERSION * * def EPICS_version(self): # <<<<<<<<<<<<<< @@ -35412,7 +35860,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_10EPICS_version(CYTHON_UNUSED struct _ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("EPICS_version", 0); - /* "PyCafe.pyx":236 + /* "PyCafe.pyx":235 * * def EPICS_version(self): * return EPICS_VERSION # <<<<<<<<<<<<<< @@ -35424,7 +35872,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_10EPICS_version(CYTHON_UNUSED struct _ __pyx_r = __pyx_kp_u_7_0_6; goto __pyx_L0; - /* "PyCafe.pyx":235 + /* "PyCafe.pyx":234 * return CAFE_VERSION * * def EPICS_version(self): # <<<<<<<<<<<<<< @@ -35440,7 +35888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_10EPICS_version(CYTHON_UNUSED struct _ return __pyx_r; } -/* "PyCafe.pyx":239 +/* "PyCafe.pyx":238 * * @verify_handlepv * def setPyConnectCallbackFn(self, handlePV, cb: object = None): # <<<<<<<<<<<<<< @@ -35484,7 +35932,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_13setPyConnectCallbackFn(PyObject *__p } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setPyConnectCallbackFn") < 0)) __PYX_ERR(3, 239, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setPyConnectCallbackFn") < 0)) __PYX_ERR(3, 238, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -35500,7 +35948,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_13setPyConnectCallbackFn(PyObject *__p } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setPyConnectCallbackFn", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 239, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setPyConnectCallbackFn", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 238, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setPyConnectCallbackFn", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -35522,7 +35970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ unsigned int __pyx_t_3; __Pyx_RefNannySetupContext("setPyConnectCallbackFn", 0); - /* "PyCafe.pyx":240 + /* "PyCafe.pyx":239 * @verify_handlepv * def setPyConnectCallbackFn(self, handlePV, cb: object = None): * if cb is None: # <<<<<<<<<<<<<< @@ -35533,7 +35981,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":241 + /* "PyCafe.pyx":240 * def setPyConnectCallbackFn(self, handlePV, cb: object = None): * if cb is None: * return # <<<<<<<<<<<<<< @@ -35544,7 +35992,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":240 + /* "PyCafe.pyx":239 * @verify_handlepv * def setPyConnectCallbackFn(self, handlePV, cb: object = None): * if cb is None: # <<<<<<<<<<<<<< @@ -35553,7 +36001,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ */ } - /* "PyCafe.pyx":242 + /* "PyCafe.pyx":241 * if cb is None: * return * pv_name = handlePV # <<<<<<<<<<<<<< @@ -35563,17 +36011,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ __Pyx_INCREF(__pyx_v_handlePV); __pyx_v_pv_name = __pyx_v_handlePV; - /* "PyCafe.pyx":243 + /* "PyCafe.pyx":242 * return * pv_name = handlePV * self.hh.setPyConnectCallbackFn(handlePV, cb) # <<<<<<<<<<<<<< * * */ - __pyx_t_3 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 243, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 242, __pyx_L1_error) (void)(__pyx_v_self->hh.setPyConnectCallbackFn(__pyx_t_3, ((void *)__pyx_v_cb))); - /* "PyCafe.pyx":239 + /* "PyCafe.pyx":238 * * @verify_handlepv * def setPyConnectCallbackFn(self, handlePV, cb: object = None): # <<<<<<<<<<<<<< @@ -35594,7 +36042,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_12setPyConnectCallbackFn(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":247 +/* "PyCafe.pyx":246 * * ############################################################################ * def init(self): # <<<<<<<<<<<<<< @@ -35626,7 +36074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("init", 0); - /* "PyCafe.pyx":260 + /* "PyCafe.pyx":259 * * """ * cdef str _METHOD = "init" # <<<<<<<<<<<<<< @@ -35636,7 +36084,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_n_u_init); __pyx_v__METHOD = __pyx_n_u_init; - /* "PyCafe.pyx":261 + /* "PyCafe.pyx":260 * """ * cdef str _METHOD = "init" * try: # <<<<<<<<<<<<<< @@ -35647,7 +36095,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe (void)__pyx_t_1; (void)__pyx_t_2; (void)__pyx_t_3; /* mark used */ /*try:*/ { - /* "PyCafe.pyx":262 + /* "PyCafe.pyx":261 * cdef str _METHOD = "init" * try: * self._c_cafe.init() # <<<<<<<<<<<<<< @@ -35656,7 +36104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe */ (void)(__pyx_v_self->_c_cafe->init()); - /* "PyCafe.pyx":261 + /* "PyCafe.pyx":260 * """ * cdef str _METHOD = "init" * try: # <<<<<<<<<<<<<< @@ -35666,7 +36114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":247 + /* "PyCafe.pyx":246 * * ############################################################################ * def init(self): # <<<<<<<<<<<<<< @@ -35683,7 +36131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_14init(struct __pyx_obj_6PyCafe_CyCafe return __pyx_r; } -/* "PyCafe.pyx":276 +/* "PyCafe.pyx":275 * * * def withExceptions(self, bint exceptions=True): # <<<<<<<<<<<<<< @@ -35720,7 +36168,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_17withExceptions(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "withExceptions") < 0)) __PYX_ERR(3, 276, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "withExceptions") < 0)) __PYX_ERR(3, 275, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -35731,14 +36179,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_17withExceptions(PyObject *__pyx_v_sel } } if (values[0]) { - __pyx_v_exceptions = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_exceptions == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 276, __pyx_L3_error) + __pyx_v_exceptions = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_exceptions == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 275, __pyx_L3_error) } else { __pyx_v_exceptions = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("withExceptions", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 276, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("withExceptions", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 275, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.withExceptions", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -35757,7 +36205,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16withExceptions(struct __pyx_obj_6PyC PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("withExceptions", 0); - /* "PyCafe.pyx":294 + /* "PyCafe.pyx":293 * """ * * self._enable_exceptions = exceptions # <<<<<<<<<<<<<< @@ -35766,7 +36214,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16withExceptions(struct __pyx_obj_6PyC */ __pyx_v_self->_enable_exceptions = __pyx_v_exceptions; - /* "PyCafe.pyx":295 + /* "PyCafe.pyx":294 * * self._enable_exceptions = exceptions * return self._enable_exceptions # <<<<<<<<<<<<<< @@ -35774,13 +36222,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16withExceptions(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_enable_exceptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 295, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_enable_exceptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":276 + /* "PyCafe.pyx":275 * * * def withExceptions(self, bint exceptions=True): # <<<<<<<<<<<<<< @@ -35801,7 +36249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16withExceptions(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":299 +/* "PyCafe.pyx":298 * * @property * def enableExceptions(self): # <<<<<<<<<<<<<< @@ -35828,7 +36276,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16enableExceptions___get__(struct __py PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); - /* "PyCafe.pyx":315 + /* "PyCafe.pyx":314 * """ * * return self._enable_exceptions # <<<<<<<<<<<<<< @@ -35836,13 +36284,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16enableExceptions___get__(struct __py * @enableExceptions.setter */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_enable_exceptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 315, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_enable_exceptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":299 + /* "PyCafe.pyx":298 * * @property * def enableExceptions(self): # <<<<<<<<<<<<<< @@ -35863,7 +36311,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_16enableExceptions___get__(struct __py return __pyx_r; } -/* "PyCafe.pyx":318 +/* "PyCafe.pyx":317 * * @enableExceptions.setter * def enableExceptions(self, bint enable): # <<<<<<<<<<<<<< @@ -35879,7 +36327,7 @@ static int __pyx_pw_6PyCafe_6CyCafe_16enableExceptions_3__set__(PyObject *__pyx_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); assert(__pyx_arg_enable); { - __pyx_v_enable = __Pyx_PyObject_IsTrue(__pyx_arg_enable); if (unlikely((__pyx_v_enable == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 318, __pyx_L3_error) + __pyx_v_enable = __Pyx_PyObject_IsTrue(__pyx_arg_enable); if (unlikely((__pyx_v_enable == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 317, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -35899,7 +36347,7 @@ static int __pyx_pf_6PyCafe_6CyCafe_16enableExceptions_2__set__(struct __pyx_obj __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); - /* "PyCafe.pyx":319 + /* "PyCafe.pyx":318 * @enableExceptions.setter * def enableExceptions(self, bint enable): * self._enable_exceptions = enable # <<<<<<<<<<<<<< @@ -35908,7 +36356,7 @@ static int __pyx_pf_6PyCafe_6CyCafe_16enableExceptions_2__set__(struct __pyx_obj */ __pyx_v_self->_enable_exceptions = __pyx_v_enable; - /* "PyCafe.pyx":318 + /* "PyCafe.pyx":317 * * @enableExceptions.setter * def enableExceptions(self, bint enable): # <<<<<<<<<<<<<< @@ -35922,7 +36370,7 @@ static int __pyx_pf_6PyCafe_6CyCafe_16enableExceptions_2__set__(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":321 +/* "PyCafe.pyx":320 * self._enable_exceptions = enable * * cdef prepareCafeException( # <<<<<<<<<<<<<< @@ -35933,7 +36381,7 @@ static int __pyx_pf_6PyCafe_6CyCafe_16enableExceptions_2__set__(struct __pyx_obj static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6PyCafe_CyCafe *__pyx_v_self, int __pyx_v_status, PyObject *__pyx_v__METHOD, struct __pyx_opt_args_6PyCafe_6CyCafe_prepareCafeException *__pyx_optional_args) { unsigned int __pyx_v_handle = ((unsigned int)0); - /* "PyCafe.pyx":323 + /* "PyCafe.pyx":322 * cdef prepareCafeException( * self, int status, str _METHOD, * unsigned int handle = 0, pv_name: str = None): # <<<<<<<<<<<<<< @@ -35960,7 +36408,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6 } __Pyx_INCREF(__pyx_v_pv_name); - /* "PyCafe.pyx":324 + /* "PyCafe.pyx":323 * self, int status, str _METHOD, * unsigned int handle = 0, pv_name: str = None): * if handle > 0 and pv_name is None: # <<<<<<<<<<<<<< @@ -35979,19 +36427,19 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6 __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "PyCafe.pyx":325 + /* "PyCafe.pyx":324 * unsigned int handle = 0, pv_name: str = None): * if handle > 0 and pv_name is None: * pv_name=self._c_cafe.getPVFromHandle(handle) # <<<<<<<<<<<<<< * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, */ - __pyx_t_4 = __Pyx_PyUnicode_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 325, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyUnicode_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_pv_name, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "PyCafe.pyx":324 + /* "PyCafe.pyx":323 * self, int status, str _METHOD, * unsigned int handle = 0, pv_name: str = None): * if handle > 0 and pv_name is None: # <<<<<<<<<<<<<< @@ -36000,65 +36448,65 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":327 + /* "PyCafe.pyx":326 * pv_name=self._c_cafe.getPVFromHandle(handle) * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _error_code=status, _pv_name=pv_name, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 327, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 327, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 327, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 326, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 326, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":328 + /* "PyCafe.pyx":327 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _error_code=status, _pv_name=pv_name, # <<<<<<<<<<<<<< * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * return _cafeException */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 328, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_v_pv_name) < 0) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_v_pv_name) < 0) __PYX_ERR(3, 326, __pyx_L1_error) - /* "PyCafe.pyx":329 + /* "PyCafe.pyx":328 * _type='CafeError', _source=_METHOD, _handle=handle, * _error_code=status, _pv_name=pv_name, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * return _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 329, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 329, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 327, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":326 + /* "PyCafe.pyx":325 * if handle > 0 and pv_name is None: * pv_name=self._c_cafe.getPVFromHandle(handle) * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _error_code=status, _pv_name=pv_name, */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 326, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":330 + /* "PyCafe.pyx":329 * _error_code=status, _pv_name=pv_name, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * return _cafeException # <<<<<<<<<<<<<< @@ -36070,7 +36518,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6 __pyx_r = ((PyObject *)__pyx_v__cafeException); goto __pyx_L0; - /* "PyCafe.pyx":321 + /* "PyCafe.pyx":320 * self._enable_exceptions = enable * * cdef prepareCafeException( # <<<<<<<<<<<<<< @@ -36094,7 +36542,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_prepareCafeException(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":334 +/* "PyCafe.pyx":333 * ############################################################################ * * def isValid(self, unsigned int handle): # <<<<<<<<<<<<<< @@ -36110,7 +36558,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_19isValid(PyObject *__pyx_v_self, PyOb __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isValid (wrapper)", 0); assert(__pyx_arg_handle); { - __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(__pyx_arg_handle); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 334, __pyx_L3_error) + __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(__pyx_arg_handle); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 333, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -36131,7 +36579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_18isValid(struct __pyx_obj_6PyCafe_CyC PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("isValid", 0); - /* "PyCafe.pyx":335 + /* "PyCafe.pyx":334 * * def isValid(self, unsigned int handle): * return self._c_cafe.isValid(handle) # <<<<<<<<<<<<<< @@ -36139,13 +36587,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_18isValid(struct __pyx_obj_6PyCafe_CyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isValid(__pyx_v_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 335, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isValid(__pyx_v_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":334 + /* "PyCafe.pyx":333 * ############################################################################ * * def isValid(self, unsigned int handle): # <<<<<<<<<<<<<< @@ -36166,7 +36614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_18isValid(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":339 +/* "PyCafe.pyx":338 * * ############################################################################ * def removeWidget(self, unsigned int handle, object widget): # <<<<<<<<<<<<<< @@ -36205,11 +36653,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_21removeWidget(PyObject *__pyx_v_self, case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_widget)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("removeWidget", 1, 2, 2, 1); __PYX_ERR(3, 339, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("removeWidget", 1, 2, 2, 1); __PYX_ERR(3, 338, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "removeWidget") < 0)) __PYX_ERR(3, 339, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "removeWidget") < 0)) __PYX_ERR(3, 338, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -36217,12 +36665,12 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_21removeWidget(PyObject *__pyx_v_self, values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 339, __pyx_L3_error) + __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 338, __pyx_L3_error) __pyx_v_widget = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("removeWidget", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 339, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("removeWidget", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 338, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.removeWidget", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -36241,7 +36689,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_20removeWidget(struct __pyx_obj_6PyCaf PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("removeWidget", 0); - /* "PyCafe.pyx":340 + /* "PyCafe.pyx":339 * ############################################################################ * def removeWidget(self, unsigned int handle, object widget): * return self.hh.removeWidget(handle, widget) # <<<<<<<<<<<<<< @@ -36249,13 +36697,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_20removeWidget(struct __pyx_obj_6PyCaf * def addWidget(self, unsigned int handle, object widget): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->hh.removeWidget(__pyx_v_handle, ((void *)__pyx_v_widget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 340, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->hh.removeWidget(__pyx_v_handle, ((void *)__pyx_v_widget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":339 + /* "PyCafe.pyx":338 * * ############################################################################ * def removeWidget(self, unsigned int handle, object widget): # <<<<<<<<<<<<<< @@ -36276,7 +36724,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_20removeWidget(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":342 +/* "PyCafe.pyx":341 * return self.hh.removeWidget(handle, widget) * * def addWidget(self, unsigned int handle, object widget): # <<<<<<<<<<<<<< @@ -36315,11 +36763,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_23addWidget(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_widget)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("addWidget", 1, 2, 2, 1); __PYX_ERR(3, 342, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("addWidget", 1, 2, 2, 1); __PYX_ERR(3, 341, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "addWidget") < 0)) __PYX_ERR(3, 342, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "addWidget") < 0)) __PYX_ERR(3, 341, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -36327,12 +36775,12 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_23addWidget(PyObject *__pyx_v_self, Py values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 342, __pyx_L3_error) + __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 341, __pyx_L3_error) __pyx_v_widget = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("addWidget", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 342, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("addWidget", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 341, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.addWidget", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -36351,7 +36799,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_22addWidget(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("addWidget", 0); - /* "PyCafe.pyx":343 + /* "PyCafe.pyx":342 * * def addWidget(self, unsigned int handle, object widget): * return self.hh.addWidget(handle, widget) # <<<<<<<<<<<<<< @@ -36359,13 +36807,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_22addWidget(struct __pyx_obj_6PyCafe_C * def getWidgets(self, unsigned int handle): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->hh.addWidget(__pyx_v_handle, ((void *)__pyx_v_widget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 343, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->hh.addWidget(__pyx_v_handle, ((void *)__pyx_v_widget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":342 + /* "PyCafe.pyx":341 * return self.hh.removeWidget(handle, widget) * * def addWidget(self, unsigned int handle, object widget): # <<<<<<<<<<<<<< @@ -36386,7 +36834,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_22addWidget(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":345 +/* "PyCafe.pyx":344 * return self.hh.addWidget(handle, widget) * * def getWidgets(self, unsigned int handle): # <<<<<<<<<<<<<< @@ -36402,7 +36850,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_25getWidgets(PyObject *__pyx_v_self, P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getWidgets (wrapper)", 0); assert(__pyx_arg_handle); { - __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(__pyx_arg_handle); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 345, __pyx_L3_error) + __pyx_v_handle = __Pyx_PyInt_As_unsigned_int(__pyx_arg_handle); if (unlikely((__pyx_v_handle == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 344, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -36432,7 +36880,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ int __pyx_t_6; __Pyx_RefNannySetupContext("getWidgets", 0); - /* "PyCafe.pyx":347 + /* "PyCafe.pyx":346 * def getWidgets(self, unsigned int handle): * cdef vector[void *] widgetV * widgetV.reserve(2) # <<<<<<<<<<<<<< @@ -36441,19 +36889,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ */ __pyx_v_widgetV.reserve(2); - /* "PyCafe.pyx":348 + /* "PyCafe.pyx":347 * cdef vector[void *] widgetV * widgetV.reserve(2) * widgetList = [] # <<<<<<<<<<<<<< * status = self.hh.getWidgets(handle, widgetV) * for i in range(0, widgetV.size()): */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 348, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_widgetList = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":349 + /* "PyCafe.pyx":348 * widgetV.reserve(2) * widgetList = [] * status = self.hh.getWidgets(handle, widgetV) # <<<<<<<<<<<<<< @@ -36462,7 +36910,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ */ __pyx_v_status = __pyx_v_self->hh.getWidgets(__pyx_v_handle, __pyx_v_widgetV); - /* "PyCafe.pyx":350 + /* "PyCafe.pyx":349 * widgetList = [] * status = self.hh.getWidgets(handle, widgetV) * for i in range(0, widgetV.size()): # <<<<<<<<<<<<<< @@ -36474,7 +36922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "PyCafe.pyx":351 + /* "PyCafe.pyx":350 * status = self.hh.getWidgets(handle, widgetV) * for i in range(0, widgetV.size()): * widgetList.append( < object > widgetV[i]) # <<<<<<<<<<<<<< @@ -36482,10 +36930,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ * ############################################################################ */ __pyx_t_5 = (__pyx_v_widgetV[__pyx_v_i]); - __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_widgetList, ((PyObject *)__pyx_t_5)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 351, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_widgetList, ((PyObject *)__pyx_t_5)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 350, __pyx_L1_error) } - /* "PyCafe.pyx":352 + /* "PyCafe.pyx":351 * for i in range(0, widgetV.size()): * widgetList.append( < object > widgetV[i]) * return widgetList # <<<<<<<<<<<<<< @@ -36497,7 +36945,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ __pyx_r = __pyx_v_widgetList; goto __pyx_L0; - /* "PyCafe.pyx":345 + /* "PyCafe.pyx":344 * return self.hh.addWidget(handle, widget) * * def getWidgets(self, unsigned int handle): # <<<<<<<<<<<<<< @@ -36519,7 +36967,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_24getWidgets(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":361 +/* "PyCafe.pyx":360 * * * def open(self, pv, cb: object = None): # <<<<<<<<<<<<<< @@ -36564,7 +37012,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_27open(PyObject *__pyx_v_self, PyObjec } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open") < 0)) __PYX_ERR(3, 361, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "open") < 0)) __PYX_ERR(3, 360, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -36580,7 +37028,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_27open(PyObject *__pyx_v_self, PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("open", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 361, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("open", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 360, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.open", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -36636,7 +37084,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe char const *__pyx_t_28; __Pyx_RefNannySetupContext("open", 0); - /* "PyCafe.pyx":402 + /* "PyCafe.pyx":401 * * """ * cdef str _METHOD = "open" # <<<<<<<<<<<<<< @@ -36646,7 +37094,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_n_u_open); __pyx_v__METHOD = __pyx_n_u_open; - /* "PyCafe.pyx":407 + /* "PyCafe.pyx":406 * cdef bytes py_string * * if isinstance(pv, (list)): # <<<<<<<<<<<<<< @@ -36657,51 +37105,51 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":408 + /* "PyCafe.pyx":407 * * if isinstance(pv, (list)): * for i in range(0, len(pv)): # <<<<<<<<<<<<<< * if isinstance(pv[i], str): * pvV.push_back(pv[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_pv); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 408, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_pv); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 407, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":409 + /* "PyCafe.pyx":408 * if isinstance(pv, (list)): * for i in range(0, len(pv)): * if isinstance(pv[i], str): # <<<<<<<<<<<<<< * pvV.push_back(pv[i]) * elif isinstance(pv[i], bytes): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 409, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":410 + /* "PyCafe.pyx":409 * for i in range(0, len(pv)): * if isinstance(pv[i], str): * pvV.push_back(pv[i]) # <<<<<<<<<<<<<< * elif isinstance(pv[i], bytes): * pvV.push_back(pv[i].decode('utf_8') ) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 410, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 410, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_pvV.push_back(__pyx_t_7); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 410, __pyx_L1_error) + __PYX_ERR(3, 409, __pyx_L1_error) } - /* "PyCafe.pyx":409 + /* "PyCafe.pyx":408 * if isinstance(pv, (list)): * for i in range(0, len(pv)): * if isinstance(pv[i], str): # <<<<<<<<<<<<<< @@ -36711,30 +37159,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L6; } - /* "PyCafe.pyx":411 + /* "PyCafe.pyx":410 * if isinstance(pv[i], str): * pvV.push_back(pv[i]) * elif isinstance(pv[i], bytes): # <<<<<<<<<<<<<< * pvV.push_back(pv[i].decode('utf_8') ) * else: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 411, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyBytes_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":412 + /* "PyCafe.pyx":411 * pvV.push_back(pv[i]) * elif isinstance(pv[i], bytes): * pvV.push_back(pv[i].decode('utf_8') ) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 412, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_pv, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_decode); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 412, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_decode); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; @@ -36747,21 +37195,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_9, function); } } - __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_8, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_n_u_utf_8); + __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_8, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 412, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 412, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_pvV.push_back(__pyx_t_7); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 412, __pyx_L1_error) + __PYX_ERR(3, 411, __pyx_L1_error) } - /* "PyCafe.pyx":411 + /* "PyCafe.pyx":410 * if isinstance(pv[i], str): * pvV.push_back(pv[i]) * elif isinstance(pv[i], bytes): # <<<<<<<<<<<<<< @@ -36771,7 +37219,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L6; } - /* "PyCafe.pyx":414 + /* "PyCafe.pyx":413 * pvV.push_back(pv[i].decode('utf_8') ) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -36779,10 +37227,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * ("The pv name entered within list should be " */ /*else*/ { - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":415 + /* "PyCafe.pyx":414 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -36804,7 +37252,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_The_pv_name_entered_within_list}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -36812,13 +37260,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_The_pv_name_entered_within_list}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -36832,30 +37280,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_kp_u_The_pv_name_entered_within_list); __Pyx_GIVEREF(__pyx_kp_u_The_pv_name_entered_within_list); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_10, __pyx_kp_u_The_pv_name_entered_within_list); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":414 + /* "PyCafe.pyx":413 * pvV.push_back(pv[i].decode('utf_8') ) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("The pv name entered within list should be " */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 414, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 414, __pyx_L1_error) + __PYX_ERR(3, 413, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":418 + /* "PyCafe.pyx":417 * ("The pv name entered within list should be " * "of type or "))) * try: # <<<<<<<<<<<<<< @@ -36871,7 +37319,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":419 + /* "PyCafe.pyx":418 * "of type or "))) * try: * if cb is not None: # <<<<<<<<<<<<<< @@ -36882,7 +37330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":421 + /* "PyCafe.pyx":420 * if cb is not None: * * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) # <<<<<<<<<<<<<< @@ -36891,7 +37339,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(1); - /* "PyCafe.pyx":422 + /* "PyCafe.pyx":421 * * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) * self._c_cafe.channelCreatePolicy.setPyConnectHandler(cb) # <<<<<<<<<<<<<< @@ -36900,7 +37348,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyConnectHandler(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":419 + /* "PyCafe.pyx":418 * "of type or "))) * try: * if cb is not None: # <<<<<<<<<<<<<< @@ -36909,7 +37357,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":425 + /* "PyCafe.pyx":424 * * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -36924,7 +37372,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":426 + /* "PyCafe.pyx":425 * IF PY_EXT_C: * with nogil: * status = self._c_cafe.openV(pvV, handleV) # <<<<<<<<<<<<<< @@ -36941,12 +37389,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif - __PYX_ERR(3, 426, __pyx_L15_error) + __PYX_ERR(3, 425, __pyx_L15_error) } __pyx_v_status = __pyx_t_10; } - /* "PyCafe.pyx":425 + /* "PyCafe.pyx":424 * * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -36972,16 +37420,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":431 + /* "PyCafe.pyx":430 * #with nogil: * status = self._c_cafe.openV(pvV, handleV) * if not self.initCallbackComplete(handleV): # <<<<<<<<<<<<<< * time.sleep(0.2) * else: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_initCallbackComplete); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 431, __pyx_L7_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_initCallbackComplete); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 430, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_handleV); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 431, __pyx_L7_error) + __pyx_t_11 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_handleV); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 430, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -36996,24 +37444,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_9 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_11) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_11); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 431, __pyx_L7_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 430, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 431, __pyx_L7_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 430, __pyx_L7_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_2 = ((!__pyx_t_1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":432 + /* "PyCafe.pyx":431 * status = self._c_cafe.openV(pvV, handleV) * if not self.initCallbackComplete(handleV): * time.sleep(0.2) # <<<<<<<<<<<<<< * else: * time.sleep(0.02) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 432, __pyx_L7_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 431, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 432, __pyx_L7_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 431, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -37028,12 +37476,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_9 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_6, __pyx_float_0_2) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_float_0_2); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 432, __pyx_L7_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 431, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":431 + /* "PyCafe.pyx":430 * #with nogil: * status = self._c_cafe.openV(pvV, handleV) * if not self.initCallbackComplete(handleV): # <<<<<<<<<<<<<< @@ -37043,7 +37491,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L17; } - /* "PyCafe.pyx":434 + /* "PyCafe.pyx":433 * time.sleep(0.2) * else: * time.sleep(0.02) # <<<<<<<<<<<<<< @@ -37051,9 +37499,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * # Reset */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_time); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 434, __pyx_L7_error) + __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_time); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 433, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 434, __pyx_L7_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 433, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_11 = NULL; @@ -37068,14 +37516,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_9 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_11, __pyx_float_0_02) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_float_0_02); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 434, __pyx_L7_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 433, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __pyx_L17:; - /* "PyCafe.pyx":418 + /* "PyCafe.pyx":417 * ("The pv name entered within list should be " * "of type or "))) * try: # <<<<<<<<<<<<<< @@ -37093,7 +37541,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":435 + /* "PyCafe.pyx":434 * else: * time.sleep(0.02) * except RuntimeError as e: # <<<<<<<<<<<<<< @@ -37103,7 +37551,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_RuntimeError); if (__pyx_t_10) { __Pyx_AddTraceback("PyCafe.CyCafe.open", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_6, &__pyx_t_11) < 0) __PYX_ERR(3, 435, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_6, &__pyx_t_11) < 0) __PYX_ERR(3, 434, __pyx_L9_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_11); @@ -37111,7 +37559,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_e = __pyx_t_6; /*try:*/ { - /* "PyCafe.pyx":437 + /* "PyCafe.pyx":436 * except RuntimeError as e: * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -37122,7 +37570,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":438 + /* "PyCafe.pyx":437 * # Reset * if cb is not None: * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) # <<<<<<<<<<<<<< @@ -37131,7 +37579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(0); - /* "PyCafe.pyx":437 + /* "PyCafe.pyx":436 * except RuntimeError as e: * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -37140,50 +37588,50 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":440 + /* "PyCafe.pyx":439 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * * if isinstance(e.args, (tuple)): # <<<<<<<<<<<<<< * # equivalent to e.what() * if 'CAFEException' in (e.args[0]): */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 440, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 439, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_1 = PyTuple_Check(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":442 + /* "PyCafe.pyx":441 * if isinstance(e.args, (tuple)): * # equivalent to e.what() * if 'CAFEException' in (e.args[0]): # <<<<<<<<<<<<<< * errors = e.args[0].split(",") * if len(errors) > 5: */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 442, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 441, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_15 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 442, __pyx_L23_error) + __pyx_t_15 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 441, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_CAFEException, __pyx_t_15, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 442, __pyx_L23_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_CAFEException, __pyx_t_15, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 441, __pyx_L23_error) __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":443 + /* "PyCafe.pyx":442 * # equivalent to e.what() * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") # <<<<<<<<<<<<<< * if len(errors) > 5: * _cafeException = CafeException( */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 443, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 442, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_16 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 443, __pyx_L23_error) + __pyx_t_16 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 442, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_split); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 443, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_n_s_split); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 442, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __pyx_t_16 = NULL; @@ -37198,99 +37646,99 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_15 = (__pyx_t_16) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_16, __pyx_kp_u__38) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_kp_u__38); __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; - if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 443, __pyx_L23_error) + if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 442, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_errors = __pyx_t_15; __pyx_t_15 = 0; - /* "PyCafe.pyx":444 + /* "PyCafe.pyx":443 * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") * if len(errors) > 5: # <<<<<<<<<<<<<< * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, */ - __pyx_t_3 = PyObject_Length(__pyx_v_errors); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 444, __pyx_L23_error) + __pyx_t_3 = PyObject_Length(__pyx_v_errors); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 443, __pyx_L23_error) __pyx_t_1 = ((__pyx_t_3 > 5) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":446 + /* "PyCafe.pyx":445 * if len(errors) > 5: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _pv_name=errors[1], _handle=int(errors[2]), * _error_code=int(errors[3]), */ - __pyx_t_15 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 446, __pyx_L23_error) + __pyx_t_15 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_15); - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 446, __pyx_L23_error) - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 445, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 445, __pyx_L23_error) - /* "PyCafe.pyx":447 + /* "PyCafe.pyx":446 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], _handle=int(errors[2]), # <<<<<<<<<<<<<< * _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 447, __pyx_L23_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 446, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 447, __pyx_L23_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 446, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_16 = __Pyx_PyNumber_Int(__pyx_t_8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 447, __pyx_L23_error) + __pyx_t_16 = __Pyx_PyNumber_Int(__pyx_t_8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 446, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_handle, __pyx_t_16) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_handle, __pyx_t_16) < 0) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - /* "PyCafe.pyx":448 + /* "PyCafe.pyx":447 * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], _handle=int(errors[2]), * _error_code=int(errors[3]), # <<<<<<<<<<<<<< * _error_text=errors[4], _error_info=errors[5]) * raise _cafeException */ - __pyx_t_16 = __Pyx_GetItemInt(__pyx_v_errors, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 448, __pyx_L23_error) + __pyx_t_16 = __Pyx_GetItemInt(__pyx_v_errors, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 447, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_16); - __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 448, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 447, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":449 + /* "PyCafe.pyx":448 * _pv_name=errors[1], _handle=int(errors[2]), * _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) # <<<<<<<<<<<<<< * raise _cafeException * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 449, __pyx_L23_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 448, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 449, __pyx_L23_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_errors, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 448, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 446, __pyx_L23_error) + if (PyDict_SetItem(__pyx_t_15, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 445, __pyx_L23_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":445 + /* "PyCafe.pyx":444 * errors = e.args[0].split(",") * if len(errors) > 5: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], _handle=int(errors[2]), */ - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_15); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 445, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_15); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 444, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":450 + /* "PyCafe.pyx":449 * _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) * raise _cafeException # <<<<<<<<<<<<<< @@ -37298,9 +37746,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 450, __pyx_L23_error) + __PYX_ERR(3, 449, __pyx_L23_error) - /* "PyCafe.pyx":444 + /* "PyCafe.pyx":443 * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") * if len(errors) > 5: # <<<<<<<<<<<<<< @@ -37309,7 +37757,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":442 + /* "PyCafe.pyx":441 * if isinstance(e.args, (tuple)): * # equivalent to e.what() * if 'CAFEException' in (e.args[0]): # <<<<<<<<<<<<<< @@ -37318,7 +37766,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":440 + /* "PyCafe.pyx":439 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * * if isinstance(e.args, (tuple)): # <<<<<<<<<<<<<< @@ -37327,14 +37775,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":451 + /* "PyCafe.pyx":450 * _error_text=errors[4], _error_info=errors[5]) * raise _cafeException * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) # <<<<<<<<<<<<<< * * if cb is not None: */ - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_16 = NULL; __pyx_t_10 = 0; @@ -37351,7 +37799,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_15)) { PyObject *__pyx_temp[4] = {__pyx_t_16, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_v_e}; - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_15, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_15, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_GOTREF(__pyx_t_8); } else @@ -37359,13 +37807,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_15)) { PyObject *__pyx_temp[4] = {__pyx_t_16, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_v_e}; - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_15, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_15, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0; __Pyx_GOTREF(__pyx_t_8); } else #endif { - __pyx_t_17 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_17 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_17); if (__pyx_t_16) { __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_16); __pyx_t_16 = NULL; @@ -37379,20 +37827,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_17, 2+__pyx_t_10, __pyx_v_e); - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_15, __pyx_t_17, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_15, __pyx_t_17, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; } __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; - __pyx_t_15 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_8); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 451, __pyx_L23_error) + __pyx_t_15 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_8); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 450, __pyx_L23_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_Raise(__pyx_t_15, 0, 0, 0); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; - __PYX_ERR(3, 451, __pyx_L23_error) + __PYX_ERR(3, 450, __pyx_L23_error) } - /* "PyCafe.pyx":435 + /* "PyCafe.pyx":434 * else: * time.sleep(0.02) * except RuntimeError as e: # <<<<<<<<<<<<<< @@ -37451,7 +37899,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L9_except_error; __pyx_L9_except_error:; - /* "PyCafe.pyx":418 + /* "PyCafe.pyx":417 * ("The pv name entered within list should be " * "of type or "))) * try: # <<<<<<<<<<<<<< @@ -37471,7 +37919,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_L12_try_end:; } - /* "PyCafe.pyx":453 + /* "PyCafe.pyx":452 * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) * * if cb is not None: # <<<<<<<<<<<<<< @@ -37482,7 +37930,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":455 + /* "PyCafe.pyx":454 * if cb is not None: * # Reset * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) # <<<<<<<<<<<<<< @@ -37491,7 +37939,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(0); - /* "PyCafe.pyx":453 + /* "PyCafe.pyx":452 * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) * * if cb is not None: # <<<<<<<<<<<<<< @@ -37500,7 +37948,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":456 + /* "PyCafe.pyx":455 * # Reset * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * return handleV # <<<<<<<<<<<<<< @@ -37508,13 +37956,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * elif not isinstance(pv, (bytes, str)): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_11 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_handleV); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 456, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_handleV); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_r = __pyx_t_11; __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":407 + /* "PyCafe.pyx":406 * cdef bytes py_string * * if isinstance(pv, (list)): # <<<<<<<<<<<<<< @@ -37524,7 +37972,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L3; } - /* "PyCafe.pyx":458 + /* "PyCafe.pyx":457 * return handleV * * elif not isinstance(pv, (bytes, str)): # <<<<<<<<<<<<<< @@ -37545,17 +37993,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":459 + /* "PyCafe.pyx":458 * * elif not isinstance(pv, (bytes, str)): * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "Input argument, pv, should be of type ")) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":460 + /* "PyCafe.pyx":459 * elif not isinstance(pv, (bytes, str)): * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -37577,7 +38025,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_pv_should_be_of_t}; - __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_11); } else @@ -37585,13 +38033,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_pv_should_be_of_t}; - __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_11); } else #endif { - __pyx_t_15 = PyTuple_New(3+__pyx_t_18); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_15 = PyTuple_New(3+__pyx_t_18); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -37605,27 +38053,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_kp_u_Input_argument_pv_should_be_of_t); __Pyx_GIVEREF(__pyx_kp_u_Input_argument_pv_should_be_of_t); PyTuple_SET_ITEM(__pyx_t_15, 2+__pyx_t_18, __pyx_kp_u_Input_argument_pv_should_be_of_t); - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_15, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_15, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":459 + /* "PyCafe.pyx":458 * * elif not isinstance(pv, (bytes, str)): * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "Input argument, pv, should be of type ")) */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 459, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 459, __pyx_L1_error) + __PYX_ERR(3, 458, __pyx_L1_error) - /* "PyCafe.pyx":458 + /* "PyCafe.pyx":457 * return handleV * * elif not isinstance(pv, (bytes, str)): # <<<<<<<<<<<<<< @@ -37635,7 +38083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L3:; - /* "PyCafe.pyx":463 + /* "PyCafe.pyx":462 * "Input argument, pv, should be of type ")) * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -37644,17 +38092,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_handle = 0; - /* "PyCafe.pyx":466 + /* "PyCafe.pyx":465 * cdef vector[string] vecS * * cdef char * pvStr = pv # <<<<<<<<<<<<<< * * if cb is not None: */ - __pyx_t_27 = __Pyx_PyObject_AsWritableString(__pyx_v_pv); if (unlikely((!__pyx_t_27) && PyErr_Occurred())) __PYX_ERR(3, 466, __pyx_L1_error) + __pyx_t_27 = __Pyx_PyObject_AsWritableString(__pyx_v_pv); if (unlikely((!__pyx_t_27) && PyErr_Occurred())) __PYX_ERR(3, 465, __pyx_L1_error) __pyx_v_pvStr = __pyx_t_27; - /* "PyCafe.pyx":468 + /* "PyCafe.pyx":467 * cdef char * pvStr = pv * * if cb is not None: # <<<<<<<<<<<<<< @@ -37665,7 +38113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":470 + /* "PyCafe.pyx":469 * if cb is not None: * * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) # <<<<<<<<<<<<<< @@ -37674,7 +38122,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(1); - /* "PyCafe.pyx":471 + /* "PyCafe.pyx":470 * * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) * self._c_cafe.channelCreatePolicy.setPyConnectHandler(cb) # <<<<<<<<<<<<<< @@ -37683,7 +38131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyConnectHandler(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":468 + /* "PyCafe.pyx":467 * cdef char * pvStr = pv * * if cb is not None: # <<<<<<<<<<<<<< @@ -37692,7 +38140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":472 + /* "PyCafe.pyx":471 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) * self._c_cafe.channelCreatePolicy.setPyConnectHandler(cb) * try: # <<<<<<<<<<<<<< @@ -37708,7 +38156,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":475 + /* "PyCafe.pyx":474 * IF PY_EXT_C: * #print("OPEN WITH NO GIL==>", pvStr) * with nogil: # <<<<<<<<<<<<<< @@ -37723,7 +38171,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":476 + /* "PyCafe.pyx":475 * #print("OPEN WITH NO GIL==>", pvStr) * with nogil: * self._c_cafe.open(pvStr, handle) # <<<<<<<<<<<<<< @@ -37740,11 +38188,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif - __PYX_ERR(3, 476, __pyx_L44_error) + __PYX_ERR(3, 475, __pyx_L44_error) } } - /* "PyCafe.pyx":475 + /* "PyCafe.pyx":474 * IF PY_EXT_C: * #print("OPEN WITH NO GIL==>", pvStr) * with nogil: # <<<<<<<<<<<<<< @@ -37770,7 +38218,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":472 + /* "PyCafe.pyx":471 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) * self._c_cafe.channelCreatePolicy.setPyConnectHandler(cb) * try: # <<<<<<<<<<<<<< @@ -37791,7 +38239,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":482 + /* "PyCafe.pyx":481 * #with nogil: * self._c_cafe.open(pvStr, handle) * except RuntimeError as e: # <<<<<<<<<<<<<< @@ -37801,7 +38249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_18 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_RuntimeError); if (__pyx_t_18) { __Pyx_AddTraceback("PyCafe.CyCafe.open", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_11, &__pyx_t_15) < 0) __PYX_ERR(3, 482, __pyx_L39_except_error) + if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_11, &__pyx_t_15) < 0) __PYX_ERR(3, 481, __pyx_L39_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_11); __Pyx_GOTREF(__pyx_t_15); @@ -37809,7 +38257,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_e = __pyx_t_11; /*try:*/ { - /* "PyCafe.pyx":484 + /* "PyCafe.pyx":483 * except RuntimeError as e: * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -37820,7 +38268,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":485 + /* "PyCafe.pyx":484 * # Reset * if cb is not None: * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) # <<<<<<<<<<<<<< @@ -37829,7 +38277,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(0); - /* "PyCafe.pyx":484 + /* "PyCafe.pyx":483 * except RuntimeError as e: * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -37838,50 +38286,50 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":486 + /* "PyCafe.pyx":485 * if cb is not None: * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * if isinstance(e.args, (tuple)): # <<<<<<<<<<<<<< * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") # from e.what() */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 486, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 485, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = PyTuple_Check(__pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":487 + /* "PyCafe.pyx":486 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * if isinstance(e.args, (tuple)): * if 'CAFEException' in (e.args[0]): # <<<<<<<<<<<<<< * errors = e.args[0].split(",") # from e.what() * if len(errors) > 5: */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 487, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 486, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 487, __pyx_L51_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 486, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_CAFEException, __pyx_t_8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 487, __pyx_L51_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_u_CAFEException, __pyx_t_8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 486, __pyx_L51_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":488 + /* "PyCafe.pyx":487 * if isinstance(e.args, (tuple)): * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") # from e.what() # <<<<<<<<<<<<<< * if len(errors) > 5: * _cafeException = CafeException( */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 488, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 487, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 488, __pyx_L51_error) + __pyx_t_17 = __Pyx_GetItemInt(__pyx_t_9, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 487, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_split); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 488, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_split); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 487, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __pyx_t_17 = NULL; @@ -37896,99 +38344,99 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_8 = (__pyx_t_17) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_17, __pyx_kp_u__38) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_kp_u__38); __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 488, __pyx_L51_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 487, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_errors = __pyx_t_8; __pyx_t_8 = 0; - /* "PyCafe.pyx":489 + /* "PyCafe.pyx":488 * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") # from e.what() * if len(errors) > 5: # <<<<<<<<<<<<<< * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, */ - __pyx_t_3 = PyObject_Length(__pyx_v_errors); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 489, __pyx_L51_error) + __pyx_t_3 = PyObject_Length(__pyx_v_errors); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 488, __pyx_L51_error) __pyx_t_1 = ((__pyx_t_3 > 5) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":491 + /* "PyCafe.pyx":490 * if len(errors) > 5: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _pv_name=errors[1], * _handle=int(errors[2]), _error_code=int(errors[3]), */ - __pyx_t_8 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 491, __pyx_L51_error) + __pyx_t_8 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 491, __pyx_L51_error) - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 490, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 490, __pyx_L51_error) - /* "PyCafe.pyx":492 + /* "PyCafe.pyx":491 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], # <<<<<<<<<<<<<< * _handle=int(errors[2]), _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) */ - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 492, __pyx_L51_error) + __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 491, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_pv_name, __pyx_t_9) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_pv_name, __pyx_t_9) < 0) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":493 + /* "PyCafe.pyx":492 * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], * _handle=int(errors[2]), _error_code=int(errors[3]), # <<<<<<<<<<<<<< * _error_text=errors[4], _error_info=errors[5]) * raise _cafeException */ - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 493, __pyx_L51_error) + __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 492, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = __Pyx_PyNumber_Int(__pyx_t_9); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 493, __pyx_L51_error) + __pyx_t_17 = __Pyx_PyNumber_Int(__pyx_t_9); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 492, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_handle, __pyx_t_17) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_handle, __pyx_t_17) < 0) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_17 = __Pyx_GetItemInt(__pyx_v_errors, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 493, __pyx_L51_error) + __pyx_t_17 = __Pyx_GetItemInt(__pyx_v_errors, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 492, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_17); - __pyx_t_9 = __Pyx_PyNumber_Int(__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 493, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyNumber_Int(__pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 492, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_code, __pyx_t_9) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_code, __pyx_t_9) < 0) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":494 + /* "PyCafe.pyx":493 * _pv_name=errors[1], * _handle=int(errors[2]), _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 494, __pyx_L51_error) + __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 4, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 493, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_text, __pyx_t_9) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_text, __pyx_t_9) < 0) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 494, __pyx_L51_error) + __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_errors, 5, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 493, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_info, __pyx_t_9) < 0) __PYX_ERR(3, 491, __pyx_L51_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_error_info, __pyx_t_9) < 0) __PYX_ERR(3, 490, __pyx_L51_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":490 + /* "PyCafe.pyx":489 * errors = e.args[0].split(",") # from e.what() * if len(errors) > 5: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _pv_name=errors[1], */ - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 490, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 489, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":495 + /* "PyCafe.pyx":494 * _handle=int(errors[2]), _error_code=int(errors[3]), * _error_text=errors[4], _error_info=errors[5]) * raise _cafeException # <<<<<<<<<<<<<< @@ -37996,9 +38444,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 495, __pyx_L51_error) + __PYX_ERR(3, 494, __pyx_L51_error) - /* "PyCafe.pyx":489 + /* "PyCafe.pyx":488 * if 'CAFEException' in (e.args[0]): * errors = e.args[0].split(",") # from e.what() * if len(errors) > 5: # <<<<<<<<<<<<<< @@ -38007,7 +38455,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":487 + /* "PyCafe.pyx":486 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * if isinstance(e.args, (tuple)): * if 'CAFEException' in (e.args[0]): # <<<<<<<<<<<<<< @@ -38016,7 +38464,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":486 + /* "PyCafe.pyx":485 * if cb is not None: * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * if isinstance(e.args, (tuple)): # <<<<<<<<<<<<<< @@ -38025,14 +38473,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":497 + /* "PyCafe.pyx":496 * raise _cafeException * * raise Exception("{} {} \n{}".format(self._exception_text, _METHOD, e)) # <<<<<<<<<<<<<< * * # Reset */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_17 = NULL; __pyx_t_18 = 0; @@ -38049,7 +38497,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_17, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_v_e}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_9); } else @@ -38057,13 +38505,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_17, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_v_e}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_18, 3+__pyx_t_18); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_9); } else #endif { - __pyx_t_16 = PyTuple_New(3+__pyx_t_18); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_16 = PyTuple_New(3+__pyx_t_18); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_16); if (__pyx_t_17) { __Pyx_GIVEREF(__pyx_t_17); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_17); __pyx_t_17 = NULL; @@ -38077,20 +38525,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_v_e); __Pyx_GIVEREF(__pyx_v_e); PyTuple_SET_ITEM(__pyx_t_16, 2+__pyx_t_18, __pyx_v_e); - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_16, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_16, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 497, __pyx_L51_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 496, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __PYX_ERR(3, 497, __pyx_L51_error) + __PYX_ERR(3, 496, __pyx_L51_error) } - /* "PyCafe.pyx":482 + /* "PyCafe.pyx":481 * #with nogil: * self._c_cafe.open(pvStr, handle) * except RuntimeError as e: # <<<<<<<<<<<<<< @@ -38149,7 +38597,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L39_except_error; __pyx_L39_except_error:; - /* "PyCafe.pyx":472 + /* "PyCafe.pyx":471 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(True) * self._c_cafe.channelCreatePolicy.setPyConnectHandler(cb) * try: # <<<<<<<<<<<<<< @@ -38169,7 +38617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_L42_try_end:; } - /* "PyCafe.pyx":500 + /* "PyCafe.pyx":499 * * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -38180,7 +38628,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":501 + /* "PyCafe.pyx":500 * # Reset * if cb is not None: * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) # <<<<<<<<<<<<<< @@ -38189,7 +38637,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->channelCreatePolicy.setPyCallbackFlag(0); - /* "PyCafe.pyx":500 + /* "PyCafe.pyx":499 * * # Reset * if cb is not None: # <<<<<<<<<<<<<< @@ -38198,7 +38646,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":503 + /* "PyCafe.pyx":502 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * # A notch to allow for possible race condition * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -38208,16 +38656,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_self->_c_cafe->isChannelConnected(__pyx_v_handle) != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":504 + /* "PyCafe.pyx":503 * # A notch to allow for possible race condition * if not self._c_cafe.isChannelConnected(handle): * time.sleep(0.1) # <<<<<<<<<<<<<< * else: * time.sleep(0.01) # Let pycallbacks complete */ - __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_time); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 504, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_time); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 504, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_11 = NULL; @@ -38232,12 +38680,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_15 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_11, __pyx_float_0_1) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_float_0_1); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 504, __pyx_L1_error) + if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; - /* "PyCafe.pyx":503 + /* "PyCafe.pyx":502 * self._c_cafe.channelCreatePolicy.setPyCallbackFlag(False) * # A notch to allow for possible race condition * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -38247,7 +38695,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L62; } - /* "PyCafe.pyx":506 + /* "PyCafe.pyx":505 * time.sleep(0.1) * else: * time.sleep(0.01) # Let pycallbacks complete # <<<<<<<<<<<<<< @@ -38255,9 +38703,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 506, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 506, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -38272,14 +38720,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_15 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_6, __pyx_float_0_01) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_float_0_01); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 506, __pyx_L1_error) + if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; } __pyx_L62:; - /* "PyCafe.pyx":507 + /* "PyCafe.pyx":506 * else: * time.sleep(0.01) # Let pycallbacks complete * return handle # <<<<<<<<<<<<<< @@ -38287,13 +38735,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_15 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 507, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __pyx_r = __pyx_t_15; __pyx_t_15 = 0; goto __pyx_L0; - /* "PyCafe.pyx":361 + /* "PyCafe.pyx":360 * * * def open(self, pv, cb: object = None): # <<<<<<<<<<<<<< @@ -38324,7 +38772,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_26open(struct __pyx_obj_6PyCafe_CyCafe return __pyx_r; } -/* "PyCafe.pyx":510 +/* "PyCafe.pyx":509 * * ############################################################################ * def openNoWait(self): # <<<<<<<<<<<<<< @@ -38350,7 +38798,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openNoWait", 0); - /* "PyCafe.pyx":514 + /* "PyCafe.pyx":513 * # channelOpenPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38365,7 +38813,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":515 + /* "PyCafe.pyx":514 * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: * self._c_cafe.openNoWait() # <<<<<<<<<<<<<< @@ -38375,7 +38823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ __pyx_v_self->_c_cafe->openNoWait(); } - /* "PyCafe.pyx":514 + /* "PyCafe.pyx":513 * # channelOpenPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38394,7 +38842,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":516 + /* "PyCafe.pyx":515 * with nogil: * self._c_cafe.openNoWait() * return # <<<<<<<<<<<<<< @@ -38405,7 +38853,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":510 + /* "PyCafe.pyx":509 * * ############################################################################ * def openNoWait(self): # <<<<<<<<<<<<<< @@ -38421,7 +38869,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_28openNoWait(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":518 +/* "PyCafe.pyx":517 * return * * def openPrepare(self): # <<<<<<<<<<<<<< @@ -38447,7 +38895,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_30openPrepare(struct __pyx_obj_6PyCafe __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openPrepare", 0); - /* "PyCafe.pyx":522 + /* "PyCafe.pyx":521 * # self._c_cafe.channelOpenPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38462,7 +38910,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_30openPrepare(struct __pyx_obj_6PyCafe #endif /*try:*/ { - /* "PyCafe.pyx":523 + /* "PyCafe.pyx":522 * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: * self._c_cafe.openPrepare() # <<<<<<<<<<<<<< @@ -38472,7 +38920,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_30openPrepare(struct __pyx_obj_6PyCafe __pyx_v_self->_c_cafe->openPrepare(); } - /* "PyCafe.pyx":522 + /* "PyCafe.pyx":521 * # self._c_cafe.channelOpenPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38491,7 +38939,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_30openPrepare(struct __pyx_obj_6PyCafe } } - /* "PyCafe.pyx":518 + /* "PyCafe.pyx":517 * return * * def openPrepare(self): # <<<<<<<<<<<<<< @@ -38506,7 +38954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_30openPrepare(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":525 +/* "PyCafe.pyx":524 * self._c_cafe.openPrepare() * * def openGroupPrepare(self): # <<<<<<<<<<<<<< @@ -38532,7 +38980,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_32openGroupPrepare(struct __pyx_obj_6P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openGroupPrepare", 0); - /* "PyCafe.pyx":530 + /* "PyCafe.pyx":529 * # self._c_cafe.channelOpenGroupPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38547,7 +38995,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_32openGroupPrepare(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":531 + /* "PyCafe.pyx":530 * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: * self._c_cafe.openGroupPrepare() # <<<<<<<<<<<<<< @@ -38557,7 +39005,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_32openGroupPrepare(struct __pyx_obj_6P __pyx_v_self->_c_cafe->openGroupPrepare(); } - /* "PyCafe.pyx":530 + /* "PyCafe.pyx":529 * # self._c_cafe.channelOpenGroupPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -38576,7 +39024,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_32openGroupPrepare(struct __pyx_obj_6P } } - /* "PyCafe.pyx":525 + /* "PyCafe.pyx":524 * self._c_cafe.openPrepare() * * def openGroupPrepare(self): # <<<<<<<<<<<<<< @@ -38591,7 +39039,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_32openGroupPrepare(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":533 +/* "PyCafe.pyx":532 * self._c_cafe.openGroupPrepare() * * def setOpenDefaultPendTime(self, double timeout): # <<<<<<<<<<<<<< @@ -38607,7 +39055,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_35setOpenDefaultPendTime(PyObject *__p __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setOpenDefaultPendTime (wrapper)", 0); assert(__pyx_arg_timeout); { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 533, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 532, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -38628,7 +39076,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_34setOpenDefaultPendTime(struct __pyx_ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("setOpenDefaultPendTime", 0); - /* "PyCafe.pyx":534 + /* "PyCafe.pyx":533 * * def setOpenDefaultPendTime(self, double timeout): * return self._c_cafe.channelOpenPolicy.setDefaultTimeout(timeout) # <<<<<<<<<<<<<< @@ -38636,13 +39084,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_34setOpenDefaultPendTime(struct __pyx_ * def getOpenDefaultPendTime(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.setDefaultTimeout(__pyx_v_timeout)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 534, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.setDefaultTimeout(__pyx_v_timeout)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":533 + /* "PyCafe.pyx":532 * self._c_cafe.openGroupPrepare() * * def setOpenDefaultPendTime(self, double timeout): # <<<<<<<<<<<<<< @@ -38663,7 +39111,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_34setOpenDefaultPendTime(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":536 +/* "PyCafe.pyx":535 * return self._c_cafe.channelOpenPolicy.setDefaultTimeout(timeout) * * def getOpenDefaultPendTime(self): # <<<<<<<<<<<<<< @@ -38690,7 +39138,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_36getOpenDefaultPendTime(struct __pyx_ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getOpenDefaultPendTime", 0); - /* "PyCafe.pyx":537 + /* "PyCafe.pyx":536 * * def getOpenDefaultPendTime(self): * return self._c_cafe.channelOpenPolicy.getDefaultTimeout() # <<<<<<<<<<<<<< @@ -38698,13 +39146,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_36getOpenDefaultPendTime(struct __pyx_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.getDefaultTimeout()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 537, __pyx_L1_error) + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.getDefaultTimeout()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":536 + /* "PyCafe.pyx":535 * return self._c_cafe.channelOpenPolicy.setDefaultTimeout(timeout) * * def getOpenDefaultPendTime(self): # <<<<<<<<<<<<<< @@ -38725,7 +39173,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_36getOpenDefaultPendTime(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":541 +/* "PyCafe.pyx":540 * * ############################################################################ * def openNow(self): # <<<<<<<<<<<<<< @@ -38751,7 +39199,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_38openNow(struct __pyx_obj_6PyCafe_CyC __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openNow", 0); - /* "PyCafe.pyx":545 + /* "PyCafe.pyx":544 * # self._c_cafe.channelOpenPolicy.setWhenToFlushSendBuffer(FLUSH_NOW) * # self._c_cafe.channelOpenPolicy.setFlushSendBufferKind(WITH_PEND_EVENT) * with nogil: # <<<<<<<<<<<<<< @@ -38766,7 +39214,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_38openNow(struct __pyx_obj_6PyCafe_CyC #endif /*try:*/ { - /* "PyCafe.pyx":546 + /* "PyCafe.pyx":545 * # self._c_cafe.channelOpenPolicy.setFlushSendBufferKind(WITH_PEND_EVENT) * with nogil: * self._c_cafe.openNow() # <<<<<<<<<<<<<< @@ -38776,7 +39224,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_38openNow(struct __pyx_obj_6PyCafe_CyC __pyx_v_self->_c_cafe->openNow(); } - /* "PyCafe.pyx":545 + /* "PyCafe.pyx":544 * # self._c_cafe.channelOpenPolicy.setWhenToFlushSendBuffer(FLUSH_NOW) * # self._c_cafe.channelOpenPolicy.setFlushSendBufferKind(WITH_PEND_EVENT) * with nogil: # <<<<<<<<<<<<<< @@ -38795,7 +39243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_38openNow(struct __pyx_obj_6PyCafe_CyC } } - /* "PyCafe.pyx":541 + /* "PyCafe.pyx":540 * * ############################################################################ * def openNow(self): # <<<<<<<<<<<<<< @@ -38810,7 +39258,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_38openNow(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":550 +/* "PyCafe.pyx":549 * ############################################################################# * * def openNowAndWait(self, double timeout=0, handlesPV=None): # <<<<<<<<<<<<<< @@ -38856,7 +39304,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_41openNowAndWait(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openNowAndWait") < 0)) __PYX_ERR(3, 550, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openNowAndWait") < 0)) __PYX_ERR(3, 549, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -38869,7 +39317,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_41openNowAndWait(PyObject *__pyx_v_sel } } if (values[0]) { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 550, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 549, __pyx_L3_error) } else { __pyx_v_timeout = ((double)0.0); } @@ -38877,7 +39325,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_41openNowAndWait(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("openNowAndWait", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 550, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("openNowAndWait", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 549, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.openNowAndWait", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -38912,7 +39360,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC int __pyx_t_12; __Pyx_RefNannySetupContext("openNowAndWait", 0); - /* "PyCafe.pyx":551 + /* "PyCafe.pyx":550 * * def openNowAndWait(self, double timeout=0, handlesPV=None): * cdef str _METHOD = "openNowAndWait" # <<<<<<<<<<<<<< @@ -38922,7 +39370,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_openNowAndWait); __pyx_v__METHOD = __pyx_n_u_openNowAndWait; - /* "PyCafe.pyx":553 + /* "PyCafe.pyx":552 * cdef str _METHOD = "openNowAndWait" * * if timeout <=0 : # <<<<<<<<<<<<<< @@ -38932,7 +39380,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_timeout <= 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":554 + /* "PyCafe.pyx":553 * * if timeout <=0 : * timeout = self._c_cafe.channelOpenPolicy.getTimeout() # <<<<<<<<<<<<<< @@ -38941,7 +39389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC */ __pyx_v_timeout = __pyx_v_self->_c_cafe->channelOpenPolicy.getTimeout(); - /* "PyCafe.pyx":553 + /* "PyCafe.pyx":552 * cdef str _METHOD = "openNowAndWait" * * if timeout <=0 : # <<<<<<<<<<<<<< @@ -38950,7 +39398,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":565 + /* "PyCafe.pyx":564 * cdef vector[unsigned int] hList * cdef vector[string] pvV * cdef npoll = 0 # <<<<<<<<<<<<<< @@ -38960,7 +39408,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_int_0); __pyx_v_npoll = __pyx_int_0; - /* "PyCafe.pyx":567 + /* "PyCafe.pyx":566 * cdef npoll = 0 * * if handlesPV is not None: # <<<<<<<<<<<<<< @@ -38971,7 +39419,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":568 + /* "PyCafe.pyx":567 * * if handlesPV is not None: * if isinstance(handlesPV, (list)): # <<<<<<<<<<<<<< @@ -38982,26 +39430,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":569 + /* "PyCafe.pyx":568 * if handlesPV is not None: * if isinstance(handlesPV, (list)): * for i in range(0, len(handlesPV)): # <<<<<<<<<<<<<< * if isinstance(handlesPV[i], (int, long)): * hList.push_back(handlesPV[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_handlesPV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 569, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_handlesPV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 568, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":570 + /* "PyCafe.pyx":569 * if isinstance(handlesPV, (list)): * for i in range(0, len(handlesPV)): * if isinstance(handlesPV[i], (int, long)): # <<<<<<<<<<<<<< * hList.push_back(handlesPV[i]) * elif isinstance(handlesPV[i], (str)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 570, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyInt_Check(__pyx_t_6); __pyx_t_7 = (__pyx_t_2 != 0); @@ -39018,25 +39466,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":571 + /* "PyCafe.pyx":570 * for i in range(0, len(handlesPV)): * if isinstance(handlesPV[i], (int, long)): * hList.push_back(handlesPV[i]) # <<<<<<<<<<<<<< * elif isinstance(handlesPV[i], (str)): * hList.push_back(self.getHandleFromPVName(handlesPV[i])) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 571, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 571, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 570, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 571, __pyx_L1_error) + __PYX_ERR(3, 570, __pyx_L1_error) } - /* "PyCafe.pyx":570 + /* "PyCafe.pyx":569 * if isinstance(handlesPV, (list)): * for i in range(0, len(handlesPV)): * if isinstance(handlesPV[i], (int, long)): # <<<<<<<<<<<<<< @@ -39046,30 +39494,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L8; } - /* "PyCafe.pyx":572 + /* "PyCafe.pyx":571 * if isinstance(handlesPV[i], (int, long)): * hList.push_back(handlesPV[i]) * elif isinstance(handlesPV[i], (str)): # <<<<<<<<<<<<<< * hList.push_back(self.getHandleFromPVName(handlesPV[i])) * else: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 572, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":573 + /* "PyCafe.pyx":572 * hList.push_back(handlesPV[i]) * elif isinstance(handlesPV[i], (str)): * hList.push_back(self.getHandleFromPVName(handlesPV[i])) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPVName); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 573, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPVName); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 573, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_handlesPV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { @@ -39084,19 +39532,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_6 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_11, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 573, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 573, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 573, __pyx_L1_error) + __PYX_ERR(3, 572, __pyx_L1_error) } - /* "PyCafe.pyx":572 + /* "PyCafe.pyx":571 * if isinstance(handlesPV[i], (int, long)): * hList.push_back(handlesPV[i]) * elif isinstance(handlesPV[i], (str)): # <<<<<<<<<<<<<< @@ -39106,7 +39554,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L8; } - /* "PyCafe.pyx":575 + /* "PyCafe.pyx":574 * hList.push_back(self.getHandleFromPVName(handlesPV[i])) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -39114,10 +39562,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC * ("List input arguments, should be < type 'int' >" + */ /*else*/ { - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":576 + /* "PyCafe.pyx":575 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -39139,7 +39587,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_t}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -39147,13 +39595,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_t}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -39167,30 +39615,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_List_input_arguments_should_be_t); __Pyx_GIVEREF(__pyx_kp_u_List_input_arguments_should_be_t); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_12, __pyx_kp_u_List_input_arguments_should_be_t); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":575 + /* "PyCafe.pyx":574 * hList.push_back(self.getHandleFromPVName(handlesPV[i])) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("List input arguments, should be < type 'int' >" + */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 575, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 575, __pyx_L1_error) + __PYX_ERR(3, 574, __pyx_L1_error) } __pyx_L8:; } - /* "PyCafe.pyx":568 + /* "PyCafe.pyx":567 * * if handlesPV is not None: * if isinstance(handlesPV, (list)): # <<<<<<<<<<<<<< @@ -39200,7 +39648,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L5; } - /* "PyCafe.pyx":579 + /* "PyCafe.pyx":578 * ("List input arguments, should be < type 'int' >" + * "if handle, else < type 'str' > if pv name"))) * elif isinstance(handlesPV, (int, long)): # <<<<<<<<<<<<<< @@ -39221,22 +39669,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":580 + /* "PyCafe.pyx":579 * "if handle, else < type 'str' > if pv name"))) * elif isinstance(handlesPV, (int, long)): * hList.push_back(handlesPV) # <<<<<<<<<<<<<< * elif isinstance(handlesPV, (str)): * hList.push_back(self.getHandleFromPVName(handlesPV)) */ - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlesPV); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 580, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlesPV); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 579, __pyx_L1_error) try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 580, __pyx_L1_error) + __PYX_ERR(3, 579, __pyx_L1_error) } - /* "PyCafe.pyx":579 + /* "PyCafe.pyx":578 * ("List input arguments, should be < type 'int' >" + * "if handle, else < type 'str' > if pv name"))) * elif isinstance(handlesPV, (int, long)): # <<<<<<<<<<<<<< @@ -39246,7 +39694,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L5; } - /* "PyCafe.pyx":581 + /* "PyCafe.pyx":580 * elif isinstance(handlesPV, (int, long)): * hList.push_back(handlesPV) * elif isinstance(handlesPV, (str)): # <<<<<<<<<<<<<< @@ -39257,14 +39705,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":582 + /* "PyCafe.pyx":581 * hList.push_back(handlesPV) * elif isinstance(handlesPV, (str)): * hList.push_back(self.getHandleFromPVName(handlesPV)) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPVName); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 582, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPVName); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -39278,19 +39726,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } __pyx_t_9 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_11, __pyx_v_handlesPV) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_handlesPV); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 582, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 582, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 581, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 582, __pyx_L1_error) + __PYX_ERR(3, 581, __pyx_L1_error) } - /* "PyCafe.pyx":581 + /* "PyCafe.pyx":580 * elif isinstance(handlesPV, (int, long)): * hList.push_back(handlesPV) * elif isinstance(handlesPV, (str)): # <<<<<<<<<<<<<< @@ -39300,7 +39748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L5; } - /* "PyCafe.pyx":584 + /* "PyCafe.pyx":583 * hList.push_back(self.getHandleFromPVName(handlesPV)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -39308,10 +39756,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC * "Input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":585 + /* "PyCafe.pyx":584 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -39333,7 +39781,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_should_be_of_type}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_9); } else @@ -39341,13 +39789,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_should_be_of_type}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_9); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_11) { __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11); __pyx_t_11 = NULL; @@ -39361,29 +39809,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_Input_argument_should_be_of_type); __Pyx_GIVEREF(__pyx_kp_u_Input_argument_should_be_of_type); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_12, __pyx_kp_u_Input_argument_should_be_of_type); - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":584 + /* "PyCafe.pyx":583 * hList.push_back(self.getHandleFromPVName(handlesPV)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "Input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 584, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 584, __pyx_L1_error) + __PYX_ERR(3, 583, __pyx_L1_error) } __pyx_L5:; - /* "PyCafe.pyx":588 + /* "PyCafe.pyx":587 * "Input argument, should be of type if handle, \ * else if pv name")) * with nogil: # <<<<<<<<<<<<<< @@ -39398,7 +39846,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":589 + /* "PyCafe.pyx":588 * else if pv name")) * with nogil: * self._c_cafe.openNowAndWaitHandleV(hList, timeout) # <<<<<<<<<<<<<< @@ -39408,7 +39856,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_v_self->_c_cafe->openNowAndWaitHandleV(__pyx_v_hList, __pyx_v_timeout); } - /* "PyCafe.pyx":588 + /* "PyCafe.pyx":587 * "Input argument, should be of type if handle, \ * else if pv name")) * with nogil: # <<<<<<<<<<<<<< @@ -39427,7 +39875,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":591 + /* "PyCafe.pyx":590 * self._c_cafe.openNowAndWaitHandleV(hList, timeout) * # Did all callbacks complete? wait 50ms * for i in range(0, 100): # <<<<<<<<<<<<<< @@ -39437,7 +39885,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC for (__pyx_t_3 = 0; __pyx_t_3 < 0x64; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; - /* "PyCafe.pyx":592 + /* "PyCafe.pyx":591 * # Did all callbacks complete? wait 50ms * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): # <<<<<<<<<<<<<< @@ -39447,16 +39895,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_self->_c_cafe->initCallbackCompleteV(__pyx_v_hList) != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":593 + /* "PyCafe.pyx":592 * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): * time.sleep(0.001) # <<<<<<<<<<<<<< * npoll = npoll+1 * else: */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_time); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 593, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_time); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sleep); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 593, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_sleep); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = NULL; @@ -39471,24 +39919,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, __pyx_float_0_001) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_float_0_001); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 593, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":594 + /* "PyCafe.pyx":593 * if not self._c_cafe.initCallbackCompleteV(hList): * time.sleep(0.001) * npoll = npoll+1 # <<<<<<<<<<<<<< * else: * break */ - __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_npoll, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 594, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_npoll, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_npoll, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":592 + /* "PyCafe.pyx":591 * # Did all callbacks complete? wait 50ms * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): # <<<<<<<<<<<<<< @@ -39498,7 +39946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L18; } - /* "PyCafe.pyx":596 + /* "PyCafe.pyx":595 * npoll = npoll+1 * else: * break # <<<<<<<<<<<<<< @@ -39512,7 +39960,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } __pyx_L17_break:; - /* "PyCafe.pyx":567 + /* "PyCafe.pyx":566 * cdef npoll = 0 * * if handlesPV is not None: # <<<<<<<<<<<<<< @@ -39522,7 +39970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L4; } - /* "PyCafe.pyx":601 + /* "PyCafe.pyx":600 * * else: * with nogil: # <<<<<<<<<<<<<< @@ -39538,7 +39986,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":602 + /* "PyCafe.pyx":601 * else: * with nogil: * self._c_cafe.openNowAndWait(timeout) # <<<<<<<<<<<<<< @@ -39548,7 +39996,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_v_self->_c_cafe->openNowAndWait(__pyx_v_timeout); } - /* "PyCafe.pyx":601 + /* "PyCafe.pyx":600 * * else: * with nogil: # <<<<<<<<<<<<<< @@ -39567,7 +40015,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":605 + /* "PyCafe.pyx":604 * ###handleList, pvList = self.getHandles() * * self.hh.getHandles(hList, pvV) # <<<<<<<<<<<<<< @@ -39576,7 +40024,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->hh.getHandles(__pyx_v_hList, __pyx_v_pvV)); - /* "PyCafe.pyx":607 + /* "PyCafe.pyx":606 * self.hh.getHandles(hList, pvV) * # Did all callbacks complete? wait 10ms * for i in range(0, 100): # <<<<<<<<<<<<<< @@ -39586,7 +40034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC for (__pyx_t_3 = 0; __pyx_t_3 < 0x64; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; - /* "PyCafe.pyx":608 + /* "PyCafe.pyx":607 * # Did all callbacks complete? wait 10ms * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): # <<<<<<<<<<<<<< @@ -39596,16 +40044,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_self->_c_cafe->initCallbackCompleteV(__pyx_v_hList) != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":609 + /* "PyCafe.pyx":608 * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): * time.sleep(0.001) # <<<<<<<<<<<<<< * npoll = npoll+1 * else: */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_time); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 609, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_time); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_sleep); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 609, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_sleep); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; @@ -39620,24 +40068,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } __pyx_t_6 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_float_0_001) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_float_0_001); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 609, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":610 + /* "PyCafe.pyx":609 * if not self._c_cafe.initCallbackCompleteV(hList): * time.sleep(0.001) * npoll = npoll+1 # <<<<<<<<<<<<<< * else: * break */ - __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_npoll, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 610, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_npoll, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_npoll, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":608 + /* "PyCafe.pyx":607 * # Did all callbacks complete? wait 10ms * for i in range(0, 100): * if not self._c_cafe.initCallbackCompleteV(hList): # <<<<<<<<<<<<<< @@ -39647,7 +40095,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC goto __pyx_L24; } - /* "PyCafe.pyx":612 + /* "PyCafe.pyx":611 * npoll = npoll+1 * else: * break # <<<<<<<<<<<<<< @@ -39663,7 +40111,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC } __pyx_L4:; - /* "PyCafe.pyx":550 + /* "PyCafe.pyx":549 * ############################################################################# * * def openNowAndWait(self, double timeout=0, handlesPV=None): # <<<<<<<<<<<<<< @@ -39689,7 +40137,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_40openNowAndWait(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":620 +/* "PyCafe.pyx":619 * ############################################################################ * * def openGroupNowAndWait(self, double timeout=0): # <<<<<<<<<<<<<< @@ -39725,7 +40173,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_43openGroupNowAndWait(PyObject *__pyx_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openGroupNowAndWait") < 0)) __PYX_ERR(3, 620, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openGroupNowAndWait") < 0)) __PYX_ERR(3, 619, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -39736,14 +40184,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_43openGroupNowAndWait(PyObject *__pyx_ } } if (values[0]) { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 620, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 619, __pyx_L3_error) } else { __pyx_v_timeout = ((double)0.0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("openGroupNowAndWait", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 620, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("openGroupNowAndWait", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 619, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.openGroupNowAndWait", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -39762,7 +40210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj int __pyx_t_1; __Pyx_RefNannySetupContext("openGroupNowAndWait", 0); - /* "PyCafe.pyx":621 + /* "PyCafe.pyx":620 * * def openGroupNowAndWait(self, double timeout=0): * if timeout <= 0: # <<<<<<<<<<<<<< @@ -39772,7 +40220,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj __pyx_t_1 = ((__pyx_v_timeout <= 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":622 + /* "PyCafe.pyx":621 * def openGroupNowAndWait(self, double timeout=0): * if timeout <= 0: * self._c_cafe.channelOpenGroupPolicy.getTimeout() # <<<<<<<<<<<<<< @@ -39781,7 +40229,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj */ (void)(__pyx_v_self->_c_cafe->channelOpenGroupPolicy.getTimeout()); - /* "PyCafe.pyx":621 + /* "PyCafe.pyx":620 * * def openGroupNowAndWait(self, double timeout=0): * if timeout <= 0: # <<<<<<<<<<<<<< @@ -39790,7 +40238,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj */ } - /* "PyCafe.pyx":631 + /* "PyCafe.pyx":630 * # WITH_PEND_EVENT) * # self._c_cafe.channelOpenGroupPolicy.setTimeoutToDefault() * with nogil: # <<<<<<<<<<<<<< @@ -39805,7 +40253,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj #endif /*try:*/ { - /* "PyCafe.pyx":632 + /* "PyCafe.pyx":631 * # self._c_cafe.channelOpenGroupPolicy.setTimeoutToDefault() * with nogil: * self._c_cafe.openGroupNowAndWait(timeout) # <<<<<<<<<<<<<< @@ -39815,7 +40263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj __pyx_v_self->_c_cafe->openGroupNowAndWait(__pyx_v_timeout); } - /* "PyCafe.pyx":631 + /* "PyCafe.pyx":630 * # WITH_PEND_EVENT) * # self._c_cafe.channelOpenGroupPolicy.setTimeoutToDefault() * with nogil: # <<<<<<<<<<<<<< @@ -39834,7 +40282,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj } } - /* "PyCafe.pyx":633 + /* "PyCafe.pyx":632 * with nogil: * self._c_cafe.openGroupNowAndWait(timeout) * return # <<<<<<<<<<<<<< @@ -39845,7 +40293,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":620 + /* "PyCafe.pyx":619 * ############################################################################ * * def openGroupNowAndWait(self, double timeout=0): # <<<<<<<<<<<<<< @@ -39861,7 +40309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_42openGroupNowAndWait(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":639 +/* "PyCafe.pyx":638 * ############################################################################ * * def openGroupNowAndWaitForInputGroups(self, double timeout, groupHandles): # <<<<<<<<<<<<<< @@ -39900,11 +40348,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_45openGroupNowAndWaitForInputGroups(Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_groupHandles)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("openGroupNowAndWaitForInputGroups", 1, 2, 2, 1); __PYX_ERR(3, 639, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("openGroupNowAndWaitForInputGroups", 1, 2, 2, 1); __PYX_ERR(3, 638, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openGroupNowAndWaitForInputGroups") < 0)) __PYX_ERR(3, 639, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "openGroupNowAndWaitForInputGroups") < 0)) __PYX_ERR(3, 638, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -39912,12 +40360,12 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_45openGroupNowAndWaitForInputGroups(Py values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 639, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 638, __pyx_L3_error) __pyx_v_groupHandles = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("openGroupNowAndWaitForInputGroups", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 639, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("openGroupNowAndWaitForInputGroups", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 638, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.openGroupNowAndWaitForInputGroups", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -39951,7 +40399,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st PyObject *__pyx_t_13 = NULL; __Pyx_RefNannySetupContext("openGroupNowAndWaitForInputGroups", 0); - /* "PyCafe.pyx":640 + /* "PyCafe.pyx":639 * * def openGroupNowAndWaitForInputGroups(self, double timeout, groupHandles): * cdef str _METHOD = "openGroupNowAndWaitForInputGroups" # <<<<<<<<<<<<<< @@ -39961,7 +40409,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __Pyx_INCREF(__pyx_n_u_openGroupNowAndWaitForInputGroup); __pyx_v__METHOD = __pyx_n_u_openGroupNowAndWaitForInputGroup; - /* "PyCafe.pyx":644 + /* "PyCafe.pyx":643 * cdef vector[unsigned int] hList * * if isinstance(groupHandles, (list)): # <<<<<<<<<<<<<< @@ -39972,26 +40420,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":645 + /* "PyCafe.pyx":644 * * if isinstance(groupHandles, (list)): * for i in range(0, len(groupHandles)): # <<<<<<<<<<<<<< * if isinstance(groupHandles[i], (int, long)): * hList.push_back(groupHandles[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_groupHandles); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 645, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_groupHandles); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 644, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":646 + /* "PyCafe.pyx":645 * if isinstance(groupHandles, (list)): * for i in range(0, len(groupHandles)): * if isinstance(groupHandles[i], (int, long)): # <<<<<<<<<<<<<< * hList.push_back(groupHandles[i]) * elif isinstance(groupHandles[i], (str)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 646, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyInt_Check(__pyx_t_6); __pyx_t_7 = (__pyx_t_1 != 0); @@ -40008,25 +40456,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":647 + /* "PyCafe.pyx":646 * for i in range(0, len(groupHandles)): * if isinstance(groupHandles[i], (int, long)): * hList.push_back(groupHandles[i]) # <<<<<<<<<<<<<< * elif isinstance(groupHandles[i], (str)): * hList.push_back( */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 647, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 647, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 646, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 647, __pyx_L1_error) + __PYX_ERR(3, 646, __pyx_L1_error) } - /* "PyCafe.pyx":646 + /* "PyCafe.pyx":645 * if isinstance(groupHandles, (list)): * for i in range(0, len(groupHandles)): * if isinstance(groupHandles[i], (int, long)): # <<<<<<<<<<<<<< @@ -40036,32 +40484,32 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st goto __pyx_L6; } - /* "PyCafe.pyx":648 + /* "PyCafe.pyx":647 * if isinstance(groupHandles[i], (int, long)): * hList.push_back(groupHandles[i]) * elif isinstance(groupHandles[i], (str)): # <<<<<<<<<<<<<< * hList.push_back( * self.hh.getGroupHandleFromGroupName(groupHandles[i])) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 648, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":650 + /* "PyCafe.pyx":649 * elif isinstance(groupHandles[i], (str)): * hList.push_back( * self.hh.getGroupHandleFromGroupName(groupHandles[i])) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 650, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_groupHandles, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_t_6); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(3, 650, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_t_6); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(3, 649, __pyx_L1_error) - /* "PyCafe.pyx":649 + /* "PyCafe.pyx":648 * hList.push_back(groupHandles[i]) * elif isinstance(groupHandles[i], (str)): * hList.push_back( # <<<<<<<<<<<<<< @@ -40072,11 +40520,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_v_hList.push_back(__pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_9)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 649, __pyx_L1_error) + __PYX_ERR(3, 648, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":648 + /* "PyCafe.pyx":647 * if isinstance(groupHandles[i], (int, long)): * hList.push_back(groupHandles[i]) * elif isinstance(groupHandles[i], (str)): # <<<<<<<<<<<<<< @@ -40086,7 +40534,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st goto __pyx_L6; } - /* "PyCafe.pyx":652 + /* "PyCafe.pyx":651 * self.hh.getGroupHandleFromGroupName(groupHandles[i])) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -40094,10 +40542,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st * "List input arguments, should be of type \ */ /*else*/ { - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - /* "PyCafe.pyx":653 + /* "PyCafe.pyx":652 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -40119,7 +40567,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -40127,13 +40575,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_13 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_13 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); if (__pyx_t_11) { __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_11); __pyx_t_11 = NULL; @@ -40147,30 +40595,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __Pyx_INCREF(__pyx_kp_u_List_input_arguments_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_List_input_arguments_should_be_o); PyTuple_SET_ITEM(__pyx_t_13, 2+__pyx_t_12, __pyx_kp_u_List_input_arguments_should_be_o); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_13, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_13, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":652 + /* "PyCafe.pyx":651 * self.hh.getGroupHandleFromGroupName(groupHandles[i])) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "List input arguments, should be of type \ */ - __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 652, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __PYX_ERR(3, 652, __pyx_L1_error) + __PYX_ERR(3, 651, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":644 + /* "PyCafe.pyx":643 * cdef vector[unsigned int] hList * * if isinstance(groupHandles, (list)): # <<<<<<<<<<<<<< @@ -40180,7 +40628,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st goto __pyx_L3; } - /* "PyCafe.pyx":656 + /* "PyCafe.pyx":655 * "List input arguments, should be of type \ * if group handle, else if group name")) * elif isinstance(groupHandles, (int, long)): # <<<<<<<<<<<<<< @@ -40201,22 +40649,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":657 + /* "PyCafe.pyx":656 * if group handle, else if group name")) * elif isinstance(groupHandles, (int, long)): * hList.push_back(groupHandles) # <<<<<<<<<<<<<< * elif isinstance(groupHandles, (str)): * hList.push_back(self.hh.getGroupHandleFromGroupName(groupHandles)) */ - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_groupHandles); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 657, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_groupHandles); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 656, __pyx_L1_error) try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 657, __pyx_L1_error) + __PYX_ERR(3, 656, __pyx_L1_error) } - /* "PyCafe.pyx":656 + /* "PyCafe.pyx":655 * "List input arguments, should be of type \ * if group handle, else if group name")) * elif isinstance(groupHandles, (int, long)): # <<<<<<<<<<<<<< @@ -40226,7 +40674,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st goto __pyx_L3; } - /* "PyCafe.pyx":658 + /* "PyCafe.pyx":657 * elif isinstance(groupHandles, (int, long)): * hList.push_back(groupHandles) * elif isinstance(groupHandles, (str)): # <<<<<<<<<<<<<< @@ -40237,22 +40685,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":659 + /* "PyCafe.pyx":658 * hList.push_back(groupHandles) * elif isinstance(groupHandles, (str)): * hList.push_back(self.hh.getGroupHandleFromGroupName(groupHandles)) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_v_groupHandles); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(3, 659, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_AsString(__pyx_v_groupHandles); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(3, 658, __pyx_L1_error) try { __pyx_v_hList.push_back(__pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_9)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 659, __pyx_L1_error) + __PYX_ERR(3, 658, __pyx_L1_error) } - /* "PyCafe.pyx":658 + /* "PyCafe.pyx":657 * elif isinstance(groupHandles, (int, long)): * hList.push_back(groupHandles) * elif isinstance(groupHandles, (str)): # <<<<<<<<<<<<<< @@ -40262,7 +40710,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st goto __pyx_L3; } - /* "PyCafe.pyx":661 + /* "PyCafe.pyx":660 * hList.push_back(self.hh.getGroupHandleFromGroupName(groupHandles)) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -40270,10 +40718,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st * ("Second input argument (if not a list), should be of " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":662 + /* "PyCafe.pyx":661 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -40295,7 +40743,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_13, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_if_not_a_l}; - __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_10); } else @@ -40303,13 +40751,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_13, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_if_not_a_l}; - __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_10); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -40323,29 +40771,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __Pyx_INCREF(__pyx_kp_u_Second_input_argument_if_not_a_l); __Pyx_GIVEREF(__pyx_kp_u_Second_input_argument_if_not_a_l); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_12, __pyx_kp_u_Second_input_argument_if_not_a_l); - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":661 + /* "PyCafe.pyx":660 * hList.push_back(self.hh.getGroupHandleFromGroupName(groupHandles)) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("Second input argument (if not a list), should be of " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 661, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 661, __pyx_L1_error) + __PYX_ERR(3, 660, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":668 + /* "PyCafe.pyx":667 * * # list to vector * with nogil: # <<<<<<<<<<<<<< @@ -40360,7 +40808,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st #endif /*try:*/ { - /* "PyCafe.pyx":669 + /* "PyCafe.pyx":668 * # list to vector * with nogil: * self._c_cafe.groupOpenNowAndWait(timeout, hList) # <<<<<<<<<<<<<< @@ -40370,7 +40818,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_v_self->_c_cafe->groupOpenNowAndWait(__pyx_v_timeout, __pyx_v_hList); } - /* "PyCafe.pyx":668 + /* "PyCafe.pyx":667 * * # list to vector * with nogil: # <<<<<<<<<<<<<< @@ -40389,7 +40837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st } } - /* "PyCafe.pyx":670 + /* "PyCafe.pyx":669 * with nogil: * self._c_cafe.groupOpenNowAndWait(timeout, hList) * return # <<<<<<<<<<<<<< @@ -40400,7 +40848,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":639 + /* "PyCafe.pyx":638 * ############################################################################ * * def openGroupNowAndWaitForInputGroups(self, double timeout, groupHandles): # <<<<<<<<<<<<<< @@ -40425,7 +40873,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_44openGroupNowAndWaitForInputGroups(st return __pyx_r; } -/* "PyCafe.pyx":674 +/* "PyCafe.pyx":673 * ############################################################################ * * def openMonitorPrepare(self): # <<<<<<<<<<<<<< @@ -40451,7 +40899,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openMonitorPrepare", 0); - /* "PyCafe.pyx":678 + /* "PyCafe.pyx":677 * # self._c_cafe.channelMonitorPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -40466,7 +40914,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ #endif /*try:*/ { - /* "PyCafe.pyx":679 + /* "PyCafe.pyx":678 * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: * self._c_cafe.openMonitorPrepare() # <<<<<<<<<<<<<< @@ -40476,7 +40924,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ __pyx_v_self->_c_cafe->openMonitorPrepare(); } - /* "PyCafe.pyx":678 + /* "PyCafe.pyx":677 * # self._c_cafe.channelMonitorPolicy.setWhenToFlushSendBuffer( * # FLUSH_DESIGNATED_TO_CLIENT) * with nogil: # <<<<<<<<<<<<<< @@ -40495,7 +40943,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ } } - /* "PyCafe.pyx":680 + /* "PyCafe.pyx":679 * with nogil: * self._c_cafe.openMonitorPrepare() * return # <<<<<<<<<<<<<< @@ -40506,7 +40954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":674 + /* "PyCafe.pyx":673 * ############################################################################ * * def openMonitorPrepare(self): # <<<<<<<<<<<<<< @@ -40522,7 +40970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_46openMonitorPrepare(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":684 +/* "PyCafe.pyx":683 * ############################################################################## * * def openMonitorNow(self): # <<<<<<<<<<<<<< @@ -40551,7 +40999,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("openMonitorNow", 0); - /* "PyCafe.pyx":690 + /* "PyCafe.pyx":689 * # self._c_cafe.channelMonitorPolicy.setFlushSendBufferKind( * # WITH_FLUSH_IO) * with nogil: # <<<<<<<<<<<<<< @@ -40566,7 +41014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":691 + /* "PyCafe.pyx":690 * # WITH_FLUSH_IO) * with nogil: * self._c_cafe.openMonitorNow() # <<<<<<<<<<<<<< @@ -40576,7 +41024,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC __pyx_v_self->_c_cafe->openMonitorNow(); } - /* "PyCafe.pyx":690 + /* "PyCafe.pyx":689 * # self._c_cafe.channelMonitorPolicy.setFlushSendBufferKind( * # WITH_FLUSH_IO) * with nogil: # <<<<<<<<<<<<<< @@ -40595,16 +41043,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":692 + /* "PyCafe.pyx":691 * with nogil: * self._c_cafe.openMonitorNow() * time.sleep(0.01) # <<<<<<<<<<<<<< * return * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 692, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 692, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; @@ -40619,12 +41067,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC } __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_01) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_01); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 692, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":693 + /* "PyCafe.pyx":692 * self._c_cafe.openMonitorNow() * time.sleep(0.01) * return # <<<<<<<<<<<<<< @@ -40635,7 +41083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":684 + /* "PyCafe.pyx":683 * ############################################################################## * * def openMonitorNow(self): # <<<<<<<<<<<<<< @@ -40658,7 +41106,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_48openMonitorNow(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":699 +/* "PyCafe.pyx":698 * ############################################################################ * * cdef getMonitorWhenToFlushSendBuffer(self): # <<<<<<<<<<<<<< @@ -40672,7 +41120,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_getMonitorWhenToFlushSendBuffer(struct PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getMonitorWhenToFlushSendBuffer", 0); - /* "PyCafe.pyx":700 + /* "PyCafe.pyx":699 * * cdef getMonitorWhenToFlushSendBuffer(self): * return self._c_cafe.channelMonitorPolicy.getWhenToFlushSendBuffer() # <<<<<<<<<<<<<< @@ -40680,13 +41128,13 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_getMonitorWhenToFlushSendBuffer(struct * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_ChannelWhenToFlushSendBufferPolicyKind(__pyx_v_self->_c_cafe->channelMonitorPolicy.getWhenToFlushSendBuffer()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 700, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_ChannelWhenToFlushSendBufferPolicyKind(__pyx_v_self->_c_cafe->channelMonitorPolicy.getWhenToFlushSendBuffer()); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":699 + /* "PyCafe.pyx":698 * ############################################################################ * * cdef getMonitorWhenToFlushSendBuffer(self): # <<<<<<<<<<<<<< @@ -40707,7 +41155,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_getMonitorWhenToFlushSendBuffer(struct return __pyx_r; } -/* "PyCafe.pyx":705 +/* "PyCafe.pyx":704 * * ############################################################################ * def openMonitorNowAndWait(self, double timeout): # <<<<<<<<<<<<<< @@ -40723,7 +41171,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_51openMonitorNowAndWait(PyObject *__py __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("openMonitorNowAndWait (wrapper)", 0); assert(__pyx_arg_timeout); { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 705, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 704, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -40754,7 +41202,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("openMonitorNowAndWait", 0); - /* "PyCafe.pyx":706 + /* "PyCafe.pyx":705 * ############################################################################ * def openMonitorNowAndWait(self, double timeout): * cdef _METHOD = "openMonitorNowAndWait(timeout)" # <<<<<<<<<<<<<< @@ -40764,7 +41212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o __Pyx_INCREF(__pyx_kp_u_openMonitorNowAndWait_timeout); __pyx_v__METHOD = __pyx_kp_u_openMonitorNowAndWait_timeout; - /* "PyCafe.pyx":714 + /* "PyCafe.pyx":713 * # self._c_cafe.channelMonitorPolicy.setFlushSendBufferKind(WITH_FLUSH_IO) * * with nogil: # <<<<<<<<<<<<<< @@ -40779,7 +41227,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o #endif /*try:*/ { - /* "PyCafe.pyx":715 + /* "PyCafe.pyx":714 * * with nogil: * self._c_cafe.openMonitorNowAndWait(max(timeout, self._min_timeout)) # <<<<<<<<<<<<<< @@ -40796,7 +41244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o __pyx_v_self->_c_cafe->openMonitorNowAndWait(__pyx_t_3); } - /* "PyCafe.pyx":714 + /* "PyCafe.pyx":713 * # self._c_cafe.channelMonitorPolicy.setFlushSendBufferKind(WITH_FLUSH_IO) * * with nogil: # <<<<<<<<<<<<<< @@ -40815,7 +41263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o } } - /* "PyCafe.pyx":717 + /* "PyCafe.pyx":716 * self._c_cafe.openMonitorNowAndWait(max(timeout, self._min_timeout)) * * if timeout <= 0: # <<<<<<<<<<<<<< @@ -40825,24 +41273,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o __pyx_t_4 = ((__pyx_v_timeout <= 0.0) != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":719 + /* "PyCafe.pyx":718 * if timeout <= 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":722 + /* "PyCafe.pyx":721 * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" * "timeout reset to:"), self._min_timeout)) # <<<<<<<<<<<<<< * * */ - __pyx_t_7 = PyFloat_FromDouble(__pyx_v_self->_min_timeout); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 722, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble(__pyx_v_self->_min_timeout); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; @@ -40859,7 +41307,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a, __pyx_t_7}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -40868,14 +41316,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[5] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a, __pyx_t_7}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 4+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { - __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(4+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -40892,27 +41340,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_7); __pyx_t_7 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":719 + /* "PyCafe.pyx":718 * if timeout <= 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 719, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 718, __pyx_L1_error) + __PYX_ERR(3, 717, __pyx_L1_error) - /* "PyCafe.pyx":717 + /* "PyCafe.pyx":716 * self._c_cafe.openMonitorNowAndWait(max(timeout, self._min_timeout)) * * if timeout <= 0: # <<<<<<<<<<<<<< @@ -40921,7 +41369,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o */ } - /* "PyCafe.pyx":705 + /* "PyCafe.pyx":704 * * ############################################################################ * def openMonitorNowAndWait(self, double timeout): # <<<<<<<<<<<<<< @@ -40947,7 +41395,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_50openMonitorNowAndWait(struct __pyx_o return __pyx_r; } -/* "PyCafe.pyx":727 +/* "PyCafe.pyx":726 * ############################################################################ * * def ca_pend_event(self, double timeout): # <<<<<<<<<<<<<< @@ -40963,7 +41411,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_53ca_pend_event(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ca_pend_event (wrapper)", 0); assert(__pyx_arg_timeout); { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 727, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 726, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -40992,7 +41440,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("ca_pend_event", 0); - /* "PyCafe.pyx":728 + /* "PyCafe.pyx":727 * * def ca_pend_event(self, double timeout): * cdef _METHOD = "ca_pend_event(timeout)" # <<<<<<<<<<<<<< @@ -41002,7 +41450,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_ca_pend_event_timeout); __pyx_v__METHOD = __pyx_kp_u_ca_pend_event_timeout; - /* "PyCafe.pyx":730 + /* "PyCafe.pyx":729 * cdef _METHOD = "ca_pend_event(timeout)" * * cdef double _timeout = timeout # <<<<<<<<<<<<<< @@ -41011,7 +41459,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa */ __pyx_v__timeout = __pyx_v_timeout; - /* "PyCafe.pyx":731 + /* "PyCafe.pyx":730 * * cdef double _timeout = timeout * if timeout <= 0: # <<<<<<<<<<<<<< @@ -41021,7 +41469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_timeout <= 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":732 + /* "PyCafe.pyx":731 * cdef double _timeout = timeout * if timeout <= 0: * _timeout = DEFAULT_TIMEOUT_PEND_EVENT # <<<<<<<<<<<<<< @@ -41030,7 +41478,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa */ __pyx_v__timeout = DEFAULT_TIMEOUT_PEND_EVENT; - /* "PyCafe.pyx":731 + /* "PyCafe.pyx":730 * * cdef double _timeout = timeout * if timeout <= 0: # <<<<<<<<<<<<<< @@ -41039,7 +41487,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":734 + /* "PyCafe.pyx":733 * _timeout = DEFAULT_TIMEOUT_PEND_EVENT * * self._c_cafe._ca_pend_event(_timeout) # <<<<<<<<<<<<<< @@ -41048,7 +41496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->_c_cafe->_ca_pend_event(__pyx_v__timeout)); - /* "PyCafe.pyx":736 + /* "PyCafe.pyx":735 * self._c_cafe._ca_pend_event(_timeout) * * if timeout < 0: # <<<<<<<<<<<<<< @@ -41058,24 +41506,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_timeout < 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":738 + /* "PyCafe.pyx":737 * if timeout < 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":741 + /* "PyCafe.pyx":740 * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" * "timeout reset to CAFE default:"), _timeout)) # <<<<<<<<<<<<<< * * def ca_pend_io(self, double timeout): */ - __pyx_t_4 = PyFloat_FromDouble(__pyx_v__timeout); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 741, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble(__pyx_v__timeout); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; @@ -41092,7 +41540,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a_2, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -41101,14 +41549,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a_2, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -41125,27 +41573,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4); __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":738 + /* "PyCafe.pyx":737 * if timeout < 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 738, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 737, __pyx_L1_error) + __PYX_ERR(3, 736, __pyx_L1_error) - /* "PyCafe.pyx":736 + /* "PyCafe.pyx":735 * self._c_cafe._ca_pend_event(_timeout) * * if timeout < 0: # <<<<<<<<<<<<<< @@ -41154,7 +41602,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":727 + /* "PyCafe.pyx":726 * ############################################################################ * * def ca_pend_event(self, double timeout): # <<<<<<<<<<<<<< @@ -41180,7 +41628,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_52ca_pend_event(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":743 +/* "PyCafe.pyx":742 * "timeout reset to CAFE default:"), _timeout)) * * def ca_pend_io(self, double timeout): # <<<<<<<<<<<<<< @@ -41196,7 +41644,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_55ca_pend_io(PyObject *__pyx_v_self, P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ca_pend_io (wrapper)", 0); assert(__pyx_arg_timeout); { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 743, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 742, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -41225,7 +41673,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("ca_pend_io", 0); - /* "PyCafe.pyx":744 + /* "PyCafe.pyx":743 * * def ca_pend_io(self, double timeout): * cdef _METHOD = "ca_pend_io(timeout)" # <<<<<<<<<<<<<< @@ -41235,7 +41683,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_kp_u_ca_pend_io_timeout); __pyx_v__METHOD = __pyx_kp_u_ca_pend_io_timeout; - /* "PyCafe.pyx":746 + /* "PyCafe.pyx":745 * cdef _METHOD = "ca_pend_io(timeout)" * * cdef double _timeout = timeout # <<<<<<<<<<<<<< @@ -41244,7 +41692,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ */ __pyx_v__timeout = __pyx_v_timeout; - /* "PyCafe.pyx":747 + /* "PyCafe.pyx":746 * * cdef double _timeout = timeout * if timeout <= 0: # <<<<<<<<<<<<<< @@ -41254,7 +41702,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ __pyx_t_1 = ((__pyx_v_timeout <= 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":748 + /* "PyCafe.pyx":747 * cdef double _timeout = timeout * if timeout <= 0: * _timeout = DEFAULT_TIMEOUT_PEND_IO # <<<<<<<<<<<<<< @@ -41263,7 +41711,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ */ __pyx_v__timeout = DEFAULT_TIMEOUT_PEND_IO; - /* "PyCafe.pyx":747 + /* "PyCafe.pyx":746 * * cdef double _timeout = timeout * if timeout <= 0: # <<<<<<<<<<<<<< @@ -41272,7 +41720,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":750 + /* "PyCafe.pyx":749 * _timeout = DEFAULT_TIMEOUT_PEND_IO * * self._c_cafe._ca_pend_io(timeout) # <<<<<<<<<<<<<< @@ -41281,7 +41729,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ */ (void)(__pyx_v_self->_c_cafe->_ca_pend_io(__pyx_v_timeout)); - /* "PyCafe.pyx":752 + /* "PyCafe.pyx":751 * self._c_cafe._ca_pend_io(timeout) * * if timeout < 0: # <<<<<<<<<<<<<< @@ -41291,24 +41739,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ __pyx_t_1 = ((__pyx_v_timeout < 0.0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":754 + /* "PyCafe.pyx":753 * if timeout < 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__40, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":757 + /* "PyCafe.pyx":756 * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" * "timeout reset to CAFE default:"), _timeout)) # <<<<<<<<<<<<<< * * def ca_poll(self): */ - __pyx_t_4 = PyFloat_FromDouble(__pyx_v__timeout); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 757, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble(__pyx_v__timeout); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; @@ -41325,7 +41773,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a_2, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -41334,14 +41782,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[5] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_input_argument_timeout_must_be_a_2, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -41358,27 +41806,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_t_4); __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":754 + /* "PyCafe.pyx":753 * if timeout < 0: * raise UserWarning \ * ("{} {} \n{} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("input argument, timeout, must be a positive number!\n" */ - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 754, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_UserWarning, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 753, __pyx_L1_error) + __PYX_ERR(3, 752, __pyx_L1_error) - /* "PyCafe.pyx":752 + /* "PyCafe.pyx":751 * self._c_cafe._ca_pend_io(timeout) * * if timeout < 0: # <<<<<<<<<<<<<< @@ -41387,7 +41835,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":743 + /* "PyCafe.pyx":742 * "timeout reset to CAFE default:"), _timeout)) * * def ca_pend_io(self, double timeout): # <<<<<<<<<<<<<< @@ -41413,7 +41861,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_54ca_pend_io(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":759 +/* "PyCafe.pyx":758 * "timeout reset to CAFE default:"), _timeout)) * * def ca_poll(self): # <<<<<<<<<<<<<< @@ -41439,7 +41887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_56ca_poll(struct __pyx_obj_6PyCafe_CyC __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ca_poll", 0); - /* "PyCafe.pyx":760 + /* "PyCafe.pyx":759 * * def ca_poll(self): * with nogil: # <<<<<<<<<<<<<< @@ -41454,7 +41902,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_56ca_poll(struct __pyx_obj_6PyCafe_CyC #endif /*try:*/ { - /* "PyCafe.pyx":761 + /* "PyCafe.pyx":760 * def ca_poll(self): * with nogil: * self._c_cafe._ca_poll() # <<<<<<<<<<<<<< @@ -41464,7 +41912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_56ca_poll(struct __pyx_obj_6PyCafe_CyC (void)(__pyx_v_self->_c_cafe->_ca_poll()); } - /* "PyCafe.pyx":760 + /* "PyCafe.pyx":759 * * def ca_poll(self): * with nogil: # <<<<<<<<<<<<<< @@ -41483,7 +41931,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_56ca_poll(struct __pyx_obj_6PyCafe_CyC } } - /* "PyCafe.pyx":759 + /* "PyCafe.pyx":758 * "timeout reset to CAFE default:"), _timeout)) * * def ca_poll(self): # <<<<<<<<<<<<<< @@ -41498,7 +41946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_56ca_poll(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":764 +/* "PyCafe.pyx":763 * * * def ca_flush_io(self): # <<<<<<<<<<<<<< @@ -41524,7 +41972,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_58ca_flush_io(struct __pyx_obj_6PyCafe __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ca_flush_io", 0); - /* "PyCafe.pyx":765 + /* "PyCafe.pyx":764 * * def ca_flush_io(self): * with nogil: # <<<<<<<<<<<<<< @@ -41539,7 +41987,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_58ca_flush_io(struct __pyx_obj_6PyCafe #endif /*try:*/ { - /* "PyCafe.pyx":766 + /* "PyCafe.pyx":765 * def ca_flush_io(self): * with nogil: * self._c_cafe._ca_flush_io() # <<<<<<<<<<<<<< @@ -41549,7 +41997,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_58ca_flush_io(struct __pyx_obj_6PyCafe (void)(__pyx_v_self->_c_cafe->_ca_flush_io()); } - /* "PyCafe.pyx":765 + /* "PyCafe.pyx":764 * * def ca_flush_io(self): * with nogil: # <<<<<<<<<<<<<< @@ -41568,7 +42016,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_58ca_flush_io(struct __pyx_obj_6PyCafe } } - /* "PyCafe.pyx":764 + /* "PyCafe.pyx":763 * * * def ca_flush_io(self): # <<<<<<<<<<<<<< @@ -41583,7 +42031,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_58ca_flush_io(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":770 +/* "PyCafe.pyx":769 * * ############################################################################ * def setChannelRequestPolicyGet( # <<<<<<<<<<<<<< @@ -41606,7 +42054,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_61setChannelRequestPolicyGet(PyObject static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_handlePV,&__pyx_n_s_when,&__pyx_n_s_wait,&__pyx_n_s_method,&__pyx_n_s_cb,0}; PyObject* values[5] = {0,0,0,0,0}; - /* "PyCafe.pyx":773 + /* "PyCafe.pyx":772 * self, handlePV, ChannelWhenToFlushSendBufferPolicyKind when, * ChannelWaitForResponsePolicyKind wait, * ChannelRequestPolicyKind method, cb: object = None): # <<<<<<<<<<<<<< @@ -41640,19 +42088,19 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_61setChannelRequestPolicyGet(PyObject case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_when)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 1); __PYX_ERR(3, 770, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 1); __PYX_ERR(3, 769, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wait)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 2); __PYX_ERR(3, 770, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 2); __PYX_ERR(3, 769, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_method)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 3); __PYX_ERR(3, 770, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, 3); __PYX_ERR(3, 769, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: @@ -41662,7 +42110,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_61setChannelRequestPolicyGet(PyObject } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setChannelRequestPolicyGet") < 0)) __PYX_ERR(3, 770, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setChannelRequestPolicyGet") < 0)) __PYX_ERR(3, 769, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -41677,14 +42125,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_61setChannelRequestPolicyGet(PyObject } } __pyx_v_handlePV = values[0]; - __pyx_v_when = ((ChannelWhenToFlushSendBufferPolicyKind)__Pyx_PyInt_As_ChannelWhenToFlushSendBufferPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 771, __pyx_L3_error) - __pyx_v_wait = ((ChannelWaitForResponsePolicyKind)__Pyx_PyInt_As_ChannelWaitForResponsePolicyKind(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 772, __pyx_L3_error) - __pyx_v_method = ((ChannelRequestPolicyKind)__Pyx_PyInt_As_ChannelRequestPolicyKind(values[3])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 773, __pyx_L3_error) + __pyx_v_when = ((ChannelWhenToFlushSendBufferPolicyKind)__Pyx_PyInt_As_ChannelWhenToFlushSendBufferPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 770, __pyx_L3_error) + __pyx_v_wait = ((ChannelWaitForResponsePolicyKind)__Pyx_PyInt_As_ChannelWaitForResponsePolicyKind(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 771, __pyx_L3_error) + __pyx_v_method = ((ChannelRequestPolicyKind)__Pyx_PyInt_As_ChannelRequestPolicyKind(values[3])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 772, __pyx_L3_error) __pyx_v_cb = values[4]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 770, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setChannelRequestPolicyGet", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 769, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setChannelRequestPolicyGet", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -41692,7 +42140,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_61setChannelRequestPolicyGet(PyObject __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_when, __pyx_v_wait, __pyx_v_method, __pyx_v_cb); - /* "PyCafe.pyx":770 + /* "PyCafe.pyx":769 * * ############################################################################ * def setChannelRequestPolicyGet( # <<<<<<<<<<<<<< @@ -41722,7 +42170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ unsigned int __pyx_t_9; __Pyx_RefNannySetupContext("setChannelRequestPolicyGet", 0); - /* "PyCafe.pyx":775 + /* "PyCafe.pyx":774 * ChannelRequestPolicyKind method, cb: object = None): * * cdef str _METHOD = "setChannelRequestPolicyGet" # <<<<<<<<<<<<<< @@ -41732,7 +42180,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __Pyx_INCREF(__pyx_n_u_setChannelRequestPolicyGet); __pyx_v__METHOD = __pyx_n_u_setChannelRequestPolicyGet; - /* "PyCafe.pyx":777 + /* "PyCafe.pyx":776 * cdef str _METHOD = "setChannelRequestPolicyGet" * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -41753,7 +42201,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":778 + /* "PyCafe.pyx":777 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< @@ -41763,7 +42211,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __Pyx_INCREF(__pyx_v_handlePV); __pyx_v_handle = __pyx_v_handlePV; - /* "PyCafe.pyx":777 + /* "PyCafe.pyx":776 * cdef str _METHOD = "setChannelRequestPolicyGet" * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -41773,7 +42221,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":779 + /* "PyCafe.pyx":778 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -41784,20 +42232,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":780 + /* "PyCafe.pyx":779 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 780, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 780, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 779, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_handle = __pyx_t_4; __pyx_t_4 = 0; - /* "PyCafe.pyx":779 + /* "PyCafe.pyx":778 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -41807,7 +42255,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":782 + /* "PyCafe.pyx":781 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -41815,10 +42263,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":783 + /* "PyCafe.pyx":782 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -41840,7 +42288,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -41848,13 +42296,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -41868,39 +42316,39 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":782 + /* "PyCafe.pyx":781 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 782, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 782, __pyx_L1_error) + __PYX_ERR(3, 781, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":789 + /* "PyCafe.pyx":788 * * cdef ChannelRequestPolicy crp * self.ph.getChannelRequestPolicyGet(handlePV, crp) # <<<<<<<<<<<<<< * if when: * crp.setWhenToFlushSendBuffer(when) */ - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 789, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 788, __pyx_L1_error) (void)(__pyx_v_self->ph.getChannelRequestPolicyGet(__pyx_t_9, __pyx_v_crp)); - /* "PyCafe.pyx":790 + /* "PyCafe.pyx":789 * cdef ChannelRequestPolicy crp * self.ph.getChannelRequestPolicyGet(handlePV, crp) * if when: # <<<<<<<<<<<<<< @@ -41909,7 +42357,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ if (__pyx_v_when) { - /* "PyCafe.pyx":791 + /* "PyCafe.pyx":790 * self.ph.getChannelRequestPolicyGet(handlePV, crp) * if when: * crp.setWhenToFlushSendBuffer(when) # <<<<<<<<<<<<<< @@ -41918,7 +42366,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ __pyx_v_crp.setWhenToFlushSendBuffer(__pyx_v_when); - /* "PyCafe.pyx":790 + /* "PyCafe.pyx":789 * cdef ChannelRequestPolicy crp * self.ph.getChannelRequestPolicyGet(handlePV, crp) * if when: # <<<<<<<<<<<<<< @@ -41927,7 +42375,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ } - /* "PyCafe.pyx":792 + /* "PyCafe.pyx":791 * if when: * crp.setWhenToFlushSendBuffer(when) * if wait: # <<<<<<<<<<<<<< @@ -41936,7 +42384,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ if (__pyx_v_wait) { - /* "PyCafe.pyx":793 + /* "PyCafe.pyx":792 * crp.setWhenToFlushSendBuffer(when) * if wait: * crp.setWaitKind(wait) # <<<<<<<<<<<<<< @@ -41945,7 +42393,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ __pyx_v_crp.setWaitKind(__pyx_v_wait); - /* "PyCafe.pyx":792 + /* "PyCafe.pyx":791 * if when: * crp.setWhenToFlushSendBuffer(when) * if wait: # <<<<<<<<<<<<<< @@ -41954,7 +42402,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ } - /* "PyCafe.pyx":794 + /* "PyCafe.pyx":793 * if wait: * crp.setWaitKind(wait) * if method: # <<<<<<<<<<<<<< @@ -41963,7 +42411,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ if (__pyx_v_method) { - /* "PyCafe.pyx":795 + /* "PyCafe.pyx":794 * crp.setWaitKind(wait) * if method: * crp.setMethodKind(method) # <<<<<<<<<<<<<< @@ -41972,7 +42420,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ __pyx_v_crp.setMethodKind(__pyx_v_method); - /* "PyCafe.pyx":794 + /* "PyCafe.pyx":793 * if wait: * crp.setWaitKind(wait) * if method: # <<<<<<<<<<<<<< @@ -41981,7 +42429,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ } - /* "PyCafe.pyx":796 + /* "PyCafe.pyx":795 * if method: * crp.setMethodKind(method) * if cb is not None: # <<<<<<<<<<<<<< @@ -41992,7 +42440,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":797 + /* "PyCafe.pyx":796 * crp.setMethodKind(method) * if cb is not None: * crp.setPyHandlerGet( cb) # forces when=WITH_CALLBACK_USER_SUPPLIED # <<<<<<<<<<<<<< @@ -42001,7 +42449,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ __pyx_v_crp.setPyHandlerGet(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":796 + /* "PyCafe.pyx":795 * if method: * crp.setMethodKind(method) * if cb is not None: # <<<<<<<<<<<<<< @@ -42010,17 +42458,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ */ } - /* "PyCafe.pyx":799 + /* "PyCafe.pyx":798 * crp.setPyHandlerGet( cb) # forces when=WITH_CALLBACK_USER_SUPPLIED * * self.ph.setChannelRequestPolicyGet(handlePV, crp) # <<<<<<<<<<<<<< * return * ################################################################################ */ - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 799, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 798, __pyx_L1_error) (void)(__pyx_v_self->ph.setChannelRequestPolicyGet(__pyx_t_9, __pyx_v_crp)); - /* "PyCafe.pyx":800 + /* "PyCafe.pyx":799 * * self.ph.setChannelRequestPolicyGet(handlePV, crp) * return # <<<<<<<<<<<<<< @@ -42031,7 +42479,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":770 + /* "PyCafe.pyx":769 * * ############################################################################ * def setChannelRequestPolicyGet( # <<<<<<<<<<<<<< @@ -42057,7 +42505,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_60setChannelRequestPolicyGet(struct __ return __pyx_r; } -/* "PyCafe.pyx":806 +/* "PyCafe.pyx":805 * * * def initCallbackComplete(self, handlePV): # <<<<<<<<<<<<<< @@ -42099,7 +42547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob int __pyx_t_12; __Pyx_RefNannySetupContext("initCallbackComplete", 0); - /* "PyCafe.pyx":807 + /* "PyCafe.pyx":806 * * def initCallbackComplete(self, handlePV): * cdef str _METHOD = "initCallbackComplete" # <<<<<<<<<<<<<< @@ -42109,7 +42557,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __Pyx_INCREF(__pyx_n_u_initCallbackComplete); __pyx_v__METHOD = __pyx_n_u_initCallbackComplete; - /* "PyCafe.pyx":810 + /* "PyCafe.pyx":809 * cdef vector[unsigned int] hList * * if isinstance(handlePV, (list)): # <<<<<<<<<<<<<< @@ -42120,26 +42568,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":811 + /* "PyCafe.pyx":810 * * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): # <<<<<<<<<<<<<< * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_handlePV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 811, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_handlePV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 810, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":812 + /* "PyCafe.pyx":811 * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): # <<<<<<<<<<<<<< * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 812, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyInt_Check(__pyx_t_6); __pyx_t_7 = (__pyx_t_1 != 0); @@ -42156,25 +42604,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":813 + /* "PyCafe.pyx":812 * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) # <<<<<<<<<<<<<< * elif isinstance(handlePV[i], (str)): * hList.push_back(self.getHandleFromPV(handlePV[i])) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 813, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 813, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 813, __pyx_L1_error) + __PYX_ERR(3, 812, __pyx_L1_error) } - /* "PyCafe.pyx":812 + /* "PyCafe.pyx":811 * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): # <<<<<<<<<<<<<< @@ -42184,30 +42632,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob goto __pyx_L6; } - /* "PyCafe.pyx":814 + /* "PyCafe.pyx":813 * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): # <<<<<<<<<<<<<< * hList.push_back(self.getHandleFromPV(handlePV[i])) * else: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 814, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":815 + /* "PyCafe.pyx":814 * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): * hList.push_back(self.getHandleFromPV(handlePV[i])) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPV); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 815, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandleFromPV); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 815, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { @@ -42222,19 +42670,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __pyx_t_6 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_11, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 815, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 815, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 814, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 815, __pyx_L1_error) + __PYX_ERR(3, 814, __pyx_L1_error) } - /* "PyCafe.pyx":814 + /* "PyCafe.pyx":813 * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): # <<<<<<<<<<<<<< @@ -42244,7 +42692,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob goto __pyx_L6; } - /* "PyCafe.pyx":817 + /* "PyCafe.pyx":816 * hList.push_back(self.getHandleFromPV(handlePV[i])) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -42252,10 +42700,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob * ("List input arguments, should be of type if handle" + */ /*else*/ { - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":818 + /* "PyCafe.pyx":817 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -42277,7 +42725,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o_2}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -42285,13 +42733,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o_2}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -42305,30 +42753,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __Pyx_INCREF(__pyx_kp_u_List_input_arguments_should_be_o_2); __Pyx_GIVEREF(__pyx_kp_u_List_input_arguments_should_be_o_2); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_12, __pyx_kp_u_List_input_arguments_should_be_o_2); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":817 + /* "PyCafe.pyx":816 * hList.push_back(self.getHandleFromPV(handlePV[i])) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("List input arguments, should be of type if handle" + */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 817, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 817, __pyx_L1_error) + __PYX_ERR(3, 816, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":821 + /* "PyCafe.pyx":820 * ("List input arguments, should be of type if handle" + * "else if pvname"))) * return self._c_cafe.initCallbackCompleteV(hList) # <<<<<<<<<<<<<< @@ -42336,13 +42784,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob * elif isinstance(handlePV, (int, long)): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->initCallbackCompleteV(__pyx_v_hList)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 821, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->initCallbackCompleteV(__pyx_v_hList)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":810 + /* "PyCafe.pyx":809 * cdef vector[unsigned int] hList * * if isinstance(handlePV, (list)): # <<<<<<<<<<<<<< @@ -42352,7 +42800,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":823 + /* "PyCafe.pyx":822 * return self._c_cafe.initCallbackCompleteV(hList) * * elif isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -42373,7 +42821,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":824 + /* "PyCafe.pyx":823 * * elif isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< @@ -42383,7 +42831,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __Pyx_INCREF(__pyx_v_handlePV); __pyx_v_handle = __pyx_v_handlePV; - /* "PyCafe.pyx":823 + /* "PyCafe.pyx":822 * return self._c_cafe.initCallbackCompleteV(hList) * * elif isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -42393,7 +42841,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":825 + /* "PyCafe.pyx":824 * elif isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -42404,20 +42852,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":826 + /* "PyCafe.pyx":825 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 826, __pyx_L1_error) - __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 826, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 825, __pyx_L1_error) + __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_v_handle = __pyx_t_9; __pyx_t_9 = 0; - /* "PyCafe.pyx":825 + /* "PyCafe.pyx":824 * elif isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -42427,7 +42875,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":828 + /* "PyCafe.pyx":827 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -42435,10 +42883,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob * ("Input argument should be of type if handle," + */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":829 + /* "PyCafe.pyx":828 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -42460,7 +42908,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_should_be_of_type_2}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_9); } else @@ -42468,13 +42916,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_11, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_should_be_of_type_2}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 3+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_GOTREF(__pyx_t_9); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_11) { __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11); __pyx_t_11 = NULL; @@ -42488,29 +42936,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob __Pyx_INCREF(__pyx_kp_u_Input_argument_should_be_of_type_2); __Pyx_GIVEREF(__pyx_kp_u_Input_argument_should_be_of_type_2); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_12, __pyx_kp_u_Input_argument_should_be_of_type_2); - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":828 + /* "PyCafe.pyx":827 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("Input argument should be of type if handle," + */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 828, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 828, __pyx_L1_error) + __PYX_ERR(3, 827, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":834 + /* "PyCafe.pyx":833 * * #print("cb complete", self._c_cafe.initCallbackCompleteHandle(handle)) * return self._c_cafe.initCallbackCompleteHandle(handle) # <<<<<<<<<<<<<< @@ -42518,14 +42966,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handle); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 834, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->initCallbackCompleteHandle(__pyx_t_8)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 834, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handle); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 833, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->initCallbackCompleteHandle(__pyx_t_8)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":806 + /* "PyCafe.pyx":805 * * * def initCallbackComplete(self, handlePV): # <<<<<<<<<<<<<< @@ -42551,7 +42999,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_62initCallbackComplete(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":838 +/* "PyCafe.pyx":837 * * ############################################################################ * def setCallbackGet(self, handlePV, object cb = None): # <<<<<<<<<<<<<< @@ -42595,7 +43043,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_65setCallbackGet(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCallbackGet") < 0)) __PYX_ERR(3, 838, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCallbackGet") < 0)) __PYX_ERR(3, 837, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -42611,7 +43059,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_65setCallbackGet(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setCallbackGet", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 838, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setCallbackGet", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 837, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setCallbackGet", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -42641,7 +43089,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setCallbackGet", 0); - /* "PyCafe.pyx":840 + /* "PyCafe.pyx":839 * def setCallbackGet(self, handlePV, object cb = None): * * cdef str _METHOD = "setCallbackGet" # <<<<<<<<<<<<<< @@ -42651,17 +43099,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_setCallbackGet); __pyx_v__METHOD = __pyx_n_u_setCallbackGet; - /* "PyCafe.pyx":843 + /* "PyCafe.pyx":842 * * cdef ChannelRequestPolicy crp * self.ph.getChannelRequestPolicyGet(handlePV, crp) # <<<<<<<<<<<<<< * * if isinstance(handlePV, (int, long)): */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 843, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 842, __pyx_L1_error) (void)(__pyx_v_self->ph.getChannelRequestPolicyGet(__pyx_t_1, __pyx_v_crp)); - /* "PyCafe.pyx":845 + /* "PyCafe.pyx":844 * self.ph.getChannelRequestPolicyGet(handlePV, crp) * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -42682,7 +43130,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":846 + /* "PyCafe.pyx":845 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< @@ -42692,7 +43140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_handlePV); __pyx_v_handle = __pyx_v_handlePV; - /* "PyCafe.pyx":845 + /* "PyCafe.pyx":844 * self.ph.getChannelRequestPolicyGet(handlePV, crp) * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -42702,7 +43150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":847 + /* "PyCafe.pyx":846 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -42713,20 +43161,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":848 + /* "PyCafe.pyx":847 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 848, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 848, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 847, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_handle = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":847 + /* "PyCafe.pyx":846 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -42736,7 +43184,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":850 + /* "PyCafe.pyx":849 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -42744,10 +43192,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC * "First input argument should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":851 + /* "PyCafe.pyx":850 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -42769,7 +43217,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_2}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -42777,13 +43225,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_2}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -42797,29 +43245,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_2); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_2); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_2); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":850 + /* "PyCafe.pyx":849 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 850, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 850, __pyx_L1_error) + __PYX_ERR(3, 849, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":855 + /* "PyCafe.pyx":854 * else if PV")) * * if cb is not None: # <<<<<<<<<<<<<< @@ -42830,7 +43278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":856 + /* "PyCafe.pyx":855 * * if cb is not None: * crp.setPyHandlerGet(cb) # forces when=WITH_CALLBACK_USER_SUPPLIED # <<<<<<<<<<<<<< @@ -42839,7 +43287,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC */ __pyx_v_crp.setPyHandlerGet(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":855 + /* "PyCafe.pyx":854 * else if PV")) * * if cb is not None: # <<<<<<<<<<<<<< @@ -42849,7 +43297,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC goto __pyx_L6; } - /* "PyCafe.pyx":858 + /* "PyCafe.pyx":857 * crp.setPyHandlerGet(cb) # forces when=WITH_CALLBACK_USER_SUPPLIED * else: * crp.setMethodKind(WITH_CALLBACK_DEFAULT) # <<<<<<<<<<<<<< @@ -42861,17 +43309,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC } __pyx_L6:; - /* "PyCafe.pyx":860 + /* "PyCafe.pyx":859 * crp.setMethodKind(WITH_CALLBACK_DEFAULT) * * self.ph.setChannelRequestPolicyGet(handlePV, crp) # <<<<<<<<<<<<<< * return * ############################################################################ */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 860, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 859, __pyx_L1_error) (void)(__pyx_v_self->ph.setChannelRequestPolicyGet(__pyx_t_1, __pyx_v_crp)); - /* "PyCafe.pyx":861 + /* "PyCafe.pyx":860 * * self.ph.setChannelRequestPolicyGet(handlePV, crp) * return # <<<<<<<<<<<<<< @@ -42882,7 +43330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":838 + /* "PyCafe.pyx":837 * * ############################################################################ * def setCallbackGet(self, handlePV, object cb = None): # <<<<<<<<<<<<<< @@ -42908,7 +43356,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_64setCallbackGet(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":865 +/* "PyCafe.pyx":864 * * ############################################################################ * def setCallbackPut(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -42952,7 +43400,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_67setCallbackPut(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCallbackPut") < 0)) __PYX_ERR(3, 865, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCallbackPut") < 0)) __PYX_ERR(3, 864, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -42968,7 +43416,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_67setCallbackPut(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setCallbackPut", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 865, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setCallbackPut", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 864, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setCallbackPut", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -42998,7 +43446,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setCallbackPut", 0); - /* "PyCafe.pyx":867 + /* "PyCafe.pyx":866 * def setCallbackPut(self, handlePV, object cb=None): * * cdef str _METHOD = "setCallbackPut" # <<<<<<<<<<<<<< @@ -43008,17 +43456,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_setCallbackPut); __pyx_v__METHOD = __pyx_n_u_setCallbackPut; - /* "PyCafe.pyx":870 + /* "PyCafe.pyx":869 * * cdef ChannelRequestPolicy crp * self.ph.getChannelRequestPolicyPut(handlePV, crp) # <<<<<<<<<<<<<< * * if isinstance(handlePV, (int, long)): */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 870, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 869, __pyx_L1_error) (void)(__pyx_v_self->ph.getChannelRequestPolicyPut(__pyx_t_1, __pyx_v_crp)); - /* "PyCafe.pyx":872 + /* "PyCafe.pyx":871 * self.ph.getChannelRequestPolicyPut(handlePV, crp) * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -43039,7 +43487,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":873 + /* "PyCafe.pyx":872 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< @@ -43049,7 +43497,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_handlePV); __pyx_v_handle = __pyx_v_handlePV; - /* "PyCafe.pyx":872 + /* "PyCafe.pyx":871 * self.ph.getChannelRequestPolicyPut(handlePV, crp) * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -43059,7 +43507,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":874 + /* "PyCafe.pyx":873 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -43070,20 +43518,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":875 + /* "PyCafe.pyx":874 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 875, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 875, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 874, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_handle = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":874 + /* "PyCafe.pyx":873 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -43093,7 +43541,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":877 + /* "PyCafe.pyx":876 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -43101,10 +43549,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":878 + /* "PyCafe.pyx":877 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -43126,7 +43574,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -43134,13 +43582,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -43154,29 +43602,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":877 + /* "PyCafe.pyx":876 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 877, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 877, __pyx_L1_error) + __PYX_ERR(3, 876, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":882 + /* "PyCafe.pyx":881 * else if PV")) * * if cb is not None: # <<<<<<<<<<<<<< @@ -43187,7 +43635,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":883 + /* "PyCafe.pyx":882 * * if cb is not None: * crp.setPyHandlerPut(cb) # forces when=WITH_CALLBACK_USER_SUPPLIED # <<<<<<<<<<<<<< @@ -43196,7 +43644,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC */ __pyx_v_crp.setPyHandlerPut(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":882 + /* "PyCafe.pyx":881 * else if PV")) * * if cb is not None: # <<<<<<<<<<<<<< @@ -43206,7 +43654,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC goto __pyx_L6; } - /* "PyCafe.pyx":885 + /* "PyCafe.pyx":884 * crp.setPyHandlerPut(cb) # forces when=WITH_CALLBACK_USER_SUPPLIED * else: * crp.setMethodKind(WITH_CALLBACK_DEFAULT) # <<<<<<<<<<<<<< @@ -43218,17 +43666,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC } __pyx_L6:; - /* "PyCafe.pyx":887 + /* "PyCafe.pyx":886 * crp.setMethodKind(WITH_CALLBACK_DEFAULT) * * self.ph.setChannelRequestPolicyPut(handlePV, crp) # <<<<<<<<<<<<<< * return * ############################################################################ */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 887, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 886, __pyx_L1_error) (void)(__pyx_v_self->ph.setChannelRequestPolicyPut(__pyx_t_1, __pyx_v_crp)); - /* "PyCafe.pyx":888 + /* "PyCafe.pyx":887 * * self.ph.setChannelRequestPolicyPut(handlePV, crp) * return # <<<<<<<<<<<<<< @@ -43239,7 +43687,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":865 + /* "PyCafe.pyx":864 * * ############################################################################ * def setCallbackPut(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -43265,7 +43713,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_66setCallbackPut(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":892 +/* "PyCafe.pyx":891 * * ############################################################################ * def setTimeout(self, timeout): # <<<<<<<<<<<<<< @@ -43293,7 +43741,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_68setTimeout(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("setTimeout", 0); - /* "PyCafe.pyx":893 + /* "PyCafe.pyx":892 * ############################################################################ * def setTimeout(self, timeout): * return self.ph.setTimeout(timeout) # <<<<<<<<<<<<<< @@ -43301,14 +43749,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_68setTimeout(struct __pyx_obj_6PyCafe_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_timeout); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 893, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setTimeout(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 893, __pyx_L1_error) + __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_timeout); if (unlikely((__pyx_t_1 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 892, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setTimeout(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":892 + /* "PyCafe.pyx":891 * * ############################################################################ * def setTimeout(self, timeout): # <<<<<<<<<<<<<< @@ -43329,7 +43777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_68setTimeout(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":897 +/* "PyCafe.pyx":896 * * ############################################################################ * def getTimeoutGet(self): # <<<<<<<<<<<<<< @@ -43360,7 +43808,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getTimeoutGet", 0); - /* "PyCafe.pyx":899 + /* "PyCafe.pyx":898 * def getTimeoutGet(self): * cdef double minValue, p, g * minValue = 0 # <<<<<<<<<<<<<< @@ -43369,7 +43817,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ __pyx_v_minValue = 0.0; - /* "PyCafe.pyx":900 + /* "PyCafe.pyx":899 * cdef double minValue, p, g * minValue = 0 * p = 0 # <<<<<<<<<<<<<< @@ -43378,7 +43826,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ __pyx_v_p = 0.0; - /* "PyCafe.pyx":901 + /* "PyCafe.pyx":900 * minValue = 0 * p = 0 * g = 0 # <<<<<<<<<<<<<< @@ -43387,7 +43835,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ __pyx_v_g = 0.0; - /* "PyCafe.pyx":902 + /* "PyCafe.pyx":901 * p = 0 * g = 0 * self.ph.getTimeoutMin(p, g) # <<<<<<<<<<<<<< @@ -43396,7 +43844,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->ph.getTimeoutMin(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":903 + /* "PyCafe.pyx":902 * g = 0 * self.ph.getTimeoutMin(p, g) * minValue = g # <<<<<<<<<<<<<< @@ -43405,7 +43853,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ __pyx_v_minValue = __pyx_v_g; - /* "PyCafe.pyx":904 + /* "PyCafe.pyx":903 * self.ph.getTimeoutMin(p, g) * minValue = g * self.ph.getTimeoutMax(p, g) # <<<<<<<<<<<<<< @@ -43414,7 +43862,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->ph.getTimeoutMax(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":905 + /* "PyCafe.pyx":904 * minValue = g * self.ph.getTimeoutMax(p, g) * if (g < minValue): # <<<<<<<<<<<<<< @@ -43424,7 +43872,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_g < __pyx_v_minValue) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":906 + /* "PyCafe.pyx":905 * self.ph.getTimeoutMax(p, g) * if (g < minValue): * minValue = g # <<<<<<<<<<<<<< @@ -43433,7 +43881,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ __pyx_v_minValue = __pyx_v_g; - /* "PyCafe.pyx":905 + /* "PyCafe.pyx":904 * minValue = g * self.ph.getTimeoutMax(p, g) * if (g < minValue): # <<<<<<<<<<<<<< @@ -43442,7 +43890,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":907 + /* "PyCafe.pyx":906 * if (g < minValue): * minValue = g * return minValue # <<<<<<<<<<<<<< @@ -43450,13 +43898,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 907, __pyx_L1_error) + __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":897 + /* "PyCafe.pyx":896 * * ############################################################################ * def getTimeoutGet(self): # <<<<<<<<<<<<<< @@ -43477,7 +43925,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_70getTimeoutGet(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":912 +/* "PyCafe.pyx":911 * ############################################################################ * * def getTimeoutPut(self): # <<<<<<<<<<<<<< @@ -43508,7 +43956,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getTimeoutPut", 0); - /* "PyCafe.pyx":914 + /* "PyCafe.pyx":913 * def getTimeoutPut(self): * cdef double minValue, p, g * minValue = 0 # <<<<<<<<<<<<<< @@ -43517,7 +43965,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ __pyx_v_minValue = 0.0; - /* "PyCafe.pyx":915 + /* "PyCafe.pyx":914 * cdef double minValue, p, g * minValue = 0 * p = 0 # <<<<<<<<<<<<<< @@ -43526,7 +43974,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ __pyx_v_p = 0.0; - /* "PyCafe.pyx":916 + /* "PyCafe.pyx":915 * minValue = 0 * p = 0 * g = 0 # <<<<<<<<<<<<<< @@ -43535,7 +43983,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ __pyx_v_g = 0.0; - /* "PyCafe.pyx":917 + /* "PyCafe.pyx":916 * p = 0 * g = 0 * self.ph.getTimeoutMin(p, g) # <<<<<<<<<<<<<< @@ -43544,7 +43992,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->ph.getTimeoutMin(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":918 + /* "PyCafe.pyx":917 * g = 0 * self.ph.getTimeoutMin(p, g) * minValue = p # <<<<<<<<<<<<<< @@ -43553,7 +44001,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ __pyx_v_minValue = __pyx_v_p; - /* "PyCafe.pyx":919 + /* "PyCafe.pyx":918 * self.ph.getTimeoutMin(p, g) * minValue = p * self.ph.getTimeoutMax(p, g) # <<<<<<<<<<<<<< @@ -43562,7 +44010,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->ph.getTimeoutMax(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":920 + /* "PyCafe.pyx":919 * minValue = p * self.ph.getTimeoutMax(p, g) * if (p < minValue): # <<<<<<<<<<<<<< @@ -43572,7 +44020,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_p < __pyx_v_minValue) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":921 + /* "PyCafe.pyx":920 * self.ph.getTimeoutMax(p, g) * if (p < minValue): * minValue = g # <<<<<<<<<<<<<< @@ -43581,7 +44029,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ __pyx_v_minValue = __pyx_v_g; - /* "PyCafe.pyx":920 + /* "PyCafe.pyx":919 * minValue = p * self.ph.getTimeoutMax(p, g) * if (p < minValue): # <<<<<<<<<<<<<< @@ -43590,7 +44038,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":922 + /* "PyCafe.pyx":921 * if (p < minValue): * minValue = g * return minValue # <<<<<<<<<<<<<< @@ -43598,13 +44046,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 922, __pyx_L1_error) + __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":912 + /* "PyCafe.pyx":911 * ############################################################################ * * def getTimeoutPut(self): # <<<<<<<<<<<<<< @@ -43625,7 +44073,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_72getTimeoutPut(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":927 +/* "PyCafe.pyx":926 * ############################################################################ * * def setSelfGoverningTimeout(self, bint b): # <<<<<<<<<<<<<< @@ -43641,7 +44089,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_75setSelfGoverningTimeout(PyObject *__ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setSelfGoverningTimeout (wrapper)", 0); assert(__pyx_arg_b); { - __pyx_v_b = __Pyx_PyObject_IsTrue(__pyx_arg_b); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 927, __pyx_L3_error) + __pyx_v_b = __Pyx_PyObject_IsTrue(__pyx_arg_b); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 926, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -43662,7 +44110,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_74setSelfGoverningTimeout(struct __pyx PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("setSelfGoverningTimeout", 0); - /* "PyCafe.pyx":928 + /* "PyCafe.pyx":927 * * def setSelfGoverningTimeout(self, bint b): * return self.ph.setSelfGoverningTimeout(b) # <<<<<<<<<<<<<< @@ -43670,13 +44118,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_74setSelfGoverningTimeout(struct __pyx * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setSelfGoverningTimeout(__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 928, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setSelfGoverningTimeout(__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":927 + /* "PyCafe.pyx":926 * ############################################################################ * * def setSelfGoverningTimeout(self, bint b): # <<<<<<<<<<<<<< @@ -43697,7 +44145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_74setSelfGoverningTimeout(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":934 +/* "PyCafe.pyx":933 * # Synchronous Groups * ############################################################################ * def setSGTimeout(self, double timeout): # <<<<<<<<<<<<<< @@ -43713,7 +44161,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_77setSGTimeout(PyObject *__pyx_v_self, __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setSGTimeout (wrapper)", 0); assert(__pyx_arg_timeout); { - __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 934, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(__pyx_arg_timeout); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 933, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -43734,7 +44182,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_76setSGTimeout(struct __pyx_obj_6PyCaf PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("setSGTimeout", 0); - /* "PyCafe.pyx":935 + /* "PyCafe.pyx":934 * ############################################################################ * def setSGTimeout(self, double timeout): * return self.ph.setSGTimeout(timeout) # <<<<<<<<<<<<<< @@ -43742,13 +44190,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_76setSGTimeout(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setSGTimeout(__pyx_v_timeout)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 935, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setSGTimeout(__pyx_v_timeout)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":934 + /* "PyCafe.pyx":933 * # Synchronous Groups * ############################################################################ * def setSGTimeout(self, double timeout): # <<<<<<<<<<<<<< @@ -43769,7 +44217,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_76setSGTimeout(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":939 +/* "PyCafe.pyx":938 * * ############################################################################ * def getSGTimeoutGet(self): # <<<<<<<<<<<<<< @@ -43800,7 +44248,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getSGTimeoutGet", 0); - /* "PyCafe.pyx":941 + /* "PyCafe.pyx":940 * def getSGTimeoutGet(self): * cdef double minValue, p, g * minValue = 0 # <<<<<<<<<<<<<< @@ -43809,7 +44257,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ __pyx_v_minValue = 0.0; - /* "PyCafe.pyx":942 + /* "PyCafe.pyx":941 * cdef double minValue, p, g * minValue = 0 * p = 0 # <<<<<<<<<<<<<< @@ -43818,7 +44266,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ __pyx_v_p = 0.0; - /* "PyCafe.pyx":943 + /* "PyCafe.pyx":942 * minValue = 0 * p = 0 * g = 0 # <<<<<<<<<<<<<< @@ -43827,7 +44275,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ __pyx_v_g = 0.0; - /* "PyCafe.pyx":944 + /* "PyCafe.pyx":943 * p = 0 * g = 0 * self.ph.getSGTimeoutMin(p, g) # <<<<<<<<<<<<<< @@ -43836,7 +44284,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ (void)(__pyx_v_self->ph.getSGTimeoutMin(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":945 + /* "PyCafe.pyx":944 * g = 0 * self.ph.getSGTimeoutMin(p, g) * minValue = g # <<<<<<<<<<<<<< @@ -43845,7 +44293,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ __pyx_v_minValue = __pyx_v_g; - /* "PyCafe.pyx":946 + /* "PyCafe.pyx":945 * self.ph.getSGTimeoutMin(p, g) * minValue = g * self.ph.getSGTimeoutMax(p, g) # <<<<<<<<<<<<<< @@ -43854,7 +44302,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ (void)(__pyx_v_self->ph.getSGTimeoutMax(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":947 + /* "PyCafe.pyx":946 * minValue = g * self.ph.getSGTimeoutMax(p, g) * if (g < minValue): # <<<<<<<<<<<<<< @@ -43864,7 +44312,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py __pyx_t_1 = ((__pyx_v_g < __pyx_v_minValue) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":948 + /* "PyCafe.pyx":947 * self.ph.getSGTimeoutMax(p, g) * if (g < minValue): * minValue = g # <<<<<<<<<<<<<< @@ -43873,7 +44321,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ __pyx_v_minValue = __pyx_v_g; - /* "PyCafe.pyx":947 + /* "PyCafe.pyx":946 * minValue = g * self.ph.getSGTimeoutMax(p, g) * if (g < minValue): # <<<<<<<<<<<<<< @@ -43882,7 +44330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":950 + /* "PyCafe.pyx":949 * minValue = g * * return minValue # <<<<<<<<<<<<<< @@ -43890,13 +44338,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 950, __pyx_L1_error) + __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":939 + /* "PyCafe.pyx":938 * * ############################################################################ * def getSGTimeoutGet(self): # <<<<<<<<<<<<<< @@ -43917,7 +44365,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_78getSGTimeoutGet(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":954 +/* "PyCafe.pyx":953 * * ############################################################################ * def getSGTimeoutPut(self): # <<<<<<<<<<<<<< @@ -43948,7 +44396,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getSGTimeoutPut", 0); - /* "PyCafe.pyx":956 + /* "PyCafe.pyx":955 * def getSGTimeoutPut(self): * cdef double minValue, p, g * minValue = 0 # <<<<<<<<<<<<<< @@ -43957,7 +44405,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ __pyx_v_minValue = 0.0; - /* "PyCafe.pyx":957 + /* "PyCafe.pyx":956 * cdef double minValue, p, g * minValue = 0 * p = 0 # <<<<<<<<<<<<<< @@ -43966,7 +44414,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ __pyx_v_p = 0.0; - /* "PyCafe.pyx":958 + /* "PyCafe.pyx":957 * minValue = 0 * p = 0 * g = 0 # <<<<<<<<<<<<<< @@ -43975,7 +44423,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ __pyx_v_g = 0.0; - /* "PyCafe.pyx":959 + /* "PyCafe.pyx":958 * p = 0 * g = 0 * self.ph.getSGTimeoutMin(p, g) # <<<<<<<<<<<<<< @@ -43984,7 +44432,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ (void)(__pyx_v_self->ph.getSGTimeoutMin(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":960 + /* "PyCafe.pyx":959 * g = 0 * self.ph.getSGTimeoutMin(p, g) * minValue = p # <<<<<<<<<<<<<< @@ -43993,7 +44441,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ __pyx_v_minValue = __pyx_v_p; - /* "PyCafe.pyx":961 + /* "PyCafe.pyx":960 * self.ph.getSGTimeoutMin(p, g) * minValue = p * self.ph.getSGTimeoutMax(p, g) # <<<<<<<<<<<<<< @@ -44002,7 +44450,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ (void)(__pyx_v_self->ph.getSGTimeoutMax(__pyx_v_p, __pyx_v_g)); - /* "PyCafe.pyx":962 + /* "PyCafe.pyx":961 * minValue = p * self.ph.getSGTimeoutMax(p, g) * if (p < minValue): # <<<<<<<<<<<<<< @@ -44012,7 +44460,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py __pyx_t_1 = ((__pyx_v_p < __pyx_v_minValue) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":963 + /* "PyCafe.pyx":962 * self.ph.getSGTimeoutMax(p, g) * if (p < minValue): * minValue = p # <<<<<<<<<<<<<< @@ -44021,7 +44469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ __pyx_v_minValue = __pyx_v_p; - /* "PyCafe.pyx":962 + /* "PyCafe.pyx":961 * minValue = p * self.ph.getSGTimeoutMax(p, g) * if (p < minValue): # <<<<<<<<<<<<<< @@ -44030,7 +44478,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":965 + /* "PyCafe.pyx":964 * minValue = p * * return minValue # <<<<<<<<<<<<<< @@ -44038,13 +44486,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 965, __pyx_L1_error) + __pyx_t_2 = PyFloat_FromDouble(__pyx_v_minValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":954 + /* "PyCafe.pyx":953 * * ############################################################################ * def getSGTimeoutPut(self): # <<<<<<<<<<<<<< @@ -44065,7 +44513,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_80getSGTimeoutPut(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":969 +/* "PyCafe.pyx":968 * * ############################################################################ * def setSGSelfGoverningTimeout(self, bint b): # <<<<<<<<<<<<<< @@ -44081,7 +44529,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_83setSGSelfGoverningTimeout(PyObject * __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setSGSelfGoverningTimeout (wrapper)", 0); assert(__pyx_arg_b); { - __pyx_v_b = __Pyx_PyObject_IsTrue(__pyx_arg_b); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 969, __pyx_L3_error) + __pyx_v_b = __Pyx_PyObject_IsTrue(__pyx_arg_b); if (unlikely((__pyx_v_b == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 968, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -44103,7 +44551,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_82setSGSelfGoverningTimeout(CYTHON_UNU PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("setSGSelfGoverningTimeout", 0); - /* "PyCafe.pyx":971 + /* "PyCafe.pyx":970 * def setSGSelfGoverningTimeout(self, bint b): * cdef PolicyHelper ph * return ph.setSGSelfGoverningTimeout(b) # <<<<<<<<<<<<<< @@ -44111,13 +44559,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_82setSGSelfGoverningTimeout(CYTHON_UNU * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_ph.setSGSelfGoverningTimeout(__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 971, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_ph.setSGSelfGoverningTimeout(__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":969 + /* "PyCafe.pyx":968 * * ############################################################################ * def setSGSelfGoverningTimeout(self, bint b): # <<<<<<<<<<<<<< @@ -44138,7 +44586,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_82setSGSelfGoverningTimeout(CYTHON_UNU return __pyx_r; } -/* "PyCafe.pyx":976 +/* "PyCafe.pyx":975 * ############################################################################ * * def getContext(self, handlePV): # <<<<<<<<<<<<<< @@ -44174,7 +44622,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("getContext", 0); - /* "PyCafe.pyx":977 + /* "PyCafe.pyx":976 * * def getContext(self, handlePV): * cdef str _METHOD = "getContext" # <<<<<<<<<<<<<< @@ -44184,7 +44632,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_n_u_getContext); __pyx_v__METHOD = __pyx_n_u_getContext; - /* "PyCafe.pyx":979 + /* "PyCafe.pyx":978 * cdef str _METHOD = "getContext" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -44193,7 +44641,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ */ __pyx_v_handle = 0; - /* "PyCafe.pyx":980 + /* "PyCafe.pyx":979 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -44214,7 +44662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":981 + /* "PyCafe.pyx":980 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * return < long > self.hh.getContextFromHandle(handlePV) # <<<<<<<<<<<<<< @@ -44222,14 +44670,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ * return < long > self.hh.getContextFromPV(handlePV) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 981, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getContextFromHandle(__pyx_t_4))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 981, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 980, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getContextFromHandle(__pyx_t_4))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":980 + /* "PyCafe.pyx":979 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -44239,7 +44687,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ goto __pyx_L3; } - /* "PyCafe.pyx":982 + /* "PyCafe.pyx":981 * if isinstance(handlePV, (int, long)): * return < long > self.hh.getContextFromHandle(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -44250,7 +44698,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":983 + /* "PyCafe.pyx":982 * return < long > self.hh.getContextFromHandle(handlePV) * elif isinstance(handlePV, (str)): * return < long > self.hh.getContextFromPV(handlePV) # <<<<<<<<<<<<<< @@ -44258,14 +44706,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ * _cafeException = CafeException( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_handlePV); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(3, 983, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getContextFromPV(__pyx_t_6))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 983, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_handlePV); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(3, 982, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getContextFromPV(__pyx_t_6))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":982 + /* "PyCafe.pyx":981 * if isinstance(handlePV, (int, long)): * return < long > self.hh.getContextFromHandle(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -44275,7 +44723,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ goto __pyx_L3; } - /* "PyCafe.pyx":985 + /* "PyCafe.pyx":984 * return < long > self.hh.getContextFromPV(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -44284,33 +44732,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ */ /*else*/ { - /* "PyCafe.pyx":986 + /* "PyCafe.pyx":985 * else: * _cafeException = CafeException( * _type='TypeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info=( * "First input argument should be of type if handle, " */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 986, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_TypeError) < 0) __PYX_ERR(3, 986, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 986, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_4) < 0) __PYX_ERR(3, 986, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_TypeError) < 0) __PYX_ERR(3, 985, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 985, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_4) < 0) __PYX_ERR(3, 985, __pyx_L1_error) - /* "PyCafe.pyx":985 + /* "PyCafe.pyx":984 * return < long > self.hh.getContextFromPV(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='TypeError', _source=_METHOD, * _error_info=( */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 985, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":990 + /* "PyCafe.pyx":989 * "First input argument should be of type if handle, " * "else if PV")) * raise _cafeException # <<<<<<<<<<<<<< @@ -44318,11 +44766,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 990, __pyx_L1_error) + __PYX_ERR(3, 989, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":976 + /* "PyCafe.pyx":975 * ############################################################################ * * def getContext(self, handlePV): # <<<<<<<<<<<<<< @@ -44346,7 +44794,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_84getContext(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":995 +/* "PyCafe.pyx":994 * ############################################################################ * * def attachContext(self, handlePV): # <<<<<<<<<<<<<< @@ -44384,7 +44832,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("attachContext", 0); - /* "PyCafe.pyx":996 + /* "PyCafe.pyx":995 * * def attachContext(self, handlePV): * cdef str _METHOD = "attachContext" # <<<<<<<<<<<<<< @@ -44394,7 +44842,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_n_u_attachContext); __pyx_v__METHOD = __pyx_n_u_attachContext; - /* "PyCafe.pyx":998 + /* "PyCafe.pyx":997 * cdef str _METHOD = "attachContext" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -44403,7 +44851,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":999 + /* "PyCafe.pyx":998 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -44424,7 +44872,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1000 + /* "PyCafe.pyx":999 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * return self._c_cafe.attachContextByHandle(handlePV) # <<<<<<<<<<<<<< @@ -44432,14 +44880,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa * return self._c_cafe.attachContextByPVName(handlePV) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1000, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->attachContextByHandle(__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1000, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 999, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->attachContextByHandle(__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":999 + /* "PyCafe.pyx":998 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -44449,7 +44897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":1001 + /* "PyCafe.pyx":1000 * if isinstance(handlePV, (int, long)): * return self._c_cafe.attachContextByHandle(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -44460,7 +44908,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1002 + /* "PyCafe.pyx":1001 * return self._c_cafe.attachContextByHandle(handlePV) * elif isinstance(handlePV, (str)): * return self._c_cafe.attachContextByPVName(handlePV) # <<<<<<<<<<<<<< @@ -44468,14 +44916,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa * raise Exception("{} {} {}".format( */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_handlePV); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(3, 1002, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->attachContextByPVName(__pyx_t_6)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1002, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_handlePV); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(3, 1001, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->attachContextByPVName(__pyx_t_6)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1001 + /* "PyCafe.pyx":1000 * if isinstance(handlePV, (int, long)): * return self._c_cafe.attachContextByHandle(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -44485,7 +44933,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":1004 + /* "PyCafe.pyx":1003 * return self._c_cafe.attachContextByPVName(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -44493,10 +44941,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":1005 + /* "PyCafe.pyx":1004 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -44518,7 +44966,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -44526,13 +44974,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -44546,29 +44994,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":1004 + /* "PyCafe.pyx":1003 * return self._c_cafe.attachContextByPVName(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1004, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(3, 1004, __pyx_L1_error) + __PYX_ERR(3, 1003, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":995 + /* "PyCafe.pyx":994 * ############################################################################ * * def attachContext(self, handlePV): # <<<<<<<<<<<<<< @@ -44593,7 +45041,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_86attachContext(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1011 +/* "PyCafe.pyx":1010 * * ############################################################################ * def collectionDefine(self, const char * cName, vector[string] cMembers): # <<<<<<<<<<<<<< @@ -44632,11 +45080,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_89collectionDefine(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cMembers)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("collectionDefine", 1, 2, 2, 1); __PYX_ERR(3, 1011, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("collectionDefine", 1, 2, 2, 1); __PYX_ERR(3, 1010, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "collectionDefine") < 0)) __PYX_ERR(3, 1011, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "collectionDefine") < 0)) __PYX_ERR(3, 1010, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -44644,12 +45092,12 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_89collectionDefine(PyObject *__pyx_v_s values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_cName = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1011, __pyx_L3_error) - __pyx_v_cMembers = __pyx_convert_vector_from_py_std_3a__3a_string(values[1]); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1011, __pyx_L3_error) + __pyx_v_cName = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1010, __pyx_L3_error) + __pyx_v_cMembers = __pyx_convert_vector_from_py_std_3a__3a_string(values[1]); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1010, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("collectionDefine", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1011, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("collectionDefine", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1010, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.collectionDefine", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -44667,7 +45115,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_88collectionDefine(struct __pyx_obj_6P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("collectionDefine", 0); - /* "PyCafe.pyx":1012 + /* "PyCafe.pyx":1011 * ############################################################################ * def collectionDefine(self, const char * cName, vector[string] cMembers): * with nogil: # <<<<<<<<<<<<<< @@ -44682,7 +45130,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_88collectionDefine(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":1013 + /* "PyCafe.pyx":1012 * def collectionDefine(self, const char * cName, vector[string] cMembers): * with nogil: * self._c_cafe.collectionDefine(cName, cMembers) # <<<<<<<<<<<<<< @@ -44692,7 +45140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_88collectionDefine(struct __pyx_obj_6P (void)(__pyx_v_self->_c_cafe->collectionDefine(__pyx_v_cName, __pyx_v_cMembers)); } - /* "PyCafe.pyx":1012 + /* "PyCafe.pyx":1011 * ############################################################################ * def collectionDefine(self, const char * cName, vector[string] cMembers): * with nogil: # <<<<<<<<<<<<<< @@ -44711,7 +45159,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_88collectionDefine(struct __pyx_obj_6P } } - /* "PyCafe.pyx":1011 + /* "PyCafe.pyx":1010 * * ############################################################################ * def collectionDefine(self, const char * cName, vector[string] cMembers): # <<<<<<<<<<<<<< @@ -44726,7 +45174,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_88collectionDefine(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":1016 +/* "PyCafe.pyx":1015 * * ############################################################################ * def defineCollection(self, const char * cName, vector[string] cMembers): # <<<<<<<<<<<<<< @@ -44765,11 +45213,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_91defineCollection(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cMembers)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("defineCollection", 1, 2, 2, 1); __PYX_ERR(3, 1016, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("defineCollection", 1, 2, 2, 1); __PYX_ERR(3, 1015, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "defineCollection") < 0)) __PYX_ERR(3, 1016, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "defineCollection") < 0)) __PYX_ERR(3, 1015, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -44777,12 +45225,12 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_91defineCollection(PyObject *__pyx_v_s values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_cName = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1016, __pyx_L3_error) - __pyx_v_cMembers = __pyx_convert_vector_from_py_std_3a__3a_string(values[1]); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1016, __pyx_L3_error) + __pyx_v_cName = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1015, __pyx_L3_error) + __pyx_v_cMembers = __pyx_convert_vector_from_py_std_3a__3a_string(values[1]); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1015, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("defineCollection", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1016, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("defineCollection", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1015, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.defineCollection", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -44800,7 +45248,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_90defineCollection(struct __pyx_obj_6P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("defineCollection", 0); - /* "PyCafe.pyx":1017 + /* "PyCafe.pyx":1016 * ############################################################################ * def defineCollection(self, const char * cName, vector[string] cMembers): * with nogil: # <<<<<<<<<<<<<< @@ -44815,7 +45263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_90defineCollection(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":1018 + /* "PyCafe.pyx":1017 * def defineCollection(self, const char * cName, vector[string] cMembers): * with nogil: * self._c_cafe.collectionDefine(cName, cMembers) # <<<<<<<<<<<<<< @@ -44825,7 +45273,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_90defineCollection(struct __pyx_obj_6P (void)(__pyx_v_self->_c_cafe->collectionDefine(__pyx_v_cName, __pyx_v_cMembers)); } - /* "PyCafe.pyx":1017 + /* "PyCafe.pyx":1016 * ############################################################################ * def defineCollection(self, const char * cName, vector[string] cMembers): * with nogil: # <<<<<<<<<<<<<< @@ -44844,7 +45292,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_90defineCollection(struct __pyx_obj_6P } } - /* "PyCafe.pyx":1016 + /* "PyCafe.pyx":1015 * * ############################################################################ * def defineCollection(self, const char * cName, vector[string] cMembers): # <<<<<<<<<<<<<< @@ -44859,7 +45307,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_90defineCollection(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":1021 +/* "PyCafe.pyx":1020 * * ############################################################################ * def collectionList(self): # <<<<<<<<<<<<<< @@ -44887,7 +45335,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("collectionList", 0); - /* "PyCafe.pyx":1023 + /* "PyCafe.pyx":1022 * def collectionList(self): * cdef vector[string] collectionList * with nogil: # <<<<<<<<<<<<<< @@ -44902,7 +45350,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":1024 + /* "PyCafe.pyx":1023 * cdef vector[string] collectionList * with nogil: * self._c_cafe.collectionList(collectionList) # <<<<<<<<<<<<<< @@ -44912,7 +45360,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC (void)(__pyx_v_self->_c_cafe->collectionList(__pyx_v_collectionList)); } - /* "PyCafe.pyx":1023 + /* "PyCafe.pyx":1022 * def collectionList(self): * cdef vector[string] collectionList * with nogil: # <<<<<<<<<<<<<< @@ -44931,7 +45379,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":1025 + /* "PyCafe.pyx":1024 * with nogil: * self._c_cafe.collectionList(collectionList) * return collectionList # <<<<<<<<<<<<<< @@ -44939,13 +45387,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_collectionList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1025, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_collectionList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1021 + /* "PyCafe.pyx":1020 * * ############################################################################ * def collectionList(self): # <<<<<<<<<<<<<< @@ -44966,7 +45414,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_92collectionList(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":1029 +/* "PyCafe.pyx":1028 * * ############################################################################ * def collectionMemberList(self, const char * cName): # <<<<<<<<<<<<<< @@ -44982,7 +45430,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_95collectionMemberList(PyObject *__pyx __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("collectionMemberList (wrapper)", 0); assert(__pyx_arg_cName); { - __pyx_v_cName = __Pyx_PyObject_AsString(__pyx_arg_cName); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1029, __pyx_L3_error) + __pyx_v_cName = __Pyx_PyObject_AsString(__pyx_arg_cName); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 1028, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -45004,7 +45452,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("collectionMemberList", 0); - /* "PyCafe.pyx":1031 + /* "PyCafe.pyx":1030 * def collectionMemberList(self, const char * cName): * cdef vector[string] cMemberList * with nogil: # <<<<<<<<<<<<<< @@ -45019,7 +45467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob #endif /*try:*/ { - /* "PyCafe.pyx":1032 + /* "PyCafe.pyx":1031 * cdef vector[string] cMemberList * with nogil: * self._c_cafe.collectionMemberList(cName, cMemberList) # <<<<<<<<<<<<<< @@ -45029,7 +45477,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob (void)(__pyx_v_self->_c_cafe->collectionMemberList(__pyx_v_cName, __pyx_v_cMemberList)); } - /* "PyCafe.pyx":1031 + /* "PyCafe.pyx":1030 * def collectionMemberList(self, const char * cName): * cdef vector[string] cMemberList * with nogil: # <<<<<<<<<<<<<< @@ -45048,7 +45496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob } } - /* "PyCafe.pyx":1033 + /* "PyCafe.pyx":1032 * with nogil: * self._c_cafe.collectionMemberList(cName, cMemberList) * return cMemberList # <<<<<<<<<<<<<< @@ -45056,13 +45504,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_cMemberList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1033, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_cMemberList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1029 + /* "PyCafe.pyx":1028 * * ############################################################################ * def collectionMemberList(self, const char * cName): # <<<<<<<<<<<<<< @@ -45083,7 +45531,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_94collectionMemberList(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1052 +/* "PyCafe.pyx":1051 * ############################################################################ * * def devicePositionMap(self, const char * collectionName): # <<<<<<<<<<<<<< @@ -45099,7 +45547,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_97devicePositionMap(PyObject *__pyx_v_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("devicePositionMap (wrapper)", 0); assert(__pyx_arg_collectionName); { - __pyx_v_collectionName = __Pyx_PyObject_AsString(__pyx_arg_collectionName); if (unlikely((!__pyx_v_collectionName) && PyErr_Occurred())) __PYX_ERR(3, 1052, __pyx_L3_error) + __pyx_v_collectionName = __Pyx_PyObject_AsString(__pyx_arg_collectionName); if (unlikely((!__pyx_v_collectionName) && PyErr_Occurred())) __PYX_ERR(3, 1051, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -45127,31 +45575,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 int __pyx_t_3; __Pyx_RefNannySetupContext("devicePositionMap", 0); - /* "PyCafe.pyx":1053 + /* "PyCafe.pyx":1052 * * def devicePositionMap(self, const char * collectionName): * p = [] # <<<<<<<<<<<<<< * d = [] * cdef map[float, string] mmfs */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1053, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1054 + /* "PyCafe.pyx":1053 * def devicePositionMap(self, const char * collectionName): * p = [] * d = [] # <<<<<<<<<<<<<< * cdef map[float, string] mmfs * cdef map[float, string].iterator it */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1054, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_d = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1057 + /* "PyCafe.pyx":1056 * cdef map[float, string] mmfs * cdef map[float, string].iterator it * self._c_cafe.devicePositionMap(collectionName, mmfs) # <<<<<<<<<<<<<< @@ -45160,7 +45608,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 */ (void)(__pyx_v_self->_c_cafe->devicePositionMap(__pyx_v_collectionName, __pyx_v_mmfs)); - /* "PyCafe.pyx":1058 + /* "PyCafe.pyx":1057 * cdef map[float, string].iterator it * self._c_cafe.devicePositionMap(collectionName, mmfs) * it = mmfs.begin() # <<<<<<<<<<<<<< @@ -45169,7 +45617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 */ __pyx_v_it = __pyx_v_mmfs.begin(); - /* "PyCafe.pyx":1059 + /* "PyCafe.pyx":1058 * self._c_cafe.devicePositionMap(collectionName, mmfs) * it = mmfs.begin() * tup = () # tuple # <<<<<<<<<<<<<< @@ -45179,7 +45627,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_tup = __pyx_empty_tuple; - /* "PyCafe.pyx":1060 + /* "PyCafe.pyx":1059 * it = mmfs.begin() * tup = () # tuple * while it != mmfs.end(): # <<<<<<<<<<<<<< @@ -45190,43 +45638,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 __pyx_t_2 = ((__pyx_v_it != __pyx_v_mmfs.end()) != 0); if (!__pyx_t_2) break; - /* "PyCafe.pyx":1061 + /* "PyCafe.pyx":1060 * tup = () # tuple * while it != mmfs.end(): * tup = deref(it) # <<<<<<<<<<<<<< * p.append(tup[0]) * d.append(tup[1]) */ - __pyx_t_1 = __pyx_convert_pair_to_py_float____std_3a__3a_string((*__pyx_v_it)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1061, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_pair_to_py_float____std_3a__3a_string((*__pyx_v_it)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF_SET(__pyx_v_tup, __pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1062 + /* "PyCafe.pyx":1061 * while it != mmfs.end(): * tup = deref(it) * p.append(tup[0]) # <<<<<<<<<<<<<< * d.append(tup[1]) * inc(it) */ - __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1062, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_p, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1062, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_p, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1061, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1063 + /* "PyCafe.pyx":1062 * tup = deref(it) * p.append(tup[0]) * d.append(tup[1]) # <<<<<<<<<<<<<< * inc(it) * return d, p */ - __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1063, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_d, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1063, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_d, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1064 + /* "PyCafe.pyx":1063 * p.append(tup[0]) * d.append(tup[1]) * inc(it) # <<<<<<<<<<<<<< @@ -45236,7 +45684,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 (void)((++__pyx_v_it)); } - /* "PyCafe.pyx":1065 + /* "PyCafe.pyx":1064 * d.append(tup[1]) * inc(it) * return d, p # <<<<<<<<<<<<<< @@ -45244,7 +45692,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 * def devicePositionV(self, const char * collectionName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1065, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_d); __Pyx_GIVEREF(__pyx_v_d); @@ -45256,7 +45704,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1052 + /* "PyCafe.pyx":1051 * ############################################################################ * * def devicePositionMap(self, const char * collectionName): # <<<<<<<<<<<<<< @@ -45280,7 +45728,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_96devicePositionMap(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":1067 +/* "PyCafe.pyx":1066 * return d, p * * def devicePositionV(self, const char * collectionName): # <<<<<<<<<<<<<< @@ -45296,7 +45744,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_99devicePositionV(PyObject *__pyx_v_se __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("devicePositionV (wrapper)", 0); assert(__pyx_arg_collectionName); { - __pyx_v_collectionName = __Pyx_PyObject_AsString(__pyx_arg_collectionName); if (unlikely((!__pyx_v_collectionName) && PyErr_Occurred())) __PYX_ERR(3, 1067, __pyx_L3_error) + __pyx_v_collectionName = __Pyx_PyObject_AsString(__pyx_arg_collectionName); if (unlikely((!__pyx_v_collectionName) && PyErr_Occurred())) __PYX_ERR(3, 1066, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -45329,7 +45777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("devicePositionV", 0); - /* "PyCafe.pyx":1068 + /* "PyCafe.pyx":1067 * * def devicePositionV(self, const char * collectionName): * cdef str _METHOD = "devicePositionV" # <<<<<<<<<<<<<< @@ -45339,7 +45787,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py __Pyx_INCREF(__pyx_n_u_devicePositionV); __pyx_v__METHOD = __pyx_n_u_devicePositionV; - /* "PyCafe.pyx":1073 + /* "PyCafe.pyx":1072 * cdef vector[string] dev * cdef vector[float] pos * status = self._c_cafe.devicePositionV(collectionName, dev, pos) # <<<<<<<<<<<<<< @@ -45348,7 +45796,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py */ __pyx_v_status = __pyx_v_self->_c_cafe->devicePositionV(__pyx_v_collectionName, __pyx_v_dev, __pyx_v_pos); - /* "PyCafe.pyx":1075 + /* "PyCafe.pyx":1074 * status = self._c_cafe.devicePositionV(collectionName, dev, pos) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -45358,28 +45806,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1076 + /* "PyCafe.pyx":1075 * * if status != ICAFE_NORMAL: * raise Exception("{} {} {} {} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "status=", status, self.cs.code(status), self.cs.code(status))) */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__41, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__41, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":1078 + /* "PyCafe.pyx":1077 * raise Exception("{} {} {} {} {} {}".format( * self._exception_text, _METHOD, * "status=", status, self.cs.code(status), self.cs.code(status))) # <<<<<<<<<<<<<< * * # for i in range (0, dev.size()): */ - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1078, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1078, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1078, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -45396,7 +45844,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[7] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_status_4, __pyx_t_4, __pyx_t_5, __pyx_t_6}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 6+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 6+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -45407,7 +45855,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[7] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_status_4, __pyx_t_4, __pyx_t_5, __pyx_t_6}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 6+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_8, 6+__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -45416,7 +45864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py } else #endif { - __pyx_t_9 = PyTuple_New(6+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(6+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -45439,27 +45887,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":1076 + /* "PyCafe.pyx":1075 * * if status != ICAFE_NORMAL: * raise Exception("{} {} {} {} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "status=", status, self.cs.code(status), self.cs.code(status))) */ - __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1076, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 1076, __pyx_L1_error) + __PYX_ERR(3, 1075, __pyx_L1_error) - /* "PyCafe.pyx":1075 + /* "PyCafe.pyx":1074 * status = self._c_cafe.devicePositionV(collectionName, dev, pos) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -45468,7 +45916,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":1083 + /* "PyCafe.pyx":1082 * # d.append(dev[i]) * # p.append(pos[i]) * return dev, pos # <<<<<<<<<<<<<< @@ -45476,11 +45924,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_dev); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1083, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_dev); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __pyx_convert_vector_to_py_float(__pyx_v_pos); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1083, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_float(__pyx_v_pos); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1083, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); @@ -45492,7 +45940,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1067 + /* "PyCafe.pyx":1066 * return d, p * * def devicePositionV(self, const char * collectionName): # <<<<<<<<<<<<<< @@ -45520,7 +45968,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_98devicePositionV(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1087 +/* "PyCafe.pyx":1086 * ############################################################################ * * def groupList(self): # <<<<<<<<<<<<<< @@ -45548,7 +45996,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_100groupList(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("groupList", 0); - /* "PyCafe.pyx":1090 + /* "PyCafe.pyx":1089 * cdef vector[string] gList * # conservative guess * gList.reserve(36) # <<<<<<<<<<<<<< @@ -45557,7 +46005,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_100groupList(struct __pyx_obj_6PyCafe_ */ __pyx_v_gList.reserve(36); - /* "PyCafe.pyx":1092 + /* "PyCafe.pyx":1091 * gList.reserve(36) * * self._c_cafe.groupList(gList) # <<<<<<<<<<<<<< @@ -45566,7 +46014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_100groupList(struct __pyx_obj_6PyCafe_ */ (void)(__pyx_v_self->_c_cafe->groupList(__pyx_v_gList)); - /* "PyCafe.pyx":1099 + /* "PyCafe.pyx":1098 * # for i in range (0, len(gList)): * # gl.append(gList[i]) * return gList # <<<<<<<<<<<<<< @@ -45574,13 +46022,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_100groupList(struct __pyx_obj_6PyCafe_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_gList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1099, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_gList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1087 + /* "PyCafe.pyx":1086 * ############################################################################ * * def groupList(self): # <<<<<<<<<<<<<< @@ -45601,7 +46049,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_100groupList(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":1102 +/* "PyCafe.pyx":1101 * ############################################################################ * * def getDataTypeNative(self, handlePV): # <<<<<<<<<<<<<< @@ -45639,7 +46087,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDataTypeNative", 0); - /* "PyCafe.pyx":1103 + /* "PyCafe.pyx":1102 * * def getDataTypeNative(self, handlePV): * cdef str _METHOD = "getDataTypeNative" # <<<<<<<<<<<<<< @@ -45649,7 +46097,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ __Pyx_INCREF(__pyx_n_u_getDataTypeNative); __pyx_v__METHOD = __pyx_n_u_getDataTypeNative; - /* "PyCafe.pyx":1104 + /* "PyCafe.pyx":1103 * def getDataTypeNative(self, handlePV): * cdef str _METHOD = "getDataTypeNative" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -45658,7 +46106,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1105 + /* "PyCafe.pyx":1104 * cdef str _METHOD = "getDataTypeNative" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -45679,17 +46127,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1106 + /* "PyCafe.pyx":1105 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1106, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1105, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1105 + /* "PyCafe.pyx":1104 * cdef str _METHOD = "getDataTypeNative" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -45699,7 +46147,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":1107 + /* "PyCafe.pyx":1106 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -45710,21 +46158,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1108 + /* "PyCafe.pyx":1107 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1108, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1108, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1107, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1108, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1107 + /* "PyCafe.pyx":1106 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -45734,7 +46182,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":1110 + /* "PyCafe.pyx":1109 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -45742,10 +46190,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1111 + /* "PyCafe.pyx":1110 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -45767,7 +46215,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -45775,13 +46223,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -45795,29 +46243,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1110 + /* "PyCafe.pyx":1109 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1110, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1110, __pyx_L1_error) + __PYX_ERR(3, 1109, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1115 + /* "PyCafe.pyx":1114 * else if PV")) * * cdef long ndt = -1 # <<<<<<<<<<<<<< @@ -45826,7 +46274,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ */ __pyx_v_ndt = -1L; - /* "PyCafe.pyx":1117 + /* "PyCafe.pyx":1116 * cdef long ndt = -1 * * self.hh.getDataTypeNative(handle, ndt) # <<<<<<<<<<<<<< @@ -45835,7 +46283,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ */ (void)(__pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_ndt)); - /* "PyCafe.pyx":1118 + /* "PyCafe.pyx":1117 * * self.hh.getDataTypeNative(handle, ndt) * return ndt # <<<<<<<<<<<<<< @@ -45843,13 +46291,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ * def getDataTypeRequest(self, handlePV): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_ndt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1118, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_ndt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1102 + /* "PyCafe.pyx":1101 * ############################################################################ * * def getDataTypeNative(self, handlePV): # <<<<<<<<<<<<<< @@ -45874,7 +46322,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_102getDataTypeNative(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1120 +/* "PyCafe.pyx":1119 * return ndt * * def getDataTypeRequest(self, handlePV): # <<<<<<<<<<<<<< @@ -45912,7 +46360,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDataTypeRequest", 0); - /* "PyCafe.pyx":1121 + /* "PyCafe.pyx":1120 * * def getDataTypeRequest(self, handlePV): * cdef str _METHOD = "getDataTypeRequest" # <<<<<<<<<<<<<< @@ -45922,7 +46370,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj __Pyx_INCREF(__pyx_n_u_getDataTypeRequest); __pyx_v__METHOD = __pyx_n_u_getDataTypeRequest; - /* "PyCafe.pyx":1122 + /* "PyCafe.pyx":1121 * def getDataTypeRequest(self, handlePV): * cdef str _METHOD = "getDataTypeRequest" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -45931,7 +46379,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1123 + /* "PyCafe.pyx":1122 * cdef str _METHOD = "getDataTypeRequest" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -45952,17 +46400,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1124 + /* "PyCafe.pyx":1123 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1124, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1123, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1123 + /* "PyCafe.pyx":1122 * cdef str _METHOD = "getDataTypeRequest" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -45972,7 +46420,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj goto __pyx_L3; } - /* "PyCafe.pyx":1125 + /* "PyCafe.pyx":1124 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -45983,21 +46431,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1126 + /* "PyCafe.pyx":1125 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1126, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1126, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1125, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1126, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1125 + /* "PyCafe.pyx":1124 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46007,7 +46455,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj goto __pyx_L3; } - /* "PyCafe.pyx":1128 + /* "PyCafe.pyx":1127 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -46015,10 +46463,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj * "First input argument, should be of type if handle,\ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1129 + /* "PyCafe.pyx":1128 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -46040,7 +46488,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_5}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -46048,13 +46496,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_5}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -46068,29 +46516,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_5); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_5); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_5); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1128 + /* "PyCafe.pyx":1127 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle,\ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1128, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1128, __pyx_L1_error) + __PYX_ERR(3, 1127, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1133 + /* "PyCafe.pyx":1132 * else if PV")) * * cdef long rdt = -1 # <<<<<<<<<<<<<< @@ -46099,7 +46547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj */ __pyx_v_rdt = -1L; - /* "PyCafe.pyx":1134 + /* "PyCafe.pyx":1133 * * cdef long rdt = -1 * self.hh.getDataTypeRequest(handle, rdt) # <<<<<<<<<<<<<< @@ -46108,7 +46556,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj */ (void)(__pyx_v_self->hh.getDataTypeRequest(__pyx_v_handle, __pyx_v_rdt)); - /* "PyCafe.pyx":1135 + /* "PyCafe.pyx":1134 * cdef long rdt = -1 * self.hh.getDataTypeRequest(handle, rdt) * return rdt # <<<<<<<<<<<<<< @@ -46116,13 +46564,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj * def getMonitorIDInCallback(self, handlePV): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_rdt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1135, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_long(__pyx_v_rdt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1120 + /* "PyCafe.pyx":1119 * return ndt * * def getDataTypeRequest(self, handlePV): # <<<<<<<<<<<<<< @@ -46147,7 +46595,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_104getDataTypeRequest(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":1137 +/* "PyCafe.pyx":1136 * return rdt * * def getMonitorIDInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46184,7 +46632,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getMonitorIDInCallback", 0); - /* "PyCafe.pyx":1138 + /* "PyCafe.pyx":1137 * * def getMonitorIDInCallback(self, handlePV): * cdef str _METHOD = "getMonitorIDInCallback" # <<<<<<<<<<<<<< @@ -46194,7 +46642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx __Pyx_INCREF(__pyx_n_u_getMonitorIDInCallback); __pyx_v__METHOD = __pyx_n_u_getMonitorIDInCallback; - /* "PyCafe.pyx":1139 + /* "PyCafe.pyx":1138 * def getMonitorIDInCallback(self, handlePV): * cdef str _METHOD = "getMonitorIDInCallback" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -46203,7 +46651,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1140 + /* "PyCafe.pyx":1139 * cdef str _METHOD = "getMonitorIDInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46224,17 +46672,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1141 + /* "PyCafe.pyx":1140 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1141, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1140, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1140 + /* "PyCafe.pyx":1139 * cdef str _METHOD = "getMonitorIDInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46244,7 +46692,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":1142 + /* "PyCafe.pyx":1141 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46255,21 +46703,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1143 + /* "PyCafe.pyx":1142 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1143, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1143, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1142, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1143, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1142 + /* "PyCafe.pyx":1141 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46279,7 +46727,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":1145 + /* "PyCafe.pyx":1144 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -46287,10 +46735,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1146 + /* "PyCafe.pyx":1145 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -46312,7 +46760,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -46320,13 +46768,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -46340,29 +46788,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1145 + /* "PyCafe.pyx":1144 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1145, __pyx_L1_error) + __PYX_ERR(3, 1144, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1149 + /* "PyCafe.pyx":1148 * "First input argument, should be of type if handle, \ * else if PV")) * return self.hh.getUsrArgsAsUInt(handle) # <<<<<<<<<<<<<< @@ -46370,13 +46818,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx * def getDataTypeInCallback(self, handlePV): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getUsrArgsAsUInt(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1149, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getUsrArgsAsUInt(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1137 + /* "PyCafe.pyx":1136 * return rdt * * def getMonitorIDInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46401,7 +46849,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_106getMonitorIDInCallback(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":1151 +/* "PyCafe.pyx":1150 * return self.hh.getUsrArgsAsUInt(handle) * * def getDataTypeInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46438,7 +46886,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDataTypeInCallback", 0); - /* "PyCafe.pyx":1152 + /* "PyCafe.pyx":1151 * * def getDataTypeInCallback(self, handlePV): * cdef str _METHOD = "getDataTypeInCallback" # <<<<<<<<<<<<<< @@ -46448,7 +46896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ __Pyx_INCREF(__pyx_n_u_getDataTypeInCallback); __pyx_v__METHOD = __pyx_n_u_getDataTypeInCallback; - /* "PyCafe.pyx":1153 + /* "PyCafe.pyx":1152 * def getDataTypeInCallback(self, handlePV): * cdef str _METHOD = "getDataTypeInCallback" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -46457,7 +46905,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1154 + /* "PyCafe.pyx":1153 * cdef str _METHOD = "getDataTypeInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46478,17 +46926,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1155 + /* "PyCafe.pyx":1154 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1155, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1154, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1154 + /* "PyCafe.pyx":1153 * cdef str _METHOD = "getDataTypeInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46498,7 +46946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ goto __pyx_L3; } - /* "PyCafe.pyx":1156 + /* "PyCafe.pyx":1155 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46509,21 +46957,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1157 + /* "PyCafe.pyx":1156 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1157, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1157, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1156, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1157, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1156 + /* "PyCafe.pyx":1155 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46533,7 +46981,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ goto __pyx_L3; } - /* "PyCafe.pyx":1159 + /* "PyCafe.pyx":1158 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -46541,10 +46989,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1160 + /* "PyCafe.pyx":1159 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -46566,7 +47014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -46574,13 +47022,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -46594,29 +47042,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1159 + /* "PyCafe.pyx":1158 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1159, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1159, __pyx_L1_error) + __PYX_ERR(3, 1158, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1163 + /* "PyCafe.pyx":1162 * "First input argument, should be of type if handle, \ * else if PV")) * return < long > self.hh.getDataTypeCB(handle) # <<<<<<<<<<<<<< @@ -46624,13 +47072,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ * def getDbrDataTypeInCallback(self, handlePV): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getDataTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1163, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getDataTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1151 + /* "PyCafe.pyx":1150 * return self.hh.getUsrArgsAsUInt(handle) * * def getDataTypeInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46655,7 +47103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_108getDataTypeInCallback(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":1165 +/* "PyCafe.pyx":1164 * return < long > self.hh.getDataTypeCB(handle) * * def getDbrDataTypeInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46692,7 +47140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDbrDataTypeInCallback", 0); - /* "PyCafe.pyx":1166 + /* "PyCafe.pyx":1165 * * def getDbrDataTypeInCallback(self, handlePV): * cdef str _METHOD = "getDbrDataTypeInCallback" # <<<<<<<<<<<<<< @@ -46702,7 +47150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p __Pyx_INCREF(__pyx_n_u_getDbrDataTypeInCallback); __pyx_v__METHOD = __pyx_n_u_getDbrDataTypeInCallback; - /* "PyCafe.pyx":1167 + /* "PyCafe.pyx":1166 * def getDbrDataTypeInCallback(self, handlePV): * cdef str _METHOD = "getDbrDataTypeInCallback" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -46711,7 +47159,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1168 + /* "PyCafe.pyx":1167 * cdef str _METHOD = "getDbrDataTypeInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46732,17 +47180,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1169 + /* "PyCafe.pyx":1168 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1169, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1168, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1168 + /* "PyCafe.pyx":1167 * cdef str _METHOD = "getDbrDataTypeInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46752,7 +47200,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p goto __pyx_L3; } - /* "PyCafe.pyx":1170 + /* "PyCafe.pyx":1169 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46763,21 +47211,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1171 + /* "PyCafe.pyx":1170 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1171, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1171, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1170, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1171, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1170 + /* "PyCafe.pyx":1169 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -46787,7 +47235,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p goto __pyx_L3; } - /* "PyCafe.pyx":1173 + /* "PyCafe.pyx":1172 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -46795,10 +47243,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p * ("First input argument, should be of type if handle," + */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1174 + /* "PyCafe.pyx":1173 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -46820,7 +47268,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -46828,13 +47276,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -46848,29 +47296,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_6); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_6); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_6); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1173 + /* "PyCafe.pyx":1172 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First input argument, should be of type if handle," + */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1173, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1173, __pyx_L1_error) + __PYX_ERR(3, 1172, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1177 + /* "PyCafe.pyx":1176 * ("First input argument, should be of type if handle," + * "else if PV"))) * return < long > self.hh.getDbrDataTypeCB(handle) # <<<<<<<<<<<<<< @@ -46878,13 +47326,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p * def getDbrBaseInCallback(self, handlePV): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getDbrDataTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1177, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_long(((long)__pyx_v_self->hh.getDbrDataTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1165 + /* "PyCafe.pyx":1164 * return < long > self.hh.getDataTypeCB(handle) * * def getDbrDataTypeInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46909,7 +47357,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_110getDbrDataTypeInCallback(struct __p return __pyx_r; } -/* "PyCafe.pyx":1179 +/* "PyCafe.pyx":1178 * return < long > self.hh.getDbrDataTypeCB(handle) * * def getDbrBaseInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -46946,7 +47394,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getDbrBaseInCallback", 0); - /* "PyCafe.pyx":1180 + /* "PyCafe.pyx":1179 * * def getDbrBaseInCallback(self, handlePV): * cdef str _METHOD = "getDbrBaseInCallback" # <<<<<<<<<<<<<< @@ -46956,7 +47404,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o __Pyx_INCREF(__pyx_n_u_getDbrBaseInCallback); __pyx_v__METHOD = __pyx_n_u_getDbrBaseInCallback; - /* "PyCafe.pyx":1181 + /* "PyCafe.pyx":1180 * def getDbrBaseInCallback(self, handlePV): * cdef str _METHOD = "getDbrBaseInCallback" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -46965,7 +47413,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1182 + /* "PyCafe.pyx":1181 * cdef str _METHOD = "getDbrBaseInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -46986,17 +47434,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1183 + /* "PyCafe.pyx":1182 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1183, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1182, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1182 + /* "PyCafe.pyx":1181 * cdef str _METHOD = "getDbrBaseInCallback" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -47006,7 +47454,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o goto __pyx_L3; } - /* "PyCafe.pyx":1184 + /* "PyCafe.pyx":1183 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -47017,21 +47465,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1185 + /* "PyCafe.pyx":1184 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1185, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1185, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1184, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1185, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1184 + /* "PyCafe.pyx":1183 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -47041,7 +47489,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o goto __pyx_L3; } - /* "PyCafe.pyx":1187 + /* "PyCafe.pyx":1186 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -47049,10 +47497,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o * ("First input argument, should be of type if handle," + */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1188 + /* "PyCafe.pyx":1187 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -47074,7 +47522,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -47082,13 +47530,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -47102,29 +47550,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_6); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_6); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_6); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1187 + /* "PyCafe.pyx":1186 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First input argument, should be of type if handle," + */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1187, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1187, __pyx_L1_error) + __PYX_ERR(3, 1186, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1191 + /* "PyCafe.pyx":1190 * ("First input argument, should be of type if handle," + * "else if PV"))) * return < unsigned int > self.hh.getCafeDbrTypeCB(handle) # <<<<<<<<<<<<<< @@ -47132,13 +47580,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(((unsigned int)__pyx_v_self->hh.getCafeDbrTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1191, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(((unsigned int)__pyx_v_self->hh.getCafeDbrTypeCB(__pyx_v_handle))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1179 + /* "PyCafe.pyx":1178 * return < long > self.hh.getDbrDataTypeCB(handle) * * def getDbrBaseInCallback(self, handlePV): # <<<<<<<<<<<<<< @@ -47163,7 +47611,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_112getDbrBaseInCallback(struct __pyx_o return __pyx_r; } -/* "PyCafe.pyx":1194 +/* "PyCafe.pyx":1193 * * ############################################################################ * def getHandlesFromWithinGroup(self, gHandleName): # <<<<<<<<<<<<<< @@ -47202,7 +47650,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("getHandlesFromWithinGroup", 0); - /* "PyCafe.pyx":1196 + /* "PyCafe.pyx":1195 * def getHandlesFromWithinGroup(self, gHandleName): * * cdef str _METHOD = "getHandlesFromWithinGroup" # <<<<<<<<<<<<<< @@ -47212,7 +47660,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ __Pyx_INCREF(__pyx_n_u_getHandlesFromWithinGroup); __pyx_v__METHOD = __pyx_n_u_getHandlesFromWithinGroup; - /* "PyCafe.pyx":1198 + /* "PyCafe.pyx":1197 * cdef str _METHOD = "getHandlesFromWithinGroup" * * cdef unsigned int groupHandle = 0 # <<<<<<<<<<<<<< @@ -47221,7 +47669,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ */ __pyx_v_groupHandle = 0; - /* "PyCafe.pyx":1199 + /* "PyCafe.pyx":1198 * * cdef unsigned int groupHandle = 0 * if isinstance(gHandleName, (int, long)): # <<<<<<<<<<<<<< @@ -47242,17 +47690,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1200 + /* "PyCafe.pyx":1199 * cdef unsigned int groupHandle = 0 * if isinstance(gHandleName, (int, long)): * groupHandle = gHandleName # <<<<<<<<<<<<<< * elif isinstance(gHandleName, (str)): * groupHandle = self.hh.getGroupHandleFromGroupName(gHandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_gHandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1200, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_gHandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1199, __pyx_L1_error) __pyx_v_groupHandle = __pyx_t_4; - /* "PyCafe.pyx":1199 + /* "PyCafe.pyx":1198 * * cdef unsigned int groupHandle = 0 * if isinstance(gHandleName, (int, long)): # <<<<<<<<<<<<<< @@ -47262,7 +47710,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":1201 + /* "PyCafe.pyx":1200 * if isinstance(gHandleName, (int, long)): * groupHandle = gHandleName * elif isinstance(gHandleName, (str)): # <<<<<<<<<<<<<< @@ -47273,17 +47721,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1202 + /* "PyCafe.pyx":1201 * groupHandle = gHandleName * elif isinstance(gHandleName, (str)): * groupHandle = self.hh.getGroupHandleFromGroupName(gHandleName) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_gHandleName); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(3, 1202, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_gHandleName); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(3, 1201, __pyx_L1_error) __pyx_v_groupHandle = __pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_5); - /* "PyCafe.pyx":1201 + /* "PyCafe.pyx":1200 * if isinstance(gHandleName, (int, long)): * groupHandle = gHandleName * elif isinstance(gHandleName, (str)): # <<<<<<<<<<<<<< @@ -47293,7 +47741,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":1204 + /* "PyCafe.pyx":1203 * groupHandle = self.hh.getGroupHandleFromGroupName(gHandleName) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -47301,10 +47749,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ * ("First input argument, should be of type if group handle," */ /*else*/ { - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":1205 + /* "PyCafe.pyx":1204 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -47326,7 +47774,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_7}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -47334,13 +47782,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_7}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -47354,29 +47802,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_7); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_7); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_kp_u_First_input_argument_should_be_o_7); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":1204 + /* "PyCafe.pyx":1203 * groupHandle = self.hh.getGroupHandleFromGroupName(gHandleName) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First input argument, should be of type if group handle," */ - __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1204, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(3, 1204, __pyx_L1_error) + __PYX_ERR(3, 1203, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1210 + /* "PyCafe.pyx":1209 * * cdef vector[unsigned int] hList * hList = self.hh.getHandlesFromWithinGroupV(groupHandle) # <<<<<<<<<<<<<< @@ -47385,7 +47833,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ */ __pyx_v_hList = __pyx_v_self->hh.getHandlesFromWithinGroupV(__pyx_v_groupHandle); - /* "PyCafe.pyx":1211 + /* "PyCafe.pyx":1210 * cdef vector[unsigned int] hList * hList = self.hh.getHandlesFromWithinGroupV(groupHandle) * return hList # <<<<<<<<<<<<<< @@ -47393,13 +47841,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_hList); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1211, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_hList); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1194 + /* "PyCafe.pyx":1193 * * ############################################################################ * def getHandlesFromWithinGroup(self, gHandleName): # <<<<<<<<<<<<<< @@ -47424,7 +47872,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_114getHandlesFromWithinGroup(struct __ return __pyx_r; } -/* "PyCafe.pyx":1216 +/* "PyCafe.pyx":1215 * ############################################################################ * * def close(self, handlePV): # <<<<<<<<<<<<<< @@ -47462,7 +47910,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("close", 0); - /* "PyCafe.pyx":1217 + /* "PyCafe.pyx":1216 * * def close(self, handlePV): * cdef str _METHOD = "close" # <<<<<<<<<<<<<< @@ -47472,7 +47920,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_n_u_close); __pyx_v__METHOD = __pyx_n_u_close; - /* "PyCafe.pyx":1218 + /* "PyCafe.pyx":1217 * def close(self, handlePV): * cdef str _METHOD = "close" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -47481,7 +47929,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1219 + /* "PyCafe.pyx":1218 * cdef str _METHOD = "close" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -47502,17 +47950,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1220 + /* "PyCafe.pyx":1219 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1220, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1219, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1219 + /* "PyCafe.pyx":1218 * cdef str _METHOD = "close" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -47522,7 +47970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":1221 + /* "PyCafe.pyx":1220 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -47533,21 +47981,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1222 + /* "PyCafe.pyx":1221 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1222, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1222, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1221, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1222, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1221 + /* "PyCafe.pyx":1220 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -47557,7 +48005,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":1224 + /* "PyCafe.pyx":1223 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -47565,10 +48013,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa * ("First input argument, should be of type if handle," + */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1225 + /* "PyCafe.pyx":1224 * else: * raise Exception("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -47590,7 +48038,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -47598,13 +48046,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_6}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -47618,29 +48066,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_6); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_6); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_6); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1224 + /* "PyCafe.pyx":1223 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First input argument, should be of type if handle," + */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1224, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1224, __pyx_L1_error) + __PYX_ERR(3, 1223, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1230 + /* "PyCafe.pyx":1229 * * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -47655,7 +48103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa #endif /*try:*/ { - /* "PyCafe.pyx":1231 + /* "PyCafe.pyx":1230 * cdef int status * with nogil: * status = self._c_cafe.close(handle) # <<<<<<<<<<<<<< @@ -47665,7 +48113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa __pyx_v_status = __pyx_v_self->_c_cafe->close(__pyx_v_handle); } - /* "PyCafe.pyx":1230 + /* "PyCafe.pyx":1229 * * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -47684,7 +48132,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa } } - /* "PyCafe.pyx":1233 + /* "PyCafe.pyx":1232 * status = self._c_cafe.close(handle) * * return status # <<<<<<<<<<<<<< @@ -47692,13 +48140,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1233, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1216 + /* "PyCafe.pyx":1215 * ############################################################################ * * def close(self, handlePV): # <<<<<<<<<<<<<< @@ -47723,7 +48171,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_116close(struct __pyx_obj_6PyCafe_CyCa return __pyx_r; } -/* "PyCafe.pyx":1236 +/* "PyCafe.pyx":1235 * * ############################################################################ * def closeChannels(self): # <<<<<<<<<<<<<< @@ -47751,7 +48199,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("closeChannels", 0); - /* "PyCafe.pyx":1238 + /* "PyCafe.pyx":1237 * def closeChannels(self): * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -47766,7 +48214,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":1239 + /* "PyCafe.pyx":1238 * cdef int status * with nogil: * status = self._c_cafe.closeChannels() # <<<<<<<<<<<<<< @@ -47776,7 +48224,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->closeChannels(); } - /* "PyCafe.pyx":1238 + /* "PyCafe.pyx":1237 * def closeChannels(self): * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -47795,7 +48243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":1240 + /* "PyCafe.pyx":1239 * with nogil: * status = self._c_cafe.closeChannels() * return status # <<<<<<<<<<<<<< @@ -47803,13 +48251,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1240, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1236 + /* "PyCafe.pyx":1235 * * ############################################################################ * def closeChannels(self): # <<<<<<<<<<<<<< @@ -47830,7 +48278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_118closeChannels(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":1243 +/* "PyCafe.pyx":1242 * * ############################################################################ * def closeHandles(self, list handleList): # <<<<<<<<<<<<<< @@ -47844,7 +48292,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_121closeHandles(PyObject *__pyx_v_self PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("closeHandles (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1243, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1242, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_120closeHandles(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_handleList)); /* function exit code */ @@ -47879,7 +48327,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __Pyx_RefNannySetupContext("closeHandles", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":1244 + /* "PyCafe.pyx":1243 * ############################################################################ * def closeHandles(self, list handleList): * cdef str _METHOD = "closeHandles" # <<<<<<<<<<<<<< @@ -47889,7 +48337,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_n_u_closeHandles); __pyx_v__METHOD = __pyx_n_u_closeHandles; - /* "PyCafe.pyx":1245 + /* "PyCafe.pyx":1244 * def closeHandles(self, list handleList): * cdef str _METHOD = "closeHandles" * if not handleList: # <<<<<<<<<<<<<< @@ -47900,7 +48348,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __pyx_t_2 = ((!__pyx_t_1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1246 + /* "PyCafe.pyx":1245 * cdef str _METHOD = "closeHandles" * if not handleList: * return ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -47908,13 +48356,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa * handleList = self.checkForHandleList(handleList, force=False) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1246, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1245 + /* "PyCafe.pyx":1244 * def closeHandles(self, list handleList): * cdef str _METHOD = "closeHandles" * if not handleList: # <<<<<<<<<<<<<< @@ -47923,7 +48371,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":1247 + /* "PyCafe.pyx":1246 * if not handleList: * return ICAFE_NORMAL * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -47932,16 +48380,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1247, __pyx_L1_error) + __PYX_ERR(3, 1246, __pyx_L1_error) } - __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1247, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1248 + /* "PyCafe.pyx":1247 * return ICAFE_NORMAL * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList, force=False) # <<<<<<<<<<<<<< @@ -47950,13 +48398,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ __pyx_t_4.__pyx_n = 1; __pyx_t_4.force = 0; - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1248, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (!(likely(PyList_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(3, 1248, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(3, 1247, __pyx_L1_error) __Pyx_DECREF_SET(__pyx_v_handleList, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":1247 + /* "PyCafe.pyx":1246 * if not handleList: * return ICAFE_NORMAL * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -47966,7 +48414,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa goto __pyx_L4; } - /* "PyCafe.pyx":1249 + /* "PyCafe.pyx":1248 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList, force=False) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -47975,9 +48423,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1249, __pyx_L1_error) + __PYX_ERR(3, 1248, __pyx_L1_error) } - __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1249, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_Check(__pyx_t_3); __pyx_t_5 = (__pyx_t_2 != 0); @@ -47994,14 +48442,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1250 + /* "PyCafe.pyx":1249 * handleList = self.checkForHandleList(handleList, force=False) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< * "First input argument, should be a 'list' of of type \ * if handles or if PVs")) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -48018,7 +48466,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else @@ -48026,13 +48474,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -48046,19 +48494,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_a); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1250, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1250, __pyx_L1_error) + __PYX_ERR(3, 1249, __pyx_L1_error) - /* "PyCafe.pyx":1249 + /* "PyCafe.pyx":1248 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList, force=False) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -48068,7 +48516,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa } __pyx_L4:; - /* "PyCafe.pyx":1256 + /* "PyCafe.pyx":1255 * # Do this only to avoid compiler warnings * cdef vector[unsigned int] v * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -48077,14 +48525,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1256, __pyx_L1_error) + __PYX_ERR(3, 1255, __pyx_L1_error) } - __pyx_t_10 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1256, __pyx_L1_error) + __pyx_t_10 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1255, __pyx_L1_error) __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":1257 + /* "PyCafe.pyx":1256 * cdef vector[unsigned int] v * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< @@ -48093,21 +48541,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1257, __pyx_L1_error) + __PYX_ERR(3, 1256, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1257, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1257, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1257, __pyx_L1_error) + __PYX_ERR(3, 1256, __pyx_L1_error) } } - /* "PyCafe.pyx":1259 + /* "PyCafe.pyx":1258 * v.push_back(handleList[i]) * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -48122,7 +48570,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa #endif /*try:*/ { - /* "PyCafe.pyx":1260 + /* "PyCafe.pyx":1259 * cdef int status * with nogil: * status = self._c_cafe.closeHandlesV(v) # <<<<<<<<<<<<<< @@ -48132,7 +48580,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa __pyx_v_status = __pyx_v_self->_c_cafe->closeHandlesV(__pyx_v_v); } - /* "PyCafe.pyx":1259 + /* "PyCafe.pyx":1258 * v.push_back(handleList[i]) * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -48151,7 +48599,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa } } - /* "PyCafe.pyx":1261 + /* "PyCafe.pyx":1260 * with nogil: * status = self._c_cafe.closeHandlesV(v) * return status # <<<<<<<<<<<<<< @@ -48159,13 +48607,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1261, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1243 + /* "PyCafe.pyx":1242 * * ############################################################################ * def closeHandles(self, list handleList): # <<<<<<<<<<<<<< @@ -48191,7 +48639,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_120closeHandles(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1265 +/* "PyCafe.pyx":1264 * ############################################################################ * * def closeDisconnectedChannelsWithinGroup(self, ghandleName): # <<<<<<<<<<<<<< @@ -48232,7 +48680,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou PyObject *__pyx_t_12 = NULL; __Pyx_RefNannySetupContext("closeDisconnectedChannelsWithinGroup", 0); - /* "PyCafe.pyx":1266 + /* "PyCafe.pyx":1265 * * def closeDisconnectedChannelsWithinGroup(self, ghandleName): * cdef str _METHOD = "closeDisconnectedChannelsWithinGroup" # <<<<<<<<<<<<<< @@ -48242,7 +48690,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __Pyx_INCREF(__pyx_n_u_closeDisconnectedChannelsWithinG); __pyx_v__METHOD = __pyx_n_u_closeDisconnectedChannelsWithinG; - /* "PyCafe.pyx":1270 + /* "PyCafe.pyx":1269 * cdef vector[unsigned int] disHandles * * if isinstance(ghandleName, (list)): # <<<<<<<<<<<<<< @@ -48253,26 +48701,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1271 + /* "PyCafe.pyx":1270 * * if isinstance(ghandleName, (list)): * for i in range(0, len(ghandleName)): # <<<<<<<<<<<<<< * if isinstance(ghandleName[i], (int, long)): * hList.push_back(ghandleName[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_ghandleName); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1271, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_ghandleName); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1270, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":1272 + /* "PyCafe.pyx":1271 * if isinstance(ghandleName, (list)): * for i in range(0, len(ghandleName)): * if isinstance(ghandleName[i], (int, long)): # <<<<<<<<<<<<<< * hList.push_back(ghandleName[i]) * elif isinstance(ghandleName[i], (str)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1272, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyInt_Check(__pyx_t_6); __pyx_t_7 = (__pyx_t_1 != 0); @@ -48289,25 +48737,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1273 + /* "PyCafe.pyx":1272 * for i in range(0, len(ghandleName)): * if isinstance(ghandleName[i], (int, long)): * hList.push_back(ghandleName[i]) # <<<<<<<<<<<<<< * elif isinstance(ghandleName[i], (str)): * hList.push_back(self.checkForGroupHandle(ghandleName[i])) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1273, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1273, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1273, __pyx_L1_error) + __PYX_ERR(3, 1272, __pyx_L1_error) } - /* "PyCafe.pyx":1272 + /* "PyCafe.pyx":1271 * if isinstance(ghandleName, (list)): * for i in range(0, len(ghandleName)): * if isinstance(ghandleName[i], (int, long)): # <<<<<<<<<<<<<< @@ -48317,43 +48765,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou goto __pyx_L6; } - /* "PyCafe.pyx":1274 + /* "PyCafe.pyx":1273 * if isinstance(ghandleName[i], (int, long)): * hList.push_back(ghandleName[i]) * elif isinstance(ghandleName[i], (str)): # <<<<<<<<<<<<<< * hList.push_back(self.checkForGroupHandle(ghandleName[i])) * else: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1274, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1275 + /* "PyCafe.pyx":1274 * hList.push_back(ghandleName[i]) * elif isinstance(ghandleName[i], (str)): * hList.push_back(self.checkForGroupHandle(ghandleName[i])) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1275, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_ghandleName, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 1275, __pyx_L1_error) - __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_t_6), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1275, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 1274, __pyx_L1_error) + __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_t_6), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1275, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1275, __pyx_L1_error) + __PYX_ERR(3, 1274, __pyx_L1_error) } - /* "PyCafe.pyx":1274 + /* "PyCafe.pyx":1273 * if isinstance(ghandleName[i], (int, long)): * hList.push_back(ghandleName[i]) * elif isinstance(ghandleName[i], (str)): # <<<<<<<<<<<<<< @@ -48363,7 +48811,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou goto __pyx_L6; } - /* "PyCafe.pyx":1277 + /* "PyCafe.pyx":1276 * hList.push_back(self.checkForGroupHandle(ghandleName[i])) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -48371,10 +48819,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou * "List input arguments, should be of type \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1278 + /* "PyCafe.pyx":1277 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -48396,7 +48844,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); } else @@ -48404,13 +48852,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); } else #endif { - __pyx_t_12 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_12 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -48424,30 +48872,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __Pyx_INCREF(__pyx_kp_u_List_input_arguments_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_List_input_arguments_should_be_o); PyTuple_SET_ITEM(__pyx_t_12, 2+__pyx_t_11, __pyx_kp_u_List_input_arguments_should_be_o); - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1277 + /* "PyCafe.pyx":1276 * hList.push_back(self.checkForGroupHandle(ghandleName[i])) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "List input arguments, should be of type \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1277, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1277, __pyx_L1_error) + __PYX_ERR(3, 1276, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":1270 + /* "PyCafe.pyx":1269 * cdef vector[unsigned int] disHandles * * if isinstance(ghandleName, (list)): # <<<<<<<<<<<<<< @@ -48457,7 +48905,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou goto __pyx_L3; } - /* "PyCafe.pyx":1282 + /* "PyCafe.pyx":1281 * if group handle, else if group name")) * * elif isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -48478,22 +48926,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1283 + /* "PyCafe.pyx":1282 * * elif isinstance(ghandleName, (int, long)): * hList.push_back(ghandleName) # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * hList.push_back(self.checkForGroupHandle(ghandleName)) */ - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1283, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1282, __pyx_L1_error) try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1283, __pyx_L1_error) + __PYX_ERR(3, 1282, __pyx_L1_error) } - /* "PyCafe.pyx":1282 + /* "PyCafe.pyx":1281 * if group handle, else if group name")) * * elif isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -48503,7 +48951,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou goto __pyx_L3; } - /* "PyCafe.pyx":1284 + /* "PyCafe.pyx":1283 * elif isinstance(ghandleName, (int, long)): * hList.push_back(ghandleName) * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -48514,26 +48962,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1285 + /* "PyCafe.pyx":1284 * hList.push_back(ghandleName) * elif isinstance(ghandleName, (str)): * hList.push_back(self.checkForGroupHandle(ghandleName)) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 1285, __pyx_L1_error) - __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1285, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 1284, __pyx_L1_error) + __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1285, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1285, __pyx_L1_error) + __PYX_ERR(3, 1284, __pyx_L1_error) } - /* "PyCafe.pyx":1284 + /* "PyCafe.pyx":1283 * elif isinstance(ghandleName, (int, long)): * hList.push_back(ghandleName) * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -48543,7 +48991,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou goto __pyx_L3; } - /* "PyCafe.pyx":1287 + /* "PyCafe.pyx":1286 * hList.push_back(self.checkForGroupHandle(ghandleName)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -48551,10 +48999,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou * "First input argument (if not list), should be of type \ */ /*else*/ { - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":1288 + /* "PyCafe.pyx":1287 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -48576,7 +49024,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_if_not_list}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -48584,13 +49032,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_if_not_list}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_12) { __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_12); __pyx_t_12 = NULL; @@ -48604,44 +49052,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __Pyx_INCREF(__pyx_kp_u_First_input_argument_if_not_list); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_if_not_list); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_11, __pyx_kp_u_First_input_argument_if_not_list); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":1287 + /* "PyCafe.pyx":1286 * hList.push_back(self.checkForGroupHandle(ghandleName)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument (if not list), should be of type \ */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1287, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 1287, __pyx_L1_error) + __PYX_ERR(3, 1286, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1292 + /* "PyCafe.pyx":1291 * if group handle, else if group name")) * * for i in range(0, len(hList)): # <<<<<<<<<<<<<< * with nogil: * self._c_cafe.closeDisconnectedChannelsFromWithinGroupV( */ - __pyx_t_9 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_hList); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1292, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_hList); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_3 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1292, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1291, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":1293 + /* "PyCafe.pyx":1292 * * for i in range(0, len(hList)): * with nogil: # <<<<<<<<<<<<<< @@ -48656,7 +49104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou #endif /*try:*/ { - /* "PyCafe.pyx":1294 + /* "PyCafe.pyx":1293 * for i in range(0, len(hList)): * with nogil: * self._c_cafe.closeDisconnectedChannelsFromWithinGroupV( # <<<<<<<<<<<<<< @@ -48666,7 +49114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou (void)(__pyx_v_self->_c_cafe->closeDisconnectedChannelsFromWithinGroupV((__pyx_v_hList[__pyx_v_i]))); } - /* "PyCafe.pyx":1293 + /* "PyCafe.pyx":1292 * * for i in range(0, len(hList)): * with nogil: # <<<<<<<<<<<<<< @@ -48686,7 +49134,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou } } - /* "PyCafe.pyx":1296 + /* "PyCafe.pyx":1295 * self._c_cafe.closeDisconnectedChannelsFromWithinGroupV( * hList[i]) * return # <<<<<<<<<<<<<< @@ -48697,7 +49145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":1265 + /* "PyCafe.pyx":1264 * ############################################################################ * * def closeDisconnectedChannelsWithinGroup(self, ghandleName): # <<<<<<<<<<<<<< @@ -48722,7 +49170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_122closeDisconnectedChannelsWithinGrou return __pyx_r; } -/* "PyCafe.pyx":1299 +/* "PyCafe.pyx":1298 * * ############################################################################ * def closeChannelKeepHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -48764,7 +49212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx PyObject *__pyx_t_12 = NULL; __Pyx_RefNannySetupContext("closeChannelKeepHandle", 0); - /* "PyCafe.pyx":1300 + /* "PyCafe.pyx":1299 * ############################################################################ * def closeChannelKeepHandle(self, handlePV): * cdef str _METHOD = "closeChannelKeepHandle" # <<<<<<<<<<<<<< @@ -48774,7 +49222,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __Pyx_INCREF(__pyx_n_u_closeChannelKeepHandle); __pyx_v__METHOD = __pyx_n_u_closeChannelKeepHandle; - /* "PyCafe.pyx":1305 + /* "PyCafe.pyx":1304 * cdef int statusClose * * if isinstance(handlePV, (list)): # <<<<<<<<<<<<<< @@ -48785,26 +49233,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1306 + /* "PyCafe.pyx":1305 * * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): # <<<<<<<<<<<<<< * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) */ - __pyx_t_3 = PyObject_Length(__pyx_v_handlePV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1306, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_handlePV); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1305, __pyx_L1_error) __pyx_t_4 = __pyx_t_3; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":1307 + /* "PyCafe.pyx":1306 * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): # <<<<<<<<<<<<<< * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1307, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyInt_Check(__pyx_t_6); __pyx_t_7 = (__pyx_t_1 != 0); @@ -48821,25 +49269,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1308 + /* "PyCafe.pyx":1307 * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) # <<<<<<<<<<<<<< * elif isinstance(handlePV[i], (str)): * hList.push_back(self.checkForHandle(handlePV[i])) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1308, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1308, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1308, __pyx_L1_error) + __PYX_ERR(3, 1307, __pyx_L1_error) } - /* "PyCafe.pyx":1307 + /* "PyCafe.pyx":1306 * if isinstance(handlePV, (list)): * for i in range(0, len(handlePV)): * if isinstance(handlePV[i], (int, long)): # <<<<<<<<<<<<<< @@ -48849,43 +49297,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx goto __pyx_L6; } - /* "PyCafe.pyx":1309 + /* "PyCafe.pyx":1308 * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): # <<<<<<<<<<<<<< * hList.push_back(self.checkForHandle(handlePV[i])) * else: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1309, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1310 + /* "PyCafe.pyx":1309 * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): * hList.push_back(self.checkForHandle(handlePV[i])) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1310, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handlePV, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 1310, __pyx_L1_error) - __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_t_6), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1310, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 1309, __pyx_L1_error) + __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_t_6), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1310, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1309, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1310, __pyx_L1_error) + __PYX_ERR(3, 1309, __pyx_L1_error) } - /* "PyCafe.pyx":1309 + /* "PyCafe.pyx":1308 * if isinstance(handlePV[i], (int, long)): * hList.push_back(handlePV[i]) * elif isinstance(handlePV[i], (str)): # <<<<<<<<<<<<<< @@ -48895,7 +49343,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx goto __pyx_L6; } - /* "PyCafe.pyx":1312 + /* "PyCafe.pyx":1311 * hList.push_back(self.checkForHandle(handlePV[i])) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -48903,10 +49351,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx * "List input arguments, should be of type \ */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1313 + /* "PyCafe.pyx":1312 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -48928,7 +49376,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); } else @@ -48936,13 +49384,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_10, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_List_input_arguments_should_be_o}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_9); } else #endif { - __pyx_t_12 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_12 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -48956,30 +49404,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __Pyx_INCREF(__pyx_kp_u_List_input_arguments_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_List_input_arguments_should_be_o); PyTuple_SET_ITEM(__pyx_t_12, 2+__pyx_t_11, __pyx_kp_u_List_input_arguments_should_be_o); - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_12, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1312 + /* "PyCafe.pyx":1311 * hList.push_back(self.checkForHandle(handlePV[i])) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "List input arguments, should be of type \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1312, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1312, __pyx_L1_error) + __PYX_ERR(3, 1311, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":1305 + /* "PyCafe.pyx":1304 * cdef int statusClose * * if isinstance(handlePV, (list)): # <<<<<<<<<<<<<< @@ -48989,7 +49437,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":1317 + /* "PyCafe.pyx":1316 * if group handle, else if group name")) * * elif isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -49010,22 +49458,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1318 + /* "PyCafe.pyx":1317 * * elif isinstance(handlePV, (int, long)): * hList.push_back(handlePV) # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * hList.push_back(self.checkForHandle(handlePV)) */ - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1318, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1317, __pyx_L1_error) try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1318, __pyx_L1_error) + __PYX_ERR(3, 1317, __pyx_L1_error) } - /* "PyCafe.pyx":1317 + /* "PyCafe.pyx":1316 * if group handle, else if group name")) * * elif isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -49035,7 +49483,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":1319 + /* "PyCafe.pyx":1318 * elif isinstance(handlePV, (int, long)): * hList.push_back(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -49046,26 +49494,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1320 + /* "PyCafe.pyx":1319 * hList.push_back(handlePV) * elif isinstance(handlePV, (str)): * hList.push_back(self.checkForHandle(handlePV)) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1320, __pyx_L1_error) - __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1320, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1319, __pyx_L1_error) + __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1320, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_hList.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1320, __pyx_L1_error) + __PYX_ERR(3, 1319, __pyx_L1_error) } - /* "PyCafe.pyx":1319 + /* "PyCafe.pyx":1318 * elif isinstance(handlePV, (int, long)): * hList.push_back(handlePV) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -49075,7 +49523,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":1322 + /* "PyCafe.pyx":1321 * hList.push_back(self.checkForHandle(handlePV)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -49083,10 +49531,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx * "First input argument (if not list), should be of type \ */ /*else*/ { - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":1323 + /* "PyCafe.pyx":1322 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -49108,7 +49556,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_if_not_list_2}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -49116,13 +49564,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[4] = {__pyx_t_12, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_if_not_list_2}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 3+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_12) { __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_12); __pyx_t_12 = NULL; @@ -49136,29 +49584,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __Pyx_INCREF(__pyx_kp_u_First_input_argument_if_not_list_2); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_if_not_list_2); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_11, __pyx_kp_u_First_input_argument_if_not_list_2); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":1322 + /* "PyCafe.pyx":1321 * hList.push_back(self.checkForHandle(handlePV)) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument (if not list), should be of type \ */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1322, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 1322, __pyx_L1_error) + __PYX_ERR(3, 1321, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1327 + /* "PyCafe.pyx":1326 * if handle, else if PV")) * * with nogil: # <<<<<<<<<<<<<< @@ -49173,7 +49621,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx #endif /*try:*/ { - /* "PyCafe.pyx":1328 + /* "PyCafe.pyx":1327 * * with nogil: * statusClose = self._c_cafe.closeChannelsKeepHandles(hList) # <<<<<<<<<<<<<< @@ -49183,7 +49631,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx __pyx_v_statusClose = __pyx_v_self->_c_cafe->closeChannelsKeepHandles(__pyx_v_hList); } - /* "PyCafe.pyx":1327 + /* "PyCafe.pyx":1326 * if handle, else if PV")) * * with nogil: # <<<<<<<<<<<<<< @@ -49202,7 +49650,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx } } - /* "PyCafe.pyx":1329 + /* "PyCafe.pyx":1328 * with nogil: * statusClose = self._c_cafe.closeChannelsKeepHandles(hList) * return statusClose # <<<<<<<<<<<<<< @@ -49210,13 +49658,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx * #def reconnect(self, vector[unsigned int] handleList): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_statusClose); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1329, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_statusClose); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1299 + /* "PyCafe.pyx":1298 * * ############################################################################ * def closeChannelKeepHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -49241,7 +49689,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_124closeChannelKeepHandle(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":1332 +/* "PyCafe.pyx":1331 * * #def reconnect(self, vector[unsigned int] handleList): * def reconnect(self, list handleList): # <<<<<<<<<<<<<< @@ -49255,7 +49703,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_127reconnect(PyObject *__pyx_v_self, P PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("reconnect (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1332, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1331, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_126reconnect(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_handleList)); /* function exit code */ @@ -49289,7 +49737,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ int __pyx_t_13; __Pyx_RefNannySetupContext("reconnect", 0); - /* "PyCafe.pyx":1333 + /* "PyCafe.pyx":1332 * #def reconnect(self, vector[unsigned int] handleList): * def reconnect(self, list handleList): * cdef int status1 = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -49298,7 +49746,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ __pyx_v_status1 = ICAFE_NORMAL; - /* "PyCafe.pyx":1334 + /* "PyCafe.pyx":1333 * def reconnect(self, list handleList): * cdef int status1 = ICAFE_NORMAL * cdef int status2 = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -49307,7 +49755,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ __pyx_v_status2 = ICAFE_NORMAL; - /* "PyCafe.pyx":1336 + /* "PyCafe.pyx":1335 * cdef int status2 = ICAFE_NORMAL * cdef vector[unsigned int] v * v.reserve(len(handleList)) # <<<<<<<<<<<<<< @@ -49316,12 +49764,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1336, __pyx_L1_error) + __PYX_ERR(3, 1335, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1336, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1335, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_1); - /* "PyCafe.pyx":1337 + /* "PyCafe.pyx":1336 * cdef vector[unsigned int] v * v.reserve(len(handleList)) * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -49330,14 +49778,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1337, __pyx_L1_error) + __PYX_ERR(3, 1336, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1337, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1336, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; - /* "PyCafe.pyx":1338 + /* "PyCafe.pyx":1337 * v.reserve(len(handleList)) * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< @@ -49346,28 +49794,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1338, __pyx_L1_error) + __PYX_ERR(3, 1337, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1338, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1338, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1337, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_v.push_back(__pyx_t_5); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1338, __pyx_L1_error) + __PYX_ERR(3, 1337, __pyx_L1_error) } } - /* "PyCafe.pyx":1340 + /* "PyCafe.pyx":1339 * v.push_back(handleList[i]) * #print("Channels Closing...") * self.openMonitorPrepare() # <<<<<<<<<<<<<< * * for i in range (0, len(handleList)): */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openMonitorPrepare); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1340, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openMonitorPrepare); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -49381,12 +49829,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1340, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1342 + /* "PyCafe.pyx":1341 * self.openMonitorPrepare() * * for i in range (0, len(handleList)): # <<<<<<<<<<<<<< @@ -49395,27 +49843,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1342, __pyx_L1_error) + __PYX_ERR(3, 1341, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1342, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1341, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { __pyx_v_i = __pyx_t_3; - /* "PyCafe.pyx":1343 + /* "PyCafe.pyx":1342 * * for i in range (0, len(handleList)): * self.monitorStop(handleList[i]) # <<<<<<<<<<<<<< * * self.openMonitorNow() */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_monitorStop); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1343, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_monitorStop); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1343, __pyx_L1_error) + __PYX_ERR(3, 1342, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1343, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -49430,20 +49878,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1343, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":1345 + /* "PyCafe.pyx":1344 * self.monitorStop(handleList[i]) * * self.openMonitorNow() # <<<<<<<<<<<<<< * time.sleep(0.05) * #with nogil: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openMonitorNow); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1345, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openMonitorNow); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -49457,21 +49905,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1345, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1346 + /* "PyCafe.pyx":1345 * * self.openMonitorNow() * time.sleep(0.05) # <<<<<<<<<<<<<< * #with nogil: * # status= self._c_cafe.reconnect(handleList) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1346, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1346, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -49486,12 +49934,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_float_0_05) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_float_0_05); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1346, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1350 + /* "PyCafe.pyx":1349 * # status= self._c_cafe.reconnect(handleList) * #print("Channels Closing...") * with nogil: # <<<<<<<<<<<<<< @@ -49506,7 +49954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":1351 + /* "PyCafe.pyx":1350 * #print("Channels Closing...") * with nogil: * status1 = self._c_cafe.closeChannelsKeepHandles(v) # <<<<<<<<<<<<<< @@ -49516,7 +49964,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ __pyx_v_status1 = __pyx_v_self->_c_cafe->closeChannelsKeepHandles(__pyx_v_v); } - /* "PyCafe.pyx":1350 + /* "PyCafe.pyx":1349 * # status= self._c_cafe.reconnect(handleList) * #print("Channels Closing...") * with nogil: # <<<<<<<<<<<<<< @@ -49535,16 +49983,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":1352 + /* "PyCafe.pyx":1351 * with nogil: * status1 = self._c_cafe.closeChannelsKeepHandles(v) * time.sleep(0.05) # <<<<<<<<<<<<<< * #print("Channels Closed") * self.openPrepare() */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1352, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1352, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; @@ -49559,19 +50007,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_float_0_05) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_float_0_05); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1352, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1354 + /* "PyCafe.pyx":1353 * time.sleep(0.05) * #print("Channels Closed") * self.openPrepare() # <<<<<<<<<<<<<< * with nogil: * status2 = self._c_cafe.openChannelsWithHandles(v) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openPrepare); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1354, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openPrepare); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -49585,12 +50033,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1354, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1355 + /* "PyCafe.pyx":1354 * #print("Channels Closed") * self.openPrepare() * with nogil: # <<<<<<<<<<<<<< @@ -49605,7 +50053,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":1356 + /* "PyCafe.pyx":1355 * self.openPrepare() * with nogil: * status2 = self._c_cafe.openChannelsWithHandles(v) # <<<<<<<<<<<<<< @@ -49615,7 +50063,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ __pyx_v_status2 = __pyx_v_self->_c_cafe->openChannelsWithHandles(__pyx_v_v); } - /* "PyCafe.pyx":1355 + /* "PyCafe.pyx":1354 * #print("Channels Closed") * self.openPrepare() * with nogil: # <<<<<<<<<<<<<< @@ -49634,18 +50082,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":1359 + /* "PyCafe.pyx":1358 * #print("Channels Opened") * * self.openNowAndWait(self._c_cafe.channelOpenPolicy.getTimeout(), v) # <<<<<<<<<<<<<< * #print("Channels Opened//", status1, status2) * time.sleep(0.05) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNowAndWait); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNowAndWait); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.getTimeout()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble(__pyx_v_self->_c_cafe->channelOpenPolicy.getTimeout()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_v); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_v); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; @@ -49662,7 +50110,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_7, __pyx_t_8}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -49672,7 +50120,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_t_7, __pyx_t_8}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -49680,7 +50128,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } else #endif { - __pyx_t_11 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -49691,23 +50139,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_10, __pyx_t_8); __pyx_t_7 = 0; __pyx_t_8 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1359, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1361 + /* "PyCafe.pyx":1360 * self.openNowAndWait(self._c_cafe.channelOpenPolicy.getTimeout(), v) * #print("Channels Opened//", status1, status2) * time.sleep(0.05) # <<<<<<<<<<<<<< * return max(status1, status2) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1361, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_time); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1361, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_sleep); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -49722,12 +50170,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_6, __pyx_float_0_05) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_float_0_05); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1361, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1362 + /* "PyCafe.pyx":1361 * #print("Channels Opened//", status1, status2) * time.sleep(0.05) * return max(status1, status2) # <<<<<<<<<<<<<< @@ -49742,13 +50190,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ } else { __pyx_t_13 = __pyx_t_12; } - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1362, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1332 + /* "PyCafe.pyx":1331 * * #def reconnect(self, vector[unsigned int] handleList): * def reconnect(self, list handleList): # <<<<<<<<<<<<<< @@ -49774,7 +50222,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_126reconnect(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":1366 +/* "PyCafe.pyx":1365 * ############################################################################ * * def allConnected(self): # <<<<<<<<<<<<<< @@ -49801,7 +50249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_128allConnected(struct __pyx_obj_6PyCa PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("allConnected", 0); - /* "PyCafe.pyx":1367 + /* "PyCafe.pyx":1366 * * def allConnected(self): * return self._c_cafe.allChannelsConnected() # <<<<<<<<<<<<<< @@ -49809,13 +50257,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_128allConnected(struct __pyx_obj_6PyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_c_cafe->allChannelsConnected() != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1367, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_c_cafe->allChannelsConnected() != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1366 + /* "PyCafe.pyx":1365 * ############################################################################ * * def allConnected(self): # <<<<<<<<<<<<<< @@ -49836,7 +50284,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_128allConnected(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1372 +/* "PyCafe.pyx":1371 * * @verify_handlepv * def isConnected(self, handlePV): # <<<<<<<<<<<<<< @@ -49865,7 +50313,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_130isConnected(struct __pyx_obj_6PyCaf PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("isConnected", 0); - /* "PyCafe.pyx":1373 + /* "PyCafe.pyx":1372 * @verify_handlepv * def isConnected(self, handlePV): * cdef str _METHOD = "isConnected" # <<<<<<<<<<<<<< @@ -49875,7 +50323,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_130isConnected(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_n_u_isConnected); __pyx_v__METHOD = __pyx_n_u_isConnected; - /* "PyCafe.pyx":1374 + /* "PyCafe.pyx":1373 * def isConnected(self, handlePV): * cdef str _METHOD = "isConnected" * return self._c_cafe.isChannelConnected(handlePV) # <<<<<<<<<<<<<< @@ -49883,14 +50331,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_130isConnected(struct __pyx_obj_6PyCaf * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1374, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_self->_c_cafe->isChannelConnected(__pyx_t_1) != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1374, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1373, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_self->_c_cafe->isChannelConnected(__pyx_t_1) != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1372 + /* "PyCafe.pyx":1371 * * @verify_handlepv * def isConnected(self, handlePV): # <<<<<<<<<<<<<< @@ -49912,7 +50360,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_130isConnected(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":1377 +/* "PyCafe.pyx":1376 * * ############################################################################ * def supplementHandles(self, handleList=None): # <<<<<<<<<<<<<< @@ -49949,7 +50397,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_133supplementHandles(PyObject *__pyx_v } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "supplementHandles") < 0)) __PYX_ERR(3, 1377, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "supplementHandles") < 0)) __PYX_ERR(3, 1376, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -49963,7 +50411,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_133supplementHandles(PyObject *__pyx_v } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("supplementHandles", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1377, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("supplementHandles", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1376, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.supplementHandles", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -49990,7 +50438,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("supplementHandles", 0); - /* "PyCafe.pyx":1378 + /* "PyCafe.pyx":1377 * ############################################################################ * def supplementHandles(self, handleList=None): * cdef str _METHOD = "supplementHandles" # <<<<<<<<<<<<<< @@ -50000,7 +50448,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ __Pyx_INCREF(__pyx_n_u_supplementHandles); __pyx_v__METHOD = __pyx_n_u_supplementHandles; - /* "PyCafe.pyx":1379 + /* "PyCafe.pyx":1378 * def supplementHandles(self, handleList=None): * cdef str _METHOD = "supplementHandles" * if handleList is None: # <<<<<<<<<<<<<< @@ -50011,7 +50459,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1380 + /* "PyCafe.pyx":1379 * cdef str _METHOD = "supplementHandles" * if handleList is None: * with nogil: # <<<<<<<<<<<<<< @@ -50026,7 +50474,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ #endif /*try:*/ { - /* "PyCafe.pyx":1381 + /* "PyCafe.pyx":1380 * if handleList is None: * with nogil: * self._c_cafe.supplementHandles() # <<<<<<<<<<<<<< @@ -50036,7 +50484,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ (void)(__pyx_v_self->_c_cafe->supplementHandles()); } - /* "PyCafe.pyx":1380 + /* "PyCafe.pyx":1379 * cdef str _METHOD = "supplementHandles" * if handleList is None: * with nogil: # <<<<<<<<<<<<<< @@ -50055,7 +50503,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ } } - /* "PyCafe.pyx":1379 + /* "PyCafe.pyx":1378 * def supplementHandles(self, handleList=None): * cdef str _METHOD = "supplementHandles" * if handleList is None: # <<<<<<<<<<<<<< @@ -50065,7 +50513,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":1382 + /* "PyCafe.pyx":1381 * with nogil: * self._c_cafe.supplementHandles() * elif isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -50076,14 +50524,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1384 + /* "PyCafe.pyx":1383 * elif isinstance(handleList, (list)): * #Convert to vector * self.supplementHandlesV(handleList) # <<<<<<<<<<<<<< * elif isinstance(handleList, (int, long, str)): * self.supplementHandle(handleList) */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_supplementHandlesV); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1384, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_supplementHandlesV); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -50097,12 +50545,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_handleList) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_handleList); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1384, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":1382 + /* "PyCafe.pyx":1381 * with nogil: * self._c_cafe.supplementHandles() * elif isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -50112,7 +50560,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":1385 + /* "PyCafe.pyx":1384 * #Convert to vector * self.supplementHandlesV(handleList) * elif isinstance(handleList, (int, long, str)): # <<<<<<<<<<<<<< @@ -50140,14 +50588,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ __pyx_t_6 = (__pyx_t_1 != 0); if (__pyx_t_6) { - /* "PyCafe.pyx":1386 + /* "PyCafe.pyx":1385 * self.supplementHandlesV(handleList) * elif isinstance(handleList, (int, long, str)): * self.supplementHandle(handleList) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_supplementHandle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1386, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_supplementHandle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -50161,12 +50609,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_handleList) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_handleList); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1386, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":1385 + /* "PyCafe.pyx":1384 * #Convert to vector * self.supplementHandlesV(handleList) * elif isinstance(handleList, (int, long, str)): # <<<<<<<<<<<<<< @@ -50176,7 +50624,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":1388 + /* "PyCafe.pyx":1387 * self.supplementHandle(handleList) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -50184,10 +50632,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ * "Input argument, if given, should be if list of \ */ /*else*/ { - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":1389 + /* "PyCafe.pyx":1388 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -50209,7 +50657,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_if_given_should_b}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else @@ -50217,13 +50665,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Input_argument_if_given_should_b}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { - __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -50237,29 +50685,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ __Pyx_INCREF(__pyx_kp_u_Input_argument_if_given_should_b); __Pyx_GIVEREF(__pyx_kp_u_Input_argument_if_given_should_b); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_kp_u_Input_argument_if_given_should_b); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1388 + /* "PyCafe.pyx":1387 * self.supplementHandle(handleList) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "Input argument, if given, should be if list of \ */ - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1388, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 1388, __pyx_L1_error) + __PYX_ERR(3, 1387, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1377 + /* "PyCafe.pyx":1376 * * ############################################################################ * def supplementHandles(self, handleList=None): # <<<<<<<<<<<<<< @@ -50284,7 +50732,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_132supplementHandles(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1396 +/* "PyCafe.pyx":1395 * ############################################################################ * @verify_handlepv * def supplementHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -50312,17 +50760,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_134supplementHandle(struct __pyx_obj_6 unsigned int __pyx_t_1; __Pyx_RefNannySetupContext("supplementHandle", 0); - /* "PyCafe.pyx":1398 + /* "PyCafe.pyx":1397 * def supplementHandle(self, handlePV): * #decorator casts handlePV to int * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * with nogil: * self._c_cafe.supplementHandle(handle) */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1398, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1397, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":1399 + /* "PyCafe.pyx":1398 * #decorator casts handlePV to int * cdef unsigned int handle = handlePV * with nogil: # <<<<<<<<<<<<<< @@ -50337,7 +50785,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_134supplementHandle(struct __pyx_obj_6 #endif /*try:*/ { - /* "PyCafe.pyx":1400 + /* "PyCafe.pyx":1399 * cdef unsigned int handle = handlePV * with nogil: * self._c_cafe.supplementHandle(handle) # <<<<<<<<<<<<<< @@ -50347,7 +50795,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_134supplementHandle(struct __pyx_obj_6 (void)(__pyx_v_self->_c_cafe->supplementHandle(__pyx_v_handle)); } - /* "PyCafe.pyx":1399 + /* "PyCafe.pyx":1398 * #decorator casts handlePV to int * cdef unsigned int handle = handlePV * with nogil: # <<<<<<<<<<<<<< @@ -50366,7 +50814,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_134supplementHandle(struct __pyx_obj_6 } } - /* "PyCafe.pyx":1396 + /* "PyCafe.pyx":1395 * ############################################################################ * @verify_handlepv * def supplementHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -50386,7 +50834,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_134supplementHandle(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":1404 +/* "PyCafe.pyx":1403 * ############################################################################ * * def supplementHandlesV(self, handleList): # <<<<<<<<<<<<<< @@ -50430,7 +50878,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __Pyx_RefNannySetupContext("supplementHandlesV", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":1405 + /* "PyCafe.pyx":1404 * * def supplementHandlesV(self, handleList): * cdef str _METHOD = "supplementHandlesV" # <<<<<<<<<<<<<< @@ -50440,7 +50888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __Pyx_INCREF(__pyx_n_u_supplementHandlesV); __pyx_v__METHOD = __pyx_n_u_supplementHandlesV; - /* "PyCafe.pyx":1406 + /* "PyCafe.pyx":1405 * def supplementHandlesV(self, handleList): * cdef str _METHOD = "supplementHandlesV" * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -50468,28 +50916,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1407 + /* "PyCafe.pyx":1406 * cdef str _METHOD = "supplementHandlesV" * if isinstance(handleList, (str, int, long)): * hl = [] # <<<<<<<<<<<<<< * hl.append(handleList) * #handleList = [] */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1407, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_hl = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1408 + /* "PyCafe.pyx":1407 * if isinstance(handleList, (str, int, long)): * hl = [] * hl.append(handleList) # <<<<<<<<<<<<<< * #handleList = [] * handleList = hl */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_hl, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 1408, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_hl, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 1407, __pyx_L1_error) - /* "PyCafe.pyx":1410 + /* "PyCafe.pyx":1409 * hl.append(handleList) * #handleList = [] * handleList = hl # <<<<<<<<<<<<<< @@ -50499,7 +50947,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __Pyx_INCREF(__pyx_v_hl); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_v_hl); - /* "PyCafe.pyx":1406 + /* "PyCafe.pyx":1405 * def supplementHandlesV(self, handleList): * cdef str _METHOD = "supplementHandlesV" * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -50508,34 +50956,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj */ } - /* "PyCafe.pyx":1411 + /* "PyCafe.pyx":1410 * #handleList = [] * handleList = hl * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1411, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1412 + /* "PyCafe.pyx":1411 * handleList = hl * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 1412, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1412, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 1411, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1411 + /* "PyCafe.pyx":1410 * #handleList = [] * handleList = hl * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -50545,14 +50993,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj goto __pyx_L7; } - /* "PyCafe.pyx":1413 + /* "PyCafe.pyx":1412 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1413, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_3 != 0); @@ -50569,17 +51017,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1414 + /* "PyCafe.pyx":1413 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be a 'list' of of type \ */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":1415 + /* "PyCafe.pyx":1414 * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -50601,7 +51049,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_2}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -50609,13 +51057,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_2}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -50629,27 +51077,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a_2); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a_2); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_a_2); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":1414 + /* "PyCafe.pyx":1413 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be a 'list' of of type \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1414, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 1414, __pyx_L1_error) + __PYX_ERR(3, 1413, __pyx_L1_error) - /* "PyCafe.pyx":1413 + /* "PyCafe.pyx":1412 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -50659,38 +51107,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj } __pyx_L7:; - /* "PyCafe.pyx":1419 + /* "PyCafe.pyx":1418 * if handles, else if PVs")) * cdef vector[unsigned int] v * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * v.push_back(handleList[i]) * */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1419, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1418, __pyx_L1_error) __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":1420 + /* "PyCafe.pyx":1419 * cdef vector[unsigned int] v * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1420, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 1419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1420, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1419, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1420, __pyx_L1_error) + __PYX_ERR(3, 1419, __pyx_L1_error) } } - /* "PyCafe.pyx":1422 + /* "PyCafe.pyx":1421 * v.push_back(handleList[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -50705,7 +51153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj #endif /*try:*/ { - /* "PyCafe.pyx":1423 + /* "PyCafe.pyx":1422 * * with nogil: * self._c_cafe.supplementHandlesV(v) # <<<<<<<<<<<<<< @@ -50715,7 +51163,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj (void)(__pyx_v_self->_c_cafe->supplementHandlesV(__pyx_v_v)); } - /* "PyCafe.pyx":1422 + /* "PyCafe.pyx":1421 * v.push_back(handleList[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -50734,7 +51182,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj } } - /* "PyCafe.pyx":1404 + /* "PyCafe.pyx":1403 * ############################################################################ * * def supplementHandlesV(self, handleList): # <<<<<<<<<<<<<< @@ -50761,7 +51209,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_136supplementHandlesV(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":1427 +/* "PyCafe.pyx":1426 * ############################################################################ * * def printDisconnected(self): # <<<<<<<<<<<<<< @@ -50787,7 +51235,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_138printDisconnected(struct __pyx_obj_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("printDisconnected", 0); - /* "PyCafe.pyx":1428 + /* "PyCafe.pyx":1427 * * def printDisconnected(self): * self._c_cafe.printDisconnectedHandles() # <<<<<<<<<<<<<< @@ -50796,7 +51244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_138printDisconnected(struct __pyx_obj_ */ (void)(__pyx_v_self->_c_cafe->printDisconnectedHandles()); - /* "PyCafe.pyx":1427 + /* "PyCafe.pyx":1426 * ############################################################################ * * def printDisconnected(self): # <<<<<<<<<<<<<< @@ -50811,7 +51259,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_138printDisconnected(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1430 +/* "PyCafe.pyx":1429 * self._c_cafe.printDisconnectedHandles() * * def printDisconnectedHandles(self): # <<<<<<<<<<<<<< @@ -50837,7 +51285,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_140printDisconnectedHandles(struct __p __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("printDisconnectedHandles", 0); - /* "PyCafe.pyx":1431 + /* "PyCafe.pyx":1430 * * def printDisconnectedHandles(self): * self._c_cafe.printDisconnectedHandles() # <<<<<<<<<<<<<< @@ -50846,7 +51294,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_140printDisconnectedHandles(struct __p */ (void)(__pyx_v_self->_c_cafe->printDisconnectedHandles()); - /* "PyCafe.pyx":1430 + /* "PyCafe.pyx":1429 * self._c_cafe.printDisconnectedHandles() * * def printDisconnectedHandles(self): # <<<<<<<<<<<<<< @@ -50861,7 +51309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_140printDisconnectedHandles(struct __p return __pyx_r; } -/* "PyCafe.pyx":1434 +/* "PyCafe.pyx":1433 * * ############################################################################ * def printHandles(self): # <<<<<<<<<<<<<< @@ -50887,7 +51335,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_142printHandles(struct __pyx_obj_6PyCa __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("printHandles", 0); - /* "PyCafe.pyx":1435 + /* "PyCafe.pyx":1434 * ############################################################################ * def printHandles(self): * self._c_cafe.printHandles() # <<<<<<<<<<<<<< @@ -50896,7 +51344,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_142printHandles(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->_c_cafe->printHandles()); - /* "PyCafe.pyx":1434 + /* "PyCafe.pyx":1433 * * ############################################################################ * def printHandles(self): # <<<<<<<<<<<<<< @@ -50911,7 +51359,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_142printHandles(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1439 +/* "PyCafe.pyx":1438 * ############################################################################ * @verify_handlepv * def printHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -50938,17 +51386,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_144printHandle(struct __pyx_obj_6PyCaf unsigned int __pyx_t_1; __Pyx_RefNannySetupContext("printHandle", 0); - /* "PyCafe.pyx":1440 + /* "PyCafe.pyx":1439 * @verify_handlepv * def printHandle(self, handlePV): * self._c_cafe.printHandle(handlePV) # <<<<<<<<<<<<<< * * ############################################################################ */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1440, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1439, __pyx_L1_error) (void)(__pyx_v_self->_c_cafe->printHandle(__pyx_t_1)); - /* "PyCafe.pyx":1439 + /* "PyCafe.pyx":1438 * ############################################################################ * @verify_handlepv * def printHandle(self, handlePV): # <<<<<<<<<<<<<< @@ -50968,7 +51416,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_144printHandle(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":1445 +/* "PyCafe.pyx":1444 * * ############################################################################ * def printHandlesV(self, list handleList): # <<<<<<<<<<<<<< @@ -50982,7 +51430,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_147printHandlesV(PyObject *__pyx_v_sel PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("printHandlesV (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1445, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 1444, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_146printHandlesV(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_handleList)); /* function exit code */ @@ -51015,7 +51463,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC __Pyx_RefNannySetupContext("printHandlesV", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":1446 + /* "PyCafe.pyx":1445 * ############################################################################ * def printHandlesV(self, list handleList): * cdef str _METHOD = "printHandlesV" # <<<<<<<<<<<<<< @@ -51025,7 +51473,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_printHandlesV); __pyx_v__METHOD = __pyx_n_u_printHandlesV; - /* "PyCafe.pyx":1447 + /* "PyCafe.pyx":1446 * def printHandlesV(self, list handleList): * cdef str _METHOD = "printHandlesV" * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -51034,29 +51482,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1447, __pyx_L1_error) + __PYX_ERR(3, 1446, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1447, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyUnicode_Check(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1448 + /* "PyCafe.pyx":1447 * cdef str _METHOD = "printHandlesV" * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( */ - __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1448, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(3, 1448, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(3, 1447, __pyx_L1_error) __Pyx_DECREF_SET(__pyx_v_handleList, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "PyCafe.pyx":1447 + /* "PyCafe.pyx":1446 * def printHandlesV(self, list handleList): * cdef str _METHOD = "printHandlesV" * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -51066,7 +51514,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":1449 + /* "PyCafe.pyx":1448 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -51075,9 +51523,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1449, __pyx_L1_error) + __PYX_ERR(3, 1448, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1449, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_Check(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 != 0); @@ -51094,17 +51542,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1450 + /* "PyCafe.pyx":1449 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be a 'list' of of type \ */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":1451 + /* "PyCafe.pyx":1450 * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -51126,7 +51574,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_3}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -51134,13 +51582,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_3}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -51154,27 +51602,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a_3); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_kp_u_First_input_argument_should_be_a_3); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":1450 + /* "PyCafe.pyx":1449 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be a 'list' of of type \ */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1450, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 1450, __pyx_L1_error) + __PYX_ERR(3, 1449, __pyx_L1_error) - /* "PyCafe.pyx":1449 + /* "PyCafe.pyx":1448 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -51184,7 +51632,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC } __pyx_L3:; - /* "PyCafe.pyx":1457 + /* "PyCafe.pyx":1456 * # Do this only to avoid compiler warnings * cdef vector[unsigned int] v * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -51193,14 +51641,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1457, __pyx_L1_error) + __PYX_ERR(3, 1456, __pyx_L1_error) } - __pyx_t_9 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1457, __pyx_L1_error) + __pyx_t_9 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1456, __pyx_L1_error) __pyx_t_10 = __pyx_t_9; for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; - /* "PyCafe.pyx":1458 + /* "PyCafe.pyx":1457 * cdef vector[unsigned int] v * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< @@ -51209,21 +51657,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1458, __pyx_L1_error) + __PYX_ERR(3, 1457, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1458, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1458, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1457, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; try { __pyx_v_v.push_back(__pyx_t_12); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 1458, __pyx_L1_error) + __PYX_ERR(3, 1457, __pyx_L1_error) } } - /* "PyCafe.pyx":1459 + /* "PyCafe.pyx":1458 * for i in range(0, len(handleList)): * v.push_back(handleList[i]) * self.hh.printHandlesV(v) # <<<<<<<<<<<<<< @@ -51232,7 +51680,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->hh.printHandlesV(__pyx_v_v)); - /* "PyCafe.pyx":1460 + /* "PyCafe.pyx":1459 * v.push_back(handleList[i]) * self.hh.printHandlesV(v) * return # <<<<<<<<<<<<<< @@ -51243,7 +51691,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":1445 + /* "PyCafe.pyx":1444 * * ############################################################################ * def printHandlesV(self, list handleList): # <<<<<<<<<<<<<< @@ -51269,7 +51717,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_146printHandlesV(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":1464 +/* "PyCafe.pyx":1463 * * ############################################################################ * def getDisconnectedHandles(self): # <<<<<<<<<<<<<< @@ -51300,7 +51748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_148getDisconnectedHandles(struct __pyx PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("getDisconnectedHandles", 0); - /* "PyCafe.pyx":1467 + /* "PyCafe.pyx":1466 * cdef vector[unsigned int] dhV * cdef vector[string] pvV * self.hh.getDisconnectedHandles(dhV, pvV) # <<<<<<<<<<<<<< @@ -51309,7 +51757,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_148getDisconnectedHandles(struct __pyx */ (void)(__pyx_v_self->hh.getDisconnectedHandles(__pyx_v_dhV, __pyx_v_pvV)); - /* "PyCafe.pyx":1468 + /* "PyCafe.pyx":1467 * cdef vector[string] pvV * self.hh.getDisconnectedHandles(dhV, pvV) * return dhV, pvV # <<<<<<<<<<<<<< @@ -51317,11 +51765,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_148getDisconnectedHandles(struct __pyx * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1468, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1468, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1468, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); @@ -51333,7 +51781,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_148getDisconnectedHandles(struct __pyx __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1464 + /* "PyCafe.pyx":1463 * * ############################################################################ * def getDisconnectedHandles(self): # <<<<<<<<<<<<<< @@ -51356,7 +51804,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_148getDisconnectedHandles(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":1473 +/* "PyCafe.pyx":1472 * ############################################################################ * * def getHandles(self, asDict=False): # <<<<<<<<<<<<<< @@ -51393,7 +51841,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_151getHandles(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getHandles") < 0)) __PYX_ERR(3, 1473, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getHandles") < 0)) __PYX_ERR(3, 1472, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -51407,7 +51855,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_151getHandles(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getHandles", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1473, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getHandles", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1472, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getHandles", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -51431,7 +51879,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getHandles", 0); - /* "PyCafe.pyx":1476 + /* "PyCafe.pyx":1475 * cdef vector[unsigned int] dhV * cdef vector[string] pvV * self.hh.getHandles(dhV, pvV) # <<<<<<<<<<<<<< @@ -51440,17 +51888,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe */ (void)(__pyx_v_self->hh.getHandles(__pyx_v_dhV, __pyx_v_pvV)); - /* "PyCafe.pyx":1477 + /* "PyCafe.pyx":1476 * cdef vector[string] pvV * self.hh.getHandles(dhV, pvV) * if asDict: # <<<<<<<<<<<<<< * return dict(zip(dhV, pvV)) * else: */ - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_asDict); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 1477, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_asDict); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 1476, __pyx_L1_error) if (__pyx_t_1) { - /* "PyCafe.pyx":1478 + /* "PyCafe.pyx":1477 * self.hh.getHandles(dhV, pvV) * if asDict: * return dict(zip(dhV, pvV)) # <<<<<<<<<<<<<< @@ -51458,11 +51906,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe * return dhV, pvV */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1478, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1478, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1478, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); @@ -51470,17 +51918,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); __pyx_t_2 = 0; __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1478, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1478, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1477 + /* "PyCafe.pyx":1476 * cdef vector[string] pvV * self.hh.getHandles(dhV, pvV) * if asDict: # <<<<<<<<<<<<<< @@ -51490,7 +51938,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":1480 + /* "PyCafe.pyx":1479 * return dict(zip(dhV, pvV)) * else: * return dhV, pvV # <<<<<<<<<<<<<< @@ -51499,11 +51947,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe */ /*else*/ { __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1480, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1480, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1480, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4); @@ -51517,7 +51965,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe } __pyx_L3:; - /* "PyCafe.pyx":1473 + /* "PyCafe.pyx":1472 * ############################################################################ * * def getHandles(self, asDict=False): # <<<<<<<<<<<<<< @@ -51540,7 +51988,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_150getHandles(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":1485 +/* "PyCafe.pyx":1484 * ############################################################################ * * def getHandleStates(self): # <<<<<<<<<<<<<< @@ -51573,7 +52021,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_152getHandleStates(struct __pyx_obj_6P PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getHandleStates", 0); - /* "PyCafe.pyx":1489 + /* "PyCafe.pyx":1488 * cdef vector[string] pvV * cdef vector[unsigned short] stateV * self.hh.getHandleStates(dhV, pvV, stateV) # <<<<<<<<<<<<<< @@ -51582,7 +52030,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_152getHandleStates(struct __pyx_obj_6P */ (void)(__pyx_v_self->hh.getHandleStates(__pyx_v_dhV, __pyx_v_pvV, __pyx_v_stateV)); - /* "PyCafe.pyx":1490 + /* "PyCafe.pyx":1489 * cdef vector[unsigned short] stateV * self.hh.getHandleStates(dhV, pvV, stateV) * return dhV, pvV, stateV # <<<<<<<<<<<<<< @@ -51590,13 +52038,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_152getHandleStates(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1490, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_dhV); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1490, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __pyx_convert_vector_to_py_unsigned_short(__pyx_v_stateV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1490, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_unsigned_short(__pyx_v_stateV); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1490, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); @@ -51611,7 +52059,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_152getHandleStates(struct __pyx_obj_6P __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1485 + /* "PyCafe.pyx":1484 * ############################################################################ * * def getHandleStates(self): # <<<<<<<<<<<<<< @@ -51635,7 +52083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_152getHandleStates(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":1494 +/* "PyCafe.pyx":1493 * * ############################################################################ * def getStatusSeverity(self, int statusCode): # <<<<<<<<<<<<<< @@ -51651,7 +52099,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_155getStatusSeverity(PyObject *__pyx_v __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatusSeverity (wrapper)", 0); assert(__pyx_arg_statusCode); { - __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1494, __pyx_L3_error) + __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1493, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -51672,7 +52120,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_154getStatusSeverity(struct __pyx_obj_ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getStatusSeverity", 0); - /* "PyCafe.pyx":1495 + /* "PyCafe.pyx":1494 * ############################################################################ * def getStatusSeverity(self, int statusCode): * return self._c_cafe.getCafeStatusSeverity().message(statusCode) # <<<<<<<<<<<<<< @@ -51680,13 +52128,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_154getStatusSeverity(struct __pyx_obj_ * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->getCafeStatusSeverity().message(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1495, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->_c_cafe->getCafeStatusSeverity().message(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1494 + /* "PyCafe.pyx":1493 * * ############################################################################ * def getStatusSeverity(self, int statusCode): # <<<<<<<<<<<<<< @@ -51707,7 +52155,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_154getStatusSeverity(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1498 +/* "PyCafe.pyx":1497 * * ############################################################################ * def getStatusCodeAsText(self, int statusCode): # <<<<<<<<<<<<<< @@ -51723,7 +52171,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_157getStatusCodeAsText(PyObject *__pyx __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatusCodeAsText (wrapper)", 0); assert(__pyx_arg_statusCode); { - __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1498, __pyx_L3_error) + __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1497, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -51744,7 +52192,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_156getStatusCodeAsText(struct __pyx_ob PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getStatusCodeAsText", 0); - /* "PyCafe.pyx":1499 + /* "PyCafe.pyx":1498 * ############################################################################ * def getStatusCodeAsText(self, int statusCode): * return self.cs.code(statusCode) # <<<<<<<<<<<<<< @@ -51752,13 +52200,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_156getStatusCodeAsText(struct __pyx_ob * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1499, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1498 + /* "PyCafe.pyx":1497 * * ############################################################################ * def getStatusCodeAsText(self, int statusCode): # <<<<<<<<<<<<<< @@ -51779,7 +52227,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_156getStatusCodeAsText(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1502 +/* "PyCafe.pyx":1501 * * ############################################################################ * def getStatusCodeAsString(self, int statusCode): # <<<<<<<<<<<<<< @@ -51795,7 +52243,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_159getStatusCodeAsString(PyObject *__p __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatusCodeAsString (wrapper)", 0); assert(__pyx_arg_statusCode); { - __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1502, __pyx_L3_error) + __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1501, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -51816,7 +52264,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_158getStatusCodeAsString(struct __pyx_ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getStatusCodeAsString", 0); - /* "PyCafe.pyx":1503 + /* "PyCafe.pyx":1502 * ############################################################################ * def getStatusCodeAsString(self, int statusCode): * return self.cs.code(statusCode) # <<<<<<<<<<<<<< @@ -51824,13 +52272,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_158getStatusCodeAsString(struct __pyx_ * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1503, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1502 + /* "PyCafe.pyx":1501 * * ############################################################################ * def getStatusCodeAsString(self, int statusCode): # <<<<<<<<<<<<<< @@ -51851,7 +52299,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_158getStatusCodeAsString(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":1506 +/* "PyCafe.pyx":1505 * * ############################################################################ * def getStatusInfo(self, int statusCode): # <<<<<<<<<<<<<< @@ -51867,7 +52315,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_161getStatusInfo(PyObject *__pyx_v_sel __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatusInfo (wrapper)", 0); assert(__pyx_arg_statusCode); { - __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1506, __pyx_L3_error) + __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1505, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -51888,7 +52336,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_160getStatusInfo(struct __pyx_obj_6PyC PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getStatusInfo", 0); - /* "PyCafe.pyx":1507 + /* "PyCafe.pyx":1506 * ############################################################################ * def getStatusInfo(self, int statusCode): * return self.cs.info(statusCode) # <<<<<<<<<<<<<< @@ -51896,13 +52344,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_160getStatusInfo(struct __pyx_obj_6PyC * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1507, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1506 + /* "PyCafe.pyx":1505 * * ############################################################################ * def getStatusInfo(self, int statusCode): # <<<<<<<<<<<<<< @@ -51923,7 +52371,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_160getStatusInfo(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":1510 +/* "PyCafe.pyx":1509 * * ############################################################################ * def getStatusMsg(self, int statusCode): # <<<<<<<<<<<<<< @@ -51939,7 +52387,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_163getStatusMsg(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getStatusMsg (wrapper)", 0); assert(__pyx_arg_statusCode); { - __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1510, __pyx_L3_error) + __pyx_v_statusCode = __Pyx_PyInt_As_int(__pyx_arg_statusCode); if (unlikely((__pyx_v_statusCode == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1509, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -51960,7 +52408,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_162getStatusMsg(struct __pyx_obj_6PyCa PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getStatusMsg", 0); - /* "PyCafe.pyx":1511 + /* "PyCafe.pyx":1510 * ############################################################################ * def getStatusMsg(self, int statusCode): * return self.cs.message(statusCode) # <<<<<<<<<<<<<< @@ -51968,13 +52416,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_162getStatusMsg(struct __pyx_obj_6PyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.message(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1511, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.message(__pyx_v_statusCode)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1510 + /* "PyCafe.pyx":1509 * * ############################################################################ * def getStatusMsg(self, int statusCode): # <<<<<<<<<<<<<< @@ -51995,7 +52443,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_162getStatusMsg(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1515 +/* "PyCafe.pyx":1514 * ############################################################################ * @verify_handlepv * def getStatus(self, handlePV): # <<<<<<<<<<<<<< @@ -52023,7 +52471,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_164getStatus(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getStatus", 0); - /* "PyCafe.pyx":1516 + /* "PyCafe.pyx":1515 * @verify_handlepv * def getStatus(self, handlePV): * return self.hh.getStatus(handlePV) # <<<<<<<<<<<<<< @@ -52031,14 +52479,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_164getStatus(struct __pyx_obj_6PyCafe_ * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1516, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getStatus(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1516, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1515, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getStatus(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1515 + /* "PyCafe.pyx":1514 * ############################################################################ * @verify_handlepv * def getStatus(self, handlePV): # <<<<<<<<<<<<<< @@ -52059,7 +52507,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_164getStatus(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":1519 +/* "PyCafe.pyx":1518 * * ############################################################################ * def getChannelDevice(self, handlePV): # <<<<<<<<<<<<<< @@ -52102,7 +52550,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 Py_ssize_t __pyx_t_12; __Pyx_RefNannySetupContext("getChannelDevice", 0); - /* "PyCafe.pyx":1520 + /* "PyCafe.pyx":1519 * ############################################################################ * def getChannelDevice(self, handlePV): * cdef str _METHOD = "getChannelDevice" # <<<<<<<<<<<<<< @@ -52112,20 +52560,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __Pyx_INCREF(__pyx_n_u_getChannelDevice); __pyx_v__METHOD = __pyx_n_u_getChannelDevice; - /* "PyCafe.pyx":1521 + /* "PyCafe.pyx":1520 * def getChannelDevice(self, handlePV): * cdef str _METHOD = "getChannelDevice" * cdef string valString = str("") # <<<<<<<<<<<<<< * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1521, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1521, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1522 + /* "PyCafe.pyx":1521 * cdef str _METHOD = "getChannelDevice" * cdef string valString = str("") * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -52134,7 +52582,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1523 + /* "PyCafe.pyx":1522 * cdef string valString = str("") * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -52155,17 +52603,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1524 + /* "PyCafe.pyx":1523 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(pv=handlePV, force=False) */ - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1524, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1523, __pyx_L1_error) __pyx_v_handle = __pyx_t_6; - /* "PyCafe.pyx":1523 + /* "PyCafe.pyx":1522 * cdef string valString = str("") * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -52175,7 +52623,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":1525 + /* "PyCafe.pyx":1524 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52186,23 +52634,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1526 + /* "PyCafe.pyx":1525 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(pv=handlePV, force=False) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1526, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1525, __pyx_L1_error) __pyx_t_7.__pyx_n = 1; __pyx_t_7.force = 0; - __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1526, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1526, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1525, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handle = __pyx_t_6; - /* "PyCafe.pyx":1525 + /* "PyCafe.pyx":1524 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52212,7 +52660,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":1528 + /* "PyCafe.pyx":1527 * handle = self.checkForHandle(pv=handlePV, force=False) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -52220,10 +52668,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - /* "PyCafe.pyx":1529 + /* "PyCafe.pyx":1528 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -52245,7 +52693,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -52253,13 +52701,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -52273,29 +52721,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_10, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":1528 + /* "PyCafe.pyx":1527 * handle = self.checkForHandle(pv=handlePV, force=False) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1528, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __PYX_ERR(3, 1528, __pyx_L1_error) + __PYX_ERR(3, 1527, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1532 + /* "PyCafe.pyx":1531 * "First input argument, should be of type if handle, \ * else if PV")) * if handle == 0: # <<<<<<<<<<<<<< @@ -52305,20 +52753,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __pyx_t_3 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1533 + /* "PyCafe.pyx":1532 * else if PV")) * if handle == 0: * valString = str("") # <<<<<<<<<<<<<< * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") */ - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1533, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1533, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1532, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1534 + /* "PyCafe.pyx":1533 * if handle == 0: * valString = str("") * if isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52329,14 +52777,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1535 + /* "PyCafe.pyx":1534 * valString = str("") * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") # <<<<<<<<<<<<<< * if (len(delSplit) > 1): * valString = str(delSplit[0]) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handlePV, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1535, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handlePV, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { @@ -52350,40 +52798,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 } __pyx_t_8 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_11, __pyx_kp_u__42) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_u__42); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1535, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_delSplit = __pyx_t_8; __pyx_t_8 = 0; - /* "PyCafe.pyx":1536 + /* "PyCafe.pyx":1535 * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") * if (len(delSplit) > 1): # <<<<<<<<<<<<<< * valString = str(delSplit[0]) * else: */ - __pyx_t_12 = PyObject_Length(__pyx_v_delSplit); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1536, __pyx_L1_error) + __pyx_t_12 = PyObject_Length(__pyx_v_delSplit); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1535, __pyx_L1_error) __pyx_t_4 = ((__pyx_t_12 > 1) != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1537 + /* "PyCafe.pyx":1536 * delSplit = handlePV.split(":") * if (len(delSplit) > 1): * valString = str(delSplit[0]) # <<<<<<<<<<<<<< * else: * statusLocal = self.hh.getChannelDevice(handle, valString) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_delSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1537, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_delSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1537, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1537, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1536, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1536 + /* "PyCafe.pyx":1535 * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") * if (len(delSplit) > 1): # <<<<<<<<<<<<<< @@ -52392,7 +52840,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":1534 + /* "PyCafe.pyx":1533 * if handle == 0: * valString = str("") * if isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52401,7 +52849,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":1532 + /* "PyCafe.pyx":1531 * "First input argument, should be of type if handle, \ * else if PV")) * if handle == 0: # <<<<<<<<<<<<<< @@ -52411,7 +52859,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 goto __pyx_L6; } - /* "PyCafe.pyx":1539 + /* "PyCafe.pyx":1538 * valString = str(delSplit[0]) * else: * statusLocal = self.hh.getChannelDevice(handle, valString) # <<<<<<<<<<<<<< @@ -52423,7 +52871,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 } __pyx_L6:; - /* "PyCafe.pyx":1540 + /* "PyCafe.pyx":1539 * else: * statusLocal = self.hh.getChannelDevice(handle, valString) * return valString # <<<<<<<<<<<<<< @@ -52431,13 +52879,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1540, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1519 + /* "PyCafe.pyx":1518 * * ############################################################################ * def getChannelDevice(self, handlePV): # <<<<<<<<<<<<<< @@ -52463,7 +52911,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_166getChannelDevice(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":1543 +/* "PyCafe.pyx":1542 * * ############################################################################ * def getChannelAttribute(self, handlePV): # <<<<<<<<<<<<<< @@ -52506,7 +52954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob Py_ssize_t __pyx_t_12; __Pyx_RefNannySetupContext("getChannelAttribute", 0); - /* "PyCafe.pyx":1544 + /* "PyCafe.pyx":1543 * ############################################################################ * def getChannelAttribute(self, handlePV): * cdef str _METHOD = "getChannelAttribute" # <<<<<<<<<<<<<< @@ -52516,20 +52964,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __Pyx_INCREF(__pyx_n_u_getChannelAttribute); __pyx_v__METHOD = __pyx_n_u_getChannelAttribute; - /* "PyCafe.pyx":1545 + /* "PyCafe.pyx":1544 * def getChannelAttribute(self, handlePV): * cdef str _METHOD = "getChannelAttribute" * cdef string valString = str("") # <<<<<<<<<<<<<< * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1545, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1545, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1544, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1546 + /* "PyCafe.pyx":1545 * cdef str _METHOD = "getChannelAttribute" * cdef string valString = str("") * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -52538,7 +52986,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1547 + /* "PyCafe.pyx":1546 * cdef string valString = str("") * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -52559,17 +53007,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1548 + /* "PyCafe.pyx":1547 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(pv=handlePV, force=False) */ - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1548, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1547, __pyx_L1_error) __pyx_v_handle = __pyx_t_6; - /* "PyCafe.pyx":1547 + /* "PyCafe.pyx":1546 * cdef string valString = str("") * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -52579,7 +53027,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":1549 + /* "PyCafe.pyx":1548 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52590,23 +53038,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1550 + /* "PyCafe.pyx":1549 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(pv=handlePV, force=False) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1550, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1549, __pyx_L1_error) __pyx_t_7.__pyx_n = 1; __pyx_t_7.force = 0; - __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1550, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1550, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1549, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handle = __pyx_t_6; - /* "PyCafe.pyx":1549 + /* "PyCafe.pyx":1548 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52616,7 +53064,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":1552 + /* "PyCafe.pyx":1551 * handle = self.checkForHandle(pv=handlePV, force=False) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -52624,10 +53072,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob * "First input argument, should be of type if handle, \ */ /*else*/ { - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - /* "PyCafe.pyx":1553 + /* "PyCafe.pyx":1552 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -52649,7 +53097,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -52657,13 +53105,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_3}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_10, 3+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3+__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -52677,29 +53125,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_3); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_3); PyTuple_SET_ITEM(__pyx_t_11, 2+__pyx_t_10, __pyx_kp_u_First_input_argument_should_be_o_3); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":1552 + /* "PyCafe.pyx":1551 * handle = self.checkForHandle(pv=handlePV, force=False) * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument, should be of type if handle, \ */ - __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1552, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __PYX_ERR(3, 1552, __pyx_L1_error) + __PYX_ERR(3, 1551, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1556 + /* "PyCafe.pyx":1555 * "First input argument, should be of type if handle, \ * else if PV")) * if handle == 0: # <<<<<<<<<<<<<< @@ -52709,20 +53157,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __pyx_t_3 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1557 + /* "PyCafe.pyx":1556 * else if PV")) * if handle == 0: * valString = str("") # <<<<<<<<<<<<<< * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") */ - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1557, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1557, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1556, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1558 + /* "PyCafe.pyx":1557 * if handle == 0: * valString = str("") * if isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52733,14 +53181,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1559 + /* "PyCafe.pyx":1558 * valString = str("") * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") # <<<<<<<<<<<<<< * if (len(delSplit) > 1): * valString = str(delSplit[0]) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handlePV, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1559, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handlePV, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { @@ -52754,40 +53202,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob } __pyx_t_8 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_11, __pyx_kp_u__42) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_u__42); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1559, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_delSplit = __pyx_t_8; __pyx_t_8 = 0; - /* "PyCafe.pyx":1560 + /* "PyCafe.pyx":1559 * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") * if (len(delSplit) > 1): # <<<<<<<<<<<<<< * valString = str(delSplit[0]) * else: */ - __pyx_t_12 = PyObject_Length(__pyx_v_delSplit); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1560, __pyx_L1_error) + __pyx_t_12 = PyObject_Length(__pyx_v_delSplit); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1559, __pyx_L1_error) __pyx_t_4 = ((__pyx_t_12 > 1) != 0); if (__pyx_t_4) { - /* "PyCafe.pyx":1561 + /* "PyCafe.pyx":1560 * delSplit = handlePV.split(":") * if (len(delSplit) > 1): * valString = str(delSplit[0]) # <<<<<<<<<<<<<< * else: * statusLocal = self.hh.getChannelAttribute(handle, valString) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_delSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1561, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_delSplit, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1561, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1561, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1560, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_valString = __pyx_t_2; - /* "PyCafe.pyx":1560 + /* "PyCafe.pyx":1559 * if isinstance(handlePV, (str)): * delSplit = handlePV.split(":") * if (len(delSplit) > 1): # <<<<<<<<<<<<<< @@ -52796,7 +53244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob */ } - /* "PyCafe.pyx":1558 + /* "PyCafe.pyx":1557 * if handle == 0: * valString = str("") * if isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -52805,7 +53253,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob */ } - /* "PyCafe.pyx":1556 + /* "PyCafe.pyx":1555 * "First input argument, should be of type if handle, \ * else if PV")) * if handle == 0: # <<<<<<<<<<<<<< @@ -52815,7 +53263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob goto __pyx_L6; } - /* "PyCafe.pyx":1563 + /* "PyCafe.pyx":1562 * valString = str(delSplit[0]) * else: * statusLocal = self.hh.getChannelAttribute(handle, valString) # <<<<<<<<<<<<<< @@ -52827,7 +53275,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob } __pyx_L6:; - /* "PyCafe.pyx":1564 + /* "PyCafe.pyx":1563 * else: * statusLocal = self.hh.getChannelAttribute(handle, valString) * return valString # <<<<<<<<<<<<<< @@ -52835,13 +53283,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1564, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1543 + /* "PyCafe.pyx":1542 * * ############################################################################ * def getChannelAttribute(self, handlePV): # <<<<<<<<<<<<<< @@ -52867,7 +53315,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_168getChannelAttribute(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1569 +/* "PyCafe.pyx":1568 * * @verify_handlepv * def getDescription(self, handlePV): # <<<<<<<<<<<<<< @@ -52898,17 +53346,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("getDescription", 0); - /* "PyCafe.pyx":1570 + /* "PyCafe.pyx":1569 * @verify_handlepv * def getDescription(self, handlePV): * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * if not self.hh.hasDescription(handle): * with nogil: */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1570, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1569, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":1571 + /* "PyCafe.pyx":1570 * def getDescription(self, handlePV): * cdef unsigned int handle = handlePV * if not self.hh.hasDescription(handle): # <<<<<<<<<<<<<< @@ -52918,7 +53366,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_v_self->hh.hasDescription(__pyx_v_handle) != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1572 + /* "PyCafe.pyx":1571 * cdef unsigned int handle = handlePV * if not self.hh.hasDescription(handle): * with nogil: # <<<<<<<<<<<<<< @@ -52933,7 +53381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":1573 + /* "PyCafe.pyx":1572 * if not self.hh.hasDescription(handle): * with nogil: * self._c_cafe.supplementHandle(handle) # <<<<<<<<<<<<<< @@ -52943,7 +53391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py (void)(__pyx_v_self->_c_cafe->supplementHandle(__pyx_v_handle)); } - /* "PyCafe.pyx":1572 + /* "PyCafe.pyx":1571 * cdef unsigned int handle = handlePV * if not self.hh.hasDescription(handle): * with nogil: # <<<<<<<<<<<<<< @@ -52962,7 +53410,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":1571 + /* "PyCafe.pyx":1570 * def getDescription(self, handlePV): * cdef unsigned int handle = handlePV * if not self.hh.hasDescription(handle): # <<<<<<<<<<<<<< @@ -52971,7 +53419,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":1575 + /* "PyCafe.pyx":1574 * self._c_cafe.supplementHandle(handle) * cdef string valString * self.hh.getDescription(handle, valString) # <<<<<<<<<<<<<< @@ -52980,7 +53428,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py */ (void)(__pyx_v_self->hh.getDescription(__pyx_v_handle, __pyx_v_valString)); - /* "PyCafe.pyx":1576 + /* "PyCafe.pyx":1575 * cdef string valString * self.hh.getDescription(handle, valString) * return valString # <<<<<<<<<<<<<< @@ -52988,13 +53436,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1576, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1569 + /* "PyCafe.pyx":1568 * * @verify_handlepv * def getDescription(self, handlePV): # <<<<<<<<<<<<<< @@ -53015,7 +53463,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_170getDescription(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1580 +/* "PyCafe.pyx":1579 * ############################################################################ * @verify_handlepv * def hasDescription(self, handlePV): # <<<<<<<<<<<<<< @@ -53043,7 +53491,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_172hasDescription(struct __pyx_obj_6Py PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("hasDescription", 0); - /* "PyCafe.pyx":1581 + /* "PyCafe.pyx":1580 * @verify_handlepv * def hasDescription(self, handlePV): * return self.hh.hasDescription(handlePV) # <<<<<<<<<<<<<< @@ -53051,14 +53499,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_172hasDescription(struct __pyx_obj_6Py * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1581, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->hh.hasDescription(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1581, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1580, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->hh.hasDescription(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1580 + /* "PyCafe.pyx":1579 * ############################################################################ * @verify_handlepv * def hasDescription(self, handlePV): # <<<<<<<<<<<<<< @@ -53079,7 +53527,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_172hasDescription(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1585 +/* "PyCafe.pyx":1584 * ############################################################################ * @verify_handlepv * def getUnits(self, handlePV): # <<<<<<<<<<<<<< @@ -53111,24 +53559,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_174getUnits(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("getUnits", 0); - /* "PyCafe.pyx":1587 + /* "PyCafe.pyx":1586 * def getUnits(self, handlePV): * cdef string valString * self.hh.getUnits(handlePV, valString) # <<<<<<<<<<<<<< * cdef bytes bVal * bVal = valString */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1587, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1586, __pyx_L1_error) (void)(__pyx_v_self->hh.getUnits(__pyx_t_1, __pyx_v_valString)); - /* "PyCafe.pyx":1589 + /* "PyCafe.pyx":1588 * self.hh.getUnits(handlePV, valString) * cdef bytes bVal * bVal = valString # <<<<<<<<<<<<<< * unicode_units = (bVal).decode('latin-1') * return unicode_units */ - __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1589, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_valString); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); @@ -53136,7 +53584,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_174getUnits(struct __pyx_obj_6PyCafe_C __pyx_v_bVal = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":1590 + /* "PyCafe.pyx":1589 * cdef bytes bVal * bVal = valString * unicode_units = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -53145,14 +53593,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_174getUnits(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 1590, __pyx_L1_error) + __PYX_ERR(3, 1589, __pyx_L1_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1590, __pyx_L1_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_unicode_units = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":1591 + /* "PyCafe.pyx":1590 * bVal = valString * unicode_units = (bVal).decode('latin-1') * return unicode_units # <<<<<<<<<<<<<< @@ -53164,7 +53612,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_174getUnits(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_v_unicode_units; goto __pyx_L0; - /* "PyCafe.pyx":1585 + /* "PyCafe.pyx":1584 * ############################################################################ * @verify_handlepv * def getUnits(self, handlePV): # <<<<<<<<<<<<<< @@ -53188,7 +53636,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_174getUnits(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":1595 +/* "PyCafe.pyx":1594 * ############################################################################ * @verify_handlepv * def getPrecision(self, handlePV): # <<<<<<<<<<<<<< @@ -53217,7 +53665,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_176getPrecision(struct __pyx_obj_6PyCa PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getPrecision", 0); - /* "PyCafe.pyx":1596 + /* "PyCafe.pyx":1595 * @verify_handlepv * def getPrecision(self, handlePV): * cdef short precision = 0 # <<<<<<<<<<<<<< @@ -53226,17 +53674,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_176getPrecision(struct __pyx_obj_6PyCa */ __pyx_v_precision = 0; - /* "PyCafe.pyx":1597 + /* "PyCafe.pyx":1596 * def getPrecision(self, handlePV): * cdef short precision = 0 * self.hh.getPrecision(handlePV, precision) # <<<<<<<<<<<<<< * return precision * */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1597, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1596, __pyx_L1_error) (void)(__pyx_v_self->hh.getPrecision(__pyx_t_1, __pyx_v_precision)); - /* "PyCafe.pyx":1598 + /* "PyCafe.pyx":1597 * cdef short precision = 0 * self.hh.getPrecision(handlePV, precision) * return precision # <<<<<<<<<<<<<< @@ -53244,13 +53692,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_176getPrecision(struct __pyx_obj_6PyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_short(__pyx_v_precision); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1598, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_short(__pyx_v_precision); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1595 + /* "PyCafe.pyx":1594 * ############################################################################ * @verify_handlepv * def getPrecision(self, handlePV): # <<<<<<<<<<<<<< @@ -53271,7 +53719,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_176getPrecision(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1602 +/* "PyCafe.pyx":1601 * ############################################################################ * @verify_handlepv * def hasAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< @@ -53299,7 +53747,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_178hasAlarmStatusSeverity(struct __pyx PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("hasAlarmStatusSeverity", 0); - /* "PyCafe.pyx":1603 + /* "PyCafe.pyx":1602 * @verify_handlepv * def hasAlarmStatusSeverity(self, handlePV): * return self.hh.hasAlarmStatusSeverity(handlePV) # <<<<<<<<<<<<<< @@ -53307,14 +53755,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_178hasAlarmStatusSeverity(struct __pyx * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1603, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->hh.hasAlarmStatusSeverity(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1603, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1602, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->hh.hasAlarmStatusSeverity(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1602 + /* "PyCafe.pyx":1601 * ############################################################################ * @verify_handlepv * def hasAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< @@ -53335,7 +53783,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_178hasAlarmStatusSeverity(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":1607 +/* "PyCafe.pyx":1606 * ############################################################################ * @verify_handlepv * def getAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< @@ -53366,17 +53814,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_180getAlarmStatusSeverity(struct __pyx PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getAlarmStatusSeverity", 0); - /* "PyCafe.pyx":1609 + /* "PyCafe.pyx":1608 * def getAlarmStatusSeverity(self, handlePV): * cdef short aStatSev[2] * self.hh.getAlarmStatusSeverity(handlePV, aStatSev) # <<<<<<<<<<<<<< * return aStatSev[0], aStatSev[1] * */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1609, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1608, __pyx_L1_error) (void)(__pyx_v_self->hh.getAlarmStatusSeverity(__pyx_t_1, __pyx_v_aStatSev)); - /* "PyCafe.pyx":1610 + /* "PyCafe.pyx":1609 * cdef short aStatSev[2] * self.hh.getAlarmStatusSeverity(handlePV, aStatSev) * return aStatSev[0], aStatSev[1] # <<<<<<<<<<<<<< @@ -53384,11 +53832,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_180getAlarmStatusSeverity(struct __pyx * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_short((__pyx_v_aStatSev[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1610, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_short((__pyx_v_aStatSev[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_short((__pyx_v_aStatSev[1])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1610, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_short((__pyx_v_aStatSev[1])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1610, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); @@ -53400,7 +53848,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_180getAlarmStatusSeverity(struct __pyx __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1607 + /* "PyCafe.pyx":1606 * ############################################################################ * @verify_handlepv * def getAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< @@ -53423,7 +53871,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_180getAlarmStatusSeverity(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":1614 +/* "PyCafe.pyx":1613 * ############################################################################ * @verify_handlepv * def getTimeStamp(self, handlePV): # <<<<<<<<<<<<<< @@ -53454,53 +53902,53 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_182getTimeStamp(struct __pyx_obj_6PyCa int __pyx_t_3; __Pyx_RefNannySetupContext("getTimeStamp", 0); - /* "PyCafe.pyx":1617 + /* "PyCafe.pyx":1616 * * cdef HandleHelper hh * hh._etsNorm = self.hh.getEpicsTimeStampAsUInt32(handlePV) # <<<<<<<<<<<<<< * * cpdef ll = [] */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1617, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1616, __pyx_L1_error) __pyx_v_hh._etsNorm = __pyx_v_self->hh.getEpicsTimeStampAsUInt32(__pyx_t_1); - /* "PyCafe.pyx":1619 + /* "PyCafe.pyx":1618 * hh._etsNorm = self.hh.getEpicsTimeStampAsUInt32(handlePV) * * cpdef ll = [] # <<<<<<<<<<<<<< * ll.append(hh._etsNorm.secPastEpoch) * ll.append(hh._etsNorm.nsec) */ - __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1619, __pyx_L1_error) + __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ll = __pyx_t_2; __pyx_t_2 = 0; - /* "PyCafe.pyx":1620 + /* "PyCafe.pyx":1619 * * cpdef ll = [] * ll.append(hh._etsNorm.secPastEpoch) # <<<<<<<<<<<<<< * ll.append(hh._etsNorm.nsec) * */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_hh._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1620, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_hh._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1620, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1619, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1621 + /* "PyCafe.pyx":1620 * cpdef ll = [] * ll.append(hh._etsNorm.secPastEpoch) * ll.append(hh._etsNorm.nsec) # <<<<<<<<<<<<<< * * return ll */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_hh._etsNorm.nsec); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1621, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_hh._etsNorm.nsec); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1621, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ll, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1620, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1623 + /* "PyCafe.pyx":1622 * ll.append(hh._etsNorm.nsec) * * return ll # <<<<<<<<<<<<<< @@ -53512,7 +53960,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_182getTimeStamp(struct __pyx_obj_6PyCa __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":1614 + /* "PyCafe.pyx":1613 * ############################################################################ * @verify_handlepv * def getTimeStamp(self, handlePV): # <<<<<<<<<<<<<< @@ -53534,7 +53982,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_182getTimeStamp(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":1627 +/* "PyCafe.pyx":1626 * ############################################################################ * @verify_handlepv * def getTimeStampAsDate(self, handlePV): # <<<<<<<<<<<<<< @@ -53565,113 +54013,113 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_184getTimeStampAsDate(struct __pyx_obj int __pyx_t_3; __Pyx_RefNannySetupContext("getTimeStampAsDate", 0); - /* "PyCafe.pyx":1630 + /* "PyCafe.pyx":1629 * * cdef HandleHelper hh * cpdef ld = [] # <<<<<<<<<<<<<< * * hh._etsDate = self.hh.getEpicsTimeStampAsDate(handlePV) */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1630, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_ld = __pyx_t_1; __pyx_t_1 = 0; - /* "PyCafe.pyx":1632 + /* "PyCafe.pyx":1631 * cpdef ld = [] * * hh._etsDate = self.hh.getEpicsTimeStampAsDate(handlePV) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.year) * ld.append(hh._etsDate.mon) */ - __pyx_t_2 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_2 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1632, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_2 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1631, __pyx_L1_error) __pyx_v_hh._etsDate = __pyx_v_self->hh.getEpicsTimeStampAsDate(__pyx_t_2); - /* "PyCafe.pyx":1633 + /* "PyCafe.pyx":1632 * * hh._etsDate = self.hh.getEpicsTimeStampAsDate(handlePV) * ld.append(hh._etsDate.year) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.mon) * ld.append(hh._etsDate.day) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.year); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1633, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.year); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1633, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1632, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1634 + /* "PyCafe.pyx":1633 * hh._etsDate = self.hh.getEpicsTimeStampAsDate(handlePV) * ld.append(hh._etsDate.year) * ld.append(hh._etsDate.mon) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.day) * ld.append(hh._etsDate.hour) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.mon); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1634, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.mon); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1634, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1633, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1635 + /* "PyCafe.pyx":1634 * ld.append(hh._etsDate.year) * ld.append(hh._etsDate.mon) * ld.append(hh._etsDate.day) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.hour) * ld.append(hh._etsDate.min) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.day); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1635, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.day); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1635, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1634, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1636 + /* "PyCafe.pyx":1635 * ld.append(hh._etsDate.mon) * ld.append(hh._etsDate.day) * ld.append(hh._etsDate.hour) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.min) * ld.append(hh._etsDate.sec) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.hour); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1636, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.hour); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1636, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1635, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1637 + /* "PyCafe.pyx":1636 * ld.append(hh._etsDate.day) * ld.append(hh._etsDate.hour) * ld.append(hh._etsDate.min) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.sec) * ld.append(hh._etsDate.nsec) */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.min); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1637, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.min); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1637, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1636, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1638 + /* "PyCafe.pyx":1637 * ld.append(hh._etsDate.hour) * ld.append(hh._etsDate.min) * ld.append(hh._etsDate.sec) # <<<<<<<<<<<<<< * ld.append(hh._etsDate.nsec) * */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.sec); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1638, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_hh._etsDate.sec); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1638, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1639 + /* "PyCafe.pyx":1638 * ld.append(hh._etsDate.min) * ld.append(hh._etsDate.sec) * ld.append(hh._etsDate.nsec) # <<<<<<<<<<<<<< * * return ld */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(__pyx_v_hh._etsDate.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1639, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_long(__pyx_v_hh._etsDate.nsec); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1639, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_ld, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 1638, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1641 + /* "PyCafe.pyx":1640 * ld.append(hh._etsDate.nsec) * * return ld # <<<<<<<<<<<<<< @@ -53683,7 +54131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_184getTimeStampAsDate(struct __pyx_obj __pyx_r = __pyx_v_ld; goto __pyx_L0; - /* "PyCafe.pyx":1627 + /* "PyCafe.pyx":1626 * ############################################################################ * @verify_handlepv * def getTimeStampAsDate(self, handlePV): # <<<<<<<<<<<<<< @@ -53705,7 +54153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_184getTimeStampAsDate(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":1645 +/* "PyCafe.pyx":1644 * ############################################################################ * ### Allow user to choose whether or not to open ##### * cpdef checkForHandle(self, str pv, bint force=True): # <<<<<<<<<<<<<< @@ -53744,11 +54192,11 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe else { PY_UINT64_T type_dict_guard = (likely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict)) ? __PYX_GET_DICT_VERSION(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict) : 0; #endif - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForHandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForHandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_6PyCafe_6CyCafe_187checkForHandle)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL; @@ -53766,7 +54214,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pv, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -53775,14 +54223,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pv, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -53793,7 +54241,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } @@ -53816,7 +54264,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe #endif } - /* "PyCafe.pyx":1646 + /* "PyCafe.pyx":1645 * ### Allow user to choose whether or not to open ##### * cpdef checkForHandle(self, str pv, bint force=True): * cdef unsigned int _handle = 0 # <<<<<<<<<<<<<< @@ -53825,17 +54273,17 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe */ __pyx_v__handle = 0; - /* "PyCafe.pyx":1647 + /* "PyCafe.pyx":1646 * cpdef checkForHandle(self, str pv, bint force=True): * cdef unsigned int _handle = 0 * _handle = self.hh.getHandleFromPV(pv) # <<<<<<<<<<<<<< * if _handle == 0: * if (force): */ - __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_pv); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(3, 1647, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_pv); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(3, 1646, __pyx_L1_error) __pyx_v__handle = __pyx_v_self->hh.getHandleFromPV(__pyx_t_8); - /* "PyCafe.pyx":1648 + /* "PyCafe.pyx":1647 * cdef unsigned int _handle = 0 * _handle = self.hh.getHandleFromPV(pv) * if _handle == 0: # <<<<<<<<<<<<<< @@ -53845,7 +54293,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe __pyx_t_9 = ((__pyx_v__handle == 0) != 0); if (__pyx_t_9) { - /* "PyCafe.pyx":1649 + /* "PyCafe.pyx":1648 * _handle = self.hh.getHandleFromPV(pv) * if _handle == 0: * if (force): # <<<<<<<<<<<<<< @@ -53855,7 +54303,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe __pyx_t_9 = (__pyx_v_force != 0); if (__pyx_t_9) { - /* "PyCafe.pyx":1650 + /* "PyCafe.pyx":1649 * if _handle == 0: * if (force): * return self.open(pv) # <<<<<<<<<<<<<< @@ -53863,7 +54311,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe * return 0 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1650, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -53877,14 +54325,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe } __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v_pv) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_pv); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1650, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1649 + /* "PyCafe.pyx":1648 * _handle = self.hh.getHandleFromPV(pv) * if _handle == 0: * if (force): # <<<<<<<<<<<<<< @@ -53894,7 +54342,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe goto __pyx_L4; } - /* "PyCafe.pyx":1652 + /* "PyCafe.pyx":1651 * return self.open(pv) * else: * return 0 # <<<<<<<<<<<<<< @@ -53909,7 +54357,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe } __pyx_L4:; - /* "PyCafe.pyx":1648 + /* "PyCafe.pyx":1647 * cdef unsigned int _handle = 0 * _handle = self.hh.getHandleFromPV(pv) * if _handle == 0: # <<<<<<<<<<<<<< @@ -53919,7 +54367,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":1654 + /* "PyCafe.pyx":1653 * return 0 * else: * return _handle # <<<<<<<<<<<<<< @@ -53928,7 +54376,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe */ /*else*/ { __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1654, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -53936,7 +54384,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandle(struct __pyx_obj_6PyCafe } __pyx_L3:; - /* "PyCafe.pyx":1645 + /* "PyCafe.pyx":1644 * ############################################################################ * ### Allow user to choose whether or not to open ##### * cpdef checkForHandle(self, str pv, bint force=True): # <<<<<<<<<<<<<< @@ -53997,7 +54445,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_187checkForHandle(PyObject *__pyx_v_se } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForHandle") < 0)) __PYX_ERR(3, 1645, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForHandle") < 0)) __PYX_ERR(3, 1644, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -54010,20 +54458,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_187checkForHandle(PyObject *__pyx_v_se } __pyx_v_pv = ((PyObject*)values[0]); if (values[1]) { - __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1645, __pyx_L3_error) + __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1644, __pyx_L3_error) } else { __pyx_v_force = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("checkForHandle", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1645, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("checkForHandle", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1644, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.checkForHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv), (&PyUnicode_Type), 1, "pv", 1))) __PYX_ERR(3, 1645, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv), (&PyUnicode_Type), 1, "pv", 1))) __PYX_ERR(3, 1644, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_186checkForHandle(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pv, __pyx_v_force); /* function exit code */ @@ -54044,7 +54492,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_186checkForHandle(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.force = __pyx_v_force; - __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForHandle(__pyx_v_self, __pyx_v_pv, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1645, __pyx_L1_error) + __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForHandle(__pyx_v_self, __pyx_v_pv, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -54061,7 +54509,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_186checkForHandle(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1658 +/* "PyCafe.pyx":1657 * * ############################################################################ * cpdef checkForHandleList(self, list pvList, bint force=True): # <<<<<<<<<<<<<< @@ -54108,11 +54556,11 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py else { PY_UINT64_T type_dict_guard = (likely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict)) ? __PYX_GET_DICT_VERSION(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict) : 0; #endif - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForHandleList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForHandleList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_6PyCafe_6CyCafe_189checkForHandleList)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL; @@ -54130,7 +54578,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pvList, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -54139,14 +54587,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pvList, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -54157,7 +54605,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } @@ -54180,7 +54628,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py #endif } - /* "PyCafe.pyx":1660 + /* "PyCafe.pyx":1659 * cpdef checkForHandleList(self, list pvList, bint force=True): * * cdef unsigned int nToOpen = 0 # <<<<<<<<<<<<<< @@ -54189,19 +54637,19 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ __pyx_v_nToOpen = 0; - /* "PyCafe.pyx":1661 + /* "PyCafe.pyx":1660 * * cdef unsigned int nToOpen = 0 * handleList = [] # <<<<<<<<<<<<<< * cdef unsigned int _handle = 0 * for i in range(0, len(pvList)): */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1661, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_handleList = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1662 + /* "PyCafe.pyx":1661 * cdef unsigned int nToOpen = 0 * handleList = [] * cdef unsigned int _handle = 0 # <<<<<<<<<<<<<< @@ -54210,7 +54658,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ __pyx_v__handle = 0; - /* "PyCafe.pyx":1663 + /* "PyCafe.pyx":1662 * handleList = [] * cdef unsigned int _handle = 0 * for i in range(0, len(pvList)): # <<<<<<<<<<<<<< @@ -54219,14 +54667,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_pvList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 1663, __pyx_L1_error) + __PYX_ERR(3, 1662, __pyx_L1_error) } - __pyx_t_8 = PyList_GET_SIZE(__pyx_v_pvList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1663, __pyx_L1_error) + __pyx_t_8 = PyList_GET_SIZE(__pyx_v_pvList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 1662, __pyx_L1_error) __pyx_t_9 = __pyx_t_8; for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; - /* "PyCafe.pyx":1664 + /* "PyCafe.pyx":1663 * cdef unsigned int _handle = 0 * for i in range(0, len(pvList)): * _handle = self.hh.getHandleFromPV(pvList[i]) # <<<<<<<<<<<<<< @@ -54235,15 +54683,15 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_pvList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1664, __pyx_L1_error) + __PYX_ERR(3, 1663, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pvList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1664, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pvList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(3, 1664, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(3, 1663, __pyx_L1_error) __pyx_v__handle = __pyx_v_self->hh.getHandleFromPV(__pyx_t_11); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1665 + /* "PyCafe.pyx":1664 * for i in range(0, len(pvList)): * _handle = self.hh.getHandleFromPV(pvList[i]) * if _handle == 0: # <<<<<<<<<<<<<< @@ -54253,7 +54701,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_t_12 = ((__pyx_v__handle == 0) != 0); if (__pyx_t_12) { - /* "PyCafe.pyx":1666 + /* "PyCafe.pyx":1665 * _handle = self.hh.getHandleFromPV(pvList[i]) * if _handle == 0: * if (force): # <<<<<<<<<<<<<< @@ -54263,7 +54711,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_t_12 = (__pyx_v_force != 0); if (__pyx_t_12) { - /* "PyCafe.pyx":1667 + /* "PyCafe.pyx":1666 * if _handle == 0: * if (force): * nToOpen = nToOpen+1 # <<<<<<<<<<<<<< @@ -54272,14 +54720,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ __pyx_v_nToOpen = (__pyx_v_nToOpen + 1); - /* "PyCafe.pyx":1668 + /* "PyCafe.pyx":1667 * if (force): * nToOpen = nToOpen+1 * self.openNoWait() # <<<<<<<<<<<<<< * _handle = self.open(pvList[i]) * handleList.append(_handle) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNoWait); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1668, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNoWait); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -54293,25 +54741,25 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py } __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1668, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1667, __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; - /* "PyCafe.pyx":1669 + /* "PyCafe.pyx":1668 * nToOpen = nToOpen+1 * self.openNoWait() * _handle = self.open(pvList[i]) # <<<<<<<<<<<<<< * handleList.append(_handle) * else: */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1669, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__pyx_v_pvList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 1669, __pyx_L1_error) + __PYX_ERR(3, 1668, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_pvList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1669, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_pvList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -54326,14 +54774,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1669, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1669, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1668, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__handle = __pyx_t_13; - /* "PyCafe.pyx":1666 + /* "PyCafe.pyx":1665 * _handle = self.hh.getHandleFromPV(pvList[i]) * if _handle == 0: * if (force): # <<<<<<<<<<<<<< @@ -54342,19 +54790,19 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":1670 + /* "PyCafe.pyx":1669 * self.openNoWait() * _handle = self.open(pvList[i]) * handleList.append(_handle) # <<<<<<<<<<<<<< * else: * handleList.append(_handle) */ - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1670, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_handleList, __pyx_t_1); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 1670, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_handleList, __pyx_t_1); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 1669, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":1665 + /* "PyCafe.pyx":1664 * for i in range(0, len(pvList)): * _handle = self.hh.getHandleFromPV(pvList[i]) * if _handle == 0: # <<<<<<<<<<<<<< @@ -54364,7 +54812,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py goto __pyx_L5; } - /* "PyCafe.pyx":1672 + /* "PyCafe.pyx":1671 * handleList.append(_handle) * else: * handleList.append(_handle) # <<<<<<<<<<<<<< @@ -54372,15 +54820,15 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py * self.openNowAndWait(2.0+nToOpen*0.01) */ /*else*/ { - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1672, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_handleList, __pyx_t_1); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 1672, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_handleList, __pyx_t_1); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 1671, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_L5:; } - /* "PyCafe.pyx":1673 + /* "PyCafe.pyx":1672 * else: * handleList.append(_handle) * if nToOpen > 0: # <<<<<<<<<<<<<< @@ -54390,16 +54838,16 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_t_12 = ((__pyx_v_nToOpen > 0) != 0); if (__pyx_t_12) { - /* "PyCafe.pyx":1674 + /* "PyCafe.pyx":1673 * handleList.append(_handle) * if nToOpen > 0: * self.openNowAndWait(2.0+nToOpen*0.01) # <<<<<<<<<<<<<< * return handleList * ############################################################################ */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNowAndWait); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1674, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_openNowAndWait); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = PyFloat_FromDouble((2.0 + (__pyx_v_nToOpen * 0.01))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1674, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble((2.0 + (__pyx_v_nToOpen * 0.01))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -54414,12 +54862,12 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1674, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1673, __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; - /* "PyCafe.pyx":1673 + /* "PyCafe.pyx":1672 * else: * handleList.append(_handle) * if nToOpen > 0: # <<<<<<<<<<<<<< @@ -54428,7 +54876,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":1675 + /* "PyCafe.pyx":1674 * if nToOpen > 0: * self.openNowAndWait(2.0+nToOpen*0.01) * return handleList # <<<<<<<<<<<<<< @@ -54440,7 +54888,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForHandleList(struct __pyx_obj_6Py __pyx_r = __pyx_v_handleList; goto __pyx_L0; - /* "PyCafe.pyx":1658 + /* "PyCafe.pyx":1657 * * ############################################################################ * cpdef checkForHandleList(self, list pvList, bint force=True): # <<<<<<<<<<<<<< @@ -54502,7 +54950,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_189checkForHandleList(PyObject *__pyx_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForHandleList") < 0)) __PYX_ERR(3, 1658, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForHandleList") < 0)) __PYX_ERR(3, 1657, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -54515,20 +54963,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_189checkForHandleList(PyObject *__pyx_ } __pyx_v_pvList = ((PyObject*)values[0]); if (values[1]) { - __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1658, __pyx_L3_error) + __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1657, __pyx_L3_error) } else { __pyx_v_force = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("checkForHandleList", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1658, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("checkForHandleList", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1657, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.checkForHandleList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pvList), (&PyList_Type), 1, "pvList", 1))) __PYX_ERR(3, 1658, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pvList), (&PyList_Type), 1, "pvList", 1))) __PYX_ERR(3, 1657, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_188checkForHandleList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pvList, __pyx_v_force); /* function exit code */ @@ -54549,7 +54997,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_188checkForHandleList(struct __pyx_obj __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.force = __pyx_v_force; - __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForHandleList(__pyx_v_self, __pyx_v_pvList, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1658, __pyx_L1_error) + __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForHandleList(__pyx_v_self, __pyx_v_pvList, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -54566,7 +55014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_188checkForHandleList(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":1679 +/* "PyCafe.pyx":1678 * * ############################################################################ * cpdef checkForGroupHandle(self, str gName, bint force=True): # <<<<<<<<<<<<<< @@ -54605,11 +55053,11 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P else { PY_UINT64_T type_dict_guard = (likely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict)) ? __PYX_GET_DICT_VERSION(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dict) : 0; #endif - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForGroupHandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_checkForGroupHandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_6PyCafe_6CyCafe_191checkForGroupHandle)) { __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_force); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = __pyx_t_1; __pyx_t_5 = NULL; @@ -54627,7 +55075,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_gName, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -54636,14 +55084,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_gName, __pyx_t_3}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -54654,7 +55102,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } @@ -54677,7 +55125,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P #endif } - /* "PyCafe.pyx":1680 + /* "PyCafe.pyx":1679 * ############################################################################ * cpdef checkForGroupHandle(self, str gName, bint force=True): * cdef unsigned int _ghandle = 0 # <<<<<<<<<<<<<< @@ -54686,17 +55134,17 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P */ __pyx_v__ghandle = 0; - /* "PyCafe.pyx":1681 + /* "PyCafe.pyx":1680 * cpdef checkForGroupHandle(self, str gName, bint force=True): * cdef unsigned int _ghandle = 0 * _ghandle = self.hh.getGroupHandleFromGroupName(gName) # <<<<<<<<<<<<<< * if _ghandle == 0: * if (force): */ - __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_gName); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(3, 1681, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_gName); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(3, 1680, __pyx_L1_error) __pyx_v__ghandle = __pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_8); - /* "PyCafe.pyx":1682 + /* "PyCafe.pyx":1681 * cdef unsigned int _ghandle = 0 * _ghandle = self.hh.getGroupHandleFromGroupName(gName) * if _ghandle == 0: # <<<<<<<<<<<<<< @@ -54706,7 +55154,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P __pyx_t_9 = ((__pyx_v__ghandle == 0) != 0); if (__pyx_t_9) { - /* "PyCafe.pyx":1683 + /* "PyCafe.pyx":1682 * _ghandle = self.hh.getGroupHandleFromGroupName(gName) * if _ghandle == 0: * if (force): # <<<<<<<<<<<<<< @@ -54716,7 +55164,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P __pyx_t_9 = (__pyx_v_force != 0); if (__pyx_t_9) { - /* "PyCafe.pyx":1684 + /* "PyCafe.pyx":1683 * if _ghandle == 0: * if (force): * return self.groupOpen(gName) # <<<<<<<<<<<<<< @@ -54724,7 +55172,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P * return 0 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_groupOpen); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1684, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_groupOpen); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -54738,14 +55186,14 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P } __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v_gName) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_gName); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1684, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1683 + /* "PyCafe.pyx":1682 * _ghandle = self.hh.getGroupHandleFromGroupName(gName) * if _ghandle == 0: * if (force): # <<<<<<<<<<<<<< @@ -54755,7 +55203,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P goto __pyx_L4; } - /* "PyCafe.pyx":1686 + /* "PyCafe.pyx":1685 * return self.groupOpen(gName) * else: * return 0 # <<<<<<<<<<<<<< @@ -54770,7 +55218,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P } __pyx_L4:; - /* "PyCafe.pyx":1682 + /* "PyCafe.pyx":1681 * cdef unsigned int _ghandle = 0 * _ghandle = self.hh.getGroupHandleFromGroupName(gName) * if _ghandle == 0: # <<<<<<<<<<<<<< @@ -54780,7 +55228,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P goto __pyx_L3; } - /* "PyCafe.pyx":1688 + /* "PyCafe.pyx":1687 * return 0 * else: * return _ghandle # <<<<<<<<<<<<<< @@ -54789,7 +55237,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P */ /*else*/ { __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1688, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v__ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -54797,7 +55245,7 @@ static PyObject *__pyx_f_6PyCafe_6CyCafe_checkForGroupHandle(struct __pyx_obj_6P } __pyx_L3:; - /* "PyCafe.pyx":1679 + /* "PyCafe.pyx":1678 * * ############################################################################ * cpdef checkForGroupHandle(self, str gName, bint force=True): # <<<<<<<<<<<<<< @@ -54858,7 +55306,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_191checkForGroupHandle(PyObject *__pyx } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForGroupHandle") < 0)) __PYX_ERR(3, 1679, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "checkForGroupHandle") < 0)) __PYX_ERR(3, 1678, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -54871,20 +55319,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_191checkForGroupHandle(PyObject *__pyx } __pyx_v_gName = ((PyObject*)values[0]); if (values[1]) { - __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1679, __pyx_L3_error) + __pyx_v_force = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_force == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1678, __pyx_L3_error) } else { __pyx_v_force = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("checkForGroupHandle", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1679, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("checkForGroupHandle", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1678, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.checkForGroupHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gName), (&PyUnicode_Type), 1, "gName", 1))) __PYX_ERR(3, 1679, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gName), (&PyUnicode_Type), 1, "gName", 1))) __PYX_ERR(3, 1678, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_190checkForGroupHandle(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_gName, __pyx_v_force); /* function exit code */ @@ -54905,7 +55353,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_190checkForGroupHandle(struct __pyx_ob __Pyx_XDECREF(__pyx_r); __pyx_t_2.__pyx_n = 1; __pyx_t_2.force = __pyx_v_force; - __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForGroupHandle(__pyx_v_self, __pyx_v_gName, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1679, __pyx_L1_error) + __pyx_t_1 = __pyx_vtabptr_6PyCafe_CyCafe->checkForGroupHandle(__pyx_v_self, __pyx_v_gName, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1678, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -54922,7 +55370,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_190checkForGroupHandle(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1693 +/* "PyCafe.pyx":1692 * ############################################################################ * * def getPVNameFromHandle(self, int h): # <<<<<<<<<<<<<< @@ -54938,7 +55386,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_193getPVNameFromHandle(PyObject *__pyx __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getPVNameFromHandle (wrapper)", 0); assert(__pyx_arg_h); { - __pyx_v_h = __Pyx_PyInt_As_int(__pyx_arg_h); if (unlikely((__pyx_v_h == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1693, __pyx_L3_error) + __pyx_v_h = __Pyx_PyInt_As_int(__pyx_arg_h); if (unlikely((__pyx_v_h == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1692, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -54959,7 +55407,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_192getPVNameFromHandle(struct __pyx_ob PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getPVNameFromHandle", 0); - /* "PyCafe.pyx":1694 + /* "PyCafe.pyx":1693 * * def getPVNameFromHandle(self, int h): * return self._c_cafe.getPVFromHandle(h) # <<<<<<<<<<<<<< @@ -54967,13 +55415,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_192getPVNameFromHandle(struct __pyx_ob * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_h)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1694, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_h)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1693 + /* "PyCafe.pyx":1692 * ############################################################################ * * def getPVNameFromHandle(self, int h): # <<<<<<<<<<<<<< @@ -54994,7 +55442,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_192getPVNameFromHandle(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1698 +/* "PyCafe.pyx":1697 * * ############################################################################ * def getHandleFromPVName(self, str name): # <<<<<<<<<<<<<< @@ -55008,7 +55456,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_195getHandleFromPVName(PyObject *__pyx PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getHandleFromPVName (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 1, "name", 1))) __PYX_ERR(3, 1698, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 1, "name", 1))) __PYX_ERR(3, 1697, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_194getHandleFromPVName(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_name)); /* function exit code */ @@ -55027,7 +55475,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_194getHandleFromPVName(struct __pyx_ob PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getHandleFromPVName", 0); - /* "PyCafe.pyx":1702 + /* "PyCafe.pyx":1701 * # py_string = (name).encode('UTF-8') * # return self._c_cafe.getHandleFromPV(py_string) * return self._c_cafe.getHandleFromPV(name) # <<<<<<<<<<<<<< @@ -55035,14 +55483,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_194getHandleFromPVName(struct __pyx_ob * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 1702, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->_c_cafe->getHandleFromPV(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1702, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 1701, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->_c_cafe->getHandleFromPV(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1698 + /* "PyCafe.pyx":1697 * * ############################################################################ * def getHandleFromPVName(self, str name): # <<<<<<<<<<<<<< @@ -55063,7 +55511,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_194getHandleFromPVName(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1707 +/* "PyCafe.pyx":1706 * ############################################################################ * * def getPVFromHandle(self, int h): # <<<<<<<<<<<<<< @@ -55079,7 +55527,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_197getPVFromHandle(PyObject *__pyx_v_s __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getPVFromHandle (wrapper)", 0); assert(__pyx_arg_h); { - __pyx_v_h = __Pyx_PyInt_As_int(__pyx_arg_h); if (unlikely((__pyx_v_h == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1707, __pyx_L3_error) + __pyx_v_h = __Pyx_PyInt_As_int(__pyx_arg_h); if (unlikely((__pyx_v_h == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1706, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -55100,7 +55548,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_196getPVFromHandle(struct __pyx_obj_6P PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getPVFromHandle", 0); - /* "PyCafe.pyx":1708 + /* "PyCafe.pyx":1707 * * def getPVFromHandle(self, int h): * return self._c_cafe.getPVFromHandle(h) # <<<<<<<<<<<<<< @@ -55108,13 +55556,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_196getPVFromHandle(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_h)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1708, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_h)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1707 + /* "PyCafe.pyx":1706 * ############################################################################ * * def getPVFromHandle(self, int h): # <<<<<<<<<<<<<< @@ -55135,7 +55583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_196getPVFromHandle(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":1712 +/* "PyCafe.pyx":1711 * * ############################################################################ * def getHandleFromPV(self, str name): # <<<<<<<<<<<<<< @@ -55149,7 +55597,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_199getHandleFromPV(PyObject *__pyx_v_s PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getHandleFromPV (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 1, "name", 1))) __PYX_ERR(3, 1712, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 1, "name", 1))) __PYX_ERR(3, 1711, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_198getHandleFromPV(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_name)); /* function exit code */ @@ -55168,7 +55616,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_198getHandleFromPV(struct __pyx_obj_6P PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getHandleFromPV", 0); - /* "PyCafe.pyx":1716 + /* "PyCafe.pyx":1715 * # py_string = (name).encode('UTF-8') * # return self._c_cafe.getHandleFromPV(py_string) * return self._c_cafe.getHandleFromPV(name) # <<<<<<<<<<<<<< @@ -55176,14 +55624,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_198getHandleFromPV(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 1716, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->_c_cafe->getHandleFromPV(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1716, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 1715, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->_c_cafe->getHandleFromPV(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1712 + /* "PyCafe.pyx":1711 * * ############################################################################ * def getHandleFromPV(self, str name): # <<<<<<<<<<<<<< @@ -55204,7 +55652,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_198getHandleFromPV(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":1719 +/* "PyCafe.pyx":1718 * ############################################################################ * * def getChannelDataStore(self, handlePV): # <<<<<<<<<<<<<< @@ -55247,7 +55695,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("getChannelDataStore", 0); - /* "PyCafe.pyx":1720 + /* "PyCafe.pyx":1719 * * def getChannelDataStore(self, handlePV): * cdef str _METHOD = "getChannelDataStore" # <<<<<<<<<<<<<< @@ -55257,7 +55705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __Pyx_INCREF(__pyx_n_u_getChannelDataStore); __pyx_v__METHOD = __pyx_n_u_getChannelDataStore; - /* "PyCafe.pyx":1721 + /* "PyCafe.pyx":1720 * def getChannelDataStore(self, handlePV): * cdef str _METHOD = "getChannelDataStore" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -55266,7 +55714,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob */ __pyx_v_handle = 0; - /* "PyCafe.pyx":1722 + /* "PyCafe.pyx":1721 * cdef str _METHOD = "getChannelDataStore" * cdef unsigned int handle = 0 * cdef str pv = "" # <<<<<<<<<<<<<< @@ -55276,7 +55724,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __Pyx_INCREF(__pyx_kp_u__3); __pyx_v_pv = __pyx_kp_u__3; - /* "PyCafe.pyx":1723 + /* "PyCafe.pyx":1722 * cdef unsigned int handle = 0 * cdef str pv = "" * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -55297,29 +55745,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1724 + /* "PyCafe.pyx":1723 * cdef str pv = "" * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * pv = self._c_cafe.getPVFromHandle(handle) * elif isinstance(handlePV, (str)): */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1724, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1723, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1725 + /* "PyCafe.pyx":1724 * if isinstance(handlePV, (int, long)): * handle = handlePV * pv = self._c_cafe.getPVFromHandle(handle) # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV, force=True) */ - __pyx_t_5 = __Pyx_PyUnicode_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1725, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v_pv, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":1723 + /* "PyCafe.pyx":1722 * cdef unsigned int handle = 0 * cdef str pv = "" * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -55329,7 +55777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":1726 + /* "PyCafe.pyx":1725 * handle = handlePV * pv = self._c_cafe.getPVFromHandle(handle) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -55340,36 +55788,36 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1727 + /* "PyCafe.pyx":1726 * pv = self._c_cafe.getPVFromHandle(handle) * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV, force=True) # <<<<<<<<<<<<<< * pv = handlePV * else: */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1727, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1726, __pyx_L1_error) __pyx_t_6.__pyx_n = 1; __pyx_t_6.force = 1; - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1727, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1727, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1726, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":1728 + /* "PyCafe.pyx":1727 * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV, force=True) * pv = handlePV # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1728, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 1727, __pyx_L1_error) __pyx_t_5 = __pyx_v_handlePV; __Pyx_INCREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v_pv, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":1726 + /* "PyCafe.pyx":1725 * handle = handlePV * pv = self._c_cafe.getPVFromHandle(handle) * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -55379,7 +55827,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob goto __pyx_L3; } - /* "PyCafe.pyx":1730 + /* "PyCafe.pyx":1729 * pv = handlePV * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< @@ -55387,10 +55835,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob * "First input argument should be of type if handle, \ */ /*else*/ { - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":1731 + /* "PyCafe.pyx":1730 * else: * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -55412,7 +55860,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_2}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -55420,13 +55868,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_2}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 3+__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(3+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -55440,29 +55888,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_2); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_2); PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_kp_u_First_input_argument_should_be_o_2); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":1730 + /* "PyCafe.pyx":1729 * pv = handlePV * else: * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be of type if handle, \ */ - __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1730, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(3, 1730, __pyx_L1_error) + __PYX_ERR(3, 1729, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":1735 + /* "PyCafe.pyx":1734 * else if PV")) * * if handle == 0: # <<<<<<<<<<<<<< @@ -55472,7 +55920,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1736 + /* "PyCafe.pyx":1735 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -55482,7 +55930,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1737 + /* "PyCafe.pyx":1736 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -55491,7 +55939,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":1736 + /* "PyCafe.pyx":1735 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -55500,20 +55948,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob */ } - /* "PyCafe.pyx":1738 + /* "PyCafe.pyx":1737 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def getChannelDataStore") * */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1738, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1737, __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(3, 1738, __pyx_L1_error) + __PYX_ERR(3, 1737, __pyx_L1_error) - /* "PyCafe.pyx":1735 + /* "PyCafe.pyx":1734 * else if PV")) * * if handle == 0: # <<<<<<<<<<<<<< @@ -55522,7 +55970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob */ } - /* "PyCafe.pyx":1742 + /* "PyCafe.pyx":1741 * * cdef ChannelDataStore cds * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -55531,14 +55979,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":1754 + /* "PyCafe.pyx":1753 * #status=self._c_cafe.getCtrlCache(handle, pvc) * * pvds = self.getPVCache(handle) # <<<<<<<<<<<<<< * pvcs = self.getCtrlCache(handle) * infos = self.getChannelInfo(handle) */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1754, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_8 = NULL; + if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_8)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + __pyx_t_7 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_8, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_pvds = __pyx_t_7; + __pyx_t_7 = 0; + + /* "PyCafe.pyx":1754 + * + * pvds = self.getPVCache(handle) + * pvcs = self.getCtrlCache(handle) # <<<<<<<<<<<<<< + * infos = self.getChannelInfo(handle) + * + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCtrlCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); @@ -55558,17 +56036,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_pvds = __pyx_t_7; + __pyx_v_pvcs = __pyx_t_7; __pyx_t_7 = 0; /* "PyCafe.pyx":1755 - * * pvds = self.getPVCache(handle) - * pvcs = self.getCtrlCache(handle) # <<<<<<<<<<<<<< - * infos = self.getChannelInfo(handle) + * pvcs = self.getCtrlCache(handle) + * infos = self.getChannelInfo(handle) # <<<<<<<<<<<<<< * + * ''' */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCtrlCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1755, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getChannelInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); @@ -55588,40 +56066,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_pvcs = __pyx_t_7; - __pyx_t_7 = 0; - - /* "PyCafe.pyx":1756 - * pvds = self.getPVCache(handle) - * pvcs = self.getCtrlCache(handle) - * infos = self.getChannelInfo(handle) # <<<<<<<<<<<<<< - * - * ''' - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getChannelInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 1756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_8 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_8)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_8); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_5, function); - } - } - __pyx_t_7 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_8, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10); - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_infos = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":1784 + /* "PyCafe.pyx":1783 * * # return cds.description, channelRegaliaToStruct(cds.info), PVDataHolderToStruct(cds.pvd), PVCtrlHolderToStruct(cds.pvc) * return infos, pvds, pvcs # <<<<<<<<<<<<<< @@ -55629,7 +56077,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1784, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 1783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_v_infos); __Pyx_GIVEREF(__pyx_v_infos); @@ -55644,7 +56092,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1719 + /* "PyCafe.pyx":1718 * ############################################################################ * * def getChannelDataStore(self, handlePV): # <<<<<<<<<<<<<< @@ -55673,7 +56121,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_200getChannelDataStore(struct __pyx_ob return __pyx_r; } -/* "PyCafe.pyx":1788 +/* "PyCafe.pyx":1787 * ############################################################################ * @verify_handlepv * def getChannelInfo(self, handlePV): # <<<<<<<<<<<<<< @@ -55707,7 +56155,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py struct __pyx_opt_args_6PyCafe_6CyCafe_prepareCafeException __pyx_t_5; __Pyx_RefNannySetupContext("getChannelInfo", 0); - /* "PyCafe.pyx":1789 + /* "PyCafe.pyx":1788 * @verify_handlepv * def getChannelInfo(self, handlePV): * cdef str _METHOD = "getChannelInfo(handlePV)" # <<<<<<<<<<<<<< @@ -55717,17 +56165,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py __Pyx_INCREF(__pyx_kp_u_getChannelInfo_handlePV); __pyx_v__METHOD = __pyx_kp_u_getChannelInfo_handlePV; - /* "PyCafe.pyx":1791 + /* "PyCafe.pyx":1790 * cdef str _METHOD = "getChannelInfo(handlePV)" * * status = self._c_cafe.getChannelInfo(handlePV, self.channelInfo) # <<<<<<<<<<<<<< * #print("ln", __FILE__, __LINE__,inspect.currentframe().f_lineno ) * if self._enable_exceptions and status != ICAFE_NORMAL: */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1791, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1790, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->getChannelInfo(__pyx_t_1, __pyx_v_self->channelInfo); - /* "PyCafe.pyx":1793 + /* "PyCafe.pyx":1792 * status = self._c_cafe.getChannelInfo(handlePV, self.channelInfo) * #print("ln", __FILE__, __LINE__,inspect.currentframe().f_lineno ) * if self._enable_exceptions and status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -55745,16 +56193,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py __pyx_L4_bool_binop_done:; if (__pyx_t_2) { - /* "PyCafe.pyx":1795 + /* "PyCafe.pyx":1794 * if self._enable_exceptions and status != ICAFE_NORMAL: * PyCafeException = self.prepareCafeException( * status, _METHOD, handle=handlePV) # <<<<<<<<<<<<<< * raise PyCafeException * # cdef channelInfo ci=channelRegaliaToStruct(cr) */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1795, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1794, __pyx_L1_error) - /* "PyCafe.pyx":1794 + /* "PyCafe.pyx":1793 * #print("ln", __FILE__, __LINE__,inspect.currentframe().f_lineno ) * if self._enable_exceptions and status != ICAFE_NORMAL: * PyCafeException = self.prepareCafeException( # <<<<<<<<<<<<<< @@ -55763,12 +56211,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py */ __pyx_t_5.__pyx_n = 1; __pyx_t_5.handle = __pyx_t_1; - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->prepareCafeException(__pyx_v_self, __pyx_v_status, __pyx_v__METHOD, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1794, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->prepareCafeException(__pyx_v_self, __pyx_v_status, __pyx_v__METHOD, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_PyCafeException = __pyx_t_4; __pyx_t_4 = 0; - /* "PyCafe.pyx":1796 + /* "PyCafe.pyx":1795 * PyCafeException = self.prepareCafeException( * status, _METHOD, handle=handlePV) * raise PyCafeException # <<<<<<<<<<<<<< @@ -55776,9 +56224,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py * # ci.channelID=self._c_cafe.getChannelIDAsString(cr.getChannelID()) */ __Pyx_Raise(__pyx_v_PyCafeException, 0, 0, 0); - __PYX_ERR(3, 1796, __pyx_L1_error) + __PYX_ERR(3, 1795, __pyx_L1_error) - /* "PyCafe.pyx":1793 + /* "PyCafe.pyx":1792 * status = self._c_cafe.getChannelInfo(handlePV, self.channelInfo) * #print("ln", __FILE__, __LINE__,inspect.currentframe().f_lineno ) * if self._enable_exceptions and status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -55787,7 +56235,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":1801 + /* "PyCafe.pyx":1800 * # do hex(cr.getChannelID()) to get channelId in hex form * * return channelRegaliaToStruct(self.channelInfo) # <<<<<<<<<<<<<< @@ -55795,13 +56243,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = ((PyObject *)__pyx_f_6PyCafe_channelRegaliaToStruct(__pyx_v_self->channelInfo)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1801, __pyx_L1_error) + __pyx_t_4 = ((PyObject *)__pyx_f_6PyCafe_channelRegaliaToStruct(__pyx_v_self->channelInfo)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1788 + /* "PyCafe.pyx":1787 * ############################################################################ * @verify_handlepv * def getChannelInfo(self, handlePV): # <<<<<<<<<<<<<< @@ -55824,7 +56272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_202getChannelInfo(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1805 +/* "PyCafe.pyx":1804 * * * def getChannelList(self, list listStrings): # <<<<<<<<<<<<<< @@ -55838,7 +56286,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_205getChannelList(PyObject *__pyx_v_se PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getChannelList (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_listStrings), (&PyList_Type), 1, "listStrings", 1))) __PYX_ERR(3, 1805, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_listStrings), (&PyList_Type), 1, "listStrings", 1))) __PYX_ERR(3, 1804, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_204getChannelList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_listStrings)); /* function exit code */ @@ -55857,7 +56305,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_204getChannelList(struct __pyx_obj_6Py PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getChannelList", 0); - /* "PyCafe.pyx":1806 + /* "PyCafe.pyx":1805 * * def getChannelList(self, list listStrings): * return self._c_cafe.getFromGlobalChannelList(listStrings) # <<<<<<<<<<<<<< @@ -55865,14 +56313,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_204getChannelList(struct __pyx_obj_6Py * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_v_listStrings); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1806, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_self->_c_cafe->getFromGlobalChannelList(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1806, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_v_listStrings); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1805, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_self->_c_cafe->getFromGlobalChannelList(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1805 + /* "PyCafe.pyx":1804 * * * def getChannelList(self, list listStrings): # <<<<<<<<<<<<<< @@ -55893,7 +56341,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_204getChannelList(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1812 +/* "PyCafe.pyx":1811 * ################################################################################## * @verify_handlepv * def getWFAsString(self, handlePV, cache: bool = False): # <<<<<<<<<<<<<< @@ -55937,7 +56385,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_207getWFAsString(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getWFAsString") < 0)) __PYX_ERR(3, 1812, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getWFAsString") < 0)) __PYX_ERR(3, 1811, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -55953,7 +56401,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_207getWFAsString(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getWFAsString", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1812, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getWFAsString", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1811, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getWFAsString", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -55983,7 +56431,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getWFAsString", 0); - /* "PyCafe.pyx":1813 + /* "PyCafe.pyx":1812 * @verify_handlepv * def getWFAsString(self, handlePV, cache: bool = False): * cdef str _METHOD = "getWFAsString" # <<<<<<<<<<<<<< @@ -55993,27 +56441,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_getWFAsString); __pyx_v__METHOD = __pyx_n_u_getWFAsString; - /* "PyCafe.pyx":1817 + /* "PyCafe.pyx":1816 * * cdef bytes bWF * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * if cache: * status = self._c_cafe.getWFAsStringCache(handle, strWF) */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1817, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1816, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":1818 + /* "PyCafe.pyx":1817 * cdef bytes bWF * cdef unsigned int handle = handlePV * if cache: # <<<<<<<<<<<<<< * status = self._c_cafe.getWFAsStringCache(handle, strWF) * else: */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cache); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 1818, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cache); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 1817, __pyx_L1_error) if (__pyx_t_2) { - /* "PyCafe.pyx":1819 + /* "PyCafe.pyx":1818 * cdef unsigned int handle = handlePV * if cache: * status = self._c_cafe.getWFAsStringCache(handle, strWF) # <<<<<<<<<<<<<< @@ -56022,7 +56470,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->_c_cafe->getWFAsStringCache(__pyx_v_handle, __pyx_v_strWF); - /* "PyCafe.pyx":1818 + /* "PyCafe.pyx":1817 * cdef bytes bWF * cdef unsigned int handle = handlePV * if cache: # <<<<<<<<<<<<<< @@ -56032,7 +56480,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":1821 + /* "PyCafe.pyx":1820 * status = self._c_cafe.getWFAsStringCache(handle, strWF) * else: * with nogil: # <<<<<<<<<<<<<< @@ -56048,7 +56496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":1822 + /* "PyCafe.pyx":1821 * else: * with nogil: * status = self._c_cafe.getWFAsString(handle, strWF) # <<<<<<<<<<<<<< @@ -56058,7 +56506,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->getWFAsString(__pyx_v_handle, __pyx_v_strWF); } - /* "PyCafe.pyx":1821 + /* "PyCafe.pyx":1820 * status = self._c_cafe.getWFAsStringCache(handle, strWF) * else: * with nogil: # <<<<<<<<<<<<<< @@ -56079,7 +56527,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC } __pyx_L3:; - /* "PyCafe.pyx":1838 + /* "PyCafe.pyx":1837 * ##FOR TESTINg raise PyCafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -56089,7 +56537,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1840 + /* "PyCafe.pyx":1839 * if status != ICAFE_NORMAL: * * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -56099,7 +56547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1841 + /* "PyCafe.pyx":1840 * * if self._enable_exceptions: * PyCafeException = self.prepareCafeException( # <<<<<<<<<<<<<< @@ -56108,12 +56556,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC */ __pyx_t_4.__pyx_n = 1; __pyx_t_4.handle = __pyx_v_handle; - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->prepareCafeException(__pyx_v_self, __pyx_v_status, __pyx_v__METHOD, &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1841, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->prepareCafeException(__pyx_v_self, __pyx_v_status, __pyx_v__METHOD, &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_PyCafeException = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":1843 + /* "PyCafe.pyx":1842 * PyCafeException = self.prepareCafeException( * status, _METHOD, handle=handle) * raise PyCafeException # <<<<<<<<<<<<<< @@ -56121,9 +56569,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC * elif PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ __Pyx_Raise(__pyx_v_PyCafeException, 0, 0, 0); - __PYX_ERR(3, 1843, __pyx_L1_error) + __PYX_ERR(3, 1842, __pyx_L1_error) - /* "PyCafe.pyx":1840 + /* "PyCafe.pyx":1839 * if status != ICAFE_NORMAL: * * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -56133,7 +56581,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC goto __pyx_L8; } - /* "PyCafe.pyx":1845 + /* "PyCafe.pyx":1844 * raise PyCafeException * * elif PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -56143,7 +56591,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1846 + /* "PyCafe.pyx":1845 * * elif PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -56152,7 +56600,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":1845 + /* "PyCafe.pyx":1844 * raise PyCafeException * * elif PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -56162,7 +56610,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC } __pyx_L8:; - /* "PyCafe.pyx":1838 + /* "PyCafe.pyx":1837 * ##FOR TESTINg raise PyCafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -56171,14 +56619,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":1849 + /* "PyCafe.pyx":1848 * * * bWF = strWF # <<<<<<<<<<<<<< * a = (bWF).decode('latin-1') * return a */ - __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_strWF); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1849, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_strWF); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __Pyx_INCREF(__pyx_t_5); @@ -56186,7 +56634,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_v_bWF = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":1850 + /* "PyCafe.pyx":1849 * * bWF = strWF * a = (bWF).decode('latin-1') # <<<<<<<<<<<<<< @@ -56195,14 +56643,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bWF == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 1850, __pyx_L1_error) + __PYX_ERR(3, 1849, __pyx_L1_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bWF, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1850, __pyx_L1_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bWF, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_a = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":1851 + /* "PyCafe.pyx":1850 * bWF = strWF * a = (bWF).decode('latin-1') * return a # <<<<<<<<<<<<<< @@ -56214,7 +56662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC __pyx_r = __pyx_v_a; goto __pyx_L0; - /* "PyCafe.pyx":1812 + /* "PyCafe.pyx":1811 * ################################################################################## * @verify_handlepv * def getWFAsString(self, handlePV, cache: bool = False): # <<<<<<<<<<<<<< @@ -56240,7 +56688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_206getWFAsString(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":1866 +/* "PyCafe.pyx":1865 * ############################################################################ * * def getWFAsStringCache(self, handlePV): # <<<<<<<<<<<<<< @@ -56270,7 +56718,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_208getWFAsStringCache(struct __pyx_obj PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getWFAsStringCache", 0); - /* "PyCafe.pyx":1867 + /* "PyCafe.pyx":1866 * * def getWFAsStringCache(self, handlePV): * return self.getWFAsString(handlePV, cache=True) # <<<<<<<<<<<<<< @@ -56278,17 +56726,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_208getWFAsStringCache(struct __pyx_obj * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1867, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1867, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1867, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_cache, Py_True) < 0) __PYX_ERR(3, 1867, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1867, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_cache, Py_True) < 0) __PYX_ERR(3, 1866, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -56297,7 +56745,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_208getWFAsStringCache(struct __pyx_obj __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1866 + /* "PyCafe.pyx":1865 * ############################################################################ * * def getWFAsStringCache(self, handlePV): # <<<<<<<<<<<<<< @@ -56321,7 +56769,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_208getWFAsStringCache(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":1873 +/* "PyCafe.pyx":1872 * ############################################################################ * @verify_handlepv * def isEnum(self, handlePV): # <<<<<<<<<<<<<< @@ -56349,7 +56797,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_210isEnum(struct __pyx_obj_6PyCafe_CyC PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("isEnum", 0); - /* "PyCafe.pyx":1874 + /* "PyCafe.pyx":1873 * @verify_handlepv * def isEnum(self, handlePV): * return self._c_cafe.isEnum(handlePV) # <<<<<<<<<<<<<< @@ -56357,14 +56805,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_210isEnum(struct __pyx_obj_6PyCafe_CyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1874, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isEnum(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1874, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1873, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isEnum(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1873 + /* "PyCafe.pyx":1872 * ############################################################################ * @verify_handlepv * def isEnum(self, handlePV): # <<<<<<<<<<<<<< @@ -56385,7 +56833,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_210isEnum(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":1879 +/* "PyCafe.pyx":1878 * ############################################################################ * @verify_handlepv * def getEnumStrings(self, handlePV): # <<<<<<<<<<<<<< @@ -56413,7 +56861,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_212getEnumStrings(struct __pyx_obj_6Py PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getEnumStrings", 0); - /* "PyCafe.pyx":1880 + /* "PyCafe.pyx":1879 * @verify_handlepv * def getEnumStrings(self, handlePV): * return self.hh.getEnumStrings(handlePV) # <<<<<<<<<<<<<< @@ -56421,14 +56869,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_212getEnumStrings(struct __pyx_obj_6Py * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1880, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_self->hh.getEnumStrings(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1880, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1879, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_self->hh.getEnumStrings(__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1879 + /* "PyCafe.pyx":1878 * ############################################################################ * @verify_handlepv * def getEnumStrings(self, handlePV): # <<<<<<<<<<<<<< @@ -56449,7 +56897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_212getEnumStrings(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":1884 +/* "PyCafe.pyx":1883 * ############################################################################ * @verify_handlepv * def getEnumFromString(self, handlePV, str enumString): # <<<<<<<<<<<<<< @@ -56488,11 +56936,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_215getEnumFromString(PyObject *__pyx_v case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_enumString)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("getEnumFromString", 1, 2, 2, 1); __PYX_ERR(3, 1884, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getEnumFromString", 1, 2, 2, 1); __PYX_ERR(3, 1883, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getEnumFromString") < 0)) __PYX_ERR(3, 1884, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getEnumFromString") < 0)) __PYX_ERR(3, 1883, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -56505,13 +56953,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_215getEnumFromString(PyObject *__pyx_v } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getEnumFromString", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1884, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getEnumFromString", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1883, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getEnumFromString", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_enumString), (&PyUnicode_Type), 1, "enumString", 1))) __PYX_ERR(3, 1884, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_enumString), (&PyUnicode_Type), 1, "enumString", 1))) __PYX_ERR(3, 1883, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_enumString); /* function exit code */ @@ -56538,7 +56986,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("getEnumFromString", 0); - /* "PyCafe.pyx":1885 + /* "PyCafe.pyx":1884 * @verify_handlepv * def getEnumFromString(self, handlePV, str enumString): * cdef str _METHOD = "getEnumFromString" # <<<<<<<<<<<<<< @@ -56548,18 +56996,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ __Pyx_INCREF(__pyx_n_u_getEnumFromString); __pyx_v__METHOD = __pyx_n_u_getEnumFromString; - /* "PyCafe.pyx":1887 + /* "PyCafe.pyx":1886 * cdef str _METHOD = "getEnumFromString" * cdef short enumValue * enumValue = self.hh.getEnumFromString(handlePV, enumString) # <<<<<<<<<<<<<< * if enumValue == INVALID_ENUM_RETURN_VALUE: * raise ValueError( */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1887, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_enumString); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1887, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1886, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_enumString); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1886, __pyx_L1_error) __pyx_v_enumValue = __pyx_v_self->hh.getEnumFromString(__pyx_t_1, ((std::string)__pyx_t_2)); - /* "PyCafe.pyx":1888 + /* "PyCafe.pyx":1887 * cdef short enumValue * enumValue = self.hh.getEnumFromString(handlePV, enumString) * if enumValue == INVALID_ENUM_RETURN_VALUE: # <<<<<<<<<<<<<< @@ -56569,17 +57017,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ __pyx_t_3 = ((__pyx_v_enumValue == INVALID_ENUM_RETURN_VALUE) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":1890 + /* "PyCafe.pyx":1889 * if enumValue == INVALID_ENUM_RETURN_VALUE: * raise ValueError( * "{0} {1} \n{2} {3} {4} \n{5}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "ENUM string value:", enumString, "not recognized! ", */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_0_1_2_3_4_5, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1890, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_0_1_2_3_4_5, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":1892 + /* "PyCafe.pyx":1891 * "{0} {1} \n{2} {3} {4} \n{5}".format( * self._exception_text, _METHOD, * "ENUM string value:", enumString, "not recognized! ", # <<<<<<<<<<<<<< @@ -56601,7 +57049,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[7] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_ENUM_string_value, __pyx_v_enumString, __pyx_kp_u_not_recognized, __pyx_kp_u_Execute_getEnumStrings_handlePV}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1890, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1889, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -56609,13 +57057,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[7] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_ENUM_string_value, __pyx_v_enumString, __pyx_kp_u_not_recognized, __pyx_kp_u_Execute_getEnumStrings_handlePV}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1890, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1889, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_8 = PyTuple_New(6+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1890, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(6+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -56638,27 +57086,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ __Pyx_INCREF(__pyx_kp_u_Execute_getEnumStrings_handlePV); __Pyx_GIVEREF(__pyx_kp_u_Execute_getEnumStrings_handlePV); PyTuple_SET_ITEM(__pyx_t_8, 5+__pyx_t_7, __pyx_kp_u_Execute_getEnumStrings_handlePV); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1890, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":1889 + /* "PyCafe.pyx":1888 * enumValue = self.hh.getEnumFromString(handlePV, enumString) * if enumValue == INVALID_ENUM_RETURN_VALUE: * raise ValueError( # <<<<<<<<<<<<<< * "{0} {1} \n{2} {3} {4} \n{5}".format( * self._exception_text, _METHOD, */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1889, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 1889, __pyx_L1_error) + __PYX_ERR(3, 1888, __pyx_L1_error) - /* "PyCafe.pyx":1888 + /* "PyCafe.pyx":1887 * cdef short enumValue * enumValue = self.hh.getEnumFromString(handlePV, enumString) * if enumValue == INVALID_ENUM_RETURN_VALUE: # <<<<<<<<<<<<<< @@ -56667,7 +57115,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ */ } - /* "PyCafe.pyx":1894 + /* "PyCafe.pyx":1893 * "ENUM string value:", enumString, "not recognized! ", * "Execute getEnumStrings(handlePV) to view enumerated values")) * return enumValue # <<<<<<<<<<<<<< @@ -56675,13 +57123,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_short(__pyx_v_enumValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1894, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_short(__pyx_v_enumValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1884 + /* "PyCafe.pyx":1883 * ############################################################################ * @verify_handlepv * def getEnumFromString(self, handlePV, str enumString): # <<<<<<<<<<<<<< @@ -56706,7 +57154,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_214getEnumFromString(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1898 +/* "PyCafe.pyx":1897 * ############################################################################ * @verify_handlepv * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): # <<<<<<<<<<<<<< @@ -56749,7 +57197,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_217getStringFromEnum(PyObject *__pyx_v } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStringFromEnum") < 0)) __PYX_ERR(3, 1898, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStringFromEnum") < 0)) __PYX_ERR(3, 1897, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -56762,14 +57210,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_217getStringFromEnum(PyObject *__pyx_v } __pyx_v_handlePV = values[0]; if (values[1]) { - __pyx_v_enumValue = __Pyx_PyInt_As_unsigned_short(values[1]); if (unlikely((__pyx_v_enumValue == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 1898, __pyx_L3_error) + __pyx_v_enumValue = __Pyx_PyInt_As_unsigned_short(values[1]); if (unlikely((__pyx_v_enumValue == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 1897, __pyx_L3_error) } else { __pyx_v_enumValue = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getStringFromEnum", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1898, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getStringFromEnum", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1897, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getStringFromEnum", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -56797,7 +57245,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("getStringFromEnum", 0); - /* "PyCafe.pyx":1899 + /* "PyCafe.pyx":1898 * @verify_handlepv * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): * cdef str _METHOD = "getStringFromEnum" # <<<<<<<<<<<<<< @@ -56807,17 +57255,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ __Pyx_INCREF(__pyx_n_u_getStringFromEnum); __pyx_v__METHOD = __pyx_n_u_getStringFromEnum; - /* "PyCafe.pyx":1900 + /* "PyCafe.pyx":1899 * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): * cdef str _METHOD = "getStringFromEnum" * cdef string enumString = self.hh.getStringFromEnum(handlePV, enumValue) # <<<<<<<<<<<<<< * if enumString == INVALID_ENUM_RETURN_STRING: * raise ValueError( */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1900, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1899, __pyx_L1_error) __pyx_v_enumString = __pyx_v_self->hh.getStringFromEnum(__pyx_t_1, __pyx_v_enumValue); - /* "PyCafe.pyx":1901 + /* "PyCafe.pyx":1900 * cdef str _METHOD = "getStringFromEnum" * cdef string enumString = self.hh.getStringFromEnum(handlePV, enumValue) * if enumString == INVALID_ENUM_RETURN_STRING: # <<<<<<<<<<<<<< @@ -56827,24 +57275,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ __pyx_t_2 = ((__pyx_v_enumString == INVALID_ENUM_RETURN_STRING) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":1903 + /* "PyCafe.pyx":1902 * if enumString == INVALID_ENUM_RETURN_STRING: * raise ValueError( * "{} {} \n{} {} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "ENUM value:", enumValue, "is not a valid option. ", */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__44, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1903, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__44, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":1905 + /* "PyCafe.pyx":1904 * "{} {} \n{} {} {} \n{}".format( * self._exception_text, _METHOD, * "ENUM value:", enumValue, "is not a valid option. ", # <<<<<<<<<<<<<< * "Execute getEnumStrings(handlePV) to view enumerated values")) * return enumString */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_enumValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1905, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_enumValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 1904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -56861,7 +57309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[7] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_ENUM_value, __pyx_t_5, __pyx_kp_u_is_not_a_valid_option, __pyx_kp_u_Execute_getEnumStrings_handlePV}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1903, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1902, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -56870,14 +57318,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[7] = {__pyx_t_6, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_ENUM_value, __pyx_t_5, __pyx_kp_u_is_not_a_valid_option, __pyx_kp_u_Execute_getEnumStrings_handlePV}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1903, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 6+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1902, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { - __pyx_t_8 = PyTuple_New(6+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1903, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(6+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -56900,27 +57348,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ __Pyx_GIVEREF(__pyx_kp_u_Execute_getEnumStrings_handlePV); PyTuple_SET_ITEM(__pyx_t_8, 5+__pyx_t_7, __pyx_kp_u_Execute_getEnumStrings_handlePV); __pyx_t_5 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1903, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":1902 + /* "PyCafe.pyx":1901 * cdef string enumString = self.hh.getStringFromEnum(handlePV, enumValue) * if enumString == INVALID_ENUM_RETURN_STRING: * raise ValueError( # <<<<<<<<<<<<<< * "{} {} \n{} {} {} \n{}".format( * self._exception_text, _METHOD, */ - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1902, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 1902, __pyx_L1_error) + __PYX_ERR(3, 1901, __pyx_L1_error) - /* "PyCafe.pyx":1901 + /* "PyCafe.pyx":1900 * cdef str _METHOD = "getStringFromEnum" * cdef string enumString = self.hh.getStringFromEnum(handlePV, enumValue) * if enumString == INVALID_ENUM_RETURN_STRING: # <<<<<<<<<<<<<< @@ -56929,7 +57377,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ */ } - /* "PyCafe.pyx":1907 + /* "PyCafe.pyx":1906 * "ENUM value:", enumValue, "is not a valid option. ", * "Execute getEnumStrings(handlePV) to view enumerated values")) * return enumString # <<<<<<<<<<<<<< @@ -56937,13 +57385,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_enumString); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1907, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_enumString); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1898 + /* "PyCafe.pyx":1897 * ############################################################################ * @verify_handlepv * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): # <<<<<<<<<<<<<< @@ -56969,7 +57417,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_216getStringFromEnum(struct __pyx_obj_ return __pyx_r; } -/* "PyCafe.pyx":1921 +/* "PyCafe.pyx":1920 * ############################################################################ * @verify_handlepv * def setDbrBase(self, handlePV, DBR_TYPE dbrBase): # <<<<<<<<<<<<<< @@ -57008,11 +57456,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_219setDbrBase(PyObject *__pyx_v_self, case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dbrBase)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setDbrBase", 1, 2, 2, 1); __PYX_ERR(3, 1921, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setDbrBase", 1, 2, 2, 1); __PYX_ERR(3, 1920, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setDbrBase") < 0)) __PYX_ERR(3, 1921, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setDbrBase") < 0)) __PYX_ERR(3, 1920, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -57021,11 +57469,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_219setDbrBase(PyObject *__pyx_v_self, values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_dbrBase = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1921, __pyx_L3_error) + __pyx_v_dbrBase = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1920, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setDbrBase", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1921, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setDbrBase", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1920, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setDbrBase", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -57047,7 +57495,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe unsigned int __pyx_t_4; __Pyx_RefNannySetupContext("setDbrBase", 0); - /* "PyCafe.pyx":1924 + /* "PyCafe.pyx":1923 * * # Print Warning Message * if dbrBase > DBR_TIME: # <<<<<<<<<<<<<< @@ -57057,49 +57505,49 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_dbrBase > DBR_TIME) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1925 + /* "PyCafe.pyx":1924 * # Print Warning Message * if dbrBase > DBR_TIME: * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") # <<<<<<<<<<<<<< * print("Allowed DBR_TYPEs are:") * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1925, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1926 + /* "PyCafe.pyx":1925 * if dbrBase > DBR_TIME: * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") * print("Allowed DBR_TYPEs are:") # <<<<<<<<<<<<<< * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") * print("The value entered was", dbrBase, "hence assuming DBR_TIME") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1926, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1927 + /* "PyCafe.pyx":1926 * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") * print("Allowed DBR_TYPEs are:") * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") # <<<<<<<<<<<<<< * print("The value entered was", dbrBase, "hence assuming DBR_TIME") * dbrBase = DBR_TIME */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1927, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1928 + /* "PyCafe.pyx":1927 * print("Allowed DBR_TYPEs are:") * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") * print("The value entered was", dbrBase, "hence assuming DBR_TIME") # <<<<<<<<<<<<<< * dbrBase = DBR_TIME * */ - __pyx_t_2 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbrBase); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1928, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbrBase); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1928, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_The_value_entered_was); __Pyx_GIVEREF(__pyx_kp_u_The_value_entered_was); @@ -57110,12 +57558,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe __Pyx_GIVEREF(__pyx_kp_u_hence_assuming_DBR_TIME); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_hence_assuming_DBR_TIME); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1928, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1929 + /* "PyCafe.pyx":1928 * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") * print("The value entered was", dbrBase, "hence assuming DBR_TIME") * dbrBase = DBR_TIME # <<<<<<<<<<<<<< @@ -57124,7 +57572,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe */ __pyx_v_dbrBase = DBR_TIME; - /* "PyCafe.pyx":1924 + /* "PyCafe.pyx":1923 * * # Print Warning Message * if dbrBase > DBR_TIME: # <<<<<<<<<<<<<< @@ -57133,7 +57581,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":1931 + /* "PyCafe.pyx":1930 * dbrBase = DBR_TIME * * return self.hh.setCafeDbrType(handlePV, dbrBase) # <<<<<<<<<<<<<< @@ -57141,14 +57589,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1931, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setCafeDbrType(__pyx_t_4, __pyx_v_dbrBase)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1931, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1930, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setCafeDbrType(__pyx_t_4, __pyx_v_dbrBase)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1921 + /* "PyCafe.pyx":1920 * ############################################################################ * @verify_handlepv * def setDbrBase(self, handlePV, DBR_TYPE dbrBase): # <<<<<<<<<<<<<< @@ -57170,7 +57618,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_218setDbrBase(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":1936 +/* "PyCafe.pyx":1935 * ############################################################################ * @verify_handlepv * def getDbrBase(self, handlePV): # <<<<<<<<<<<<<< @@ -57200,7 +57648,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_220getDbrBase(struct __pyx_obj_6PyCafe PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getDbrBase", 0); - /* "PyCafe.pyx":1938 + /* "PyCafe.pyx":1937 * def getDbrBase(self, handlePV): * * cdef DBR_TYPE _cafeDbrType = DBR_PLAIN # <<<<<<<<<<<<<< @@ -57209,17 +57657,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_220getDbrBase(struct __pyx_obj_6PyCafe */ __pyx_v__cafeDbrType = DBR_PLAIN; - /* "PyCafe.pyx":1939 + /* "PyCafe.pyx":1938 * * cdef DBR_TYPE _cafeDbrType = DBR_PLAIN * cdef int status = self.hh.getCafeDbrType(handlePV, _cafeDbrType) # <<<<<<<<<<<<<< * * return _cafeDbrType */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1939, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1938, __pyx_L1_error) __pyx_v_status = __pyx_v_self->hh.getCafeDbrType(__pyx_t_1, __pyx_v__cafeDbrType); - /* "PyCafe.pyx":1941 + /* "PyCafe.pyx":1940 * cdef int status = self.hh.getCafeDbrType(handlePV, _cafeDbrType) * * return _cafeDbrType # <<<<<<<<<<<<<< @@ -57227,13 +57675,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_220getDbrBase(struct __pyx_obj_6PyCafe * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v__cafeDbrType); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1941, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v__cafeDbrType); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1936 + /* "PyCafe.pyx":1935 * ############################################################################ * @verify_handlepv * def getDbrBase(self, handlePV): # <<<<<<<<<<<<<< @@ -57254,7 +57702,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_220getDbrBase(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":1947 +/* "PyCafe.pyx":1946 * ############################################################################ * @verify_handlepv * def setGetCacheWaitPolicy( # <<<<<<<<<<<<<< @@ -57293,11 +57741,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_223setGetCacheWaitPolicy(PyObject *__p case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wpk)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setGetCacheWaitPolicy", 1, 2, 2, 1); __PYX_ERR(3, 1947, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGetCacheWaitPolicy", 1, 2, 2, 1); __PYX_ERR(3, 1946, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGetCacheWaitPolicy") < 0)) __PYX_ERR(3, 1947, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGetCacheWaitPolicy") < 0)) __PYX_ERR(3, 1946, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -57306,11 +57754,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_223setGetCacheWaitPolicy(PyObject *__p values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_wpk = ((ChannelGetCacheWaitPolicyKind)__Pyx_PyInt_As_ChannelGetCacheWaitPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1948, __pyx_L3_error) + __pyx_v_wpk = ((ChannelGetCacheWaitPolicyKind)__Pyx_PyInt_As_ChannelGetCacheWaitPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1947, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setGetCacheWaitPolicy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1947, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGetCacheWaitPolicy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1946, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setGetCacheWaitPolicy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -57333,7 +57781,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ unsigned int __pyx_t_4; __Pyx_RefNannySetupContext("setGetCacheWaitPolicy", 0); - /* "PyCafe.pyx":1951 + /* "PyCafe.pyx":1950 * * # Print Warning Message * if wpk > GET_CACHE_WAIT: # <<<<<<<<<<<<<< @@ -57343,57 +57791,57 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ __pyx_t_1 = ((__pyx_v_wpk > GET_CACHE_WAIT) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1952 + /* "PyCafe.pyx":1951 * # Print Warning Message * if wpk > GET_CACHE_WAIT: * print( # <<<<<<<<<<<<<< * ("WARNING: PyCafe def setGetCacheWaitPolicy(" * "handle/PV, ChannelGetCacheWaitPolicyKind)")) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1952, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1955 + /* "PyCafe.pyx":1954 * ("WARNING: PyCafe def setGetCacheWaitPolicy(" * "handle/PV, ChannelGetCacheWaitPolicyKind)")) * print("Allowed ChannelGetCacheWaitPolicyKind are:") # <<<<<<<<<<<<<< * print( * ("GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1)," */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1955, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1956 + /* "PyCafe.pyx":1955 * "handle/PV, ChannelGetCacheWaitPolicyKind)")) * print("Allowed ChannelGetCacheWaitPolicyKind are:") * print( # <<<<<<<<<<<<<< * ("GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1)," * "GET_CACHE_WAIT (2)")) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1956, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1960 + /* "PyCafe.pyx":1959 * "GET_CACHE_WAIT (2)")) * print( * "The value entered was", wpk, # <<<<<<<<<<<<<< * "hence assuming default value GET_CACHE_WAIT") * wpk = GET_CACHE_WAIT */ - __pyx_t_2 = __Pyx_PyInt_From_ChannelGetCacheWaitPolicyKind(__pyx_v_wpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1960, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_ChannelGetCacheWaitPolicyKind(__pyx_v_wpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1959 + /* "PyCafe.pyx":1958 * ("GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1)," * "GET_CACHE_WAIT (2)")) * print( # <<<<<<<<<<<<<< * "The value entered was", wpk, * "hence assuming default value GET_CACHE_WAIT") */ - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1959, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_The_value_entered_was); __Pyx_GIVEREF(__pyx_kp_u_The_value_entered_was); @@ -57404,12 +57852,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ __Pyx_GIVEREF(__pyx_kp_u_hence_assuming_default_value_GET); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_hence_assuming_default_value_GET); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1959, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1962 + /* "PyCafe.pyx":1961 * "The value entered was", wpk, * "hence assuming default value GET_CACHE_WAIT") * wpk = GET_CACHE_WAIT # <<<<<<<<<<<<<< @@ -57418,7 +57866,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ */ __pyx_v_wpk = GET_CACHE_WAIT; - /* "PyCafe.pyx":1951 + /* "PyCafe.pyx":1950 * * # Print Warning Message * if wpk > GET_CACHE_WAIT: # <<<<<<<<<<<<<< @@ -57427,7 +57875,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ */ } - /* "PyCafe.pyx":1965 + /* "PyCafe.pyx":1964 * * cdef ChannelGetCacheWaitPolicy channelGetCacheWaitPolicy * channelGetCacheWaitPolicy.setWaitKind(wpk) # <<<<<<<<<<<<<< @@ -57436,7 +57884,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ */ __pyx_v_channelGetCacheWaitPolicy.setWaitKind(__pyx_v_wpk); - /* "PyCafe.pyx":1967 + /* "PyCafe.pyx":1966 * channelGetCacheWaitPolicy.setWaitKind(wpk) * * return self.ph.setChannelGetCacheWaitPolicy( # <<<<<<<<<<<<<< @@ -57445,29 +57893,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ */ __Pyx_XDECREF(__pyx_r); - /* "PyCafe.pyx":1968 + /* "PyCafe.pyx":1967 * * return self.ph.setChannelGetCacheWaitPolicy( * handlePV, channelGetCacheWaitPolicy) # <<<<<<<<<<<<<< * ############################################################################ * */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1968, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 1967, __pyx_L1_error) - /* "PyCafe.pyx":1967 + /* "PyCafe.pyx":1966 * channelGetCacheWaitPolicy.setWaitKind(wpk) * * return self.ph.setChannelGetCacheWaitPolicy( # <<<<<<<<<<<<<< * handlePV, channelGetCacheWaitPolicy) * ############################################################################ */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetCacheWaitPolicy(__pyx_t_4, __pyx_v_channelGetCacheWaitPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1967, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetCacheWaitPolicy(__pyx_t_4, __pyx_v_channelGetCacheWaitPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1947 + /* "PyCafe.pyx":1946 * ############################################################################ * @verify_handlepv * def setGetCacheWaitPolicy( # <<<<<<<<<<<<<< @@ -57489,7 +57937,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_222setGetCacheWaitPolicy(struct __pyx_ return __pyx_r; } -/* "PyCafe.pyx":1972 +/* "PyCafe.pyx":1971 * * ############################################################################ * def setGetCacheWaitPolicyAllHandles( # <<<<<<<<<<<<<< @@ -57505,7 +57953,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_225setGetCacheWaitPolicyAllHandles(PyO __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setGetCacheWaitPolicyAllHandles (wrapper)", 0); assert(__pyx_arg_wpk); { - __pyx_v_wpk = ((ChannelGetCacheWaitPolicyKind)__Pyx_PyInt_As_ChannelGetCacheWaitPolicyKind(__pyx_arg_wpk)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1973, __pyx_L3_error) + __pyx_v_wpk = ((ChannelGetCacheWaitPolicyKind)__Pyx_PyInt_As_ChannelGetCacheWaitPolicyKind(__pyx_arg_wpk)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1972, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -57529,7 +57977,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("setGetCacheWaitPolicyAllHandles", 0); - /* "PyCafe.pyx":1976 + /* "PyCafe.pyx":1975 * * # Print Warning Message * if wpk > GET_CACHE_WAIT: # <<<<<<<<<<<<<< @@ -57539,57 +57987,57 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str __pyx_t_1 = ((__pyx_v_wpk > GET_CACHE_WAIT) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":1977 + /* "PyCafe.pyx":1976 * # Print Warning Message * if wpk > GET_CACHE_WAIT: * print( # <<<<<<<<<<<<<< * "WARNING: PyCafe def setGetCacheWaitPolicyAllHandles( \ * ChannelGetCacheWaitPolicyKind)") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1977, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1980 + /* "PyCafe.pyx":1979 * "WARNING: PyCafe def setGetCacheWaitPolicyAllHandles( \ * ChannelGetCacheWaitPolicyKind)") * print("Allowed ChannelGetCacheWaitPolicyKind are:") # <<<<<<<<<<<<<< * print( * "GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1), \ */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1980, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1981 + /* "PyCafe.pyx":1980 * ChannelGetCacheWaitPolicyKind)") * print("Allowed ChannelGetCacheWaitPolicyKind are:") * print( # <<<<<<<<<<<<<< * "GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1), \ * GET_CACHE_WAIT (2)") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1981, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1985 + /* "PyCafe.pyx":1984 * GET_CACHE_WAIT (2)") * print( * "The value entered was", wpk, # <<<<<<<<<<<<<< * "hence assuming default value GET_CACHE_WAIT") * wpk = GET_CACHE_WAIT */ - __pyx_t_2 = __Pyx_PyInt_From_ChannelGetCacheWaitPolicyKind(__pyx_v_wpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1985, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_ChannelGetCacheWaitPolicyKind(__pyx_v_wpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1984 + /* "PyCafe.pyx":1983 * "GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1), \ * GET_CACHE_WAIT (2)") * print( # <<<<<<<<<<<<<< * "The value entered was", wpk, * "hence assuming default value GET_CACHE_WAIT") */ - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1984, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_The_value_entered_was); __Pyx_GIVEREF(__pyx_kp_u_The_value_entered_was); @@ -57600,12 +58048,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str __Pyx_GIVEREF(__pyx_kp_u_hence_assuming_default_value_GET); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_hence_assuming_default_value_GET); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1984, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":1987 + /* "PyCafe.pyx":1986 * "The value entered was", wpk, * "hence assuming default value GET_CACHE_WAIT") * wpk = GET_CACHE_WAIT # <<<<<<<<<<<<<< @@ -57614,7 +58062,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str */ __pyx_v_wpk = GET_CACHE_WAIT; - /* "PyCafe.pyx":1976 + /* "PyCafe.pyx":1975 * * # Print Warning Message * if wpk > GET_CACHE_WAIT: # <<<<<<<<<<<<<< @@ -57623,7 +58071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str */ } - /* "PyCafe.pyx":1990 + /* "PyCafe.pyx":1989 * * cdef ChannelGetCacheWaitPolicy channelGetCacheWaitPolicy * channelGetCacheWaitPolicy.setWaitKind(wpk) # <<<<<<<<<<<<<< @@ -57632,7 +58080,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str */ __pyx_v_channelGetCacheWaitPolicy.setWaitKind(__pyx_v_wpk); - /* "PyCafe.pyx":1992 + /* "PyCafe.pyx":1991 * channelGetCacheWaitPolicy.setWaitKind(wpk) * * return self.ph.setChannelGetCacheWaitPolicyAllHandles( # <<<<<<<<<<<<<< @@ -57641,20 +58089,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str */ __Pyx_XDECREF(__pyx_r); - /* "PyCafe.pyx":1993 + /* "PyCafe.pyx":1992 * * return self.ph.setChannelGetCacheWaitPolicyAllHandles( * channelGetCacheWaitPolicy) # <<<<<<<<<<<<<< * ############################################################################ * */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetCacheWaitPolicyAllHandles(__pyx_v_channelGetCacheWaitPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1992, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetCacheWaitPolicyAllHandles(__pyx_v_channelGetCacheWaitPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1972 + /* "PyCafe.pyx":1971 * * ############################################################################ * def setGetCacheWaitPolicyAllHandles( # <<<<<<<<<<<<<< @@ -57676,7 +58124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_224setGetCacheWaitPolicyAllHandles(str return __pyx_r; } -/* "PyCafe.pyx":1998 +/* "PyCafe.pyx":1997 * ############################################################################ * @verify_handlepv * def setGetActionWhenMonitorPolicy( # <<<<<<<<<<<<<< @@ -57715,11 +58163,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_227setGetActionWhenMonitorPolicy(PyObj case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wmpk)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setGetActionWhenMonitorPolicy", 1, 2, 2, 1); __PYX_ERR(3, 1998, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGetActionWhenMonitorPolicy", 1, 2, 2, 1); __PYX_ERR(3, 1997, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGetActionWhenMonitorPolicy") < 0)) __PYX_ERR(3, 1998, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGetActionWhenMonitorPolicy") < 0)) __PYX_ERR(3, 1997, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -57728,11 +58176,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_227setGetActionWhenMonitorPolicy(PyObj values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_wmpk = ((ChannelGetActionWhenMonitorPolicyKind)__Pyx_PyInt_As_ChannelGetActionWhenMonitorPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1999, __pyx_L3_error) + __pyx_v_wmpk = ((ChannelGetActionWhenMonitorPolicyKind)__Pyx_PyInt_As_ChannelGetActionWhenMonitorPolicyKind(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 1998, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setGetActionWhenMonitorPolicy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1998, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGetActionWhenMonitorPolicy", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1997, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setGetActionWhenMonitorPolicy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -57755,7 +58203,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc unsigned int __pyx_t_4; __Pyx_RefNannySetupContext("setGetActionWhenMonitorPolicy", 0); - /* "PyCafe.pyx":2002 + /* "PyCafe.pyx":2001 * * # Print Warning Message * if wmpk > GET_FROM_IOC: # <<<<<<<<<<<<<< @@ -57765,49 +58213,49 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc __pyx_t_1 = ((__pyx_v_wmpk > GET_FROM_IOC) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":2003 + /* "PyCafe.pyx":2002 * # Print Warning Message * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") # <<<<<<<<<<<<<< * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2003, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2004 + /* "PyCafe.pyx":2003 * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") # <<<<<<<<<<<<<< * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print("The value entered was", wmpk, */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2004, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2005 + /* "PyCafe.pyx":2004 * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") # <<<<<<<<<<<<<< * print("The value entered was", wmpk, * "hence assuming default value GET_FROM_IOC") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2005, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2006 + /* "PyCafe.pyx":2005 * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print("The value entered was", wmpk, # <<<<<<<<<<<<<< * "hence assuming default value GET_FROM_IOC") * wmpk = GET_FROM_IOC */ - __pyx_t_2 = __Pyx_PyInt_From_ChannelGetActionWhenMonitorPolicyKind(__pyx_v_wmpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2006, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_ChannelGetActionWhenMonitorPolicyKind(__pyx_v_wmpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2006, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_The_value_entered_was); __Pyx_GIVEREF(__pyx_kp_u_The_value_entered_was); @@ -57818,12 +58266,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc __Pyx_GIVEREF(__pyx_kp_u_hence_assuming_default_value_GET_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_hence_assuming_default_value_GET_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2006, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2008 + /* "PyCafe.pyx":2007 * print("The value entered was", wmpk, * "hence assuming default value GET_FROM_IOC") * wmpk = GET_FROM_IOC # <<<<<<<<<<<<<< @@ -57832,7 +58280,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc */ __pyx_v_wmpk = GET_FROM_IOC; - /* "PyCafe.pyx":2002 + /* "PyCafe.pyx":2001 * * # Print Warning Message * if wmpk > GET_FROM_IOC: # <<<<<<<<<<<<<< @@ -57841,7 +58289,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc */ } - /* "PyCafe.pyx":2011 + /* "PyCafe.pyx":2010 * * cdef ChannelGetActionWhenMonitorPolicy channelGetActionWhenMonitorPolicy * channelGetActionWhenMonitorPolicy.setActionKind(wmpk) # <<<<<<<<<<<<<< @@ -57850,7 +58298,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc */ __pyx_v_channelGetActionWhenMonitorPolicy.setActionKind(__pyx_v_wmpk); - /* "PyCafe.pyx":2013 + /* "PyCafe.pyx":2012 * channelGetActionWhenMonitorPolicy.setActionKind(wmpk) * * return self.ph.setChannelGetActionWhenMonitorPolicy( # <<<<<<<<<<<<<< @@ -57859,29 +58307,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc */ __Pyx_XDECREF(__pyx_r); - /* "PyCafe.pyx":2014 + /* "PyCafe.pyx":2013 * * return self.ph.setChannelGetActionWhenMonitorPolicy( * handlePV, channelGetActionWhenMonitorPolicy) # <<<<<<<<<<<<<< * ############################################################################ * */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2014, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2013, __pyx_L1_error) - /* "PyCafe.pyx":2013 + /* "PyCafe.pyx":2012 * channelGetActionWhenMonitorPolicy.setActionKind(wmpk) * * return self.ph.setChannelGetActionWhenMonitorPolicy( # <<<<<<<<<<<<<< * handlePV, channelGetActionWhenMonitorPolicy) * ############################################################################ */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetActionWhenMonitorPolicy(__pyx_t_4, __pyx_v_channelGetActionWhenMonitorPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2013, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetActionWhenMonitorPolicy(__pyx_t_4, __pyx_v_channelGetActionWhenMonitorPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":1998 + /* "PyCafe.pyx":1997 * ############################################################################ * @verify_handlepv * def setGetActionWhenMonitorPolicy( # <<<<<<<<<<<<<< @@ -57903,7 +58351,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_226setGetActionWhenMonitorPolicy(struc return __pyx_r; } -/* "PyCafe.pyx":2018 +/* "PyCafe.pyx":2017 * * ############################################################################ * def setGetActionWhenMonitorPolicyAllHandles( # <<<<<<<<<<<<<< @@ -57919,7 +58367,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_229setGetActionWhenMonitorPolicyAllHan __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setGetActionWhenMonitorPolicyAllHandles (wrapper)", 0); assert(__pyx_arg_wmpk); { - __pyx_v_wmpk = ((ChannelGetActionWhenMonitorPolicyKind)__Pyx_PyInt_As_ChannelGetActionWhenMonitorPolicyKind(__pyx_arg_wmpk)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 2019, __pyx_L3_error) + __pyx_v_wmpk = ((ChannelGetActionWhenMonitorPolicyKind)__Pyx_PyInt_As_ChannelGetActionWhenMonitorPolicyKind(__pyx_arg_wmpk)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 2018, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -57943,7 +58391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("setGetActionWhenMonitorPolicyAllHandles", 0); - /* "PyCafe.pyx":2022 + /* "PyCafe.pyx":2021 * * # Print Warning Message * if wmpk > GET_FROM_IOC: # <<<<<<<<<<<<<< @@ -57953,57 +58401,57 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan __pyx_t_1 = ((__pyx_v_wmpk > GET_FROM_IOC) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":2023 + /* "PyCafe.pyx":2022 * # Print Warning Message * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicyAllHandles") # <<<<<<<<<<<<<< * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2023, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2024 + /* "PyCafe.pyx":2023 * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicyAllHandles") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") # <<<<<<<<<<<<<< * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print( */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2024, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2025 + /* "PyCafe.pyx":2024 * print("WARNING: PyCafe def setGetActionWhenMonitorPolicyAllHandles") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") # <<<<<<<<<<<<<< * print( * "The value entered was", wmpk, */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2025, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2027 + /* "PyCafe.pyx":2026 * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print( * "The value entered was", wmpk, # <<<<<<<<<<<<<< * "hence assuming default value GET_FROM_IOC") * wmpk = GET_FROM_IOC */ - __pyx_t_2 = __Pyx_PyInt_From_ChannelGetActionWhenMonitorPolicyKind(__pyx_v_wmpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2027, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_ChannelGetActionWhenMonitorPolicyKind(__pyx_v_wmpk); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":2026 + /* "PyCafe.pyx":2025 * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print( # <<<<<<<<<<<<<< * "The value entered was", wmpk, * "hence assuming default value GET_FROM_IOC") */ - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2026, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_The_value_entered_was); __Pyx_GIVEREF(__pyx_kp_u_The_value_entered_was); @@ -58014,12 +58462,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan __Pyx_GIVEREF(__pyx_kp_u_hence_assuming_default_value_GET_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_hence_assuming_default_value_GET_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2026, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "PyCafe.pyx":2029 + /* "PyCafe.pyx":2028 * "The value entered was", wmpk, * "hence assuming default value GET_FROM_IOC") * wmpk = GET_FROM_IOC # <<<<<<<<<<<<<< @@ -58028,7 +58476,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan */ __pyx_v_wmpk = GET_FROM_IOC; - /* "PyCafe.pyx":2022 + /* "PyCafe.pyx":2021 * * # Print Warning Message * if wmpk > GET_FROM_IOC: # <<<<<<<<<<<<<< @@ -58037,7 +58485,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan */ } - /* "PyCafe.pyx":2032 + /* "PyCafe.pyx":2031 * * cdef ChannelGetActionWhenMonitorPolicy channelGetActionWhenMonitorPolicy * channelGetActionWhenMonitorPolicy.setActionKind(wmpk) # <<<<<<<<<<<<<< @@ -58046,7 +58494,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan */ __pyx_v_channelGetActionWhenMonitorPolicy.setActionKind(__pyx_v_wmpk); - /* "PyCafe.pyx":2034 + /* "PyCafe.pyx":2033 * channelGetActionWhenMonitorPolicy.setActionKind(wmpk) * * return self.ph.setChannelGetActionWhenMonitorPolicyAllHandles( # <<<<<<<<<<<<<< @@ -58055,20 +58503,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan */ __Pyx_XDECREF(__pyx_r); - /* "PyCafe.pyx":2035 + /* "PyCafe.pyx":2034 * * return self.ph.setChannelGetActionWhenMonitorPolicyAllHandles( * channelGetActionWhenMonitorPolicy) # <<<<<<<<<<<<<< * ############################################################################ * */ - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetActionWhenMonitorPolicyAllHandles(__pyx_v_channelGetActionWhenMonitorPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2034, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ph.setChannelGetActionWhenMonitorPolicyAllHandles(__pyx_v_channelGetActionWhenMonitorPolicy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2018 + /* "PyCafe.pyx":2017 * * ############################################################################ * def setGetActionWhenMonitorPolicyAllHandles( # <<<<<<<<<<<<<< @@ -58090,7 +58538,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_228setGetActionWhenMonitorPolicyAllHan return __pyx_r; } -/* "PyCafe.pyx":2040 +/* "PyCafe.pyx":2039 * ############################################################################ * @verify_handlepv * def getNonBlocking(self, handlePV): # <<<<<<<<<<<<<< @@ -58125,17 +58573,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("getNonBlocking", 0); - /* "PyCafe.pyx":2046 + /* "PyCafe.pyx":2045 * at the end. * ''' * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * cdef int status * */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2046, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2045, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":2049 + /* "PyCafe.pyx":2048 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -58150,7 +58598,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":2050 + /* "PyCafe.pyx":2049 * * with nogil: * status = self._c_cafe.getNonBlocking(handle) # <<<<<<<<<<<<<< @@ -58160,7 +58608,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->getNonBlocking(__pyx_v_handle); } - /* "PyCafe.pyx":2049 + /* "PyCafe.pyx":2048 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -58179,7 +58627,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":2052 + /* "PyCafe.pyx":2051 * status = self._c_cafe.getNonBlocking(handle) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -58189,7 +58637,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2053 + /* "PyCafe.pyx":2052 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -58199,7 +58647,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2054 + /* "PyCafe.pyx":2053 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -58209,7 +58657,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2055 + /* "PyCafe.pyx":2054 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -58218,7 +58666,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":2054 + /* "PyCafe.pyx":2053 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -58228,7 +58676,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py goto __pyx_L8; } - /* "PyCafe.pyx":2057 + /* "PyCafe.pyx":2056 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -58240,7 +58688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py } __pyx_L8:; - /* "PyCafe.pyx":2053 + /* "PyCafe.pyx":2052 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -58249,7 +58697,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":2058 + /* "PyCafe.pyx":2057 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -58259,16 +58707,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2061 + /* "PyCafe.pyx":2060 * raise Exception( * "EXCEPTION RAISED in PyCafe def getNonBlocking. \ * Status = {0}".format(status)) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_2, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2061, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_2, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2061, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -58283,25 +58731,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2061, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2059 + /* "PyCafe.pyx":2058 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def getNonBlocking. \ * Status = {0}".format(status)) */ - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2059, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 2059, __pyx_L1_error) + __PYX_ERR(3, 2058, __pyx_L1_error) - /* "PyCafe.pyx":2058 + /* "PyCafe.pyx":2057 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -58310,7 +58758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":2052 + /* "PyCafe.pyx":2051 * status = self._c_cafe.getNonBlocking(handle) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -58319,7 +58767,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":2063 + /* "PyCafe.pyx":2062 * Status = {0}".format(status)) * * return status # <<<<<<<<<<<<<< @@ -58327,13 +58775,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2063, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2040 + /* "PyCafe.pyx":2039 * ############################################################################ * @verify_handlepv * def getNonBlocking(self, handlePV): # <<<<<<<<<<<<<< @@ -58357,7 +58805,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_230getNonBlocking(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":2067 +/* "PyCafe.pyx":2066 * * ############################################################################ * def getStr(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58401,7 +58849,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_233getStr(PyObject *__pyx_v_self, PyOb } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStr") < 0)) __PYX_ERR(3, 2067, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStr") < 0)) __PYX_ERR(3, 2066, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -58417,7 +58865,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_233getStr(PyObject *__pyx_v_self, PyOb } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getStr", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2067, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getStr", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2066, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getStr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -58439,7 +58887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_232getStr(struct __pyx_obj_6PyCafe_CyC PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getStr", 0); - /* "PyCafe.pyx":2068 + /* "PyCafe.pyx":2067 * ############################################################################ * def getStr(self, handlePV, object cb=None): * return self.get(handlePV, dt='str') # <<<<<<<<<<<<<< @@ -58447,17 +58895,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_232getStr(struct __pyx_obj_6PyCafe_CyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2068, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2068, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2068, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 2068, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2068, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 2067, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -58466,7 +58914,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_232getStr(struct __pyx_obj_6PyCafe_CyC __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2067 + /* "PyCafe.pyx":2066 * * ############################################################################ * def getStr(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58490,7 +58938,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_232getStr(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":2072 +/* "PyCafe.pyx":2071 * * ############################################################################ * def getInt(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58534,7 +58982,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_235getInt(PyObject *__pyx_v_self, PyOb } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getInt") < 0)) __PYX_ERR(3, 2072, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getInt") < 0)) __PYX_ERR(3, 2071, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -58550,7 +58998,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_235getInt(PyObject *__pyx_v_self, PyOb } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getInt", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2072, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getInt", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2071, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getInt", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -58572,7 +59020,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_234getInt(struct __pyx_obj_6PyCafe_CyC PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getInt", 0); - /* "PyCafe.pyx":2073 + /* "PyCafe.pyx":2072 * ############################################################################ * def getInt(self, handlePV, object cb=None): * return self.get(handlePV, dt='int') # <<<<<<<<<<<<<< @@ -58580,17 +59028,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_234getInt(struct __pyx_obj_6PyCafe_CyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2073, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2073, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2073, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 2073, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2073, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 2072, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -58599,7 +59047,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_234getInt(struct __pyx_obj_6PyCafe_CyC __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2072 + /* "PyCafe.pyx":2071 * * ############################################################################ * def getInt(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58623,7 +59071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_234getInt(struct __pyx_obj_6PyCafe_CyC return __pyx_r; } -/* "PyCafe.pyx":2077 +/* "PyCafe.pyx":2076 * * ############################################################################ * def getFloat(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58667,7 +59115,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_237getFloat(PyObject *__pyx_v_self, Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloat") < 0)) __PYX_ERR(3, 2077, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloat") < 0)) __PYX_ERR(3, 2076, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -58683,7 +59131,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_237getFloat(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getFloat", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2077, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getFloat", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2076, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getFloat", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -58705,7 +59153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_236getFloat(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getFloat", 0); - /* "PyCafe.pyx":2078 + /* "PyCafe.pyx":2077 * ############################################################################ * def getFloat(self, handlePV, object cb=None): * return self.get(handlePV, dt='float') # <<<<<<<<<<<<<< @@ -58713,17 +59161,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_236getFloat(struct __pyx_obj_6PyCafe_C * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2078, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2078, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2078, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 2078, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2078, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 2077, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -58732,7 +59180,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_236getFloat(struct __pyx_obj_6PyCafe_C __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2077 + /* "PyCafe.pyx":2076 * * ############################################################################ * def getFloat(self, handlePV, object cb=None): # <<<<<<<<<<<<<< @@ -58756,7 +59204,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_236getFloat(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":2081 +/* "PyCafe.pyx":2080 * ############################################################################ * * def caget(self, str pv_name, str dt='native'): # <<<<<<<<<<<<<< @@ -58800,7 +59248,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_239caget(PyObject *__pyx_v_self, PyObj } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "caget") < 0)) __PYX_ERR(3, 2081, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "caget") < 0)) __PYX_ERR(3, 2080, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -58816,14 +59264,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_239caget(PyObject *__pyx_v_self, PyObj } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("caget", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2081, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("caget", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2080, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.caget", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv_name), (&PyUnicode_Type), 1, "pv_name", 1))) __PYX_ERR(3, 2081, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2081, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv_name), (&PyUnicode_Type), 1, "pv_name", 1))) __PYX_ERR(3, 2080, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2080, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_238caget(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pv_name, __pyx_v_dt); /* function exit code */ @@ -58845,7 +59293,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("caget", 0); - /* "PyCafe.pyx":2082 + /* "PyCafe.pyx":2081 * * def caget(self, str pv_name, str dt='native'): * return self.get(pv_name, dt) # <<<<<<<<<<<<<< @@ -58853,7 +59301,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa * def caput(self, str pv_name, pv_value): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2082, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -58870,7 +59318,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_pv_name, __pyx_v_dt}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2082, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -58878,13 +59326,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_pv_name, __pyx_v_dt}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2082, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2081, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2082, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -58895,7 +59343,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_v_dt); __Pyx_GIVEREF(__pyx_v_dt); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_dt); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2082, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -58904,7 +59352,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2081 + /* "PyCafe.pyx":2080 * ############################################################################ * * def caget(self, str pv_name, str dt='native'): # <<<<<<<<<<<<<< @@ -58928,7 +59376,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_238caget(struct __pyx_obj_6PyCafe_CyCa return __pyx_r; } -/* "PyCafe.pyx":2084 +/* "PyCafe.pyx":2083 * return self.get(pv_name, dt) * * def caput(self, str pv_name, pv_value): # <<<<<<<<<<<<<< @@ -58967,11 +59415,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_241caput(PyObject *__pyx_v_self, PyObj case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pv_value)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("caput", 1, 2, 2, 1); __PYX_ERR(3, 2084, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("caput", 1, 2, 2, 1); __PYX_ERR(3, 2083, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "caput") < 0)) __PYX_ERR(3, 2084, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "caput") < 0)) __PYX_ERR(3, 2083, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -58984,13 +59432,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_241caput(PyObject *__pyx_v_self, PyObj } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("caput", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2084, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("caput", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2083, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.caput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv_name), (&PyUnicode_Type), 1, "pv_name", 1))) __PYX_ERR(3, 2084, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv_name), (&PyUnicode_Type), 1, "pv_name", 1))) __PYX_ERR(3, 2083, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_240caput(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pv_name, __pyx_v_pv_value); /* function exit code */ @@ -59012,7 +59460,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("caput", 0); - /* "PyCafe.pyx":2085 + /* "PyCafe.pyx":2084 * * def caput(self, str pv_name, pv_value): * return self.set(pv_name, pv_value) # <<<<<<<<<<<<<< @@ -59020,7 +59468,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -59037,7 +59485,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_pv_name, __pyx_v_pv_value}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2084, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -59045,13 +59493,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_pv_name, __pyx_v_pv_value}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2084, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -59062,7 +59510,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_v_pv_value); __Pyx_GIVEREF(__pyx_v_pv_value); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_pv_value); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -59071,7 +59519,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2084 + /* "PyCafe.pyx":2083 * return self.get(pv_name, dt) * * def caput(self, str pv_name, pv_value): # <<<<<<<<<<<<<< @@ -59095,7 +59543,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_240caput(struct __pyx_obj_6PyCafe_CyCa return __pyx_r; } -/* "PyCafe.pyx":2089 +/* "PyCafe.pyx":2088 * ############################################################################ * @verify_handlepv * def get(self, handlePV = 0, str dt='native'): # <<<<<<<<<<<<<< @@ -59142,7 +59590,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_243get(PyObject *__pyx_v_self, PyObjec } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(3, 2089, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(3, 2088, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -59159,13 +59607,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_243get(PyObject *__pyx_v_self, PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("get", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2089, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("get", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2088, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.get", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2089, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2088, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_242get(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -59207,7 +59655,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe std::string __pyx_t_15; __Pyx_RefNannySetupContext("get", 0); - /* "PyCafe.pyx":2090 + /* "PyCafe.pyx":2089 * @verify_handlepv * def get(self, handlePV = 0, str dt='native'): * cdef str _METHOD = "get(handlePV, dt)" # <<<<<<<<<<<<<< @@ -59217,17 +59665,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_kp_u_get_handlePV_dt); __pyx_v__METHOD = __pyx_kp_u_get_handlePV_dt; - /* "PyCafe.pyx":2092 + /* "PyCafe.pyx":2091 * cdef str _METHOD = "get(handlePV, dt)" * * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * cdef int status * cdef long dtr = 0 */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2092, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2091, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":2094 + /* "PyCafe.pyx":2093 * cdef unsigned int handle = handlePV * cdef int status * cdef long dtr = 0 # <<<<<<<<<<<<<< @@ -59236,7 +59684,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_dtr = 0; - /* "PyCafe.pyx":2096 + /* "PyCafe.pyx":2095 * cdef long dtr = 0 * * status = self.hh.getDataTypeNative(handle, dtr) # <<<<<<<<<<<<<< @@ -59245,7 +59693,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_status = __pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_dtr); - /* "PyCafe.pyx":2098 + /* "PyCafe.pyx":2097 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -59255,7 +59703,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2099 + /* "PyCafe.pyx":2098 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59265,7 +59713,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2100 + /* "PyCafe.pyx":2099 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -59275,7 +59723,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2101 + /* "PyCafe.pyx":2100 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -59284,7 +59732,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":2100 + /* "PyCafe.pyx":2099 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -59294,7 +59742,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L5; } - /* "PyCafe.pyx":2103 + /* "PyCafe.pyx":2102 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -59306,7 +59754,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L5:; - /* "PyCafe.pyx":2099 + /* "PyCafe.pyx":2098 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59315,7 +59763,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2104 + /* "PyCafe.pyx":2103 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59325,68 +59773,68 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2106 + /* "PyCafe.pyx":2105 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), _error_code=status, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2106, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2107 + /* "PyCafe.pyx":2106 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), _error_code=status, # <<<<<<<<<<<<<< * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2107, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2107, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2108 + /* "PyCafe.pyx":2107 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), _error_code=status, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * return None */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2108, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2108, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2106, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2105 + /* "PyCafe.pyx":2104 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), _error_code=status, */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2105, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2109 + /* "PyCafe.pyx":2108 * _pv_name=self._c_cafe.getPVFromHandle(handle), _error_code=status, * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -59394,9 +59842,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2109, __pyx_L1_error) + __PYX_ERR(3, 2108, __pyx_L1_error) - /* "PyCafe.pyx":2104 + /* "PyCafe.pyx":2103 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59405,7 +59853,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2110 + /* "PyCafe.pyx":2109 * _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException * return None # <<<<<<<<<<<<<< @@ -59416,7 +59864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2098 + /* "PyCafe.pyx":2097 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -59426,7 +59874,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L3; } - /* "PyCafe.pyx":2112 + /* "PyCafe.pyx":2111 * return None * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -59445,7 +59893,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2113 + /* "PyCafe.pyx":2112 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -59455,7 +59903,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = ((!(__pyx_v_self->_c_cafe->isChannelConnected(__pyx_v_handle) != 0)) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2114 + /* "PyCafe.pyx":2113 * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -59464,7 +59912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":2115 + /* "PyCafe.pyx":2114 * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59474,7 +59922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2116 + /* "PyCafe.pyx":2115 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus( # <<<<<<<<<<<<<< @@ -59483,7 +59931,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_self->channelInfo.getCafeConnectionState()); - /* "PyCafe.pyx":2115 + /* "PyCafe.pyx":2114 * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59492,7 +59940,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2118 + /* "PyCafe.pyx":2117 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59502,84 +59950,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2120 + /* "PyCafe.pyx":2119 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2120, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2121 + /* "PyCafe.pyx":2120 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2121, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2122 + /* "PyCafe.pyx":2121 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), # <<<<<<<<<<<<<< * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), */ - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2122, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2123 + /* "PyCafe.pyx":2122 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2123, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2125 + /* "PyCafe.pyx":2124 * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState())) * raise _cafeException */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2125, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2120, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2119 + /* "PyCafe.pyx":2118 * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2119, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2127 + /* "PyCafe.pyx":2126 * _error_info=self.cs.info( * self.channelInfo.getCafeConnectionState())) * raise _cafeException # <<<<<<<<<<<<<< @@ -59587,9 +60035,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * return None */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2127, __pyx_L1_error) + __PYX_ERR(3, 2126, __pyx_L1_error) - /* "PyCafe.pyx":2118 + /* "PyCafe.pyx":2117 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59598,7 +60046,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2129 + /* "PyCafe.pyx":2128 * raise _cafeException * * return None # <<<<<<<<<<<<<< @@ -59609,7 +60057,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2113 + /* "PyCafe.pyx":2112 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -59618,7 +60066,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2132 + /* "PyCafe.pyx":2131 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59628,7 +60076,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2133 + /* "PyCafe.pyx":2132 * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) # <<<<<<<<<<<<<< @@ -59637,7 +60085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, ICAFE_TYPENOTCONN); - /* "PyCafe.pyx":2132 + /* "PyCafe.pyx":2131 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -59646,7 +60094,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2134 + /* "PyCafe.pyx":2133 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59656,84 +60104,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2136 + /* "PyCafe.pyx":2135 * if self._enable_exceptions: * _cafeException = CafeException( * type='cafe', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2136, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type_3, __pyx_n_u_cafe) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type_3, __pyx_n_u_cafe) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2137 + /* "PyCafe.pyx":2136 * _cafeException = CafeException( * type='cafe', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2137, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2138 + /* "PyCafe.pyx":2137 * type='cafe', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) */ - __pyx_t_4 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2138, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2139 + /* "PyCafe.pyx":2138 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2139, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2140 + /* "PyCafe.pyx":2139 * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) # <<<<<<<<<<<<<< * raise _cafeException * return None */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2140, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2135 + /* "PyCafe.pyx":2134 * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * type='cafe', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2135, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2141 + /* "PyCafe.pyx":2140 * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException # <<<<<<<<<<<<<< @@ -59741,9 +60189,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2141, __pyx_L1_error) + __PYX_ERR(3, 2140, __pyx_L1_error) - /* "PyCafe.pyx":2134 + /* "PyCafe.pyx":2133 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -59752,7 +60200,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2142 + /* "PyCafe.pyx":2141 * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException * return None # <<<<<<<<<<<<<< @@ -59763,7 +60211,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2112 + /* "PyCafe.pyx":2111 * return None * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -59773,7 +60221,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L3:; - /* "PyCafe.pyx":2145 + /* "PyCafe.pyx":2144 * * * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -59782,19 +60230,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":2146 + /* "PyCafe.pyx":2145 * * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if str(self.channelInfo.getClassNameAsString()) in ['waveform'] \ # <<<<<<<<<<<<<< * and dtr in [DBR_CHAR] and dt in ['str']: * return self.getWFAsString(handle) */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->channelInfo.getClassNameAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2146, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->channelInfo.getClassNameAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2146, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_waveform, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2146, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_waveform, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = ((__pyx_t_2 != 0) != 0); if (__pyx_t_6) { @@ -59803,7 +60251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L13_bool_binop_done; } - /* "PyCafe.pyx":2147 + /* "PyCafe.pyx":2146 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if str(self.channelInfo.getClassNameAsString()) in ['waveform'] \ * and dtr in [DBR_CHAR] and dt in ['str']: # <<<<<<<<<<<<<< @@ -59819,13 +60267,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } __Pyx_INCREF(__pyx_v_dt); __pyx_t_8 = __pyx_v_dt; - __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_8, __pyx_n_u_str, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 2147, __pyx_L1_error) + __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_8, __pyx_n_u_str, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 2146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_2 = ((__pyx_t_6 != 0) != 0); __pyx_t_5 = __pyx_t_2; __pyx_L13_bool_binop_done:; - /* "PyCafe.pyx":2146 + /* "PyCafe.pyx":2145 * * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if str(self.channelInfo.getClassNameAsString()) in ['waveform'] \ # <<<<<<<<<<<<<< @@ -59834,7 +60282,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ if (__pyx_t_5) { - /* "PyCafe.pyx":2148 + /* "PyCafe.pyx":2147 * if str(self.channelInfo.getClassNameAsString()) in ['waveform'] \ * and dtr in [DBR_CHAR] and dt in ['str']: * return self.getWFAsString(handle) # <<<<<<<<<<<<<< @@ -59842,9 +60290,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * cdef int dtcheck = dtr */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2148, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2148, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -59859,14 +60307,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_10, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2148, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2146 + /* "PyCafe.pyx":2145 * * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if str(self.channelInfo.getClassNameAsString()) in ['waveform'] \ # <<<<<<<<<<<<<< @@ -59875,7 +60323,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2150 + /* "PyCafe.pyx":2149 * return self.getWFAsString(handle) * * cdef int dtcheck = dtr # <<<<<<<<<<<<<< @@ -59884,23 +60332,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_dtcheck = __pyx_v_dtr; - /* "PyCafe.pyx":2151 + /* "PyCafe.pyx":2150 * * cdef int dtcheck = dtr * dtcheck = getMatchedDataType(dt, dtr) # <<<<<<<<<<<<<< * * cdef bytes bVal */ - __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2151, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2151, __pyx_L1_error) + __pyx_t_4 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2151, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_dtcheck = __pyx_t_11; - /* "PyCafe.pyx":2155 + /* "PyCafe.pyx":2154 * cdef bytes bVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -59910,7 +60358,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":2156 + /* "PyCafe.pyx":2155 * * if dtcheck in [CAFE_STRING]: * with nogil: # <<<<<<<<<<<<<< @@ -59925,7 +60373,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":2157 + /* "PyCafe.pyx":2156 * if dtcheck in [CAFE_STRING]: * with nogil: * status = self._c_cafe.getString(handle, self.valStr) # <<<<<<<<<<<<<< @@ -59935,7 +60383,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->getString(__pyx_v_handle, __pyx_v_self->valStr); } - /* "PyCafe.pyx":2156 + /* "PyCafe.pyx":2155 * * if dtcheck in [CAFE_STRING]: * with nogil: # <<<<<<<<<<<<<< @@ -59954,7 +60402,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":2159 + /* "PyCafe.pyx":2158 * status = self._c_cafe.getString(handle, self.valStr) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -59964,14 +60412,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_5 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2160 + /* "PyCafe.pyx":2159 * * if status == ICAFE_NORMAL: * bVal = self.valStr # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): */ - __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2160, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); @@ -59979,7 +60427,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_bVal = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2161 + /* "PyCafe.pyx":2160 * if status == ICAFE_NORMAL: * bVal = self.valStr * encoding = False # <<<<<<<<<<<<<< @@ -59988,21 +60436,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":2162 + /* "PyCafe.pyx":2161 * bVal = self.valStr * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< * try: * valStr = (bVal).decode('latin-1') */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2162, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2162, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2161, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2163 + /* "PyCafe.pyx":2162 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -60018,7 +60466,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":2164 + /* "PyCafe.pyx":2163 * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: * valStr = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -60027,14 +60475,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2164, __pyx_L21_error) + __PYX_ERR(3, 2163, __pyx_L21_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2164, __pyx_L21_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2163, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_valStr = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":2165 + /* "PyCafe.pyx":2164 * try: * valStr = (bVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -60043,7 +60491,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2163 + /* "PyCafe.pyx":2162 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -60062,7 +60510,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":2166 + /* "PyCafe.pyx":2165 * valStr = (bVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -60077,7 +60525,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L23_except_error; __pyx_L23_except_error:; - /* "PyCafe.pyx":2163 + /* "PyCafe.pyx":2162 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -60097,7 +60545,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_L26_try_end:; } - /* "PyCafe.pyx":2162 + /* "PyCafe.pyx":2161 * bVal = self.valStr * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< @@ -60106,7 +60554,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2168 + /* "PyCafe.pyx":2167 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60116,7 +60564,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2169 + /* "PyCafe.pyx":2168 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60132,7 +60580,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":2170 + /* "PyCafe.pyx":2169 * if not encoding: * try: * valStr = (bVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -60141,14 +60589,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2170, __pyx_L28_error) + __PYX_ERR(3, 2169, __pyx_L28_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2170, __pyx_L28_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2169, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2171 + /* "PyCafe.pyx":2170 * try: * valStr = (bVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -60157,7 +60605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2169 + /* "PyCafe.pyx":2168 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60176,7 +60624,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":2172 + /* "PyCafe.pyx":2171 * valStr = (bVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -60191,7 +60639,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L30_except_error; __pyx_L30_except_error:; - /* "PyCafe.pyx":2169 + /* "PyCafe.pyx":2168 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60211,7 +60659,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_L33_try_end:; } - /* "PyCafe.pyx":2168 + /* "PyCafe.pyx":2167 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60220,7 +60668,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2174 + /* "PyCafe.pyx":2173 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60230,7 +60678,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2175 + /* "PyCafe.pyx":2174 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60246,7 +60694,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":2176 + /* "PyCafe.pyx":2175 * if not encoding: * try: * valStr = (bVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -60255,14 +60703,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2176, __pyx_L35_error) + __PYX_ERR(3, 2175, __pyx_L35_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2176, __pyx_L35_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2175, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2177 + /* "PyCafe.pyx":2176 * try: * valStr = (bVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -60271,7 +60719,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2175 + /* "PyCafe.pyx":2174 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60290,7 +60738,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":2178 + /* "PyCafe.pyx":2177 * valStr = (bVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -60305,7 +60753,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37_except_error; __pyx_L37_except_error:; - /* "PyCafe.pyx":2175 + /* "PyCafe.pyx":2174 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60325,7 +60773,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_L40_try_end:; } - /* "PyCafe.pyx":2174 + /* "PyCafe.pyx":2173 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60334,7 +60782,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2180 + /* "PyCafe.pyx":2179 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60344,7 +60792,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2181 + /* "PyCafe.pyx":2180 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60360,7 +60808,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":2182 + /* "PyCafe.pyx":2181 * if not encoding: * try: * valStr = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -60369,14 +60817,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2182, __pyx_L42_error) + __PYX_ERR(3, 2181, __pyx_L42_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2182, __pyx_L42_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2181, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2183 + /* "PyCafe.pyx":2182 * try: * valStr = (bVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -60385,7 +60833,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2181 + /* "PyCafe.pyx":2180 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60404,7 +60852,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":2184 + /* "PyCafe.pyx":2183 * valStr = (bVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -60419,7 +60867,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L44_except_error; __pyx_L44_except_error:; - /* "PyCafe.pyx":2181 + /* "PyCafe.pyx":2180 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -60439,7 +60887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_L47_try_end:; } - /* "PyCafe.pyx":2180 + /* "PyCafe.pyx":2179 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60448,7 +60896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2186 + /* "PyCafe.pyx":2185 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60458,7 +60906,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2187 + /* "PyCafe.pyx":2186 * pass * if not encoding: * valstr =self.valStr # <<<<<<<<<<<<<< @@ -60468,7 +60916,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_15 = __pyx_v_self->valStr; __pyx_v_valstr = __pyx_t_15; - /* "PyCafe.pyx":2186 + /* "PyCafe.pyx":2185 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -60477,7 +60925,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2188 + /* "PyCafe.pyx":2187 * if not encoding: * valstr =self.valStr * return valStr # <<<<<<<<<<<<<< @@ -60485,12 +60933,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: */ __Pyx_XDECREF(__pyx_r); - if (unlikely(!__pyx_v_valStr)) { __Pyx_RaiseUnboundLocalError("valStr"); __PYX_ERR(3, 2188, __pyx_L1_error) } + if (unlikely(!__pyx_v_valStr)) { __Pyx_RaiseUnboundLocalError("valStr"); __PYX_ERR(3, 2187, __pyx_L1_error) } __Pyx_INCREF(__pyx_v_valStr); __pyx_r = __pyx_v_valStr; goto __pyx_L0; - /* "PyCafe.pyx":2159 + /* "PyCafe.pyx":2158 * status = self._c_cafe.getString(handle, self.valStr) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60499,7 +60947,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2155 + /* "PyCafe.pyx":2154 * cdef bytes bVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -60509,7 +60957,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_SHORT: - /* "PyCafe.pyx":2190 + /* "PyCafe.pyx":2189 * return valStr * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -60519,7 +60967,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe case CAFE_CHAR: case CAFE_LONG: - /* "PyCafe.pyx":2191 + /* "PyCafe.pyx":2190 * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * with nogil: # <<<<<<<<<<<<<< @@ -60534,7 +60982,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":2192 + /* "PyCafe.pyx":2191 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) # <<<<<<<<<<<<<< @@ -60544,7 +60992,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->getLong(__pyx_v_handle, __pyx_v_self->valInt); } - /* "PyCafe.pyx":2191 + /* "PyCafe.pyx":2190 * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * with nogil: # <<<<<<<<<<<<<< @@ -60563,7 +61011,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":2193 + /* "PyCafe.pyx":2192 * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60573,7 +61021,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2194 + /* "PyCafe.pyx":2193 * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: * return self.valInt # <<<<<<<<<<<<<< @@ -60581,13 +61029,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * with nogil: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2194, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2193 + /* "PyCafe.pyx":2192 * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60596,7 +61044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2190 + /* "PyCafe.pyx":2189 * return valStr * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -60606,7 +61054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_FLOAT: - /* "PyCafe.pyx":2195 + /* "PyCafe.pyx":2194 * if status == ICAFE_NORMAL: * return self.valInt * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -60615,7 +61063,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ case CAFE_DOUBLE: - /* "PyCafe.pyx":2196 + /* "PyCafe.pyx":2195 * return self.valInt * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * with nogil: # <<<<<<<<<<<<<< @@ -60630,7 +61078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":2197 + /* "PyCafe.pyx":2196 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * with nogil: * status = self._c_cafe.getDouble(handle, self.valFloat) # <<<<<<<<<<<<<< @@ -60640,7 +61088,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->getDouble(__pyx_v_handle, __pyx_v_self->valFloat); } - /* "PyCafe.pyx":2196 + /* "PyCafe.pyx":2195 * return self.valInt * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * with nogil: # <<<<<<<<<<<<<< @@ -60659,7 +61107,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":2199 + /* "PyCafe.pyx":2198 * status = self._c_cafe.getDouble(handle, self.valFloat) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60669,7 +61117,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2200 + /* "PyCafe.pyx":2199 * * if status == ICAFE_NORMAL: * return self.valFloat # <<<<<<<<<<<<<< @@ -60677,13 +61125,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * # if enum, string taken as native */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->valFloat); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2200, __pyx_L1_error) + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->valFloat); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2199 + /* "PyCafe.pyx":2198 * status = self._c_cafe.getDouble(handle, self.valFloat) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60692,7 +61140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2195 + /* "PyCafe.pyx":2194 * if status == ICAFE_NORMAL: * return self.valInt * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -60702,7 +61150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_ENUM: - /* "PyCafe.pyx":2203 + /* "PyCafe.pyx":2202 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -60712,7 +61160,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_handle) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2204 + /* "PyCafe.pyx":2203 * # if enum, string taken as native * if self._c_cafe.isEnum(handle): * with nogil: # <<<<<<<<<<<<<< @@ -60727,7 +61175,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":2205 + /* "PyCafe.pyx":2204 * if self._c_cafe.isEnum(handle): * with nogil: * status = self._c_cafe.getString(handle, self.valStr) # <<<<<<<<<<<<<< @@ -60737,7 +61185,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->getString(__pyx_v_handle, __pyx_v_self->valStr); } - /* "PyCafe.pyx":2204 + /* "PyCafe.pyx":2203 * # if enum, string taken as native * if self._c_cafe.isEnum(handle): * with nogil: # <<<<<<<<<<<<<< @@ -60756,7 +61204,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":2206 + /* "PyCafe.pyx":2205 * with nogil: * status = self._c_cafe.getString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60766,7 +61214,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2207 + /* "PyCafe.pyx":2206 * status = self._c_cafe.getString(handle, self.valStr) * if status == ICAFE_NORMAL: * return self.valStr # <<<<<<<<<<<<<< @@ -60774,13 +61222,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * with nogil: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2207, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2206 + /* "PyCafe.pyx":2205 * with nogil: * status = self._c_cafe.getString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60789,7 +61237,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2203 + /* "PyCafe.pyx":2202 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -60799,7 +61247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L57; } - /* "PyCafe.pyx":2209 + /* "PyCafe.pyx":2208 * return self.valStr * else: * with nogil: # <<<<<<<<<<<<<< @@ -60815,7 +61263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":2210 + /* "PyCafe.pyx":2209 * else: * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) # <<<<<<<<<<<<<< @@ -60825,7 +61273,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->getLong(__pyx_v_handle, __pyx_v_self->valInt); } - /* "PyCafe.pyx":2209 + /* "PyCafe.pyx":2208 * return self.valStr * else: * with nogil: # <<<<<<<<<<<<<< @@ -60844,7 +61292,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":2211 + /* "PyCafe.pyx":2210 * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60854,7 +61302,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2212 + /* "PyCafe.pyx":2211 * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: * return self.valInt # <<<<<<<<<<<<<< @@ -60862,13 +61310,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * print("This line in PyCafe def get should never appear!") */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2212, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2211 + /* "PyCafe.pyx":2210 * with nogil: * status = self._c_cafe.getLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60879,7 +61327,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L57:; - /* "PyCafe.pyx":2201 + /* "PyCafe.pyx":2200 * if status == ICAFE_NORMAL: * return self.valFloat * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -60889,18 +61337,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe break; default: - /* "PyCafe.pyx":2214 + /* "PyCafe.pyx":2213 * return self.valInt * else: * print("This line in PyCafe def get should never appear!") # <<<<<<<<<<<<<< * return None * */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2214, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2215 + /* "PyCafe.pyx":2214 * else: * print("This line in PyCafe def get should never appear!") * return None # <<<<<<<<<<<<<< @@ -60913,7 +61361,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe break; } - /* "PyCafe.pyx":2217 + /* "PyCafe.pyx":2216 * return None * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -60923,7 +61371,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2218 + /* "PyCafe.pyx":2217 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -60933,7 +61381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2219 + /* "PyCafe.pyx":2218 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -60943,7 +61391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2220 + /* "PyCafe.pyx":2219 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -60952,7 +61400,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":2219 + /* "PyCafe.pyx":2218 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -60962,7 +61410,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L68; } - /* "PyCafe.pyx":2222 + /* "PyCafe.pyx":2221 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -60974,7 +61422,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L68:; - /* "PyCafe.pyx":2218 + /* "PyCafe.pyx":2217 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -60983,7 +61431,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2223 + /* "PyCafe.pyx":2222 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -60993,76 +61441,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2225 + /* "PyCafe.pyx":2224 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2225, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2226 + /* "PyCafe.pyx":2225 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2226, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2227 + /* "PyCafe.pyx":2226 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2227, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2227, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2228 + /* "PyCafe.pyx":2227 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * return None */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2228, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2225, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2224 + /* "PyCafe.pyx":2223 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2224, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2229 + /* "PyCafe.pyx":2228 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -61070,9 +61518,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2229, __pyx_L1_error) + __PYX_ERR(3, 2228, __pyx_L1_error) - /* "PyCafe.pyx":2223 + /* "PyCafe.pyx":2222 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -61081,7 +61529,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2230 + /* "PyCafe.pyx":2229 * _error_info=self.cs.info(status)) * raise _cafeException * return None # <<<<<<<<<<<<<< @@ -61092,7 +61540,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2217 + /* "PyCafe.pyx":2216 * return None * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -61101,7 +61549,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":2089 + /* "PyCafe.pyx":2088 * ############################################################################ * @verify_handlepv * def get(self, handlePV = 0, str dt='native'): # <<<<<<<<<<<<<< @@ -61130,7 +61578,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_242get(struct __pyx_obj_6PyCafe_CyCafe return __pyx_r; } -/* "PyCafe.pyx":2237 +/* "PyCafe.pyx":2236 * * ############################################################################ * def getIntList(self, handlePV): # <<<<<<<<<<<<<< @@ -61161,7 +61609,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getIntList", 0); - /* "PyCafe.pyx":2238 + /* "PyCafe.pyx":2237 * ############################################################################ * def getIntList(self, handlePV): * return self.getList(handlePV, 'int') # <<<<<<<<<<<<<< @@ -61169,7 +61617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2238, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -61186,7 +61634,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2238, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2237, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -61194,13 +61642,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2238, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2237, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2238, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -61211,7 +61659,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_n_u_int); __Pyx_GIVEREF(__pyx_n_u_int); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_int); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2238, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -61220,7 +61668,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2237 + /* "PyCafe.pyx":2236 * * ############################################################################ * def getIntList(self, handlePV): # <<<<<<<<<<<<<< @@ -61244,7 +61692,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_244getIntList(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":2241 +/* "PyCafe.pyx":2240 * * ############################################################################ * def getFloatList(self, handlePV): # <<<<<<<<<<<<<< @@ -61275,7 +61723,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getFloatList", 0); - /* "PyCafe.pyx":2242 + /* "PyCafe.pyx":2241 * ############################################################################ * def getFloatList(self, handlePV): * return self.getList(handlePV, 'float') # <<<<<<<<<<<<<< @@ -61283,7 +61731,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2242, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -61300,7 +61748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2242, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2241, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -61308,13 +61756,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2242, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2241, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2242, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -61325,7 +61773,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_n_u_float); __Pyx_GIVEREF(__pyx_n_u_float); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_float); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2242, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -61334,7 +61782,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2241 + /* "PyCafe.pyx":2240 * * ############################################################################ * def getFloatList(self, handlePV): # <<<<<<<<<<<<<< @@ -61358,7 +61806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_246getFloatList(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":2245 +/* "PyCafe.pyx":2244 * * ############################################################################ * def getStrList(self, handlePV): # <<<<<<<<<<<<<< @@ -61389,7 +61837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getStrList", 0); - /* "PyCafe.pyx":2246 + /* "PyCafe.pyx":2245 * ############################################################################ * def getStrList(self, handlePV): * return self.getList(handlePV, 'str') # <<<<<<<<<<<<<< @@ -61397,7 +61845,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2246, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getList); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -61414,7 +61862,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2246, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2245, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -61422,13 +61870,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2246, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2245, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2246, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 2245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -61439,7 +61887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_n_u_str); __Pyx_GIVEREF(__pyx_n_u_str); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_str); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2246, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -61448,7 +61896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2245 + /* "PyCafe.pyx":2244 * * ############################################################################ * def getStrList(self, handlePV): # <<<<<<<<<<<<<< @@ -61472,7 +61920,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_248getStrList(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":2250 +/* "PyCafe.pyx":2249 * ############################################################################ * @verify_handlepv * def getList(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -61516,7 +61964,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_251getList(PyObject *__pyx_v_self, PyO } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getList") < 0)) __PYX_ERR(3, 2250, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getList") < 0)) __PYX_ERR(3, 2249, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -61532,13 +61980,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_251getList(PyObject *__pyx_v_self, PyO } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getList", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2250, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getList", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2249, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2250, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2249, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_250getList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -61589,7 +62037,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy int __pyx_t_12; __Pyx_RefNannySetupContext("getList", 0); - /* "PyCafe.pyx":2251 + /* "PyCafe.pyx":2250 * @verify_handlepv * def getList(self, handlePV, str dt='native'): * cdef str _METHOD = "getList" # <<<<<<<<<<<<<< @@ -61599,17 +62047,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_INCREF(__pyx_n_u_getList); __pyx_v__METHOD = __pyx_n_u_getList; - /* "PyCafe.pyx":2252 + /* "PyCafe.pyx":2251 * def getList(self, handlePV, str dt='native'): * cdef str _METHOD = "getList" * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * * cdef int status */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2252, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2251, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":2255 + /* "PyCafe.pyx":2254 * * cdef int status * cdef long dtr = 0 # <<<<<<<<<<<<<< @@ -61618,7 +62066,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_dtr = 0; - /* "PyCafe.pyx":2257 + /* "PyCafe.pyx":2256 * cdef long dtr = 0 * * status = self.hh.getDataTypeNative(handle, dtr) # <<<<<<<<<<<<<< @@ -61627,7 +62075,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_status = __pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_dtr); - /* "PyCafe.pyx":2259 + /* "PyCafe.pyx":2258 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -61637,7 +62085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2260 + /* "PyCafe.pyx":2259 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -61647,7 +62095,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2261 + /* "PyCafe.pyx":2260 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -61657,7 +62105,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2262 + /* "PyCafe.pyx":2261 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -61666,7 +62114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":2261 + /* "PyCafe.pyx":2260 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -61676,7 +62124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L5; } - /* "PyCafe.pyx":2264 + /* "PyCafe.pyx":2263 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -61688,7 +62136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } __pyx_L5:; - /* "PyCafe.pyx":2260 + /* "PyCafe.pyx":2259 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -61697,7 +62145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2265 + /* "PyCafe.pyx":2264 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -61707,84 +62155,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2267 + /* "PyCafe.pyx":2266 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2267, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) - /* "PyCafe.pyx":2268 + /* "PyCafe.pyx":2267 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, * _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2268, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2269 + /* "PyCafe.pyx":2268 * _type='CafeError', _source=_METHOD, * _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2269, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2270 + /* "PyCafe.pyx":2269 * _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2270, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2270, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2271 + /* "PyCafe.pyx":2270 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2271, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2267, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2266 + /* "PyCafe.pyx":2265 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _handle=handle, */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2266, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2272 + /* "PyCafe.pyx":2271 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -61792,9 +62240,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * return [None] */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2272, __pyx_L1_error) + __PYX_ERR(3, 2271, __pyx_L1_error) - /* "PyCafe.pyx":2265 + /* "PyCafe.pyx":2264 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -61803,7 +62251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2274 + /* "PyCafe.pyx":2273 * raise _cafeException * * return [None] # <<<<<<<<<<<<<< @@ -61811,7 +62259,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2274, __pyx_L1_error) + __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -61820,7 +62268,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2259 + /* "PyCafe.pyx":2258 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -61830,7 +62278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L3; } - /* "PyCafe.pyx":2276 + /* "PyCafe.pyx":2275 * return [None] * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -61849,7 +62297,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2277 + /* "PyCafe.pyx":2276 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -61859,7 +62307,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = ((!(__pyx_v_self->_c_cafe->isChannelConnected(__pyx_v_handle) != 0)) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2278 + /* "PyCafe.pyx":2277 * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -61868,7 +62316,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":2279 + /* "PyCafe.pyx":2278 * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -61878,7 +62326,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2280 + /* "PyCafe.pyx":2279 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus( # <<<<<<<<<<<<<< @@ -61887,7 +62335,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_self->channelInfo.getCafeConnectionState()); - /* "PyCafe.pyx":2279 + /* "PyCafe.pyx":2278 * if not self._c_cafe.isChannelConnected(handle): * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -61896,7 +62344,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2282 + /* "PyCafe.pyx":2281 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -61906,84 +62354,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2284 + /* "PyCafe.pyx":2283 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2284, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2285 + /* "PyCafe.pyx":2284 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2285, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2286 + /* "PyCafe.pyx":2285 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), # <<<<<<<<<<<<<< * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), */ - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2286, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2287 + /* "PyCafe.pyx":2286 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2287, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2289 + /* "PyCafe.pyx":2288 * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState())) * raise _cafeException */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2289, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2284, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2283 + /* "PyCafe.pyx":2282 * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2283, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2291 + /* "PyCafe.pyx":2290 * _error_info=self.cs.info( * self.channelInfo.getCafeConnectionState())) * raise _cafeException # <<<<<<<<<<<<<< @@ -61991,9 +62439,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2291, __pyx_L1_error) + __PYX_ERR(3, 2290, __pyx_L1_error) - /* "PyCafe.pyx":2282 + /* "PyCafe.pyx":2281 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -62002,7 +62450,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2292 + /* "PyCafe.pyx":2291 * self.channelInfo.getCafeConnectionState())) * raise _cafeException * return [None] # <<<<<<<<<<<<<< @@ -62010,7 +62458,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * # This paragraph should be superfluous */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2292, __pyx_L1_error) + __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -62019,7 +62467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2277 + /* "PyCafe.pyx":2276 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if not self._c_cafe.isChannelConnected(handle): # <<<<<<<<<<<<<< @@ -62028,7 +62476,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2295 + /* "PyCafe.pyx":2294 * * # This paragraph should be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -62038,7 +62486,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2296 + /* "PyCafe.pyx":2295 * # This paragraph should be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) # <<<<<<<<<<<<<< @@ -62047,7 +62495,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, ICAFE_TYPENOTCONN); - /* "PyCafe.pyx":2295 + /* "PyCafe.pyx":2294 * * # This paragraph should be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -62056,7 +62504,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2297 + /* "PyCafe.pyx":2296 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -62066,84 +62514,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_5 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2299 + /* "PyCafe.pyx":2298 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD,_handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2299, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_handle, __pyx_t_4) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2300 + /* "PyCafe.pyx":2299 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD,_handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2300, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pv_name, __pyx_t_4) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2301 + /* "PyCafe.pyx":2300 * _type='CafeError', _source=_METHOD,_handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) */ - __pyx_t_4 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2301, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_code, __pyx_t_4) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2302 + /* "PyCafe.pyx":2301 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2302, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_text, __pyx_t_4) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2303 + /* "PyCafe.pyx":2302 * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) # <<<<<<<<<<<<<< * raise _cafeException * return [None] */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2303, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2299, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_t_4) < 0) __PYX_ERR(3, 2298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2298 + /* "PyCafe.pyx":2297 * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD,_handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2298, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2304 + /* "PyCafe.pyx":2303 * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException # <<<<<<<<<<<<<< @@ -62151,9 +62599,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2304, __pyx_L1_error) + __PYX_ERR(3, 2303, __pyx_L1_error) - /* "PyCafe.pyx":2297 + /* "PyCafe.pyx":2296 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -62162,7 +62610,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2305 + /* "PyCafe.pyx":2304 * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException * return [None] # <<<<<<<<<<<<<< @@ -62170,7 +62618,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * #JC FEB 2022 must be int as CAFE_TYPENOTCONN is -1 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2305, __pyx_L1_error) + __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -62179,7 +62627,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2276 + /* "PyCafe.pyx":2275 * return [None] * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -62189,7 +62637,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } __pyx_L3:; - /* "PyCafe.pyx":2308 + /* "PyCafe.pyx":2307 * * #JC FEB 2022 must be int as CAFE_TYPENOTCONN is -1 * cdef int dtcheck = dtr # <<<<<<<<<<<<<< @@ -62198,23 +62646,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_dtcheck = __pyx_v_dtr; - /* "PyCafe.pyx":2309 + /* "PyCafe.pyx":2308 * #JC FEB 2022 must be int as CAFE_TYPENOTCONN is -1 * cdef int dtcheck = dtr * dtcheck = getMatchedDataType(dt, dtr) # <<<<<<<<<<<<<< * * #print ("dtcheck input/native", dtcheck, dt, dtr) */ - __pyx_t_4 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2309, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2309, __pyx_L1_error) + __pyx_t_3 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2309, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2308, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_dtcheck = __pyx_t_6; - /* "PyCafe.pyx":2313 + /* "PyCafe.pyx":2312 * #print ("dtcheck input/native", dtcheck, dt, dtr) * * cdef unsigned int nelemNative = self.hh.getNelemNative(handle) # <<<<<<<<<<<<<< @@ -62223,7 +62671,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_nelemNative = __pyx_v_self->hh.getNelemNative(__pyx_v_handle); - /* "PyCafe.pyx":2314 + /* "PyCafe.pyx":2313 * * cdef unsigned int nelemNative = self.hh.getNelemNative(handle) * cdef unsigned int nelemClient = self.hh.getNelemClient(handle) # <<<<<<<<<<<<<< @@ -62232,7 +62680,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_nelemClient = __pyx_v_self->hh.getNelemClient(__pyx_v_handle); - /* "PyCafe.pyx":2315 + /* "PyCafe.pyx":2314 * cdef unsigned int nelemNative = self.hh.getNelemNative(handle) * cdef unsigned int nelemClient = self.hh.getNelemClient(handle) * cdef unsigned int nelemRequest = self.hh.getNelemRequest(handle) # <<<<<<<<<<<<<< @@ -62241,7 +62689,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_nelemRequest = __pyx_v_self->hh.getNelemRequest(__pyx_v_handle); - /* "PyCafe.pyx":2317 + /* "PyCafe.pyx":2316 * cdef unsigned int nelemRequest = self.hh.getNelemRequest(handle) * * cdef unsigned int nelemMethod = nelemClient # <<<<<<<<<<<<<< @@ -62250,7 +62698,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_nelemMethod = __pyx_v_nelemClient; - /* "PyCafe.pyx":2331 + /* "PyCafe.pyx":2330 * cdef bytes bytesVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -62260,7 +62708,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":2333 + /* "PyCafe.pyx":2332 * if dtcheck in [CAFE_STRING]: * * valStringArray = malloc( # <<<<<<<<<<<<<< @@ -62269,7 +62717,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valStringArray = ((char (*)[40])malloc((__pyx_v_nelemMethod * (sizeof(dbr_string_t))))); - /* "PyCafe.pyx":2336 + /* "PyCafe.pyx":2335 * nelemMethod * sizeof(dbr_string_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62284,7 +62732,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2337 + /* "PyCafe.pyx":2336 * * with nogil: * status = self._c_cafe.getDbrStringArray(handle, valStringArray) # <<<<<<<<<<<<<< @@ -62294,7 +62742,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getDbrStringArray(__pyx_v_handle, __pyx_v_valStringArray); } - /* "PyCafe.pyx":2336 + /* "PyCafe.pyx":2335 * nelemMethod * sizeof(dbr_string_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62313,19 +62761,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2339 + /* "PyCafe.pyx":2338 * status = self._c_cafe.getDbrStringArray(handle, valStringArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2339, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_ll = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2340 + /* "PyCafe.pyx":2339 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -62337,14 +62785,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2342 + /* "PyCafe.pyx":2341 * for i in range(0, nelemMethod): * * bytesVal = ( valStringArray[i]) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): */ - __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_valStringArray[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2342, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_valStringArray[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); @@ -62352,7 +62800,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "PyCafe.pyx":2343 + /* "PyCafe.pyx":2342 * * bytesVal = ( valStringArray[i]) * encoding = False # <<<<<<<<<<<<<< @@ -62361,21 +62809,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":2344 + /* "PyCafe.pyx":2343 * bytesVal = ( valStringArray[i]) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2344, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2344, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2345 + /* "PyCafe.pyx":2344 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -62391,7 +62839,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "PyCafe.pyx":2346 + /* "PyCafe.pyx":2345 * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -62400,14 +62848,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2346, __pyx_L18_error) + __PYX_ERR(3, 2345, __pyx_L18_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2346, __pyx_L18_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2345, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2347 + /* "PyCafe.pyx":2346 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -62416,7 +62864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2345 + /* "PyCafe.pyx":2344 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -62432,7 +62880,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2348 + /* "PyCafe.pyx":2347 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -62447,7 +62895,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L20_except_error; __pyx_L20_except_error:; - /* "PyCafe.pyx":2345 + /* "PyCafe.pyx":2344 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -62467,7 +62915,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_L25_try_end:; } - /* "PyCafe.pyx":2344 + /* "PyCafe.pyx":2343 * bytesVal = ( valStringArray[i]) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< @@ -62476,7 +62924,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2350 + /* "PyCafe.pyx":2349 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62486,7 +62934,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2351 + /* "PyCafe.pyx":2350 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62502,7 +62950,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "PyCafe.pyx":2352 + /* "PyCafe.pyx":2351 * if not encoding: * try: * strVal = (bytesVal).decode('utf_8') # <<<<<<<<<<<<<< @@ -62511,14 +62959,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2352, __pyx_L27_error) + __PYX_ERR(3, 2351, __pyx_L27_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2352, __pyx_L27_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2351, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2353 + /* "PyCafe.pyx":2352 * try: * strVal = (bytesVal).decode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -62527,7 +62975,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":2351 + /* "PyCafe.pyx":2350 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62543,7 +62991,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2354 + /* "PyCafe.pyx":2353 * strVal = (bytesVal).decode('utf_8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -62558,7 +63006,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L29_except_error; __pyx_L29_except_error:; - /* "PyCafe.pyx":2351 + /* "PyCafe.pyx":2350 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62578,7 +63026,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_L34_try_end:; } - /* "PyCafe.pyx":2350 + /* "PyCafe.pyx":2349 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62587,7 +63035,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2356 + /* "PyCafe.pyx":2355 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62597,7 +63045,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2357 + /* "PyCafe.pyx":2356 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62613,7 +63061,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "PyCafe.pyx":2358 + /* "PyCafe.pyx":2357 * if not encoding: * try: * strVal = (bytesVal).decode('utf_16') # <<<<<<<<<<<<<< @@ -62622,14 +63070,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 2358, __pyx_L36_error) + __PYX_ERR(3, 2357, __pyx_L36_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2358, __pyx_L36_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2357, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2357 + /* "PyCafe.pyx":2356 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62645,7 +63093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2359 + /* "PyCafe.pyx":2358 * try: * strVal = (bytesVal).decode('utf_16') * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -62660,7 +63108,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L38_except_error; __pyx_L38_except_error:; - /* "PyCafe.pyx":2357 + /* "PyCafe.pyx":2356 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -62680,7 +63128,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_L43_try_end:; } - /* "PyCafe.pyx":2356 + /* "PyCafe.pyx":2355 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62689,7 +63137,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2361 + /* "PyCafe.pyx":2360 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62699,19 +63147,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2362 + /* "PyCafe.pyx":2361 * pass * if not encoding: * strVal = valStringArray[i] # <<<<<<<<<<<<<< * * ll.append(strVal) */ - __pyx_t_4 = __Pyx_PyObject_FromString((__pyx_v_valStringArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2362, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_FromString((__pyx_v_valStringArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2361 + /* "PyCafe.pyx":2360 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -62720,18 +63168,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2364 + /* "PyCafe.pyx":2363 * strVal = valStringArray[i] * * ll.append(strVal) # <<<<<<<<<<<<<< * free(valStringArray) * if status == ICAFE_NORMAL: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 2364, __pyx_L1_error) } - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_v_strVal); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2364, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 2363, __pyx_L1_error) } + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_v_strVal); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2363, __pyx_L1_error) } - /* "PyCafe.pyx":2365 + /* "PyCafe.pyx":2364 * * ll.append(strVal) * free(valStringArray) # <<<<<<<<<<<<<< @@ -62740,7 +63188,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valStringArray); - /* "PyCafe.pyx":2366 + /* "PyCafe.pyx":2365 * ll.append(strVal) * free(valStringArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -62750,7 +63198,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2367 + /* "PyCafe.pyx":2366 * free(valStringArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -62762,7 +63210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2366 + /* "PyCafe.pyx":2365 * ll.append(strVal) * free(valStringArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -62771,7 +63219,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2331 + /* "PyCafe.pyx":2330 * cdef bytes bytesVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -62781,7 +63229,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_CHAR: - /* "PyCafe.pyx":2371 + /* "PyCafe.pyx":2370 * elif dtcheck in [CAFE_CHAR]: * * valCharArray = malloc( # <<<<<<<<<<<<<< @@ -62790,7 +63238,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valCharArray = ((dbr_char_t *)malloc((__pyx_v_nelemMethod * (sizeof(dbr_char_t))))); - /* "PyCafe.pyx":2374 + /* "PyCafe.pyx":2373 * nelemMethod * sizeof(dbr_char_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62805,7 +63253,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2375 + /* "PyCafe.pyx":2374 * * with nogil: * status = self._c_cafe.getCharArray(handle, valCharArray) # <<<<<<<<<<<<<< @@ -62815,7 +63263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getCharArray(__pyx_v_handle, __pyx_v_valCharArray); } - /* "PyCafe.pyx":2374 + /* "PyCafe.pyx":2373 * nelemMethod * sizeof(dbr_char_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62834,19 +63282,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2377 + /* "PyCafe.pyx":2376 * status = self._c_cafe.getCharArray(handle, valCharArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valCharArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2377, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2378 + /* "PyCafe.pyx":2377 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -62858,20 +63306,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2379 + /* "PyCafe.pyx":2378 * ll = [] * for i in range(0, nelemMethod): * ll.append(valCharArray[i]) # <<<<<<<<<<<<<< * free(valCharArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = __Pyx_PyInt_From_dbr_char_t((__pyx_v_valCharArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2379, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_dbr_char_t((__pyx_v_valCharArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2379, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2380 + /* "PyCafe.pyx":2379 * for i in range(0, nelemMethod): * ll.append(valCharArray[i]) * free(valCharArray) # <<<<<<<<<<<<<< @@ -62880,7 +63328,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valCharArray); - /* "PyCafe.pyx":2381 + /* "PyCafe.pyx":2380 * ll.append(valCharArray[i]) * free(valCharArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -62890,7 +63338,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2382 + /* "PyCafe.pyx":2381 * free(valCharArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -62902,7 +63350,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2381 + /* "PyCafe.pyx":2380 * ll.append(valCharArray[i]) * free(valCharArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -62911,7 +63359,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2369 + /* "PyCafe.pyx":2368 * return ll * * elif dtcheck in [CAFE_CHAR]: # <<<<<<<<<<<<<< @@ -62921,7 +63369,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_LONG: - /* "PyCafe.pyx":2386 + /* "PyCafe.pyx":2385 * elif dtcheck in [CAFE_LONG]: * * valIntArray = malloc( # <<<<<<<<<<<<<< @@ -62930,7 +63378,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valIntArray = ((dbr_long_t *)malloc((__pyx_v_nelemMethod * (sizeof(dbr_long_t))))); - /* "PyCafe.pyx":2389 + /* "PyCafe.pyx":2388 * nelemMethod * sizeof(dbr_long_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62945,7 +63393,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2390 + /* "PyCafe.pyx":2389 * * with nogil: * status = self._c_cafe.getLongArray(handle, valIntArray) # <<<<<<<<<<<<<< @@ -62955,7 +63403,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getLongArray(__pyx_v_handle, __pyx_v_valIntArray); } - /* "PyCafe.pyx":2389 + /* "PyCafe.pyx":2388 * nelemMethod * sizeof(dbr_long_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -62974,19 +63422,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2392 + /* "PyCafe.pyx":2391 * status = self._c_cafe.getLongArray(handle, valIntArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valIntArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2392, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2393 + /* "PyCafe.pyx":2392 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -62998,20 +63446,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2394 + /* "PyCafe.pyx":2393 * ll = [] * for i in range(0, nelemMethod): * ll.append(valIntArray[i]) # <<<<<<<<<<<<<< * free(valIntArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = __Pyx_PyInt_From_dbr_long_t((__pyx_v_valIntArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2394, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_dbr_long_t((__pyx_v_valIntArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2394, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2393, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2395 + /* "PyCafe.pyx":2394 * for i in range(0, nelemMethod): * ll.append(valIntArray[i]) * free(valIntArray) # <<<<<<<<<<<<<< @@ -63020,7 +63468,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valIntArray); - /* "PyCafe.pyx":2396 + /* "PyCafe.pyx":2395 * ll.append(valIntArray[i]) * free(valIntArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63030,7 +63478,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2397 + /* "PyCafe.pyx":2396 * free(valIntArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63042,7 +63490,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2396 + /* "PyCafe.pyx":2395 * ll.append(valIntArray[i]) * free(valIntArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63051,7 +63499,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2384 + /* "PyCafe.pyx":2383 * return ll * * elif dtcheck in [CAFE_LONG]: # <<<<<<<<<<<<<< @@ -63061,7 +63509,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_SHORT: - /* "PyCafe.pyx":2401 + /* "PyCafe.pyx":2400 * elif dtcheck in [CAFE_SHORT]: * * valShortArray = malloc(nelemMethod * sizeof(short)) # <<<<<<<<<<<<<< @@ -63070,7 +63518,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valShortArray = ((short *)malloc((__pyx_v_nelemMethod * (sizeof(short))))); - /* "PyCafe.pyx":2403 + /* "PyCafe.pyx":2402 * valShortArray = malloc(nelemMethod * sizeof(short)) * * with nogil: # <<<<<<<<<<<<<< @@ -63085,7 +63533,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2404 + /* "PyCafe.pyx":2403 * * with nogil: * status = self._c_cafe.getShortArray(handle, valShortArray) # <<<<<<<<<<<<<< @@ -63095,7 +63543,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getShortArray(__pyx_v_handle, __pyx_v_valShortArray); } - /* "PyCafe.pyx":2403 + /* "PyCafe.pyx":2402 * valShortArray = malloc(nelemMethod * sizeof(short)) * * with nogil: # <<<<<<<<<<<<<< @@ -63114,19 +63562,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2406 + /* "PyCafe.pyx":2405 * status = self._c_cafe.getShortArray(handle, valShortArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valShortArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2406, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2407 + /* "PyCafe.pyx":2406 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -63138,20 +63586,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2408 + /* "PyCafe.pyx":2407 * ll = [] * for i in range(0, nelemMethod): * ll.append(valShortArray[i]) # <<<<<<<<<<<<<< * free(valShortArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = __Pyx_PyInt_From_short((__pyx_v_valShortArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2408, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_short((__pyx_v_valShortArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2408, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2409 + /* "PyCafe.pyx":2408 * for i in range(0, nelemMethod): * ll.append(valShortArray[i]) * free(valShortArray) # <<<<<<<<<<<<<< @@ -63160,7 +63608,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valShortArray); - /* "PyCafe.pyx":2410 + /* "PyCafe.pyx":2409 * ll.append(valShortArray[i]) * free(valShortArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63170,7 +63618,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2411 + /* "PyCafe.pyx":2410 * free(valShortArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63182,7 +63630,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2410 + /* "PyCafe.pyx":2409 * ll.append(valShortArray[i]) * free(valShortArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63191,7 +63639,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2399 + /* "PyCafe.pyx":2398 * return ll * * elif dtcheck in [CAFE_SHORT]: # <<<<<<<<<<<<<< @@ -63201,7 +63649,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_FLOAT: - /* "PyCafe.pyx":2425 + /* "PyCafe.pyx":2424 * * # Speedier than vectors * valFloatArray = malloc(nelemMethod * sizeof(float)) # <<<<<<<<<<<<<< @@ -63210,7 +63658,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valFloatArray = ((float *)malloc((__pyx_v_nelemMethod * (sizeof(float))))); - /* "PyCafe.pyx":2429 + /* "PyCafe.pyx":2428 * # for i in range (0, 10000): * * with nogil: # <<<<<<<<<<<<<< @@ -63225,7 +63673,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2430 + /* "PyCafe.pyx":2429 * * with nogil: * status = self._c_cafe.getFloatArray(handle, valFloatArray) # <<<<<<<<<<<<<< @@ -63235,7 +63683,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getFloatArray(__pyx_v_handle, __pyx_v_valFloatArray); } - /* "PyCafe.pyx":2429 + /* "PyCafe.pyx":2428 * # for i in range (0, 10000): * * with nogil: # <<<<<<<<<<<<<< @@ -63254,19 +63702,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2435 + /* "PyCafe.pyx":2434 * #print ("END TIME FLOAT", end - start) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valFloatArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2435, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2436 + /* "PyCafe.pyx":2435 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -63278,20 +63726,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2437 + /* "PyCafe.pyx":2436 * ll = [] * for i in range(0, nelemMethod): * ll.append(valFloatArray[i]) # <<<<<<<<<<<<<< * free(valFloatArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = PyFloat_FromDouble((__pyx_v_valFloatArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2437, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_valFloatArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2437, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2436, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2438 + /* "PyCafe.pyx":2437 * for i in range(0, nelemMethod): * ll.append(valFloatArray[i]) * free(valFloatArray) # <<<<<<<<<<<<<< @@ -63300,7 +63748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valFloatArray); - /* "PyCafe.pyx":2439 + /* "PyCafe.pyx":2438 * ll.append(valFloatArray[i]) * free(valFloatArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63310,7 +63758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2440 + /* "PyCafe.pyx":2439 * free(valFloatArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63322,7 +63770,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2439 + /* "PyCafe.pyx":2438 * ll.append(valFloatArray[i]) * free(valFloatArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63331,7 +63779,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2412 + /* "PyCafe.pyx":2411 * if status == ICAFE_NORMAL: * return ll * elif dtcheck in [CAFE_FLOAT]: # <<<<<<<<<<<<<< @@ -63341,7 +63789,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_DOUBLE: - /* "PyCafe.pyx":2444 + /* "PyCafe.pyx":2443 * elif dtcheck in [CAFE_DOUBLE]: * * valDoubleArray = malloc(nelemMethod * sizeof(double)) # <<<<<<<<<<<<<< @@ -63350,7 +63798,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valDoubleArray = ((double *)malloc((__pyx_v_nelemMethod * (sizeof(double))))); - /* "PyCafe.pyx":2446 + /* "PyCafe.pyx":2445 * valDoubleArray = malloc(nelemMethod * sizeof(double)) * * with nogil: # <<<<<<<<<<<<<< @@ -63365,7 +63813,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2447 + /* "PyCafe.pyx":2446 * * with nogil: * status = self._c_cafe.getDoubleArray(handle, valDoubleArray) # <<<<<<<<<<<<<< @@ -63375,7 +63823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getDoubleArray(__pyx_v_handle, __pyx_v_valDoubleArray); } - /* "PyCafe.pyx":2446 + /* "PyCafe.pyx":2445 * valDoubleArray = malloc(nelemMethod * sizeof(double)) * * with nogil: # <<<<<<<<<<<<<< @@ -63394,19 +63842,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2449 + /* "PyCafe.pyx":2448 * status = self._c_cafe.getDoubleArray(handle, valDoubleArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valDoubleArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2449, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2450 + /* "PyCafe.pyx":2449 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -63418,20 +63866,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2451 + /* "PyCafe.pyx":2450 * ll = [] * for i in range(0, nelemMethod): * ll.append(valDoubleArray[i]) # <<<<<<<<<<<<<< * free(valDoubleArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = PyFloat_FromDouble((__pyx_v_valDoubleArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2451, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_valDoubleArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2451, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2452 + /* "PyCafe.pyx":2451 * for i in range(0, nelemMethod): * ll.append(valDoubleArray[i]) * free(valDoubleArray) # <<<<<<<<<<<<<< @@ -63440,7 +63888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valDoubleArray); - /* "PyCafe.pyx":2453 + /* "PyCafe.pyx":2452 * ll.append(valDoubleArray[i]) * free(valDoubleArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63450,7 +63898,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2454 + /* "PyCafe.pyx":2453 * free(valDoubleArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63462,7 +63910,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2453 + /* "PyCafe.pyx":2452 * ll.append(valDoubleArray[i]) * free(valDoubleArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63471,7 +63919,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2442 + /* "PyCafe.pyx":2441 * return ll * * elif dtcheck in [CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -63481,7 +63929,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_ENUM: - /* "PyCafe.pyx":2459 + /* "PyCafe.pyx":2458 * * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -63491,7 +63939,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_handle) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2460 + /* "PyCafe.pyx":2459 * # if enum, string taken as native * if self._c_cafe.isEnum(handle): * valStringArray = malloc( # <<<<<<<<<<<<<< @@ -63500,7 +63948,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valStringArray = ((char (*)[40])malloc((__pyx_v_nelemMethod * (sizeof(dbr_string_t))))); - /* "PyCafe.pyx":2463 + /* "PyCafe.pyx":2462 * nelemMethod * sizeof(dbr_string_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -63515,7 +63963,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2464 + /* "PyCafe.pyx":2463 * * with nogil: * status = self._c_cafe.getDbrStringArray( # <<<<<<<<<<<<<< @@ -63525,7 +63973,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getDbrStringArray(__pyx_v_handle, __pyx_v_valStringArray); } - /* "PyCafe.pyx":2463 + /* "PyCafe.pyx":2462 * nelemMethod * sizeof(dbr_string_t)) * * with nogil: # <<<<<<<<<<<<<< @@ -63544,19 +63992,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2467 + /* "PyCafe.pyx":2466 * handle, valStringArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valStringArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2467, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2468 + /* "PyCafe.pyx":2467 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -63568,20 +64016,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2469 + /* "PyCafe.pyx":2468 * ll = [] * for i in range(0, nelemMethod): * ll.append(valStringArray[i]) # <<<<<<<<<<<<<< * free(valStringArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = __Pyx_PyObject_FromString((__pyx_v_valStringArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2469, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_FromString((__pyx_v_valStringArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2469, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2470 + /* "PyCafe.pyx":2469 * for i in range(0, nelemMethod): * ll.append(valStringArray[i]) * free(valStringArray) # <<<<<<<<<<<<<< @@ -63590,7 +64038,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valStringArray); - /* "PyCafe.pyx":2471 + /* "PyCafe.pyx":2470 * ll.append(valStringArray[i]) * free(valStringArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63600,7 +64048,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2472 + /* "PyCafe.pyx":2471 * free(valStringArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63612,7 +64060,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2471 + /* "PyCafe.pyx":2470 * ll.append(valStringArray[i]) * free(valStringArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63621,7 +64069,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2459 + /* "PyCafe.pyx":2458 * * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -63631,7 +64079,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L76; } - /* "PyCafe.pyx":2474 + /* "PyCafe.pyx":2473 * return ll * else: * valUShortArray = malloc( # <<<<<<<<<<<<<< @@ -63640,7 +64088,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ /*else*/ { - /* "PyCafe.pyx":2475 + /* "PyCafe.pyx":2474 * else: * valUShortArray = malloc( * nelemMethod * sizeof(dbr_enum_t)) # <<<<<<<<<<<<<< @@ -63649,7 +64097,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_valUShortArray = ((dbr_enum_t *)malloc((__pyx_v_nelemMethod * (sizeof(dbr_enum_t))))); - /* "PyCafe.pyx":2476 + /* "PyCafe.pyx":2475 * valUShortArray = malloc( * nelemMethod * sizeof(dbr_enum_t)) * with nogil: # <<<<<<<<<<<<<< @@ -63664,7 +64112,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":2477 + /* "PyCafe.pyx":2476 * nelemMethod * sizeof(dbr_enum_t)) * with nogil: * status = self._c_cafe.getUShortArray( # <<<<<<<<<<<<<< @@ -63674,7 +64122,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getUShortArray(__pyx_v_handle, __pyx_v_valUShortArray); } - /* "PyCafe.pyx":2476 + /* "PyCafe.pyx":2475 * valUShortArray = malloc( * nelemMethod * sizeof(dbr_enum_t)) * with nogil: # <<<<<<<<<<<<<< @@ -63693,19 +64141,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":2480 + /* "PyCafe.pyx":2479 * handle, valUShortArray) * * ll = [] # <<<<<<<<<<<<<< * for i in range(0, nelemMethod): * ll.append(valUShortArray[i]) */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2480, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_ll = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2481 + /* "PyCafe.pyx":2480 * * ll = [] * for i in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -63717,20 +64165,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":2482 + /* "PyCafe.pyx":2481 * ll = [] * for i in range(0, nelemMethod): * ll.append(valUShortArray[i]) # <<<<<<<<<<<<<< * free(valUShortArray) * if status == ICAFE_NORMAL: */ - __pyx_t_4 = __Pyx_PyInt_From_dbr_enum_t((__pyx_v_valUShortArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2482, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_dbr_enum_t((__pyx_v_valUShortArray[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2482, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_4); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(3, 2481, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2483 + /* "PyCafe.pyx":2482 * for i in range(0, nelemMethod): * ll.append(valUShortArray[i]) * free(valUShortArray) # <<<<<<<<<<<<<< @@ -63739,7 +64187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ free(__pyx_v_valUShortArray); - /* "PyCafe.pyx":2484 + /* "PyCafe.pyx":2483 * ll.append(valUShortArray[i]) * free(valUShortArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63749,7 +64197,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2485 + /* "PyCafe.pyx":2484 * free(valUShortArray) * if status == ICAFE_NORMAL: * return ll # <<<<<<<<<<<<<< @@ -63761,7 +64209,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = __pyx_v_ll; goto __pyx_L0; - /* "PyCafe.pyx":2484 + /* "PyCafe.pyx":2483 * ll.append(valUShortArray[i]) * free(valUShortArray) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63772,7 +64220,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } __pyx_L76:; - /* "PyCafe.pyx":2456 + /* "PyCafe.pyx":2455 * return ll * * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -63782,7 +64230,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; case CAFE_NO_ACCESS: - /* "PyCafe.pyx":2487 + /* "PyCafe.pyx":2486 * return ll * # Will not happen; already covered above * elif dtcheck in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -63791,16 +64239,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ case CAFE_TYPENOTCONN: - /* "PyCafe.pyx":2488 + /* "PyCafe.pyx":2487 * # Will not happen; already covered above * elif dtcheck in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * print("Channel", self._c_cafe.getPVFromHandle( # <<<<<<<<<<<<<< * handle), " not connected") * return None */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2488, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2488, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_u_Channel); __Pyx_GIVEREF(__pyx_n_u_Channel); @@ -63811,12 +64259,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __Pyx_GIVEREF(__pyx_kp_u_not_connected); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_not_connected); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2488, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2487, __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; - /* "PyCafe.pyx":2490 + /* "PyCafe.pyx":2489 * print("Channel", self._c_cafe.getPVFromHandle( * handle), " not connected") * return None # <<<<<<<<<<<<<< @@ -63827,7 +64275,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2487 + /* "PyCafe.pyx":2486 * return ll * # Will not happen; already covered above * elif dtcheck in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -63837,18 +64285,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; default: - /* "PyCafe.pyx":2492 + /* "PyCafe.pyx":2491 * return None * else: * print("This line in PyCafe def getAsList should never appear!") # <<<<<<<<<<<<<< * return None * */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2492, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2493 + /* "PyCafe.pyx":2492 * else: * print("This line in PyCafe def getAsList should never appear!") * return None # <<<<<<<<<<<<<< @@ -63861,7 +64309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy break; } - /* "PyCafe.pyx":2495 + /* "PyCafe.pyx":2494 * return None * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -63871,7 +64319,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2496 + /* "PyCafe.pyx":2495 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -63881,7 +64329,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2497 + /* "PyCafe.pyx":2496 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -63891,7 +64339,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2498 + /* "PyCafe.pyx":2497 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -63900,7 +64348,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":2497 + /* "PyCafe.pyx":2496 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -63910,7 +64358,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy goto __pyx_L91; } - /* "PyCafe.pyx":2500 + /* "PyCafe.pyx":2499 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -63922,7 +64370,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy } __pyx_L91:; - /* "PyCafe.pyx":2496 + /* "PyCafe.pyx":2495 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -63931,7 +64379,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2501 + /* "PyCafe.pyx":2500 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions is False: # <<<<<<<<<<<<<< @@ -63941,84 +64389,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = ((__pyx_v_self->_enable_exceptions == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2503 + /* "PyCafe.pyx":2502 * if self._enable_exceptions is False: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2503, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle, __pyx_t_3) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2504 + /* "PyCafe.pyx":2503 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, * _error_text=self.cs.code(status), */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2504, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pv_name, __pyx_t_3) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2505 + /* "PyCafe.pyx":2504 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, # <<<<<<<<<<<<<< * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2505, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_code, __pyx_t_3) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2506 + /* "PyCafe.pyx":2505 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, * _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2506, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_text, __pyx_t_3) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2507 + /* "PyCafe.pyx":2506 * _error_code=status, * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2507, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2503, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_t_3) < 0) __PYX_ERR(3, 2502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2502 + /* "PyCafe.pyx":2501 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions is False: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2502, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2508 + /* "PyCafe.pyx":2507 * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -64026,9 +64474,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy * return None */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 2508, __pyx_L1_error) + __PYX_ERR(3, 2507, __pyx_L1_error) - /* "PyCafe.pyx":2501 + /* "PyCafe.pyx":2500 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions is False: # <<<<<<<<<<<<<< @@ -64037,7 +64485,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2510 + /* "PyCafe.pyx":2509 * raise _cafeException * * return None # <<<<<<<<<<<<<< @@ -64048,7 +64496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":2495 + /* "PyCafe.pyx":2494 * return None * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -64057,7 +64505,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":2250 + /* "PyCafe.pyx":2249 * ############################################################################ * @verify_handlepv * def getList(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -64084,7 +64532,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_250getList(struct __pyx_obj_6PyCafe_Cy return __pyx_r; } -/* "PyCafe.pyx":2514 +/* "PyCafe.pyx":2513 * ################################################################################## * * def getStrArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64128,7 +64576,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_253getStrArray(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStrArray") < 0)) __PYX_ERR(3, 2514, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStrArray") < 0)) __PYX_ERR(3, 2513, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -64144,13 +64592,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_253getStrArray(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getStrArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2514, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getStrArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2513, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getStrArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2514, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2513, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_252getStrArray(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -64171,7 +64619,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_252getStrArray(struct __pyx_obj_6PyCaf PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getStrArray", 0); - /* "PyCafe.pyx":2515 + /* "PyCafe.pyx":2514 * * def getStrArray(self, handlePV, str art='numpy'): * return self.getArray(handlePV, dt='str', art=art) # <<<<<<<<<<<<<< @@ -64179,18 +64627,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_252getStrArray(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2515, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2515, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2515, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 2515, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2515, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2515, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 2514, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2514, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -64199,7 +64647,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_252getStrArray(struct __pyx_obj_6PyCaf __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2514 + /* "PyCafe.pyx":2513 * ################################################################################## * * def getStrArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64223,7 +64671,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_252getStrArray(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":2519 +/* "PyCafe.pyx":2518 * * ############################################################################ * def getIntArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64267,7 +64715,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_255getIntArray(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getIntArray") < 0)) __PYX_ERR(3, 2519, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getIntArray") < 0)) __PYX_ERR(3, 2518, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -64283,13 +64731,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_255getIntArray(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getIntArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2519, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getIntArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2518, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getIntArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2519, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2518, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_254getIntArray(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -64310,7 +64758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_254getIntArray(struct __pyx_obj_6PyCaf PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getIntArray", 0); - /* "PyCafe.pyx":2520 + /* "PyCafe.pyx":2519 * ############################################################################ * def getIntArray(self, handlePV, str art='numpy'): * return self.getArray(handlePV, dt='int', art=art) # <<<<<<<<<<<<<< @@ -64318,18 +64766,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_254getIntArray(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2520, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2520, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2520, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 2520, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2520, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2520, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 2519, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2519, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -64338,7 +64786,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_254getIntArray(struct __pyx_obj_6PyCaf __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2519 + /* "PyCafe.pyx":2518 * * ############################################################################ * def getIntArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64362,7 +64810,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_254getIntArray(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":2524 +/* "PyCafe.pyx":2523 * * ############################################################################ * def getFloatArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64406,7 +64854,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_257getFloatArray(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloatArray") < 0)) __PYX_ERR(3, 2524, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloatArray") < 0)) __PYX_ERR(3, 2523, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -64422,13 +64870,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_257getFloatArray(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getFloatArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2524, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getFloatArray", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2523, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getFloatArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2524, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2523, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_256getFloatArray(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -64449,7 +64897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_256getFloatArray(struct __pyx_obj_6PyC PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getFloatArray", 0); - /* "PyCafe.pyx":2525 + /* "PyCafe.pyx":2524 * ############################################################################ * def getFloatArray(self, handlePV, str art='numpy'): * return self.getArray(handlePV, dt='float', art=art) # <<<<<<<<<<<<<< @@ -64457,18 +64905,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_256getFloatArray(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2525, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArray); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2525, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2525, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 2525, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2525, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2525, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 2524, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 2524, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -64477,7 +64925,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_256getFloatArray(struct __pyx_obj_6PyC __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2524 + /* "PyCafe.pyx":2523 * * ############################################################################ * def getFloatArray(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -64501,7 +64949,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_256getFloatArray(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":2530 +/* "PyCafe.pyx":2529 * ############################################################################ * @verify_handlepv * def getArray(self, handlePV, str dt='native', str art='numpy'): # <<<<<<<<<<<<<< @@ -64555,7 +65003,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_259getArray(PyObject *__pyx_v_self, Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getArray") < 0)) __PYX_ERR(3, 2530, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getArray") < 0)) __PYX_ERR(3, 2529, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -64574,14 +65022,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_259getArray(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getArray", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2530, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getArray", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2529, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2530, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2530, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 2529, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 2529, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_258getArray(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt, __pyx_v_art); /* function exit code */ @@ -64597,6 +65045,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C PyObject *__pyx_v__METHOD = 0; unsigned int __pyx_v_handle; short *__pyx_v_i16val; + dbr_char_t *__pyx_v_ui8val; int *__pyx_v_ival; double *__pyx_v_dval; float *__pyx_v_fval; @@ -64627,6 +65076,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C int __pyx_v_encoding; PyObject *__pyx_v_arrayArray = NULL; PyObject *__pyx_v_ctypesArray = NULL; + PyObject *__pyx_v_start = NULL; + PyObject *__pyx_v_end = NULL; PyObject *__pyx_v_ctypesArray16 = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -64647,8 +65098,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_15 = NULL; int __pyx_t_16; int __pyx_t_17; - __Pyx_memviewslice __pyx_t_18 = { 0, 0, { 0 }, { 0 }, { 0 } }; - size_t __pyx_t_19; + size_t __pyx_t_18; + __Pyx_memviewslice __pyx_t_19 = { 0, 0, { 0 }, { 0 }, { 0 } }; __Pyx_memviewslice __pyx_t_20 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_21; __Pyx_memviewslice __pyx_t_22 = { 0, 0, { 0 }, { 0 }, { 0 } }; @@ -64656,25 +65107,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C size_t __pyx_t_24; size_t __pyx_t_25; size_t __pyx_t_26; - __Pyx_memviewslice __pyx_t_27 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_27; size_t __pyx_t_28; - __Pyx_memviewslice __pyx_t_29 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_29; size_t __pyx_t_30; - __Pyx_memviewslice __pyx_t_31 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_31; size_t __pyx_t_32; - size_t __pyx_t_33; + __Pyx_memviewslice __pyx_t_33 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_34; __Pyx_memviewslice __pyx_t_35 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_36; - size_t __pyx_t_37; + __Pyx_memviewslice __pyx_t_37 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_38; - __Pyx_memviewslice __pyx_t_39 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_39; size_t __pyx_t_40; - size_t __pyx_t_41; + __Pyx_memviewslice __pyx_t_41 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_42; + size_t __pyx_t_43; + size_t __pyx_t_44; + __Pyx_memviewslice __pyx_t_45 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_46; + size_t __pyx_t_47; + size_t __pyx_t_48; __Pyx_RefNannySetupContext("getArray", 0); - /* "PyCafe.pyx":2549 + /* "PyCafe.pyx":2548 * # hence C contiguous. * * cdef str _METHOD = "getArray" # <<<<<<<<<<<<<< @@ -64684,14 +65141,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_n_u_getArray); __pyx_v__METHOD = __pyx_n_u_getArray; - /* "PyCafe.pyx":2550 + /* "PyCafe.pyx":2549 * * cdef str _METHOD = "getArray" * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * ''' * cdef unsigned int handle = 0 */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2550, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 2549, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; /* "PyCafe.pyx":2576 @@ -65340,10 +65797,98 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * # previously nelemNative - has to be at least size of nelemClient * cdef unsigned int nelemMemory = nelemClient # <<<<<<<<<<<<<< * - * #print('native', self.hh.getNelemNative(handle)) + * print('native', self.hh.getNelemNative(handle)) */ __pyx_v_nelemMemory = __pyx_v_nelemClient; + /* "PyCafe.pyx":2660 + * cdef unsigned int nelemMemory = nelemClient + * + * print('native', self.hh.getNelemNative(handle)) # <<<<<<<<<<<<<< + * print('client', self.hh.getNelemClient(handle)) + * print('request',self.hh.getNelemRequest(handle)) + */ + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemNative(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_native); + __Pyx_GIVEREF(__pyx_n_u_native); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_native); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "PyCafe.pyx":2661 + * + * print('native', self.hh.getNelemNative(handle)) + * print('client', self.hh.getNelemClient(handle)) # <<<<<<<<<<<<<< + * print('request',self.hh.getNelemRequest(handle)) + * + */ + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemClient(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_client); + __Pyx_GIVEREF(__pyx_n_u_client); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_client); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "PyCafe.pyx":2662 + * print('native', self.hh.getNelemNative(handle)) + * print('client', self.hh.getNelemClient(handle)) + * print('request',self.hh.getNelemRequest(handle)) # <<<<<<<<<<<<<< + * + * print ('dtcheck', dtcheck) + */ + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemRequest(__pyx_v_handle)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_request); + __Pyx_GIVEREF(__pyx_n_u_request); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_request); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "PyCafe.pyx":2664 + * print('request',self.hh.getNelemRequest(handle)) + * + * print ('dtcheck', dtcheck) # <<<<<<<<<<<<<< + * + * # cdef double [::1] cyarr_view + */ + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_dtcheck); + __Pyx_GIVEREF(__pyx_n_u_dtcheck); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_dtcheck); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + /* "PyCafe.pyx":2672 * cdef bytes bVal * @@ -66343,7 +66888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_DECREF_SET(__pyx_t_4, function); } } - __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_8, __pyx_kp_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8_2); + __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_8, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_u_utf_8); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -66548,7 +67093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * * return mvStr # <<<<<<<<<<<<<< * - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: + * elif dtcheck in [CAFE_CHAR]: */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_mvStr); @@ -66574,38 +67119,59 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * with nogil: */ break; - case CAFE_SHORT: - - /* "PyCafe.pyx":2767 - * return mvStr - * - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: # <<<<<<<<<<<<<< - * - * i16val = malloc(nelemMemory * sizeof(np.int16)) - */ case CAFE_CHAR: /* "PyCafe.pyx":2769 - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: + * elif dtcheck in [CAFE_CHAR]: * - * i16val = malloc(nelemMemory * sizeof(np.int16)) # <<<<<<<<<<<<<< - * # start=time.time() + * ui8val = malloc(nelemMemory * sizeof(np.uint8)) # <<<<<<<<<<<<<< + * start=time.time() * with nogil: */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2769, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_uint8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_v_i16val = ((short *)malloc((__pyx_v_nelemMemory * (sizeof(__pyx_t_9))))); + __pyx_v_ui8val = ((dbr_char_t *)malloc((__pyx_v_nelemMemory * (sizeof(__pyx_t_9))))); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + /* "PyCafe.pyx":2770 + * + * ui8val = malloc(nelemMemory * sizeof(np.uint8)) + * start=time.time() # <<<<<<<<<<<<<< + * with nogil: + * status = self._c_cafe.getCharArray(handle, ui8val) + */ + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_time); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_time); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_8, function); + } + } + __pyx_t_9 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_v_start = __pyx_t_9; + __pyx_t_9 = 0; + /* "PyCafe.pyx":2771 - * i16val = malloc(nelemMemory * sizeof(np.int16)) - * # start=time.time() + * ui8val = malloc(nelemMemory * sizeof(np.uint8)) + * start=time.time() * with nogil: # <<<<<<<<<<<<<< - * status = self._c_cafe.getShortArray(handle, i16val) - * # end=time.time() + * status = self._c_cafe.getCharArray(handle, ui8val) + * end=time.time() */ { #ifdef WITH_THREAD @@ -66616,21 +67182,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /*try:*/ { /* "PyCafe.pyx":2772 - * # start=time.time() + * start=time.time() * with nogil: - * status = self._c_cafe.getShortArray(handle, i16val) # <<<<<<<<<<<<<< - * # end=time.time() - * #print ("END TIME SHORT", end - start) + * status = self._c_cafe.getCharArray(handle, ui8val) # <<<<<<<<<<<<<< + * end=time.time() + * print ("END TIME CHAR", end - start) */ - __pyx_v_status = __pyx_v_self->_c_cafe->getShortArray(__pyx_v_handle, __pyx_v_i16val); + __pyx_v_status = __pyx_v_self->_c_cafe->getCharArray(__pyx_v_handle, __pyx_v_ui8val); } /* "PyCafe.pyx":2771 - * i16val = malloc(nelemMemory * sizeof(np.int16)) - * # start=time.time() + * ui8val = malloc(nelemMemory * sizeof(np.uint8)) + * start=time.time() * with nogil: # <<<<<<<<<<<<<< - * status = self._c_cafe.getShortArray(handle, i16val) - * # end=time.time() + * status = self._c_cafe.getCharArray(handle, ui8val) + * end=time.time() */ /*finally:*/ { /*normal exit:*/{ @@ -66644,9 +67210,150 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C } } + /* "PyCafe.pyx":2773 + * with nogil: + * status = self._c_cafe.getCharArray(handle, ui8val) + * end=time.time() # <<<<<<<<<<<<<< + * print ("END TIME CHAR", end - start) + * print("length of ui8val", len(ui8val)) + */ + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_time); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_time); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(__pyx_t_8)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_4, function); + } + } + __pyx_t_9 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_v_end = __pyx_t_9; + __pyx_t_9 = 0; + + /* "PyCafe.pyx":2774 + * status = self._c_cafe.getCharArray(handle, ui8val) + * end=time.time() + * print ("END TIME CHAR", end - start) # <<<<<<<<<<<<<< + * print("length of ui8val", len(ui8val)) + * + */ + __pyx_t_9 = PyNumber_Subtract(__pyx_v_end, __pyx_v_start); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_kp_u_END_TIME_CHAR); + __Pyx_GIVEREF(__pyx_kp_u_END_TIME_CHAR); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_END_TIME_CHAR); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + /* "PyCafe.pyx":2775 - * # end=time.time() - * #print ("END TIME SHORT", end - start) + * end=time.time() + * print ("END TIME CHAR", end - start) + * print("length of ui8val", len(ui8val)) # <<<<<<<<<<<<<< + * + * print('native', self.hh.getNelemNative(handle)) + */ + __pyx_t_18 = strlen(((char const *)__pyx_v_ui8val)); + __pyx_t_9 = __Pyx_PyInt_FromSize_t(__pyx_t_18); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_kp_u_length_of_ui8val); + __Pyx_GIVEREF(__pyx_kp_u_length_of_ui8val); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_length_of_ui8val); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "PyCafe.pyx":2777 + * print("length of ui8val", len(ui8val)) + * + * print('native', self.hh.getNelemNative(handle)) # <<<<<<<<<<<<<< + * print('client', self.hh.getNelemClient(handle)) + * print('request',self.hh.getNelemRequest(handle)) + */ + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemNative(__pyx_v_handle)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_native); + __Pyx_GIVEREF(__pyx_n_u_native); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_native); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "PyCafe.pyx":2778 + * + * print('native', self.hh.getNelemNative(handle)) + * print('client', self.hh.getNelemClient(handle)) # <<<<<<<<<<<<<< + * print('request',self.hh.getNelemRequest(handle)) + * + */ + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemClient(__pyx_v_handle)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2778, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2778, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_client); + __Pyx_GIVEREF(__pyx_n_u_client); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_client); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2778, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "PyCafe.pyx":2779 + * print('native', self.hh.getNelemNative(handle)) + * print('client', self.hh.getNelemClient(handle)) + * print('request',self.hh.getNelemRequest(handle)) # <<<<<<<<<<<<<< + * + * + */ + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemRequest(__pyx_v_handle)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_u_request); + __Pyx_GIVEREF(__pyx_n_u_request); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_request); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "PyCafe.pyx":2783 + * + * #nelemMethod = min(len(ui8val), nelemMemory) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * @@ -66654,44 +67361,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2778 + /* "PyCafe.pyx":2786 * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * - * # ##mvInt=ival + * if dt in ['np.short', 'np.int16', 'short', 'int16']: */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2778, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2786, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L72_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2778, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2786, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L72_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2778, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2786, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L72_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2778, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2786, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L72_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2778, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2786, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; __pyx_L72_bool_binop_done:; @@ -66699,8 +67406,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2784 - * # ##set_base(arr, ival) + /* "PyCafe.pyx":2788 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< * mvShort = np.empty( @@ -66708,28 +67415,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_6 = __pyx_v_dt; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2784, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2788, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; goto __pyx_L78_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2784, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2788, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; goto __pyx_L78_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2784, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2788, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; goto __pyx_L78_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2784, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2788, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); __pyx_t_7 = __pyx_t_2; __pyx_L78_bool_binop_done:; @@ -66737,130 +67444,130 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_7 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2785 + /* "PyCafe.pyx":2789 * * if dt in ['np.short', 'np.int16', 'short', 'int16']: * mvShort = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2785, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2785, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":2786 + /* "PyCafe.pyx":2790 * if dt in ['np.short', 'np.int16', 'short', 'int16']: * mvShort = np.empty( * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] + * mvShort[ij] = ui8val[ij] */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2786, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":2785 + /* "PyCafe.pyx":2789 * * if dt in ['np.short', 'np.int16', 'short', 'int16']: * mvShort = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2785, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":2786 + /* "PyCafe.pyx":2790 * if dt in ['np.short', 'np.int16', 'short', 'int16']: * mvShort = np.empty( * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] + * mvShort[ij] = ui8val[ij] */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2786, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2786, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int16); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2786, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int16); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2786, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2790, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2786, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2790, __pyx_L1_error) - /* "PyCafe.pyx":2785 + /* "PyCafe.pyx":2789 * * if dt in ['np.short', 'np.int16', 'short', 'int16']: * mvShort = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2785, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 2785, __pyx_L1_error) + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2789, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_mvShort = __pyx_t_18; - __pyx_t_18.memview = NULL; - __pyx_t_18.data = NULL; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; - /* "PyCafe.pyx":2787 + /* "PyCafe.pyx":2791 * mvShort = np.empty( * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvShort[ij] = i16val[ij] - * free(i16val) + * mvShort[ij] = ui8val[ij] + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2788 + /* "PyCafe.pyx":2792 * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) + * mvShort[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) * return np.array(mvShort) */ - __pyx_t_19 = __pyx_v_ij; + __pyx_t_18 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_19 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_18 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2788, __pyx_L1_error) + __PYX_ERR(3, 2792, __pyx_L1_error) } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_19)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_18)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_ui8val[__pyx_v_ij])); } - /* "PyCafe.pyx":2789 + /* "PyCafe.pyx":2793 * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< + * mvShort[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< * return np.array(mvShort) * */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); - /* "PyCafe.pyx":2790 - * mvShort[ij] = i16val[ij] - * free(i16val) + /* "PyCafe.pyx":2794 + * mvShort[ij] = ui8val[ij] + * free(ui8val) * return np.array(mvShort) # <<<<<<<<<<<<<< * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2790, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2790, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2790, __pyx_L1_error) + __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { @@ -66875,15 +67582,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_10 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_4, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2790, __pyx_L1_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_r = __pyx_t_10; __pyx_t_10 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2784 - * # ##set_base(arr, ival) + /* "PyCafe.pyx":2788 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< * mvShort = np.empty( @@ -66892,7 +67599,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C goto __pyx_L77; } - /* "PyCafe.pyx":2792 + /* "PyCafe.pyx":2796 * return np.array(mvShort) * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< @@ -66901,42 +67608,42 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_6 = __pyx_v_dt; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L84_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L84_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L84_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L84_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L84_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2792, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2796, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; __pyx_L84_bool_binop_done:; @@ -66944,95 +67651,95 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2793 + /* "PyCafe.pyx":2797 * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: * mvInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2793, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2793, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":2794 + /* "PyCafe.pyx":2798 * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: * mvInt8 = np.empty( * nelemMethod, dtype=np.int8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt8[ij] = i16val[ij] + * mvInt8[ij] = ui8val[ij] */ - __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2794, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - /* "PyCafe.pyx":2793 + /* "PyCafe.pyx":2797 * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: * mvInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2793, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":2794 + /* "PyCafe.pyx":2798 * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: * mvInt8 = np.empty( * nelemMethod, dtype=np.int8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt8[ij] = i16val[ij] + * mvInt8[ij] = ui8val[ij] */ - __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2794, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2794, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2794, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 2794, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 2798, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2794, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2798, __pyx_L1_error) - /* "PyCafe.pyx":2793 + /* "PyCafe.pyx":2797 * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: * mvInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2793, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_20 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int8_t(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_20.memview)) __PYX_ERR(3, 2793, __pyx_L1_error) + __pyx_t_20 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int8_t(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_20.memview)) __PYX_ERR(3, 2797, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_mvInt8 = __pyx_t_20; __pyx_t_20.memview = NULL; __pyx_t_20.data = NULL; - /* "PyCafe.pyx":2795 + /* "PyCafe.pyx":2799 * mvInt8 = np.empty( * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvInt8[ij] = i16val[ij] - * free(i16val) + * mvInt8[ij] = ui8val[ij] + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2796 + /* "PyCafe.pyx":2800 * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): - * mvInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) + * mvInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) * return np.array(mvInt8) */ __pyx_t_21 = __pyx_v_ij; @@ -67040,34 +67747,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C if (unlikely(__pyx_t_21 >= (size_t)__pyx_v_mvInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2796, __pyx_L1_error) + __PYX_ERR(3, 2800, __pyx_L1_error) } - *((__pyx_t_5numpy_int8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int8_t *) __pyx_v_mvInt8.data) + __pyx_t_21)) )) = ((__pyx_t_5numpy_int8_t)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_int8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int8_t *) __pyx_v_mvInt8.data) + __pyx_t_21)) )) = ((__pyx_t_5numpy_int8_t)(__pyx_v_ui8val[__pyx_v_ij])); } - /* "PyCafe.pyx":2797 + /* "PyCafe.pyx":2801 * for ij in range(0, nelemMethod): - * mvInt8[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< + * mvInt8[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< * return np.array(mvInt8) * */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); - /* "PyCafe.pyx":2798 - * mvInt8[ij] = i16val[ij] - * free(i16val) + /* "PyCafe.pyx":2802 + * mvInt8[ij] = ui8val[ij] + * free(ui8val) * return np.array(mvInt8) # <<<<<<<<<<<<<< * * elif dt in ['uchar', 'np.uint8', 'uint8']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2798, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2798, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2798, __pyx_L1_error) + __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { @@ -67082,14 +67789,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_8, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2798, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2792 + /* "PyCafe.pyx":2796 * return np.array(mvShort) * * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< @@ -67099,7 +67806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C goto __pyx_L77; } - /* "PyCafe.pyx":2800 + /* "PyCafe.pyx":2804 * return np.array(mvInt8) * * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< @@ -67108,21 +67815,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_6 = __pyx_v_dt; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2800, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2804, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; goto __pyx_L92_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2800, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2804, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; goto __pyx_L92_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2800, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2804, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); __pyx_t_7 = __pyx_t_5; __pyx_L92_bool_binop_done:; @@ -67130,130 +67837,130 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_5 = (__pyx_t_7 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2801 + /* "PyCafe.pyx":2805 * * elif dt in ['uchar', 'np.uint8', 'uint8']: * mvUInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2801, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2801, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2802 + /* "PyCafe.pyx":2806 * elif dt in ['uchar', 'np.uint8', 'uint8']: * mvUInt8 = np.empty( * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvUInt8[ij] = i16val[ij] + * mvUInt8[ij] = ui8val[ij] */ - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2802, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":2801 + /* "PyCafe.pyx":2805 * * elif dt in ['uchar', 'np.uint8', 'uint8']: * mvUInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2801, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2802 + /* "PyCafe.pyx":2806 * elif dt in ['uchar', 'np.uint8', 'uint8']: * mvUInt8 = np.empty( * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvUInt8[ij] = i16val[ij] + * mvUInt8[ij] = ui8val[ij] */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2802, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2802, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2802, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 2802, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 2806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2802, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2806, __pyx_L1_error) - /* "PyCafe.pyx":2801 + /* "PyCafe.pyx":2805 * * elif dt in ['uchar', 'np.uint8', 'uint8']: * mvUInt8 = np.empty( # <<<<<<<<<<<<<< * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2801, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_22 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_22.memview)) __PYX_ERR(3, 2801, __pyx_L1_error) + __pyx_t_22 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_22.memview)) __PYX_ERR(3, 2805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_mvUInt8 = __pyx_t_22; __pyx_t_22.memview = NULL; __pyx_t_22.data = NULL; - /* "PyCafe.pyx":2803 + /* "PyCafe.pyx":2807 * mvUInt8 = np.empty( * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvUInt8[ij] = i16val[ij] - * free(i16val) + * mvUInt8[ij] = ui8val[ij] + * */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2804 + /* "PyCafe.pyx":2808 * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): - * mvUInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) - * return np.array(mvUInt8) + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * + * free(ui8val) */ __pyx_t_23 = __pyx_v_ij; __pyx_t_16 = -1; if (unlikely(__pyx_t_23 >= (size_t)__pyx_v_mvUInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2804, __pyx_L1_error) + __PYX_ERR(3, 2808, __pyx_L1_error) } - *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint8_t *) __pyx_v_mvUInt8.data) + __pyx_t_23)) )) = ((__pyx_t_5numpy_uint8_t)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint8_t *) __pyx_v_mvUInt8.data) + __pyx_t_23)) )) = ((__pyx_t_5numpy_uint8_t)(__pyx_v_ui8val[__pyx_v_ij])); } - /* "PyCafe.pyx":2805 - * for ij in range(0, nelemMethod): - * mvUInt8[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2810 + * mvUInt8[ij] = ui8val[ij] + * + * free(ui8val) # <<<<<<<<<<<<<< * return np.array(mvUInt8) * */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); - /* "PyCafe.pyx":2806 - * mvUInt8[ij] = i16val[ij] - * free(i16val) + /* "PyCafe.pyx":2811 + * + * free(ui8val) * return np.array(mvUInt8) # <<<<<<<<<<<<<< * * else: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2806, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2806, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvUInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2806, __pyx_L1_error) + __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvUInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) { @@ -67268,14 +67975,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_3); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2806, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2800 + /* "PyCafe.pyx":2804 * return np.array(mvInt8) * * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< @@ -67285,131 +67992,131 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C goto __pyx_L77; } - /* "PyCafe.pyx":2810 - * else: + /* "PyCafe.pyx":2814 * - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int16, order='C') - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * else: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2810, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2810, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2811 - * - * mvShort = np.empty( - * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + /* "PyCafe.pyx":2815 + * else: + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2811, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":2810 - * else: + /* "PyCafe.pyx":2814 * - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int16, order='C') - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * else: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') */ - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2810, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2811 - * - * mvShort = np.empty( - * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + /* "PyCafe.pyx":2815 + * else: + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2811, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2811, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2811, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_uint8); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 2811, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 2815, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2811, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2815, __pyx_L1_error) - /* "PyCafe.pyx":2810 - * else: + /* "PyCafe.pyx":2814 * - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int16, order='C') - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * else: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2810, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 2810, __pyx_L1_error) + __pyx_t_22 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint8_t(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_22.memview)) __PYX_ERR(3, 2814, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_v_mvShort = __pyx_t_18; - __pyx_t_18.memview = NULL; - __pyx_t_18.data = NULL; + __pyx_v_mvUInt8 = __pyx_t_22; + __pyx_t_22.memview = NULL; + __pyx_t_22.data = NULL; - /* "PyCafe.pyx":2813 - * nelemMethod, dtype=np.int16, order='C') - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + /* "PyCafe.pyx":2817 + * nelemMethod, dtype=np.uint8, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvShort[ij] = i16val[ij] - * # mvShortNP=cnp.asarray(i16val) + * mvUInt8[ij] = ui8val[ij] + * # mvShortNP=cnp.asarray(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2814 - * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + /* "PyCafe.pyx":2818 + * #mvShortNP = np.ndarray(buffer=np.array(ui8val), dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< - * # mvShortNP=cnp.asarray(i16val) + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * # mvShortNP=cnp.asarray(ui8val) * */ __pyx_t_24 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_24 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_24 >= (size_t)__pyx_v_mvUInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2814, __pyx_L1_error) + __PYX_ERR(3, 2818, __pyx_L1_error) } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_24)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint8_t *) __pyx_v_mvUInt8.data) + __pyx_t_24)) )) = ((__pyx_t_5numpy_uint8_t)(__pyx_v_ui8val[__pyx_v_ij])); } - /* "PyCafe.pyx":2818 + /* "PyCafe.pyx":2822 * - * # aaa=np.full(nelemMethod,ival + * if dt in ['np.short', 'np.int16', 'short', 'int16']: */ goto __pyx_L71; } - /* "PyCafe.pyx":2822 - * return np.array(mvShort) # arr + /* "PyCafe.pyx":2825 + * return np.array(mvUInt8) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') @@ -67452,21 +68159,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2822, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2825, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); if (!__pyx_t_2) { } else { __pyx_t_5 = __pyx_t_2; goto __pyx_L99_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2822, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2825, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; goto __pyx_L99_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2822, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2825, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); __pyx_t_5 = __pyx_t_2; __pyx_L99_bool_binop_done:; @@ -67474,97 +68181,97 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2823 + /* "PyCafe.pyx":2826 * * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] + * mvShort[ij] = ui8val[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2823, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2823, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2823, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2823, __pyx_L1_error) - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2823, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2826, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 2823, __pyx_L1_error) + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2826, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_v_mvShort = __pyx_t_18; - __pyx_t_18.memview = NULL; - __pyx_t_18.data = NULL; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; - /* "PyCafe.pyx":2824 + /* "PyCafe.pyx":2827 * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvShort[ij] = i16val[ij] - * free(i16val) + * mvShort[ij] = ui8val[ij] + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2825 + /* "PyCafe.pyx":2828 * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) - * + * mvShort[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return memoryview(mvShort) */ __pyx_t_25 = __pyx_v_ij; __pyx_t_16 = -1; if (unlikely(__pyx_t_25 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2825, __pyx_L1_error) + __PYX_ERR(3, 2828, __pyx_L1_error) } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_25)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_25)) )) = ((short)(__pyx_v_ui8val[__pyx_v_ij])); } - /* "PyCafe.pyx":2826 + /* "PyCafe.pyx":2829 * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< - * + * mvShort[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< * return memoryview(mvShort) - */ - free(__pyx_v_i16val); - - /* "PyCafe.pyx":2828 - * free(i16val) * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":2830 + * mvShort[ij] = ui8val[ij] + * free(ui8val) * return memoryview(mvShort) # <<<<<<<<<<<<<< * * elif art in ['array', 'array.array']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2828, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2828, __pyx_L1_error) + __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2828, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -67572,8 +68279,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2822 - * return np.array(mvShort) # arr + /* "PyCafe.pyx":2825 + * return np.array(mvUInt8) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') @@ -67582,23 +68289,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C goto __pyx_L71; } - /* "PyCafe.pyx":2830 + /* "PyCafe.pyx":2832 * return memoryview(mvShort) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< - * * a = array.array('h') + * for ij in range(0, nelemMethod): */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2830, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2832, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L104_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2830, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2832, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); __pyx_t_2 = __pyx_t_5; __pyx_L104_bool_binop_done:; @@ -67606,55 +68313,55 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2832 - * elif art in ['array', 'array.array']: + /* "PyCafe.pyx":2833 * + * elif art in ['array', 'array.array']: * a = array.array('h') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * a.append( < short > i16val[ij]) + * a.append( < short > ui8val[ij]) */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2832, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_a = ((arrayobject *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2833 - * + /* "PyCafe.pyx":2834 + * elif art in ['array', 'array.array']: * a = array.array('h') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * a.append( < short > i16val[ij]) - * free(i16val) + * a.append( < short > ui8val[ij]) + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2834 + /* "PyCafe.pyx":2835 * a = array.array('h') * for ij in range(0, nelemMethod): - * a.append( < short > i16val[ij]) # <<<<<<<<<<<<<< - * free(i16val) + * a.append( < short > ui8val[ij]) # <<<<<<<<<<<<<< + * free(ui8val) * return a */ - __pyx_t_4 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2834, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_short(((short)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_4); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 2834, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_4); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 2835, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":2835 + /* "PyCafe.pyx":2836 * for ij in range(0, nelemMethod): - * a.append( < short > i16val[ij]) - * free(i16val) # <<<<<<<<<<<<<< + * a.append( < short > ui8val[ij]) + * free(ui8val) # <<<<<<<<<<<<<< * return a * */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); - /* "PyCafe.pyx":2836 - * a.append( < short > i16val[ij]) - * free(i16val) + /* "PyCafe.pyx":2837 + * a.append( < short > ui8val[ij]) + * free(ui8val) * return a # <<<<<<<<<<<<<< * * elif art in ['ctypes', 'ctype']: @@ -67664,33 +68371,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = ((PyObject *)__pyx_v_a); goto __pyx_L0; - /* "PyCafe.pyx":2830 + /* "PyCafe.pyx":2832 * return memoryview(mvShort) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< - * * a = array.array('h') + * for ij in range(0, nelemMethod): */ goto __pyx_L71; } - /* "PyCafe.pyx":2838 + /* "PyCafe.pyx":2839 * return a * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< - * * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + * for ij in range(0, nelemMethod): */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2838, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2839, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; goto __pyx_L108_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2838, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2839, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); __pyx_t_5 = __pyx_t_2; __pyx_L108_bool_binop_done:; @@ -67699,11 +68406,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C if (__pyx_t_2) { /* "PyCafe.pyx":2840 - * elif art in ['ctypes', 'ctype']: * + * elif art in ['ctypes', 'ctype']: * ctypesArray16 = (ctypes.c_int16*nelemMethod)() # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * ctypesArray16[ij] = i16val[ij] + * ctypesArray16[ij] = ui8val[ij] */ __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); @@ -67735,11 +68442,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_4 = 0; /* "PyCafe.pyx":2841 - * + * elif art in ['ctypes', 'ctype']: * ctypesArray16 = (ctypes.c_int16*nelemMethod)() * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * ctypesArray16[ij] = i16val[ij] - * free(i16val) + * ctypesArray16[ij] = ui8val[ij] + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; @@ -67749,11 +68456,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /* "PyCafe.pyx":2842 * ctypesArray16 = (ctypes.c_int16*nelemMethod)() * for ij in range(0, nelemMethod): - * ctypesArray16[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) + * ctypesArray16[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) * return ctypesArray16 */ - __pyx_t_4 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2842, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_short(((short)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray16, __pyx_v_ij, __pyx_t_4, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 2842, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -67761,16 +68468,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /* "PyCafe.pyx":2843 * for ij in range(0, nelemMethod): - * ctypesArray16[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< + * ctypesArray16[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< * return ctypesArray16 * */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); /* "PyCafe.pyx":2844 - * ctypesArray16[ij] = i16val[ij] - * free(i16val) + * ctypesArray16[ij] = ui8val[ij] + * free(ui8val) * return ctypesArray16 # <<<<<<<<<<<<<< * * else: @@ -67780,12 +68487,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_v_ctypesArray16; goto __pyx_L0; - /* "PyCafe.pyx":2838 + /* "PyCafe.pyx":2839 * return a * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< - * * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + * for ij in range(0, nelemMethod): */ goto __pyx_L71; } @@ -67835,7 +68542,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") - * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * mvUInt8 = np.empty(nelemMethod, dtype=np.uint8, order='C') */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -67845,7 +68552,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< - * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * mvUInt8 = np.empty(nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2850, __pyx_L1_error) @@ -67855,9 +68562,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /* "PyCafe.pyx":2851 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") - * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * mvUInt8 = np.empty(nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] + * mvUInt8[ij] = ui8val[ij] */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -67875,7 +68582,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_GOTREF(__pyx_t_3); __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int16); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2851, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_uint8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2851, __pyx_L1_error) @@ -67886,18 +68593,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 2851, __pyx_L1_error) + __pyx_t_22 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint8_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_22.memview)) __PYX_ERR(3, 2851, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_mvShort = __pyx_t_18; - __pyx_t_18.memview = NULL; - __pyx_t_18.data = NULL; + __pyx_v_mvUInt8 = __pyx_t_22; + __pyx_t_22.memview = NULL; + __pyx_t_22.data = NULL; /* "PyCafe.pyx":2852 * print("Returning memoryview") - * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * mvUInt8 = np.empty(nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvShort[ij] = i16val[ij] - * free(i16val) + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; @@ -67905,40 +68612,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_v_ij = __pyx_t_12; /* "PyCafe.pyx":2853 - * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * mvUInt8 = np.empty(nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) - * + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return mvUInt8 */ __pyx_t_26 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_26 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_26 >= (size_t)__pyx_v_mvUInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); __PYX_ERR(3, 2853, __pyx_L1_error) } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_26)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint8_t *) __pyx_v_mvUInt8.data) + __pyx_t_26)) )) = ((dbr_char_t)(__pyx_v_ui8val[__pyx_v_ij])); } /* "PyCafe.pyx":2854 * for ij in range(0, nelemMethod): - * mvShort[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * return mvUInt8 * - * return mvShort */ - free(__pyx_v_i16val); + free(__pyx_v_ui8val); - /* "PyCafe.pyx":2856 - * free(i16val) + /* "PyCafe.pyx":2855 + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) + * return mvUInt8 # <<<<<<<<<<<<<< * - * return mvShort # <<<<<<<<<<<<<< - * - * elif dtcheck in [CAFE_LONG]: + * elif dtcheck in [CAFE_SHORT]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2856, __pyx_L1_error) + __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvUInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_r = __pyx_t_10; __pyx_t_10 = 0; @@ -67946,9 +68653,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C } __pyx_L71:; - /* "PyCafe.pyx":2775 - * # end=time.time() - * #print ("END TIME SHORT", end - start) + /* "PyCafe.pyx":2783 + * + * #nelemMethod = min(len(ui8val), nelemMemory) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * @@ -67958,34 +68665,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /* "PyCafe.pyx":2767 * return mvStr * - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: # <<<<<<<<<<<<<< + * elif dtcheck in [CAFE_CHAR]: # <<<<<<<<<<<<<< * - * i16val = malloc(nelemMemory * sizeof(np.int16)) + * ui8val = malloc(nelemMemory * sizeof(np.uint8)) */ break; - case CAFE_LONG: + case CAFE_SHORT: - /* "PyCafe.pyx":2860 - * elif dtcheck in [CAFE_LONG]: + /* "PyCafe.pyx":2859 + * elif dtcheck in [CAFE_SHORT]: * - * ival = malloc(nelemMemory * sizeof(np.int32)) # <<<<<<<<<<<<<< + * i16val = malloc(nelemMemory * sizeof(np.int16)) # <<<<<<<<<<<<<< + * # start=time.time() * with nogil: - * status = self._c_cafe.getLongArray(handle, ival) */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2860, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int32); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2860, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_ival = ((int *)malloc((__pyx_v_nelemMemory * (sizeof(__pyx_t_3))))); + __pyx_v_i16val = ((short *)malloc((__pyx_v_nelemMemory * (sizeof(__pyx_t_3))))); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "PyCafe.pyx":2861 - * - * ival = malloc(nelemMemory * sizeof(np.int32)) + * i16val = malloc(nelemMemory * sizeof(np.int16)) + * # start=time.time() * with nogil: # <<<<<<<<<<<<<< - * status = self._c_cafe.getLongArray(handle, ival) - * + * status = self._c_cafe.getShortArray(handle, i16val) + * # end=time.time() */ { #ifdef WITH_THREAD @@ -67996,21 +68703,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /*try:*/ { /* "PyCafe.pyx":2862 - * ival = malloc(nelemMemory * sizeof(np.int32)) + * # start=time.time() * with nogil: - * status = self._c_cafe.getLongArray(handle, ival) # <<<<<<<<<<<<<< - * - * if status == ICAFE_NORMAL: + * status = self._c_cafe.getShortArray(handle, i16val) # <<<<<<<<<<<<<< + * # end=time.time() + * #print ("END TIME SHORT", end - start) */ - __pyx_v_status = __pyx_v_self->_c_cafe->getLongArray(__pyx_v_handle, __pyx_v_ival); + __pyx_v_status = __pyx_v_self->_c_cafe->getShortArray(__pyx_v_handle, __pyx_v_i16val); } /* "PyCafe.pyx":2861 - * - * ival = malloc(nelemMemory * sizeof(np.int32)) + * i16val = malloc(nelemMemory * sizeof(np.int16)) + * # start=time.time() * with nogil: # <<<<<<<<<<<<<< - * status = self._c_cafe.getLongArray(handle, ival) - * + * status = self._c_cafe.getShortArray(handle, i16val) + * # end=time.time() */ /*finally:*/ { /*normal exit:*/{ @@ -68024,9 +68731,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":2864 - * status = self._c_cafe.getLongArray(handle, ival) - * + /* "PyCafe.pyx":2865 + * # end=time.time() + * #print ("END TIME SHORT", end - start) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * @@ -68034,44 +68741,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2869 - * # nelemMethod=self.hh.getnelemMethod(handle) + /* "PyCafe.pyx":2868 + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * - * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + * # ##mvInt=ival */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2869, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2868, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L119_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2869, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2868, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L119_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2869, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2868, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L119_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2869, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2868, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; goto __pyx_L119_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2869, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2868, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; __pyx_L119_bool_binop_done:; @@ -68079,23 +68786,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2873 - * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + /* "PyCafe.pyx":2874 + * # ##set_base(arr, ival) * - * if dt in ['np.int32', 'int32']: # <<<<<<<<<<<<<< - * mvInt32 = np.empty( - * nelemMethod, dtype=np.int32, order='C') + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_6 = __pyx_v_dt; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int32, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2873, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2874, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; goto __pyx_L125_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int32, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2873, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_5 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_7 = __pyx_t_2; + goto __pyx_L125_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_2 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_7 = __pyx_t_5; + goto __pyx_L125_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2874, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); __pyx_t_7 = __pyx_t_2; __pyx_L125_bool_binop_done:; @@ -68103,130 +68824,130 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_7 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2874 + /* "PyCafe.pyx":2875 * - * if dt in ['np.int32', 'int32']: - * mvInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2874, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2875 - * if dt in ['np.int32', 'int32']: - * mvInt32 = np.empty( - * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2876 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt32[ij] = ival[ij] + * mvShort[ij] = i16val[ij] */ - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2875, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":2874 + /* "PyCafe.pyx":2875 * - * if dt in ['np.int32', 'int32']: - * mvInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2875 - * if dt in ['np.int32', 'int32']: - * mvInt32 = np.empty( - * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2876 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt32[ij] = ival[ij] + * mvShort[ij] = i16val[ij] */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2875, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2875, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2875, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2875, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2876, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2875, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2876, __pyx_L1_error) - /* "PyCafe.pyx":2874 + /* "PyCafe.pyx":2875 * - * if dt in ['np.int32', 'int32']: - * mvInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_27 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int32_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_27.memview)) __PYX_ERR(3, 2874, __pyx_L1_error) + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2875, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_v_mvInt32 = __pyx_t_27; - __pyx_t_27.memview = NULL; - __pyx_t_27.data = NULL; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; - /* "PyCafe.pyx":2876 - * mvInt32 = np.empty( - * nelemMethod, dtype=np.int32, order='C') + /* "PyCafe.pyx":2877 + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvInt32[ij] = ival[ij] - * free(ival) + * mvShort[ij] = i16val[ij] + * free(i16val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2877 - * nelemMethod, dtype=np.int32, order='C') + /* "PyCafe.pyx":2878 + * nelemMethod, dtype=np.int16, order='C') * for ij in range(0, nelemMethod): - * mvInt32[ij] = ival[ij] # <<<<<<<<<<<<<< - * free(ival) - * return np.array(mvInt32) + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvShort) */ - __pyx_t_28 = __pyx_v_ij; + __pyx_t_27 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_28 >= (size_t)__pyx_v_mvInt32.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_27 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2877, __pyx_L1_error) + __PYX_ERR(3, 2878, __pyx_L1_error) } - *((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int32_t *) __pyx_v_mvInt32.data) + __pyx_t_28)) )) = ((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij])); + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_27)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); } - /* "PyCafe.pyx":2878 - * for ij in range(0, nelemMethod): - * mvInt32[ij] = ival[ij] - * free(ival) # <<<<<<<<<<<<<< - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: - */ - free(__pyx_v_ival); - /* "PyCafe.pyx":2879 - * mvInt32[ij] = ival[ij] - * free(ival) - * return np.array(mvInt32) # <<<<<<<<<<<<<< - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvShort) + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":2880 + * mvShort[ij] = i16val[ij] + * free(i16val) + * return np.array(mvShort) # <<<<<<<<<<<<<< + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2879, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2879, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvInt32, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2879, __pyx_L1_error) + __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { @@ -68241,171 +68962,199 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_9 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_10, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_3); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2879, __pyx_L1_error) + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2873 - * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + /* "PyCafe.pyx":2874 + * # ##set_base(arr, ival) * - * if dt in ['np.int32', 'int32']: # <<<<<<<<<<<<<< - * mvInt32 = np.empty( - * nelemMethod, dtype=np.int32, order='C') + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') */ goto __pyx_L124; } - /* "PyCafe.pyx":2880 - * free(ival) - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: # <<<<<<<<<<<<<< - * mvUInt32 = np.empty( - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2882 + * return np.array(mvShort) + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemMethod, dtype=np.int8, order='C') */ __Pyx_INCREF(__pyx_v_dt); __pyx_t_6 = __pyx_v_dt; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_uint32, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2880, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; - goto __pyx_L129_bool_binop_done; + goto __pyx_L131_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uint32, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2880, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_2 = __pyx_t_7; + goto __pyx_L131_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_2 = __pyx_t_5; + goto __pyx_L131_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_2 = __pyx_t_7; + goto __pyx_L131_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_2 = __pyx_t_5; + goto __pyx_L131_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2882, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; - __pyx_L129_bool_binop_done:; + __pyx_L131_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2881 - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2883 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2881, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2881, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":2882 - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( - * nelemMethod, dtype=np.uint32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2884 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemMethod, dtype=np.int8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvUInt32[ij] = ival[ij] + * mvInt8[ij] = i16val[ij] */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":2881 - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2883 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2881, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":2882 - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( - * nelemMethod, dtype=np.uint32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2884 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemMethod, dtype=np.int8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvUInt32[ij] = ival[ij] + * mvInt8[ij] = i16val[ij] */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2882, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_uint32); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2882, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 2882, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 2884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2882, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2884, __pyx_L1_error) - /* "PyCafe.pyx":2881 - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: - * mvUInt32 = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2883 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2881, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_29 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint32_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_29.memview)) __PYX_ERR(3, 2881, __pyx_L1_error) + __pyx_t_20 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int8_t(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_20.memview)) __PYX_ERR(3, 2883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_v_mvUInt32 = __pyx_t_29; - __pyx_t_29.memview = NULL; - __pyx_t_29.data = NULL; + __pyx_v_mvInt8 = __pyx_t_20; + __pyx_t_20.memview = NULL; + __pyx_t_20.data = NULL; - /* "PyCafe.pyx":2883 - * mvUInt32 = np.empty( - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2885 + * mvInt8 = np.empty( + * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvUInt32[ij] = ival[ij] - * free(ival) + * mvInt8[ij] = i16val[ij] + * free(i16val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2884 - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2886 + * nelemMethod, dtype=np.int8, order='C') * for ij in range(0, nelemMethod): - * mvUInt32[ij] = ival[ij] # <<<<<<<<<<<<<< - * free(ival) - * return np.array(mvUInt32) + * mvInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvInt8) */ - __pyx_t_30 = __pyx_v_ij; + __pyx_t_28 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_30 >= (size_t)__pyx_v_mvUInt32.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_28 >= (size_t)__pyx_v_mvInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2884, __pyx_L1_error) + __PYX_ERR(3, 2886, __pyx_L1_error) } - *((__pyx_t_5numpy_uint32_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint32_t *) __pyx_v_mvUInt32.data) + __pyx_t_30)) )) = ((__pyx_t_5numpy_uint32_t)(__pyx_v_ival[__pyx_v_ij])); + *((__pyx_t_5numpy_int8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int8_t *) __pyx_v_mvInt8.data) + __pyx_t_28)) )) = ((__pyx_t_5numpy_int8_t)(__pyx_v_i16val[__pyx_v_ij])); } - /* "PyCafe.pyx":2885 + /* "PyCafe.pyx":2887 * for ij in range(0, nelemMethod): - * mvUInt32[ij] = ival[ij] - * free(ival) # <<<<<<<<<<<<<< - * return np.array(mvUInt32) + * mvInt8[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvInt8) * */ - free(__pyx_v_ival); + free(__pyx_v_i16val); - /* "PyCafe.pyx":2886 - * mvUInt32[ij] = ival[ij] - * free(ival) - * return np.array(mvUInt32) # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2888 + * mvInt8[ij] = i16val[ij] + * free(i16val) + * return np.array(mvInt8) # <<<<<<<<<<<<<< * - * # elif dt in ['np.int64','int64']: + * elif dt in ['uchar', 'np.uint8', 'uint8']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2886, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2886, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvUInt32, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2886, __pyx_L1_error) + __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int8_t, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -68420,148 +69169,178 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_8, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2886, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2880 - * free(ival) - * return np.array(mvInt32) - * elif dt in ['np.uint32', 'uint32']: # <<<<<<<<<<<<<< - * mvUInt32 = np.empty( - * nelemMethod, dtype=np.uint32, order='C') + /* "PyCafe.pyx":2882 + * return np.array(mvShort) + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemMethod, dtype=np.int8, order='C') */ goto __pyx_L124; } - /* "PyCafe.pyx":2902 + /* "PyCafe.pyx":2890 + * return np.array(mvInt8) * - * else: - * mvInt = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_6 = __pyx_v_dt; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2890, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_2 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_7 = __pyx_t_5; + goto __pyx_L139_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2890, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_5 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_7 = __pyx_t_2; + goto __pyx_L139_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2890, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_2 != 0); + __pyx_t_7 = __pyx_t_5; + __pyx_L139_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_5 = (__pyx_t_7 != 0); + if (__pyx_t_5) { + + /* "PyCafe.pyx":2891 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2902, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2902, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2903 - * else: - * mvInt = np.empty( - * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2892 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt[ij] = ival[ij] + * mvUInt8[ij] = i16val[ij] */ - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2903, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":2902 + /* "PyCafe.pyx":2891 * - * else: - * mvInt = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2902, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":2903 - * else: - * mvInt = np.empty( - * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2892 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * mvInt[ij] = ival[ij] + * mvUInt8[ij] = i16val[ij] */ - __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2903, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2903, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2903, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_uint8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2903, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2892, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2903, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2892, __pyx_L1_error) - /* "PyCafe.pyx":2902 + /* "PyCafe.pyx":2891 * - * else: - * mvInt = np.empty( # <<<<<<<<<<<<<< - * nelemMethod, dtype=np.int32, order='C') + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2902, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_31 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_31.memview)) __PYX_ERR(3, 2902, __pyx_L1_error) + __pyx_t_22 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint8_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_22.memview)) __PYX_ERR(3, 2891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_mvInt = __pyx_t_31; - __pyx_t_31.memview = NULL; - __pyx_t_31.data = NULL; + __pyx_v_mvUInt8 = __pyx_t_22; + __pyx_t_22.memview = NULL; + __pyx_t_22.data = NULL; - /* "PyCafe.pyx":2904 - * mvInt = np.empty( - * nelemMethod, dtype=np.int32, order='C') + /* "PyCafe.pyx":2893 + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< - * mvInt[ij] = ival[ij] - * free(ival) + * mvUInt8[ij] = i16val[ij] + * free(i16val) */ __pyx_t_1 = __pyx_v_nelemMethod; __pyx_t_11 = __pyx_t_1; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2905 - * nelemMethod, dtype=np.int32, order='C') + /* "PyCafe.pyx":2894 + * nelemMethod, dtype=np.uint8, order='C') * for ij in range(0, nelemMethod): - * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< - * free(ival) - * return np.array(mvInt) # arr + * mvUInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvUInt8) */ - __pyx_t_32 = __pyx_v_ij; + __pyx_t_29 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_32 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_29 >= (size_t)__pyx_v_mvUInt8.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2905, __pyx_L1_error) + __PYX_ERR(3, 2894, __pyx_L1_error) } - *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_32)) )) = ((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij])); + *((__pyx_t_5numpy_uint8_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint8_t *) __pyx_v_mvUInt8.data) + __pyx_t_29)) )) = ((__pyx_t_5numpy_uint8_t)(__pyx_v_i16val[__pyx_v_ij])); } - /* "PyCafe.pyx":2906 + /* "PyCafe.pyx":2895 * for ij in range(0, nelemMethod): - * mvInt[ij] = ival[ij] - * free(ival) # <<<<<<<<<<<<<< - * return np.array(mvInt) # arr + * mvUInt8[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvUInt8) * */ - free(__pyx_v_ival); + free(__pyx_v_i16val); - /* "PyCafe.pyx":2907 - * mvInt[ij] = ival[ij] - * free(ival) - * return np.array(mvInt) # arr # <<<<<<<<<<<<<< + /* "PyCafe.pyx":2896 + * mvUInt8[ij] = i16val[ij] + * free(i16val) + * return np.array(mvUInt8) # <<<<<<<<<<<<<< * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * else: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2907, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2907, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2907, __pyx_L1_error) + __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvUInt8, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint8_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint8_t, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { @@ -68576,26 +69355,1334 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_10 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2907, __pyx_L1_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_10; __pyx_t_10 = 0; goto __pyx_L0; + + /* "PyCafe.pyx":2890 + * return np.array(mvInt8) + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemMethod, dtype=np.uint8, order='C') + */ + goto __pyx_L124; + } + + /* "PyCafe.pyx":2900 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + */ + /*else*/ { + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + + /* "PyCafe.pyx":2901 + * + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + + /* "PyCafe.pyx":2900 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + */ + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GIVEREF(__pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_10); + __pyx_t_10 = 0; + + /* "PyCafe.pyx":2901 + * + * mvShort = np.empty( + * nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2901, __pyx_L1_error) + + /* "PyCafe.pyx":2900 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int16, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + */ + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2900, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; + + /* "PyCafe.pyx":2903 + * nelemMethod, dtype=np.int16, order='C') + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * # mvShortNP=cnp.asarray(i16val) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2904 + * #mvShortNP = np.ndarray(buffer=np.array(i16val), dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * # mvShortNP=cnp.asarray(i16val) + * + */ + __pyx_t_30 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_30 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2904, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_30)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2908 + * + * # aaa=np.full(nelemMethod,ival + */ + goto __pyx_L118; + } + + /* "PyCafe.pyx":2912 + * return np.array(mvShort) # arr + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_6 = __pyx_v_art; + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2912, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_7 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_5 = __pyx_t_2; + goto __pyx_L146_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2912, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_2 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_5 = __pyx_t_7; + goto __pyx_L146_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2912, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_7 != 0); + __pyx_t_5 = __pyx_t_2; + __pyx_L146_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_2 = (__pyx_t_5 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":2913 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] + */ + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2913, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; + + /* "PyCafe.pyx":2914 + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2915 + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * + */ + __pyx_t_31 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_31 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2915, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_31)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2916 + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * + * return memoryview(mvShort) + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":2918 + * free(i16val) + * + * return memoryview(mvShort) # <<<<<<<<<<<<<< + * + * elif art in ['array', 'array.array']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_r = __pyx_t_10; + __pyx_t_10 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":2912 + * return np.array(mvShort) # arr + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + */ + goto __pyx_L118; + } + + /* "PyCafe.pyx":2920 + * return memoryview(mvShort) + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * + * a = array.array('h') + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_6 = __pyx_v_art; + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2920, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_2 = __pyx_t_7; + goto __pyx_L151_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2920, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + __pyx_t_2 = __pyx_t_5; + __pyx_L151_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_5 = (__pyx_t_2 != 0); + if (__pyx_t_5) { + + /* "PyCafe.pyx":2922 + * elif art in ['array', 'array.array']: + * + * a = array.array('h') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * a.append( < short > i16val[ij]) + */ + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_v_a = ((arrayobject *)__pyx_t_10); + __pyx_t_10 = 0; + + /* "PyCafe.pyx":2923 + * + * a = array.array('h') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * a.append( < short > i16val[ij]) + * free(i16val) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2924 + * a = array.array('h') + * for ij in range(0, nelemMethod): + * a.append( < short > i16val[ij]) # <<<<<<<<<<<<<< + * free(i16val) + * return a + */ + __pyx_t_10 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_10); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 2924, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + } + + /* "PyCafe.pyx":2925 + * for ij in range(0, nelemMethod): + * a.append( < short > i16val[ij]) + * free(i16val) # <<<<<<<<<<<<<< + * return a + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":2926 + * a.append( < short > i16val[ij]) + * free(i16val) + * return a # <<<<<<<<<<<<<< + * + * elif art in ['ctypes', 'ctype']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_a)); + __pyx_r = ((PyObject *)__pyx_v_a); + goto __pyx_L0; + + /* "PyCafe.pyx":2920 + * return memoryview(mvShort) + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * + * a = array.array('h') + */ + goto __pyx_L118; + } + + /* "PyCafe.pyx":2928 + * return a + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * + * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_6 = __pyx_v_art; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2928, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_2 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_5 = __pyx_t_7; + goto __pyx_L155_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2928, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_7 != 0); + __pyx_t_5 = __pyx_t_2; + __pyx_L155_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_2 = (__pyx_t_5 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":2930 + * elif art in ['ctypes', 'ctype']: + * + * ctypesArray16 = (ctypes.c_int16*nelemMethod)() # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * ctypesArray16[ij] = i16val[ij] + */ + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = PyNumber_Multiply(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(__pyx_t_8)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_4, function); + } + } + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_v_ctypesArray16 = __pyx_t_10; + __pyx_t_10 = 0; + + /* "PyCafe.pyx":2931 + * + * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * ctypesArray16[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2932 + * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + * for ij in range(0, nelemMethod): + * ctypesArray16[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return ctypesArray16 + */ + __pyx_t_10 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray16, __pyx_v_ij, __pyx_t_10, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 2932, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + } + + /* "PyCafe.pyx":2933 + * for ij in range(0, nelemMethod): + * ctypesArray16[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return ctypesArray16 + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":2934 + * ctypesArray16[ij] = i16val[ij] + * free(i16val) + * return ctypesArray16 # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ctypesArray16); + __pyx_r = __pyx_v_ctypesArray16; + goto __pyx_L0; + + /* "PyCafe.pyx":2928 + * return a + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * + * ctypesArray16 = (ctypes.c_int16*nelemMethod)() + */ + goto __pyx_L118; + } + + /* "PyCafe.pyx":2937 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + /*else*/ { + + /* "PyCafe.pyx":2938 + * else: + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") # <<<<<<<<<<<<<< + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + */ + __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_INCREF(__pyx_v_art); + __Pyx_GIVEREF(__pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_art); + __Pyx_INCREF(__pyx_kp_u_Possible_types_are); + __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_kp_u_Possible_types_are); + + /* "PyCafe.pyx":2937 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "PyCafe.pyx":2939 + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< + * print("Returning memoryview") + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + */ + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "PyCafe.pyx":2940 + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") # <<<<<<<<<<<<<< + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "PyCafe.pyx":2941 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] + */ + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); + __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2941, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_19 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_19.memview)) __PYX_ERR(3, 2941, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_mvShort = __pyx_t_19; + __pyx_t_19.memview = NULL; + __pyx_t_19.data = NULL; + + /* "PyCafe.pyx":2942 + * print("Returning memoryview") + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2943 + * mvShort = np.empty(nelemMethod, dtype=np.int16, order='C') + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * + */ + __pyx_t_32 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_32 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2943, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_32)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2944 + * for ij in range(0, nelemMethod): + * mvShort[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * + * return mvShort + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":2946 + * free(i16val) + * + * return mvShort # <<<<<<<<<<<<<< + * + * elif dtcheck in [CAFE_LONG]: + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + __pyx_L118:; + + /* "PyCafe.pyx":2865 + * # end=time.time() + * #print ("END TIME SHORT", end - start) + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + */ + } + + /* "PyCafe.pyx":2857 + * return mvUInt8 + * + * elif dtcheck in [CAFE_SHORT]: # <<<<<<<<<<<<<< + * + * i16val = malloc(nelemMemory * sizeof(np.int16)) + */ + break; + case CAFE_LONG: + + /* "PyCafe.pyx":2950 + * elif dtcheck in [CAFE_LONG]: + * + * ival = malloc(nelemMemory * sizeof(np.int32)) # <<<<<<<<<<<<<< + * with nogil: + * status = self._c_cafe.getLongArray(handle, ival) + */ + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int32); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_ival = ((int *)malloc((__pyx_v_nelemMemory * (sizeof(__pyx_t_4))))); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "PyCafe.pyx":2951 + * + * ival = malloc(nelemMemory * sizeof(np.int32)) + * with nogil: # <<<<<<<<<<<<<< + * status = self._c_cafe.getLongArray(handle, ival) + * + */ + { + #ifdef WITH_THREAD + PyThreadState *_save; + Py_UNBLOCK_THREADS + __Pyx_FastGIL_Remember(); + #endif + /*try:*/ { + + /* "PyCafe.pyx":2952 + * ival = malloc(nelemMemory * sizeof(np.int32)) + * with nogil: + * status = self._c_cafe.getLongArray(handle, ival) # <<<<<<<<<<<<<< + * + * if status == ICAFE_NORMAL: + */ + __pyx_v_status = __pyx_v_self->_c_cafe->getLongArray(__pyx_v_handle, __pyx_v_ival); + } + + /* "PyCafe.pyx":2951 + * + * ival = malloc(nelemMemory * sizeof(np.int32)) + * with nogil: # <<<<<<<<<<<<<< + * status = self._c_cafe.getLongArray(handle, ival) + * + */ + /*finally:*/ { + /*normal exit:*/{ + #ifdef WITH_THREAD + __Pyx_FastGIL_Forget(); + Py_BLOCK_THREADS + #endif + goto __pyx_L163; + } + __pyx_L163:; + } + } + + /* "PyCafe.pyx":2954 + * status = self._c_cafe.getLongArray(handle, ival) + * + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + */ + __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":2959 * # nelemMethod=self.hh.getnelemMethod(handle) * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: */ - goto __pyx_L118; + __Pyx_INCREF(__pyx_v_art); + __pyx_t_6 = __pyx_v_art; + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2959, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_2 = __pyx_t_7; + goto __pyx_L166_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2959, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_2 = __pyx_t_5; + goto __pyx_L166_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2959, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + if (!__pyx_t_7) { + } else { + __pyx_t_2 = __pyx_t_7; + goto __pyx_L166_bool_binop_done; + } + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2959, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_2 = __pyx_t_5; + goto __pyx_L166_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2959, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + __pyx_t_2 = __pyx_t_7; + __pyx_L166_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_7 = (__pyx_t_2 != 0); + if (__pyx_t_7) { + + /* "PyCafe.pyx":2963 + * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + * + * if dt in ['np.int32', 'int32']: # <<<<<<<<<<<<<< + * mvInt32 = np.empty( + * nelemMethod, dtype=np.int32, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_6 = __pyx_v_dt; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_int32, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2963, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_2 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_7 = __pyx_t_5; + goto __pyx_L172_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_int32, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2963, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_5 != 0); + __pyx_t_7 = __pyx_t_2; + __pyx_L172_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_2 = (__pyx_t_7 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":2964 + * + * if dt in ['np.int32', 'int32']: + * mvInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "PyCafe.pyx":2965 + * if dt in ['np.int32', 'int32']: + * mvInt32 = np.empty( + * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvInt32[ij] = ival[ij] + */ + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + + /* "PyCafe.pyx":2964 + * + * if dt in ['np.int32', 'int32']: + * mvInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); + __pyx_t_4 = 0; + + /* "PyCafe.pyx":2965 + * if dt in ['np.int32', 'int32']: + * mvInt32 = np.empty( + * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvInt32[ij] = ival[ij] + */ + __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_int32); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2965, __pyx_L1_error) + + /* "PyCafe.pyx":2964 + * + * if dt in ['np.int32', 'int32']: + * mvInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_33 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int32_t(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_33.memview)) __PYX_ERR(3, 2964, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_mvInt32 = __pyx_t_33; + __pyx_t_33.memview = NULL; + __pyx_t_33.data = NULL; + + /* "PyCafe.pyx":2966 + * mvInt32 = np.empty( + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvInt32[ij] = ival[ij] + * free(ival) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2967 + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + * mvInt32[ij] = ival[ij] # <<<<<<<<<<<<<< + * free(ival) + * return np.array(mvInt32) + */ + __pyx_t_34 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_34 >= (size_t)__pyx_v_mvInt32.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2967, __pyx_L1_error) + } + *((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int32_t *) __pyx_v_mvInt32.data) + __pyx_t_34)) )) = ((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2968 + * for ij in range(0, nelemMethod): + * mvInt32[ij] = ival[ij] + * free(ival) # <<<<<<<<<<<<<< + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":2969 + * mvInt32[ij] = ival[ij] + * free(ival) + * return np.array(mvInt32) # <<<<<<<<<<<<<< + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvInt32, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int32_t, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_8, function); + } + } + __pyx_t_3 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_r = __pyx_t_3; + __pyx_t_3 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":2963 + * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + * + * if dt in ['np.int32', 'int32']: # <<<<<<<<<<<<<< + * mvInt32 = np.empty( + * nelemMethod, dtype=np.int32, order='C') + */ + goto __pyx_L171; + } + + /* "PyCafe.pyx":2970 + * free(ival) + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: # <<<<<<<<<<<<<< + * mvUInt32 = np.empty( + * nelemMethod, dtype=np.uint32, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_6 = __pyx_v_dt; + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_uint32, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2970, __pyx_L1_error) + __pyx_t_5 = (__pyx_t_7 != 0); + if (!__pyx_t_5) { + } else { + __pyx_t_2 = __pyx_t_5; + goto __pyx_L176_bool_binop_done; + } + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_uint32, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2970, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_5 != 0); + __pyx_t_2 = __pyx_t_7; + __pyx_L176_bool_binop_done:; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_7 = (__pyx_t_2 != 0); + if (__pyx_t_7) { + + /* "PyCafe.pyx":2971 + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint32, order='C') + * for ij in range(0, nelemMethod): + */ + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "PyCafe.pyx":2972 + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( + * nelemMethod, dtype=np.uint32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvUInt32[ij] = ival[ij] + */ + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + + /* "PyCafe.pyx":2971 + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); + __pyx_t_3 = 0; + + /* "PyCafe.pyx":2972 + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( + * nelemMethod, dtype=np.uint32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvUInt32[ij] = ival[ij] + */ + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_uint32); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 2972, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2972, __pyx_L1_error) + + /* "PyCafe.pyx":2971 + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: + * mvUInt32 = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.uint32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_35 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint32_t(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_35.memview)) __PYX_ERR(3, 2971, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_v_mvUInt32 = __pyx_t_35; + __pyx_t_35.memview = NULL; + __pyx_t_35.data = NULL; + + /* "PyCafe.pyx":2973 + * mvUInt32 = np.empty( + * nelemMethod, dtype=np.uint32, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvUInt32[ij] = ival[ij] + * free(ival) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2974 + * nelemMethod, dtype=np.uint32, order='C') + * for ij in range(0, nelemMethod): + * mvUInt32[ij] = ival[ij] # <<<<<<<<<<<<<< + * free(ival) + * return np.array(mvUInt32) + */ + __pyx_t_36 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_36 >= (size_t)__pyx_v_mvUInt32.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2974, __pyx_L1_error) + } + *((__pyx_t_5numpy_uint32_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint32_t *) __pyx_v_mvUInt32.data) + __pyx_t_36)) )) = ((__pyx_t_5numpy_uint32_t)(__pyx_v_ival[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2975 + * for ij in range(0, nelemMethod): + * mvUInt32[ij] = ival[ij] + * free(ival) # <<<<<<<<<<<<<< + * return np.array(mvUInt32) + * + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":2976 + * mvUInt32[ij] = ival[ij] + * free(ival) + * return np.array(mvUInt32) # <<<<<<<<<<<<<< + * + * # elif dt in ['np.int64','int64']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvUInt32, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_uint32_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_uint32_t, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(__pyx_t_8)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_4, function); + } + } + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_8, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3); + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_r = __pyx_t_10; + __pyx_t_10 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":2970 + * free(ival) + * return np.array(mvInt32) + * elif dt in ['np.uint32', 'uint32']: # <<<<<<<<<<<<<< + * mvUInt32 = np.empty( + * nelemMethod, dtype=np.uint32, order='C') + */ + goto __pyx_L171; + } + + /* "PyCafe.pyx":2992 + * + * else: + * mvInt = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + /*else*/ { + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + + /* "PyCafe.pyx":2993 + * else: + * mvInt = np.empty( + * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvInt[ij] = ival[ij] + */ + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + + /* "PyCafe.pyx":2992 + * + * else: + * mvInt = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10); + __pyx_t_10 = 0; + + /* "PyCafe.pyx":2993 + * else: + * mvInt = np.empty( + * nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemMethod): + * mvInt[ij] = ival[ij] + */ + __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 2993, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2993, __pyx_L1_error) + + /* "PyCafe.pyx":2992 + * + * else: + * mvInt = np.empty( # <<<<<<<<<<<<<< + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + */ + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_37 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_37.memview)) __PYX_ERR(3, 2992, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_mvInt = __pyx_t_37; + __pyx_t_37.memview = NULL; + __pyx_t_37.data = NULL; + + /* "PyCafe.pyx":2994 + * mvInt = np.empty( + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< + * mvInt[ij] = ival[ij] + * free(ival) + */ + __pyx_t_1 = __pyx_v_nelemMethod; + __pyx_t_11 = __pyx_t_1; + for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { + __pyx_v_ij = __pyx_t_12; + + /* "PyCafe.pyx":2995 + * nelemMethod, dtype=np.int32, order='C') + * for ij in range(0, nelemMethod): + * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< + * free(ival) + * return np.array(mvInt) # arr + */ + __pyx_t_38 = __pyx_v_ij; + __pyx_t_16 = -1; + if (unlikely(__pyx_t_38 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_16 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_16); + __PYX_ERR(3, 2995, __pyx_L1_error) + } + *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_38)) )) = ((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij])); + } + + /* "PyCafe.pyx":2996 + * for ij in range(0, nelemMethod): + * mvInt[ij] = ival[ij] + * free(ival) # <<<<<<<<<<<<<< + * return np.array(mvInt) # arr + * + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":2997 + * mvInt[ij] = ival[ij] + * free(ival) + * return np.array(mvInt) # arr # <<<<<<<<<<<<<< + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __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_9 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_10); + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + __pyx_L171:; + + /* "PyCafe.pyx":2959 + * # nelemMethod=self.hh.getnelemMethod(handle) + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< + * + * # elif dt in ['np.intc','np.int_','np.long','np.ulong','np.ushort','np.int32','np.int64','np.uint32','np.uint64']: + */ + goto __pyx_L165; } - /* "PyCafe.pyx":2909 + /* "PyCafe.pyx":2999 * return np.array(mvInt) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< @@ -68604,69 +70691,69 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2909, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2999, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; - goto __pyx_L135_bool_binop_done; + goto __pyx_L182_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2909, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2999, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; - goto __pyx_L135_bool_binop_done; + goto __pyx_L182_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2909, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2999, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); __pyx_t_7 = __pyx_t_5; - __pyx_L135_bool_binop_done:; + __pyx_L182_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__pyx_t_7 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2910 + /* "PyCafe.pyx":3000 * * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2910, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_GIVEREF(__pyx_t_10); - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_10); - __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2910, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2910, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 3000, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 3000, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2910, __pyx_L1_error) - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_31 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_31.memview)) __PYX_ERR(3, 2910, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_37 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_37.memview)) __PYX_ERR(3, 3000, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_v_mvInt = __pyx_t_31; - __pyx_t_31.memview = NULL; - __pyx_t_31.data = NULL; + __pyx_v_mvInt = __pyx_t_37; + __pyx_t_37.memview = NULL; + __pyx_t_37.data = NULL; - /* "PyCafe.pyx":2911 + /* "PyCafe.pyx":3001 * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -68678,24 +70765,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2912 + /* "PyCafe.pyx":3002 * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< * free(ival) * return memoryview(mvInt) */ - __pyx_t_33 = __pyx_v_ij; + __pyx_t_39 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_33 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_39 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2912, __pyx_L1_error) + __PYX_ERR(3, 3002, __pyx_L1_error) } - *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_33)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); + *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_39)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); } - /* "PyCafe.pyx":2913 + /* "PyCafe.pyx":3003 * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] * free(ival) # <<<<<<<<<<<<<< @@ -68704,7 +70791,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_ival); - /* "PyCafe.pyx":2914 + /* "PyCafe.pyx":3004 * mvInt[ij] = ival[ij] * free(ival) * return memoryview(mvInt) # <<<<<<<<<<<<<< @@ -68712,29 +70799,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif art in ['array', 'array.array']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2914, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2914, __pyx_L1_error) + __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_r = __pyx_t_4; - __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_r = __pyx_t_10; + __pyx_t_10 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2909 + /* "PyCafe.pyx":2999 * return np.array(mvInt) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): */ - goto __pyx_L118; + goto __pyx_L165; } - /* "PyCafe.pyx":2916 + /* "PyCafe.pyx":3006 * return memoryview(mvInt) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -68743,34 +70830,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2916, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3006, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); if (!__pyx_t_2) { } else { __pyx_t_5 = __pyx_t_2; - goto __pyx_L140_bool_binop_done; + goto __pyx_L187_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2916, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3006, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); __pyx_t_5 = __pyx_t_7; - __pyx_L140_bool_binop_done:; + __pyx_L187_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = (__pyx_t_5 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2917 + /* "PyCafe.pyx":3007 * * elif art in ['array', 'array.array']: * a = array.array('h') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * a.append( < int > ival[ij]) */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2917, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_v_a = ((arrayobject *)__pyx_t_4); - __pyx_t_4 = 0; + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_v_a = ((arrayobject *)__pyx_t_10); + __pyx_t_10 = 0; - /* "PyCafe.pyx":2918 + /* "PyCafe.pyx":3008 * elif art in ['array', 'array.array']: * a = array.array('h') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -68782,20 +70869,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2919 + /* "PyCafe.pyx":3009 * a = array.array('h') * for ij in range(0, nelemMethod): * a.append( < int > ival[ij]) # <<<<<<<<<<<<<< * free(ival) * return a */ - __pyx_t_4 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2919, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_4); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 2919, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_10 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3009, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_10); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 3009, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } - /* "PyCafe.pyx":2920 + /* "PyCafe.pyx":3010 * for ij in range(0, nelemMethod): * a.append( < int > ival[ij]) * free(ival) # <<<<<<<<<<<<<< @@ -68804,7 +70891,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_ival); - /* "PyCafe.pyx":2921 + /* "PyCafe.pyx":3011 * a.append( < int > ival[ij]) * free(ival) * return a # <<<<<<<<<<<<<< @@ -68816,17 +70903,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = ((PyObject *)__pyx_v_a); goto __pyx_L0; - /* "PyCafe.pyx":2916 + /* "PyCafe.pyx":3006 * return memoryview(mvInt) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * a = array.array('h') * for ij in range(0, nelemMethod): */ - goto __pyx_L118; + goto __pyx_L165; } - /* "PyCafe.pyx":2923 + /* "PyCafe.pyx":3013 * return a * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< @@ -68835,58 +70922,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2923, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3013, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; - goto __pyx_L144_bool_binop_done; + goto __pyx_L191_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2923, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3013, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); __pyx_t_7 = __pyx_t_5; - __pyx_L144_bool_binop_done:; + __pyx_L191_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__pyx_t_7 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2924 + /* "PyCafe.pyx":3014 * * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_int32*nelemMethod)() # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * ctypesArray[ij] = ival[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = PyNumber_Multiply(__pyx_t_8, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2924, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = PyNumber_Multiply(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = NULL; - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9); - if (likely(__pyx_t_10)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); - __Pyx_INCREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_9, function); + __Pyx_DECREF_SET(__pyx_t_3, function); } } - __pyx_t_4 = (__pyx_t_10) ? __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10) : __Pyx_PyObject_CallNoArg(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_v_ctypesArray = __pyx_t_4; - __pyx_t_4 = 0; + __pyx_t_10 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_ctypesArray = __pyx_t_10; + __pyx_t_10 = 0; - /* "PyCafe.pyx":2925 + /* "PyCafe.pyx":3015 * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_int32*nelemMethod)() * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -68898,20 +70985,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2926 + /* "PyCafe.pyx":3016 * ctypesArray = (ctypes.c_int32*nelemMethod)() * for ij in range(0, nelemMethod): * ctypesArray[ij] = ival[ij] # <<<<<<<<<<<<<< * free(ival) * return ctypesArray */ - __pyx_t_4 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2926, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_4, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 2926, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_10 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3016, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_10, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 3016, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } - /* "PyCafe.pyx":2927 + /* "PyCafe.pyx":3017 * for ij in range(0, nelemMethod): * ctypesArray[ij] = ival[ij] * free(ival) # <<<<<<<<<<<<<< @@ -68920,7 +71007,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_ival); - /* "PyCafe.pyx":2928 + /* "PyCafe.pyx":3018 * ctypesArray[ij] = ival[ij] * free(ival) * return ctypesArray # <<<<<<<<<<<<<< @@ -68932,17 +71019,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":2923 + /* "PyCafe.pyx":3013 * return a * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_int32*nelemMethod)() * for ij in range(0, nelemMethod): */ - goto __pyx_L118; + goto __pyx_L165; } - /* "PyCafe.pyx":2931 + /* "PyCafe.pyx":3021 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -68951,100 +71038,100 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ /*else*/ { - /* "PyCafe.pyx":2932 + /* "PyCafe.pyx":3022 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2931, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_INCREF(__pyx_v_art); __Pyx_GIVEREF(__pyx_v_art); - PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_art); __Pyx_INCREF(__pyx_kp_u_Possible_types_are); __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); - PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":2931 + /* "PyCafe.pyx":3021 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2931, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2933 + /* "PyCafe.pyx":3023 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2933, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2934 + /* "PyCafe.pyx":3024 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3024, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":2935 + /* "PyCafe.pyx":3025 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2935, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2935, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 2935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 2935, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2935, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_int32); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 3025, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 3025, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_9, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_31 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_31.memview)) __PYX_ERR(3, 2935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_v_mvInt = __pyx_t_31; - __pyx_t_31.memview = NULL; - __pyx_t_31.data = NULL; + __pyx_t_37 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_37.memview)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_v_mvInt = __pyx_t_37; + __pyx_t_37.memview = NULL; + __pyx_t_37.data = NULL; - /* "PyCafe.pyx":2936 + /* "PyCafe.pyx":3026 * print("Returning memoryview") * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69056,24 +71143,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2937 + /* "PyCafe.pyx":3027 * mvInt = np.empty(nelemMethod, dtype=np.int32, order='C') * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< * free(ival) * return mvInt */ - __pyx_t_34 = __pyx_v_ij; + __pyx_t_40 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_34 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_40 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2937, __pyx_L1_error) + __PYX_ERR(3, 3027, __pyx_L1_error) } - *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_34)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); + *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_40)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); } - /* "PyCafe.pyx":2938 + /* "PyCafe.pyx":3028 * for ij in range(0, nelemMethod): * mvInt[ij] = ival[ij] * free(ival) # <<<<<<<<<<<<<< @@ -69082,7 +71169,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_ival); - /* "PyCafe.pyx":2939 + /* "PyCafe.pyx":3029 * mvInt[ij] = ival[ij] * free(ival) * return mvInt # <<<<<<<<<<<<<< @@ -69090,15 +71177,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif dtcheck in [CAFE_FLOAT]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2939, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_r = __pyx_t_3; - __pyx_t_3 = 0; + __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; } - __pyx_L118:; + __pyx_L165:; - /* "PyCafe.pyx":2864 + /* "PyCafe.pyx":2954 * status = self._c_cafe.getLongArray(handle, ival) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -69107,7 +71194,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":2858 + /* "PyCafe.pyx":2948 * return mvShort * * elif dtcheck in [CAFE_LONG]: # <<<<<<<<<<<<<< @@ -69117,7 +71204,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C break; case CAFE_FLOAT: - /* "PyCafe.pyx":2943 + /* "PyCafe.pyx":3033 * elif dtcheck in [CAFE_FLOAT]: * * fval = malloc(nelemMemory * sizeof(float)) # <<<<<<<<<<<<<< @@ -69126,7 +71213,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __pyx_v_fval = ((float *)malloc((__pyx_v_nelemMemory * (sizeof(float))))); - /* "PyCafe.pyx":2945 + /* "PyCafe.pyx":3035 * fval = malloc(nelemMemory * sizeof(float)) * # start=time.time() * with nogil: # <<<<<<<<<<<<<< @@ -69141,7 +71228,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":2946 + /* "PyCafe.pyx":3036 * # start=time.time() * with nogil: * status = self._c_cafe.getFloatArray(handle, fval) # <<<<<<<<<<<<<< @@ -69151,7 +71238,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_v_status = __pyx_v_self->_c_cafe->getFloatArray(__pyx_v_handle, __pyx_v_fval); } - /* "PyCafe.pyx":2945 + /* "PyCafe.pyx":3035 * fval = malloc(nelemMemory * sizeof(float)) * # start=time.time() * with nogil: # <<<<<<<<<<<<<< @@ -69164,13 +71251,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif - goto __pyx_L152; + goto __pyx_L199; } - __pyx_L152:; + __pyx_L199:; } } - /* "PyCafe.pyx":2953 + /* "PyCafe.pyx":3043 * # status=self._c_cafe.get(handle, pvd) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -69180,7 +71267,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_5 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":2956 + /* "PyCafe.pyx":3046 * # nelemMethod=self.hh.getnelemMethod(handle) * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< @@ -69189,82 +71276,82 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2956, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3046, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); if (!__pyx_t_2) { } else { __pyx_t_5 = __pyx_t_2; - goto __pyx_L155_bool_binop_done; + goto __pyx_L202_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2956, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3046, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; - goto __pyx_L155_bool_binop_done; + goto __pyx_L202_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2956, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3046, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); if (!__pyx_t_2) { } else { __pyx_t_5 = __pyx_t_2; - goto __pyx_L155_bool_binop_done; + goto __pyx_L202_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2956, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3046, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; - goto __pyx_L155_bool_binop_done; + goto __pyx_L202_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2956, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3046, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); __pyx_t_5 = __pyx_t_2; - __pyx_L155_bool_binop_done:; + __pyx_L202_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2960 + /* "PyCafe.pyx":3050 * # elif dt in ['np.float16','np.float32']: * * mvFloat = np.empty(nelemMethod, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] # pvd.getAsFloat(ij) */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2960, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 2960, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_10, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2960, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); + __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_float32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_35 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_35.memview)) __PYX_ERR(3, 2960, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_8) < 0) __PYX_ERR(3, 3050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_v_mvFloat = __pyx_t_35; - __pyx_t_35.memview = NULL; - __pyx_t_35.data = NULL; + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_41 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_8, PyBUF_WRITABLE); if (unlikely(!__pyx_t_41.memview)) __PYX_ERR(3, 3050, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_v_mvFloat = __pyx_t_41; + __pyx_t_41.memview = NULL; + __pyx_t_41.data = NULL; - /* "PyCafe.pyx":2961 + /* "PyCafe.pyx":3051 * * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69276,24 +71363,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2962 + /* "PyCafe.pyx":3052 * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] # pvd.getAsFloat(ij) # <<<<<<<<<<<<<< * # arr=np.asarray(mvFloat) * */ - __pyx_t_36 = __pyx_v_ij; + __pyx_t_42 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_36 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_42 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2962, __pyx_L1_error) + __PYX_ERR(3, 3052, __pyx_L1_error) } - *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_36)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); + *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_42)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); } - /* "PyCafe.pyx":2965 + /* "PyCafe.pyx":3055 * # arr=np.asarray(mvFloat) * * free(fval) # <<<<<<<<<<<<<< @@ -69302,7 +71389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_fval); - /* "PyCafe.pyx":2970 + /* "PyCafe.pyx":3060 * #set_base(arr, dval) * * return np.array(mvFloat) # arr # <<<<<<<<<<<<<< @@ -69310,44 +71397,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif art in ['memoryview', 'mv', 'memoryviewslice']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2970, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2970, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2970, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = NULL; - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10); - if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); - __Pyx_INCREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_3 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_10, function); + __Pyx_DECREF_SET(__pyx_t_9, function); } } - __pyx_t_8 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_3); - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2970, __pyx_L1_error) + __pyx_t_8 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_4); + __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2956 + /* "PyCafe.pyx":3046 * # nelemMethod=self.hh.getnelemMethod(handle) * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * * # elif dt in ['np.float16','np.float32']: */ - goto __pyx_L154; + goto __pyx_L201; } - /* "PyCafe.pyx":2972 + /* "PyCafe.pyx":3062 * return np.array(mvFloat) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< @@ -69356,68 +71443,68 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2972, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3062, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; - goto __pyx_L162_bool_binop_done; + goto __pyx_L209_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 2972, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3062, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; - goto __pyx_L162_bool_binop_done; + goto __pyx_L209_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2972, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3062, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; - __pyx_L162_bool_binop_done:; + __pyx_L209_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":2975 + /* "PyCafe.pyx":3065 * * # Method A to return memory view * mvFloat = np.empty(nelemMethod, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2975, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8); - __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 2975, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_float32); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_35 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_35.memview)) __PYX_ERR(3, 2975, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float32); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_v_mvFloat = __pyx_t_35; - __pyx_t_35.memview = NULL; - __pyx_t_35.data = NULL; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_41 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_41.memview)) __PYX_ERR(3, 3065, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_v_mvFloat = __pyx_t_41; + __pyx_t_41.memview = NULL; + __pyx_t_41.data = NULL; - /* "PyCafe.pyx":2976 + /* "PyCafe.pyx":3066 * # Method A to return memory view * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69429,24 +71516,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":2977 + /* "PyCafe.pyx":3067 * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] # <<<<<<<<<<<<<< * * free(fval) */ - __pyx_t_37 = __pyx_v_ij; + __pyx_t_43 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_37 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_43 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 2977, __pyx_L1_error) + __PYX_ERR(3, 3067, __pyx_L1_error) } - *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_37)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); + *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_43)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); } - /* "PyCafe.pyx":2979 + /* "PyCafe.pyx":3069 * mvFloat[ij] = fval[ij] * * free(fval) # <<<<<<<<<<<<<< @@ -69455,7 +71542,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_fval); - /* "PyCafe.pyx":2982 + /* "PyCafe.pyx":3072 * # memoryview(mvFloat).tolist() #tolist() only supports byte views * * return memoryview(mvFloat) # <<<<<<<<<<<<<< @@ -69463,29 +71550,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * # Method B to return memory view */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2982, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 2982, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_8 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2982, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_r = __pyx_t_3; - __pyx_t_3 = 0; + __pyx_r = __pyx_t_4; + __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":2972 + /* "PyCafe.pyx":3062 * return np.array(mvFloat) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * * # Method A to return memory view */ - goto __pyx_L154; + goto __pyx_L201; } - /* "PyCafe.pyx":2996 + /* "PyCafe.pyx":3086 * ''' * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -69494,34 +71581,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 2996, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3086, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; - goto __pyx_L167_bool_binop_done; + goto __pyx_L214_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 2996, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3086, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); __pyx_t_7 = __pyx_t_2; - __pyx_L167_bool_binop_done:; + __pyx_L214_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_7 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":2998 + /* "PyCafe.pyx":3088 * elif art in ['array', 'array.array']: * * a = array.array('f') # <<<<<<<<<<<<<< * * for ij in range(0, nelemMethod): */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2998, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_v_a = ((arrayobject *)__pyx_t_3); - __pyx_t_3 = 0; + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_v_a = ((arrayobject *)__pyx_t_4); + __pyx_t_4 = 0; - /* "PyCafe.pyx":3000 + /* "PyCafe.pyx":3090 * a = array.array('f') * * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69533,20 +71620,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3001 + /* "PyCafe.pyx":3091 * * for ij in range(0, nelemMethod): * a.append(fval[ij]) # <<<<<<<<<<<<<< * free(fval) * */ - __pyx_t_3 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3001, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_3); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 3001, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_4); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 3091, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":3002 + /* "PyCafe.pyx":3092 * for ij in range(0, nelemMethod): * a.append(fval[ij]) * free(fval) # <<<<<<<<<<<<<< @@ -69555,7 +71642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_fval); - /* "PyCafe.pyx":3004 + /* "PyCafe.pyx":3094 * free(fval) * * return a # <<<<<<<<<<<<<< @@ -69567,17 +71654,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = ((PyObject *)__pyx_v_a); goto __pyx_L0; - /* "PyCafe.pyx":2996 + /* "PyCafe.pyx":3086 * ''' * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * * a = array.array('f') */ - goto __pyx_L154; + goto __pyx_L201; } - /* "PyCafe.pyx":3024 + /* "PyCafe.pyx":3114 * ''' * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< @@ -69586,58 +71673,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3024, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3114, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); if (!__pyx_t_5) { } else { __pyx_t_2 = __pyx_t_5; - goto __pyx_L171_bool_binop_done; + goto __pyx_L218_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3024, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3114, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); __pyx_t_2 = __pyx_t_7; - __pyx_L171_bool_binop_done:; + __pyx_L218_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":3025 + /* "PyCafe.pyx":3115 * * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_float*nelemMethod)() # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * ctypesArray[ij] = fval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3025, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_c_float); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3025, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3025, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = PyNumber_Multiply(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3025, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_c_float); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_9 = PyNumber_Multiply(__pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_10))) { - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_10); + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_8)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_10, function); + __Pyx_DECREF_SET(__pyx_t_9, function); } } - __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_10); + __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3025, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_ctypesArray = __pyx_t_3; - __pyx_t_3 = 0; + if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_ctypesArray = __pyx_t_4; + __pyx_t_4 = 0; - /* "PyCafe.pyx":3026 + /* "PyCafe.pyx":3116 * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_float*nelemMethod)() * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69649,20 +71736,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3027 + /* "PyCafe.pyx":3117 * ctypesArray = (ctypes.c_float*nelemMethod)() * for ij in range(0, nelemMethod): * ctypesArray[ij] = fval[ij] # <<<<<<<<<<<<<< * free(fval) * return ctypesArray */ - __pyx_t_3 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3027, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_3, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 3027, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_4, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 3117, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":3028 + /* "PyCafe.pyx":3118 * for ij in range(0, nelemMethod): * ctypesArray[ij] = fval[ij] * free(fval) # <<<<<<<<<<<<<< @@ -69671,7 +71758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_fval); - /* "PyCafe.pyx":3029 + /* "PyCafe.pyx":3119 * ctypesArray[ij] = fval[ij] * free(fval) * return ctypesArray # <<<<<<<<<<<<<< @@ -69683,17 +71770,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":3024 + /* "PyCafe.pyx":3114 * ''' * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_float*nelemMethod)() * for ij in range(0, nelemMethod): */ - goto __pyx_L154; + goto __pyx_L201; } - /* "PyCafe.pyx":3032 + /* "PyCafe.pyx":3122 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -69702,99 +71789,99 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ /*else*/ { - /* "PyCafe.pyx":3033 + /* "PyCafe.pyx":3123 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_INCREF(__pyx_v_art); __Pyx_GIVEREF(__pyx_v_art); - PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_art); __Pyx_INCREF(__pyx_kp_u_Possible_types_are); __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); - PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":3032 + /* "PyCafe.pyx":3122 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_4, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3034 + /* "PyCafe.pyx":3124 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvFloat = np.empty(nelemMethod, dtype=np.float32) */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3034, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3124, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3035 + /* "PyCafe.pyx":3125 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3036 + /* "PyCafe.pyx":3126 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvFloat = np.empty(nelemMethod, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3036, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3036, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_float32); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_10); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10); - __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 3126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_35 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_35.memview)) __PYX_ERR(3, 3036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_v_mvFloat = __pyx_t_35; - __pyx_t_35.memview = NULL; - __pyx_t_35.data = NULL; + __pyx_t_41 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_41.memview)) __PYX_ERR(3, 3126, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_mvFloat = __pyx_t_41; + __pyx_t_41.memview = NULL; + __pyx_t_41.data = NULL; - /* "PyCafe.pyx":3037 + /* "PyCafe.pyx":3127 * print("Returning memoryview") * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -69806,24 +71893,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3038 + /* "PyCafe.pyx":3128 * mvFloat = np.empty(nelemMethod, dtype=np.float32) * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] # <<<<<<<<<<<<<< * free(fval) * return mvFloat */ - __pyx_t_38 = __pyx_v_ij; + __pyx_t_44 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_38 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_44 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 3038, __pyx_L1_error) + __PYX_ERR(3, 3128, __pyx_L1_error) } - *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_38)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); + *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_44)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); } - /* "PyCafe.pyx":3039 + /* "PyCafe.pyx":3129 * for ij in range(0, nelemMethod): * mvFloat[ij] = fval[ij] * free(fval) # <<<<<<<<<<<<<< @@ -69832,7 +71919,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_fval); - /* "PyCafe.pyx":3040 + /* "PyCafe.pyx":3130 * mvFloat[ij] = fval[ij] * free(fval) * return mvFloat # <<<<<<<<<<<<<< @@ -69840,15 +71927,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif dtcheck in [CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_r = __pyx_t_9; - __pyx_t_9 = 0; + __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_r = __pyx_t_3; + __pyx_t_3 = 0; goto __pyx_L0; } - __pyx_L154:; + __pyx_L201:; - /* "PyCafe.pyx":2953 + /* "PyCafe.pyx":3043 * # status=self._c_cafe.get(handle, pvd) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -69857,7 +71944,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":2941 + /* "PyCafe.pyx":3031 * return mvInt * * elif dtcheck in [CAFE_FLOAT]: # <<<<<<<<<<<<<< @@ -69867,7 +71954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C break; case CAFE_DOUBLE: - /* "PyCafe.pyx":3045 + /* "PyCafe.pyx":3135 * * # start=time.time() * dval = malloc(nelemMemory * sizeof(double)) # <<<<<<<<<<<<<< @@ -69876,7 +71963,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __pyx_v_dval = ((double *)malloc((__pyx_v_nelemMemory * (sizeof(double))))); - /* "PyCafe.pyx":3047 + /* "PyCafe.pyx":3137 * dval = malloc(nelemMemory * sizeof(double)) * * with nogil: # <<<<<<<<<<<<<< @@ -69891,7 +71978,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":3049 + /* "PyCafe.pyx":3139 * with nogil: * # for ij in range(0, 10000): * status = self._c_cafe.getDoubleArray(handle, dval) # <<<<<<<<<<<<<< @@ -69901,7 +71988,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_v_status = __pyx_v_self->_c_cafe->getDoubleArray(__pyx_v_handle, __pyx_v_dval); } - /* "PyCafe.pyx":3047 + /* "PyCafe.pyx":3137 * dval = malloc(nelemMemory * sizeof(double)) * * with nogil: # <<<<<<<<<<<<<< @@ -69914,13 +72001,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif - goto __pyx_L179; + goto __pyx_L226; } - __pyx_L179:; + __pyx_L226:; } } - /* "PyCafe.pyx":3051 + /* "PyCafe.pyx":3141 * status = self._c_cafe.getDoubleArray(handle, dval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -69930,7 +72017,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_7 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":3054 + /* "PyCafe.pyx":3144 * # nelemMethod=self.hh.getnelemMethod(handle) * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< @@ -69939,82 +72026,82 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3054, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3144, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; - goto __pyx_L182_bool_binop_done; + goto __pyx_L229_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3054, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3144, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; - goto __pyx_L182_bool_binop_done; + goto __pyx_L229_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3054, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3144, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); if (!__pyx_t_5) { } else { __pyx_t_7 = __pyx_t_5; - goto __pyx_L182_bool_binop_done; + goto __pyx_L229_bool_binop_done; } - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3054, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3144, __pyx_L1_error) __pyx_t_2 = (__pyx_t_5 != 0); if (!__pyx_t_2) { } else { __pyx_t_7 = __pyx_t_2; - goto __pyx_L182_bool_binop_done; + goto __pyx_L229_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3054, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3144, __pyx_L1_error) __pyx_t_5 = (__pyx_t_2 != 0); __pyx_t_7 = __pyx_t_5; - __pyx_L182_bool_binop_done:; + __pyx_L229_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__pyx_t_7 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":3059 + /* "PyCafe.pyx":3149 * * # mvDouble=dval * mvDouble = np.empty(nelemMethod, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3059, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3059, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float64); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_39 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_39.memview)) __PYX_ERR(3, 3059, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_v_mvDouble = __pyx_t_39; - __pyx_t_39.memview = NULL; - __pyx_t_39.data = NULL; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_45 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_45.memview)) __PYX_ERR(3, 3149, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_v_mvDouble = __pyx_t_45; + __pyx_t_45.memview = NULL; + __pyx_t_45.data = NULL; - /* "PyCafe.pyx":3060 + /* "PyCafe.pyx":3150 * # mvDouble=dval * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -70026,24 +72113,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3061 + /* "PyCafe.pyx":3151 * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] # <<<<<<<<<<<<<< * # arr=np.asarray(mvDouble) * free(dval) */ - __pyx_t_40 = __pyx_v_ij; + __pyx_t_46 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_40 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_46 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 3061, __pyx_L1_error) + __PYX_ERR(3, 3151, __pyx_L1_error) } - *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_40)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); + *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_46)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); } - /* "PyCafe.pyx":3063 + /* "PyCafe.pyx":3153 * mvDouble[ij] = dval[ij] * # arr=np.asarray(mvDouble) * free(dval) # <<<<<<<<<<<<<< @@ -70052,7 +72139,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_dval); - /* "PyCafe.pyx":3066 + /* "PyCafe.pyx":3156 * # end=time.time() * #print (end - start) * return np.array(mvDouble) # arr # <<<<<<<<<<<<<< @@ -70060,44 +72147,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif art in ['memoryview', 'mv', 'memoryviewslice']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3066, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3066, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_array); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3066, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = NULL; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8); - if (likely(__pyx_t_10)) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); - __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } - __pyx_t_4 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_10, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3066, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); + __pyx_t_10 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_3); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_r = __pyx_t_4; - __pyx_t_4 = 0; + __pyx_r = __pyx_t_10; + __pyx_t_10 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3054 + /* "PyCafe.pyx":3144 * # nelemMethod=self.hh.getnelemMethod(handle) * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * * # elif dt in ['double', 'np.float_','np.float64']: */ - goto __pyx_L181; + goto __pyx_L228; } - /* "PyCafe.pyx":3068 + /* "PyCafe.pyx":3158 * return np.array(mvDouble) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< @@ -70106,68 +72193,68 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3068, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3158, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); if (!__pyx_t_2) { } else { __pyx_t_5 = __pyx_t_2; - goto __pyx_L189_bool_binop_done; + goto __pyx_L236_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3068, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3158, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; - goto __pyx_L189_bool_binop_done; + goto __pyx_L236_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3068, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3158, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); __pyx_t_5 = __pyx_t_2; - __pyx_L189_bool_binop_done:; + __pyx_L236_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3071 + /* "PyCafe.pyx":3161 * * # Method A to return memory view * mvDouble = np.empty(nelemMethod, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); - __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3071, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_np); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_float64); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_empty); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(3, 3071, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3071, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_GIVEREF(__pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10); + __pyx_t_10 = 0; + __pyx_t_10 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_float64); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(3, 3161, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_39 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_3, PyBUF_WRITABLE); if (unlikely(!__pyx_t_39.memview)) __PYX_ERR(3, 3071, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_3, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_v_mvDouble = __pyx_t_39; - __pyx_t_39.memview = NULL; - __pyx_t_39.data = NULL; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_45 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_4, PyBUF_WRITABLE); if (unlikely(!__pyx_t_45.memview)) __PYX_ERR(3, 3161, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_v_mvDouble = __pyx_t_45; + __pyx_t_45.memview = NULL; + __pyx_t_45.data = NULL; - /* "PyCafe.pyx":3072 + /* "PyCafe.pyx":3162 * # Method A to return memory view * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -70179,24 +72266,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3073 + /* "PyCafe.pyx":3163 * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * # end=time.time() */ - __pyx_t_41 = __pyx_v_ij; + __pyx_t_47 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_41 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_47 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 3073, __pyx_L1_error) + __PYX_ERR(3, 3163, __pyx_L1_error) } - *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_41)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); + *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_47)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); } - /* "PyCafe.pyx":3074 + /* "PyCafe.pyx":3164 * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -70205,7 +72292,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_dval); - /* "PyCafe.pyx":3077 + /* "PyCafe.pyx":3167 * # end=time.time() * #print (end - start) * return memoryview(mvDouble) # <<<<<<<<<<<<<< @@ -70213,29 +72300,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * elif art in ['array', 'array.array']: */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3077, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_r = __pyx_t_9; - __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_r = __pyx_t_3; + __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3068 + /* "PyCafe.pyx":3158 * return np.array(mvDouble) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * * # Method A to return memory view */ - goto __pyx_L181; + goto __pyx_L228; } - /* "PyCafe.pyx":3079 + /* "PyCafe.pyx":3169 * return memoryview(mvDouble) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -70244,34 +72331,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3079, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(3, 3169, __pyx_L1_error) __pyx_t_7 = (__pyx_t_5 != 0); if (!__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; - goto __pyx_L194_bool_binop_done; + goto __pyx_L241_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3079, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3169, __pyx_L1_error) __pyx_t_5 = (__pyx_t_7 != 0); __pyx_t_2 = __pyx_t_5; - __pyx_L194_bool_binop_done:; + __pyx_L241_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":3080 + /* "PyCafe.pyx":3170 * * elif art in ['array', 'array.array']: * a = array.array('d') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * a.append(dval[ij]) */ - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3080, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_v_a = ((arrayobject *)__pyx_t_9); - __pyx_t_9 = 0; + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_v_a = ((arrayobject *)__pyx_t_3); + __pyx_t_3 = 0; - /* "PyCafe.pyx":3081 + /* "PyCafe.pyx":3171 * elif art in ['array', 'array.array']: * a = array.array('d') * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -70283,20 +72370,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3082 + /* "PyCafe.pyx":3172 * a = array.array('d') * for ij in range(0, nelemMethod): * a.append(dval[ij]) # <<<<<<<<<<<<<< * free(dval) * # end=time.time() */ - __pyx_t_9 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_9); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 3082, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_3 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_17 = __Pyx_PyObject_Append(((PyObject *)__pyx_v_a), __pyx_t_3); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 3172, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - /* "PyCafe.pyx":3083 + /* "PyCafe.pyx":3173 * for ij in range(0, nelemMethod): * a.append(dval[ij]) * free(dval) # <<<<<<<<<<<<<< @@ -70305,7 +72392,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_dval); - /* "PyCafe.pyx":3086 + /* "PyCafe.pyx":3176 * # end=time.time() * #print (end - start) * return a # <<<<<<<<<<<<<< @@ -70317,17 +72404,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = ((PyObject *)__pyx_v_a); goto __pyx_L0; - /* "PyCafe.pyx":3079 + /* "PyCafe.pyx":3169 * return memoryview(mvDouble) * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * a = array.array('d') * for ij in range(0, nelemMethod): */ - goto __pyx_L181; + goto __pyx_L228; } - /* "PyCafe.pyx":3088 + /* "PyCafe.pyx":3178 * return a * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< @@ -70336,58 +72423,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __Pyx_INCREF(__pyx_v_art); __pyx_t_6 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3088, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3178, __pyx_L1_error) __pyx_t_7 = (__pyx_t_2 != 0); if (!__pyx_t_7) { } else { __pyx_t_5 = __pyx_t_7; - goto __pyx_L198_bool_binop_done; + goto __pyx_L245_bool_binop_done; } - __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3088, __pyx_L1_error) + __pyx_t_7 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(3, 3178, __pyx_L1_error) __pyx_t_2 = (__pyx_t_7 != 0); __pyx_t_5 = __pyx_t_2; - __pyx_L198_bool_binop_done:; + __pyx_L245_bool_binop_done:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_5 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3089 + /* "PyCafe.pyx":3179 * * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_double*nelemMethod)() # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * ctypesArray[ij] = dval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3089, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_c_double); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_c_double); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = PyNumber_Multiply(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3089, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_8 = PyNumber_Multiply(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = NULL; + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8); - if (likely(__pyx_t_4)) { + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); - __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } - __pyx_t_9 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = (__pyx_t_10) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_10) : __Pyx_PyObject_CallNoArg(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_v_ctypesArray = __pyx_t_9; - __pyx_t_9 = 0; + __pyx_v_ctypesArray = __pyx_t_3; + __pyx_t_3 = 0; - /* "PyCafe.pyx":3090 + /* "PyCafe.pyx":3180 * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_double*nelemMethod)() * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -70399,20 +72486,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3091 + /* "PyCafe.pyx":3181 * ctypesArray = (ctypes.c_double*nelemMethod)() * for ij in range(0, nelemMethod): * ctypesArray[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * return ctypesArray */ - __pyx_t_9 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_9, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 3091, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_3 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_3, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 3181, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - /* "PyCafe.pyx":3092 + /* "PyCafe.pyx":3182 * for ij in range(0, nelemMethod): * ctypesArray[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -70421,7 +72508,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_dval); - /* "PyCafe.pyx":3093 + /* "PyCafe.pyx":3183 * ctypesArray[ij] = dval[ij] * free(dval) * return ctypesArray # <<<<<<<<<<<<<< @@ -70433,17 +72520,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":3088 + /* "PyCafe.pyx":3178 * return a * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_double*nelemMethod)() * for ij in range(0, nelemMethod): */ - goto __pyx_L181; + goto __pyx_L228; } - /* "PyCafe.pyx":3096 + /* "PyCafe.pyx":3186 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -70452,99 +72539,99 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ /*else*/ { - /* "PyCafe.pyx":3097 + /* "PyCafe.pyx":3187 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3096, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_INCREF(__pyx_v_art); __Pyx_GIVEREF(__pyx_v_art); - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_art); __Pyx_INCREF(__pyx_kp_u_Possible_types_are); __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); - PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":3096 + /* "PyCafe.pyx":3186 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_9, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3096, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3098 + /* "PyCafe.pyx":3188 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvDouble = np.empty(nelemMethod, dtype=np.float64) */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3098, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3099 + /* "PyCafe.pyx":3189 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3099, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3100 + /* "PyCafe.pyx":3190 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvDouble = np.empty(nelemMethod, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3100, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8); - __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3100, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_empty); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float64); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_10) < 0) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_39 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_10, PyBUF_WRITABLE); if (unlikely(!__pyx_t_39.memview)) __PYX_ERR(3, 3100, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemMethod); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float64); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_10, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_v_mvDouble = __pyx_t_39; - __pyx_t_39.memview = NULL; - __pyx_t_39.data = NULL; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_45 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_45.memview)) __PYX_ERR(3, 3190, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_mvDouble = __pyx_t_45; + __pyx_t_45.memview = NULL; + __pyx_t_45.data = NULL; - /* "PyCafe.pyx":3101 + /* "PyCafe.pyx":3191 * print("Returning memoryview") * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): # <<<<<<<<<<<<<< @@ -70556,24 +72643,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_ij = __pyx_t_12; - /* "PyCafe.pyx":3102 + /* "PyCafe.pyx":3192 * mvDouble = np.empty(nelemMethod, dtype=np.float64) * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * return mvDouble */ - __pyx_t_42 = __pyx_v_ij; + __pyx_t_48 = __pyx_v_ij; __pyx_t_16 = -1; - if (unlikely(__pyx_t_42 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; + if (unlikely(__pyx_t_48 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_16 = 0; if (unlikely(__pyx_t_16 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_16); - __PYX_ERR(3, 3102, __pyx_L1_error) + __PYX_ERR(3, 3192, __pyx_L1_error) } - *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_42)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); + *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_48)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); } - /* "PyCafe.pyx":3103 + /* "PyCafe.pyx":3193 * for ij in range(0, nelemMethod): * mvDouble[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -70582,7 +72669,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ free(__pyx_v_dval); - /* "PyCafe.pyx":3104 + /* "PyCafe.pyx":3194 * mvDouble[ij] = dval[ij] * free(dval) * return mvDouble # <<<<<<<<<<<<<< @@ -70590,15 +72677,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * if status != ICAFE_NORMAL: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_10 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - __pyx_r = __pyx_t_10; - __pyx_t_10 = 0; + __pyx_t_9 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3194, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; goto __pyx_L0; } - __pyx_L181:; + __pyx_L228:; - /* "PyCafe.pyx":3051 + /* "PyCafe.pyx":3141 * status = self._c_cafe.getDoubleArray(handle, dval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -70607,7 +72694,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":3042 + /* "PyCafe.pyx":3132 * return mvFloat * * elif dtcheck in [CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -70618,7 +72705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C default: break; } - /* "PyCafe.pyx":3106 + /* "PyCafe.pyx":3196 * return mvDouble * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -70628,7 +72715,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3107 + /* "PyCafe.pyx":3197 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -70638,7 +72725,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3108 + /* "PyCafe.pyx":3198 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -70648,7 +72735,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3109 + /* "PyCafe.pyx":3199 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -70657,17 +72744,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3108 + /* "PyCafe.pyx":3198 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * else: */ - goto __pyx_L206; + goto __pyx_L253; } - /* "PyCafe.pyx":3111 + /* "PyCafe.pyx":3201 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -70677,9 +72764,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C /*else*/ { __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_status); } - __pyx_L206:; + __pyx_L253:; - /* "PyCafe.pyx":3107 + /* "PyCafe.pyx":3197 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -70688,7 +72775,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":3112 + /* "PyCafe.pyx":3202 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -70698,84 +72785,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3114 + /* "PyCafe.pyx":3204 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, */ - __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3114, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_10); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3114, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_8) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_handle, __pyx_t_8) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3115 + /* "PyCafe.pyx":3205 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, * _error_text=self.cs.code(status), */ - __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3115, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3116 + /* "PyCafe.pyx":3206 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, # <<<<<<<<<<<<<< * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3116, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3117 + /* "PyCafe.pyx":3207 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, * _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3117, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3118 + /* "PyCafe.pyx":3208 * _error_code=status, * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3118, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 3114, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 3204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3113 + /* "PyCafe.pyx":3203 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3113, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":3119 + /* "PyCafe.pyx":3209 * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -70783,9 +72870,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * return [None] */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 3119, __pyx_L1_error) + __PYX_ERR(3, 3209, __pyx_L1_error) - /* "PyCafe.pyx":3112 + /* "PyCafe.pyx":3202 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -70794,7 +72881,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":3121 + /* "PyCafe.pyx":3211 * raise _cafeException * * return [None] # <<<<<<<<<<<<<< @@ -70802,7 +72889,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3121, __pyx_L1_error) + __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 3211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -70811,7 +72898,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __pyx_t_8 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3106 + /* "PyCafe.pyx":3196 * return mvDouble * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -70820,7 +72907,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":2530 + /* "PyCafe.pyx":2529 * ############################################################################ * @verify_handlepv * def getArray(self, handlePV, str dt='native', str art='numpy'): # <<<<<<<<<<<<<< @@ -70838,14 +72925,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); - __PYX_XDEC_MEMVIEW(&__pyx_t_18, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_19, 1); __PYX_XDEC_MEMVIEW(&__pyx_t_20, 1); __PYX_XDEC_MEMVIEW(&__pyx_t_22, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_27, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_29, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_31, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_33, 1); __PYX_XDEC_MEMVIEW(&__pyx_t_35, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_39, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_37, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_41, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_45, 1); __Pyx_AddTraceback("PyCafe.CyCafe.getArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -70865,13 +72952,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_258getArray(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_v_mvStr); __Pyx_XDECREF(__pyx_v_arrayArray); __Pyx_XDECREF(__pyx_v_ctypesArray); + __Pyx_XDECREF(__pyx_v_start); + __Pyx_XDECREF(__pyx_v_end); __Pyx_XDECREF(__pyx_v_ctypesArray16); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "PyCafe.pyx":3129 +/* "PyCafe.pyx":3219 * ############################################################################ * * def getPVInt(self, handlePV): # <<<<<<<<<<<<<< @@ -70902,7 +72991,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVInt", 0); - /* "PyCafe.pyx":3130 + /* "PyCafe.pyx":3220 * * def getPVInt(self, handlePV): * return self.getPV(handlePV, 'int') # <<<<<<<<<<<<<< @@ -70910,7 +72999,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3130, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -70927,7 +73016,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3130, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3220, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -70935,13 +73024,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3130, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3220, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3130, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -70952,7 +73041,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_n_u_int); __Pyx_GIVEREF(__pyx_n_u_int); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_int); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3130, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -70961,7 +73050,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3129 + /* "PyCafe.pyx":3219 * ############################################################################ * * def getPVInt(self, handlePV): # <<<<<<<<<<<<<< @@ -70985,7 +73074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_260getPVInt(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":3134 +/* "PyCafe.pyx":3224 * * ############################################################################ * def getPVFloat(self, handlePV): # <<<<<<<<<<<<<< @@ -71016,7 +73105,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVFloat", 0); - /* "PyCafe.pyx":3135 + /* "PyCafe.pyx":3225 * ############################################################################ * def getPVFloat(self, handlePV): * return self.getPV(handlePV, 'float') # <<<<<<<<<<<<<< @@ -71024,7 +73113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3135, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -71041,7 +73130,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3135, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -71049,13 +73138,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3135, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3225, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3135, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -71066,7 +73155,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_n_u_float); __Pyx_GIVEREF(__pyx_n_u_float); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_float); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3135, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -71075,7 +73164,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3134 + /* "PyCafe.pyx":3224 * * ############################################################################ * def getPVFloat(self, handlePV): # <<<<<<<<<<<<<< @@ -71099,7 +73188,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_262getPVFloat(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":3139 +/* "PyCafe.pyx":3229 * * ############################################################################ * def getPVStr(self, handlePV): # <<<<<<<<<<<<<< @@ -71130,7 +73219,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVStr", 0); - /* "PyCafe.pyx":3140 + /* "PyCafe.pyx":3230 * ############################################################################ * def getPVStr(self, handlePV): * return self.getPV(handlePV, 'str') # <<<<<<<<<<<<<< @@ -71138,7 +73227,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3140, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPV); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -71155,7 +73244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3140, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -71163,13 +73252,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3140, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3230, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3140, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -71180,7 +73269,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_n_u_str); __Pyx_GIVEREF(__pyx_n_u_str); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_str); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3140, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -71189,7 +73278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3139 + /* "PyCafe.pyx":3229 * * ############################################################################ * def getPVStr(self, handlePV): # <<<<<<<<<<<<<< @@ -71213,7 +73302,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_264getPVStr(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":3144 +/* "PyCafe.pyx":3234 * * ############################################################################ * def getPV(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -71257,7 +73346,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_267getPV(PyObject *__pyx_v_self, PyObj } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPV") < 0)) __PYX_ERR(3, 3144, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPV") < 0)) __PYX_ERR(3, 3234, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -71273,13 +73362,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_267getPV(PyObject *__pyx_v_self, PyObj } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getPV", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3144, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getPV", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3234, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getPV", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3144, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3234, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_266getPV(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -71313,7 +73402,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa struct __pyx_opt_args_6PyCafe_PVDataHolderToStruct __pyx_t_11; __Pyx_RefNannySetupContext("getPV", 0); - /* "PyCafe.pyx":3145 + /* "PyCafe.pyx":3235 * ############################################################################ * def getPV(self, handlePV, str dt='native'): * cdef str _METHOD = "getPV" # <<<<<<<<<<<<<< @@ -71323,7 +73412,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_n_u_getPV); __pyx_v__METHOD = __pyx_n_u_getPV; - /* "PyCafe.pyx":3147 + /* "PyCafe.pyx":3237 * cdef str _METHOD = "getPV" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -71332,7 +73421,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":3149 + /* "PyCafe.pyx":3239 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -71353,17 +73442,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3150 + /* "PyCafe.pyx":3240 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3150, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3240, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":3149 + /* "PyCafe.pyx":3239 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -71373,7 +73462,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":3151 + /* "PyCafe.pyx":3241 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -71384,21 +73473,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3152 + /* "PyCafe.pyx":3242 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format(self._exception_text, _METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 3152, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3152, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 3242, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3152, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":3151 + /* "PyCafe.pyx":3241 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -71408,7 +73497,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":3154 + /* "PyCafe.pyx":3244 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -71416,7 +73505,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa * */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -71433,7 +73522,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_4}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -71441,13 +73530,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_4}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -71461,21 +73550,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_4); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_4); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_4); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3154, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 3154, __pyx_L1_error) + __PYX_ERR(3, 3244, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":3158 + /* "PyCafe.pyx":3248 * * cdef int status * cdef PVDataHolder pvd = PVDataHolder(self.hh.getNelemNative(handle)) # <<<<<<<<<<<<<< @@ -71486,11 +73575,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_10 = PVDataHolder(__pyx_v_self->hh.getNelemNative(__pyx_v_handle)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3158, __pyx_L1_error) + __PYX_ERR(3, 3248, __pyx_L1_error) } __pyx_v_pvd = __pyx_t_10; - /* "PyCafe.pyx":3160 + /* "PyCafe.pyx":3250 * cdef PVDataHolder pvd = PVDataHolder(self.hh.getNelemNative(handle)) * * with nogil: # <<<<<<<<<<<<<< @@ -71505,7 +73594,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa #endif /*try:*/ { - /* "PyCafe.pyx":3161 + /* "PyCafe.pyx":3251 * * with nogil: * status = self._c_cafe.get(handle, pvd) # <<<<<<<<<<<<<< @@ -71515,7 +73604,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_v_status = __pyx_v_self->_c_cafe->get(__pyx_v_handle, __pyx_v_pvd); } - /* "PyCafe.pyx":3160 + /* "PyCafe.pyx":3250 * cdef PVDataHolder pvd = PVDataHolder(self.hh.getNelemNative(handle)) * * with nogil: # <<<<<<<<<<<<<< @@ -71534,7 +73623,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa } } - /* "PyCafe.pyx":3163 + /* "PyCafe.pyx":3253 * status = self._c_cafe.get(handle, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -71544,7 +73633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3164 + /* "PyCafe.pyx":3254 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -71554,7 +73643,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3165 + /* "PyCafe.pyx":3255 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -71564,7 +73653,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3166 + /* "PyCafe.pyx":3256 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -71573,7 +73662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3165 + /* "PyCafe.pyx":3255 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -71583,7 +73672,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L11; } - /* "PyCafe.pyx":3168 + /* "PyCafe.pyx":3258 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -71595,7 +73684,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa } __pyx_L11:; - /* "PyCafe.pyx":3164 + /* "PyCafe.pyx":3254 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -71604,7 +73693,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ } - /* "PyCafe.pyx":3169 + /* "PyCafe.pyx":3259 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -71614,76 +73703,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3171 + /* "PyCafe.pyx":3261 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3171, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3172 + /* "PyCafe.pyx":3262 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3172, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3173 + /* "PyCafe.pyx":3263 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3173, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3173, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3174 + /* "PyCafe.pyx":3264 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3174, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 3171, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 3261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3170 + /* "PyCafe.pyx":3260 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3170, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3175 + /* "PyCafe.pyx":3265 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -71691,9 +73780,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa * pvd_valnone = PVDataHolderToStruct(pvd, dt) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 3175, __pyx_L1_error) + __PYX_ERR(3, 3265, __pyx_L1_error) - /* "PyCafe.pyx":3169 + /* "PyCafe.pyx":3259 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -71702,7 +73791,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ } - /* "PyCafe.pyx":3177 + /* "PyCafe.pyx":3267 * raise _cafeException * * pvd_valnone = PVDataHolderToStruct(pvd, dt) # <<<<<<<<<<<<<< @@ -71711,12 +73800,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ __pyx_t_11.__pyx_n = 1; __pyx_t_11.dt = __pyx_v_dt; - __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_11)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3177, __pyx_L1_error) + __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_11)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pvd_valnone = ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":3178 + /* "PyCafe.pyx":3268 * * pvd_valnone = PVDataHolderToStruct(pvd, dt) * pvd_valnone.value[0] = None # <<<<<<<<<<<<<< @@ -71725,11 +73814,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ if (unlikely(__pyx_v_pvd_valnone->value == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 3178, __pyx_L1_error) + __PYX_ERR(3, 3268, __pyx_L1_error) } - if (unlikely(__Pyx_SetItemInt(__pyx_v_pvd_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 3178, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_pvd_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 3268, __pyx_L1_error) - /* "PyCafe.pyx":3179 + /* "PyCafe.pyx":3269 * pvd_valnone = PVDataHolderToStruct(pvd, dt) * pvd_valnone.value[0] = None * return pvd_valnone # <<<<<<<<<<<<<< @@ -71741,7 +73830,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __pyx_r = ((PyObject *)__pyx_v_pvd_valnone); goto __pyx_L0; - /* "PyCafe.pyx":3163 + /* "PyCafe.pyx":3253 * status = self._c_cafe.get(handle, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -71750,7 +73839,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa */ } - /* "PyCafe.pyx":3181 + /* "PyCafe.pyx":3271 * return pvd_valnone * * return PVDataHolderToStruct(pvd, dt) # <<<<<<<<<<<<<< @@ -71760,13 +73849,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa __Pyx_XDECREF(__pyx_r); __pyx_t_11.__pyx_n = 1; __pyx_t_11.dt = __pyx_v_dt; - __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_11)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3181, __pyx_L1_error) + __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_11)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 3271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3144 + /* "PyCafe.pyx":3234 * * ############################################################################ * def getPV(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -71793,7 +73882,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_266getPV(struct __pyx_obj_6PyCafe_CyCa return __pyx_r; } -/* "PyCafe.pyx":3189 +/* "PyCafe.pyx":3279 * ################################################################################## * * def getPVStrList(self, handleList): # <<<<<<<<<<<<<< @@ -71823,7 +73912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_268getPVStrList(struct __pyx_obj_6PyCa PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVStrList", 0); - /* "PyCafe.pyx":3190 + /* "PyCafe.pyx":3280 * * def getPVStrList(self, handleList): * return self.getPVList(handleList, dt='str') # <<<<<<<<<<<<<< @@ -71831,17 +73920,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_268getPVStrList(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3190, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3190, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3190, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 3190, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3190, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 3280, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -71850,7 +73939,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_268getPVStrList(struct __pyx_obj_6PyCa __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3189 + /* "PyCafe.pyx":3279 * ################################################################################## * * def getPVStrList(self, handleList): # <<<<<<<<<<<<<< @@ -71874,7 +73963,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_268getPVStrList(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":3194 +/* "PyCafe.pyx":3284 * * ################################################################################## * def getPVIntList(self, handleList): # <<<<<<<<<<<<<< @@ -71904,7 +73993,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_270getPVIntList(struct __pyx_obj_6PyCa PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVIntList", 0); - /* "PyCafe.pyx":3195 + /* "PyCafe.pyx":3285 * ################################################################################## * def getPVIntList(self, handleList): * return self.getPVList(handleList, dt='int') # <<<<<<<<<<<<<< @@ -71912,17 +74001,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_270getPVIntList(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3195, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3195, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3195, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 3195, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3195, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 3285, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -71931,7 +74020,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_270getPVIntList(struct __pyx_obj_6PyCa __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3194 + /* "PyCafe.pyx":3284 * * ################################################################################## * def getPVIntList(self, handleList): # <<<<<<<<<<<<<< @@ -71955,7 +74044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_270getPVIntList(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":3199 +/* "PyCafe.pyx":3289 * * ################################################################################## * def getPVFloatList(self, handleList): # <<<<<<<<<<<<<< @@ -71985,7 +74074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_272getPVFloatList(struct __pyx_obj_6Py PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVFloatList", 0); - /* "PyCafe.pyx":3200 + /* "PyCafe.pyx":3290 * ################################################################################## * def getPVFloatList(self, handleList): * return self.getPVList(handleList, dt='float') # <<<<<<<<<<<<<< @@ -71993,17 +74082,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_272getPVFloatList(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3200, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3200, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3200, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 3200, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3200, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 3290, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -72012,7 +74101,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_272getPVFloatList(struct __pyx_obj_6Py __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3199 + /* "PyCafe.pyx":3289 * * ################################################################################## * def getPVFloatList(self, handleList): # <<<<<<<<<<<<<< @@ -72036,7 +74125,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_272getPVFloatList(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":3204 +/* "PyCafe.pyx":3294 * * ################################################################################## * def getPVList(self, handleList, str dt='native', cacheFlag=False): # <<<<<<<<<<<<<< @@ -72090,7 +74179,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_275getPVList(PyObject *__pyx_v_self, P } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVList") < 0)) __PYX_ERR(3, 3204, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVList") < 0)) __PYX_ERR(3, 3294, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -72109,13 +74198,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_275getPVList(PyObject *__pyx_v_self, P } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getPVList", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3204, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getPVList", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3294, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getPVList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3294, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_274getPVList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag); /* function exit code */ @@ -72173,7 +74262,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_RefNannySetupContext("getPVList", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":3205 + /* "PyCafe.pyx":3295 * ################################################################################## * def getPVList(self, handleList, str dt='native', cacheFlag=False): * cdef str _METHOD = "getPVList" # <<<<<<<<<<<<<< @@ -72183,7 +74272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_n_u_getPVList); __pyx_v__METHOD = __pyx_n_u_getPVList; - /* "PyCafe.pyx":3207 + /* "PyCafe.pyx":3297 * cdef str _METHOD = "getPVList" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -72211,40 +74300,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3208 + /* "PyCafe.pyx":3298 * * if isinstance(handleList, (str, int, long)): * hl = [] # <<<<<<<<<<<<<< * hl.append(handleList) * handleList = [] */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3208, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_hl = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3209 + /* "PyCafe.pyx":3299 * if isinstance(handleList, (str, int, long)): * hl = [] * hl.append(handleList) # <<<<<<<<<<<<<< * handleList = [] * handleList = hl */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_hl, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3209, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_hl, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3299, __pyx_L1_error) - /* "PyCafe.pyx":3210 + /* "PyCafe.pyx":3300 * hl = [] * hl.append(handleList) * handleList = [] # <<<<<<<<<<<<<< * handleList = hl * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3210, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3211 + /* "PyCafe.pyx":3301 * hl.append(handleList) * handleList = [] * handleList = hl # <<<<<<<<<<<<<< @@ -72254,7 +74343,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_v_hl); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_v_hl); - /* "PyCafe.pyx":3207 + /* "PyCafe.pyx":3297 * cdef str _METHOD = "getPVList" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -72263,34 +74352,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3213 + /* "PyCafe.pyx":3303 * handleList = hl * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3213, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3214 + /* "PyCafe.pyx":3304 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3214, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3214, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3304, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3213 + /* "PyCafe.pyx":3303 * handleList = hl * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -72300,14 +74389,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L7; } - /* "PyCafe.pyx":3215 + /* "PyCafe.pyx":3305 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3215, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_3 != 0); @@ -72324,17 +74413,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3216 + /* "PyCafe.pyx":3306 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be a 'list' of of type \ */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":3217 + /* "PyCafe.pyx":3307 * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -72356,7 +74445,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_2}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -72364,13 +74453,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_2}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -72384,27 +74473,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a_2); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a_2); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_a_2); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3216 + /* "PyCafe.pyx":3306 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * "First input argument should be a 'list' of of type \ */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3216, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 3216, __pyx_L1_error) + __PYX_ERR(3, 3306, __pyx_L1_error) - /* "PyCafe.pyx":3215 + /* "PyCafe.pyx":3305 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -72414,38 +74503,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ } __pyx_L7:; - /* "PyCafe.pyx":3235 + /* "PyCafe.pyx":3325 * # do this to avoid compiler warning messages * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * v.push_back(handleList[i]) * */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3235, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3325, __pyx_L1_error) __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":3236 + /* "PyCafe.pyx":3326 * * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3236, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3236, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3236, __pyx_L1_error) + __PYX_ERR(3, 3326, __pyx_L1_error) } } - /* "PyCafe.pyx":3238 + /* "PyCafe.pyx":3328 * v.push_back(handleList[i]) * * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -72454,7 +74543,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_pvd = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":3240 + /* "PyCafe.pyx":3330 * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) * * for i in range(0, v.size()): # len(handleList)): # # <<<<<<<<<<<<<< @@ -72466,7 +74555,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_14; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; - /* "PyCafe.pyx":3241 + /* "PyCafe.pyx":3331 * * for i in range(0, v.size()): # len(handleList)): # * pvd[i].setNelem(self.hh.getNelemNative(v[i])) # handleList[i])) # <<<<<<<<<<<<<< @@ -72476,17 +74565,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ (void)((__pyx_v_pvd[__pyx_v_i]).setNelem(__pyx_v_self->hh.getNelemNative((__pyx_v_v[__pyx_v_i])))); } - /* "PyCafe.pyx":3246 + /* "PyCafe.pyx":3336 * cdef int status * * if cacheFlag: # <<<<<<<<<<<<<< * status = self._c_cafe.getCachePVArray(v, pvd) * else: */ - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_cacheFlag); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 3246, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_cacheFlag); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 3336, __pyx_L1_error) if (__pyx_t_3) { - /* "PyCafe.pyx":3247 + /* "PyCafe.pyx":3337 * * if cacheFlag: * status = self._c_cafe.getCachePVArray(v, pvd) # <<<<<<<<<<<<<< @@ -72495,7 +74584,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_status = __pyx_v_self->_c_cafe->getCachePVArray(__pyx_v_v, __pyx_v_pvd); - /* "PyCafe.pyx":3246 + /* "PyCafe.pyx":3336 * cdef int status * * if cacheFlag: # <<<<<<<<<<<<<< @@ -72505,7 +74594,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L14; } - /* "PyCafe.pyx":3249 + /* "PyCafe.pyx":3339 * status = self._c_cafe.getCachePVArray(v, pvd) * else: * with nogil: # <<<<<<<<<<<<<< @@ -72521,7 +74610,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":3250 + /* "PyCafe.pyx":3340 * else: * with nogil: * status = self._c_cafe.getPVArray(v, pvd) # <<<<<<<<<<<<<< @@ -72531,7 +74620,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_v_status = __pyx_v_self->_c_cafe->getPVArray(__pyx_v_v, __pyx_v_pvd); } - /* "PyCafe.pyx":3249 + /* "PyCafe.pyx":3339 * status = self._c_cafe.getCachePVArray(v, pvd) * else: * with nogil: # <<<<<<<<<<<<<< @@ -72552,7 +74641,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ } __pyx_L14:; - /* "PyCafe.pyx":3252 + /* "PyCafe.pyx":3342 * status = self._c_cafe.getPVArray(v, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -72562,7 +74651,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3253 + /* "PyCafe.pyx":3343 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -72572,7 +74661,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3254 + /* "PyCafe.pyx":3344 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -72581,7 +74670,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3255 + /* "PyCafe.pyx":3345 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -72593,7 +74682,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_14; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; - /* "PyCafe.pyx":3256 + /* "PyCafe.pyx":3346 * self._c_cafe.printStatusMessage(status) * for i in range(0, v.size()): #len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -72603,38 +74692,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = (((__pyx_v_pvd[__pyx_v_i]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3257 + /* "PyCafe.pyx":3347 * for i in range(0, v.size()): #len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3257, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":3258 + /* "PyCafe.pyx":3348 * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(status) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3258, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3258, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3348, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_13)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3258, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_13)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":3257 + /* "PyCafe.pyx":3347 * for i in range(0, v.size()): #len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3257, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_Handle); __Pyx_GIVEREF(__pyx_kp_u_Handle); @@ -72648,21 +74737,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_4); __pyx_t_6 = 0; __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3257, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3259 + /* "PyCafe.pyx":3349 * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * print("") */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3259, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3259, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -72670,12 +74759,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3259, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3260 + /* "PyCafe.pyx":3350 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -72684,18 +74773,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3261 + /* "PyCafe.pyx":3351 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(status) * print("") # <<<<<<<<<<<<<< * #raise Exception("EXCEPTION RAISED in PyCafe def getPVList. Status = %d" %status) * */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3261, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3256 + /* "PyCafe.pyx":3346 * self._c_cafe.printStatusMessage(status) * for i in range(0, v.size()): #len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -72705,7 +74794,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":3253 + /* "PyCafe.pyx":3343 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -72714,7 +74803,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3252 + /* "PyCafe.pyx":3342 * status = self._c_cafe.getPVArray(v, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -72723,19 +74812,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3269 + /* "PyCafe.pyx":3359 * cdef CAFEDataTypeCode cdt * * pvdList = [] # <<<<<<<<<<<<<< * cpdef pvdata p1 * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3269, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pvdList = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3274 + /* "PyCafe.pyx":3364 * cdef bytes bytesVal * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -72747,7 +74836,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_14; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; - /* "PyCafe.pyx":3275 + /* "PyCafe.pyx":3365 * * for i in range(0, v.size()): #len(handleList)): * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< @@ -72756,35 +74845,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_dtn = (__pyx_v_pvd[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":3277 + /* "PyCafe.pyx":3367 * dtn = pvd[i].getDataType() * * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * localList = [] * */ - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3277, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3277, __pyx_L1_error) + __pyx_t_9 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3277, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_dtcheck = __pyx_t_13; - /* "PyCafe.pyx":3278 + /* "PyCafe.pyx":3368 * * dtcheck = getMatchedDataType(dt, dtn) * localList = [] # <<<<<<<<<<<<<< * * if pvd[i].getNelem() == 1: */ - __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3278, __pyx_L1_error) + __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_localList, ((PyObject*)__pyx_t_9)); __pyx_t_9 = 0; - /* "PyCafe.pyx":3280 + /* "PyCafe.pyx":3370 * localList = [] * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -72794,7 +74883,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = (((__pyx_v_pvd[__pyx_v_i]).getNelem() == 1) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3281 + /* "PyCafe.pyx":3371 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -72804,14 +74893,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":3282 + /* "PyCafe.pyx":3372 * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_9 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3282, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_4 = __pyx_t_9; __Pyx_INCREF(__pyx_t_4); @@ -72819,7 +74908,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "PyCafe.pyx":3283 + /* "PyCafe.pyx":3373 * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -72828,21 +74917,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":3284 + /* "PyCafe.pyx":3374 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3284, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 3284, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_4, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 3374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3285 + /* "PyCafe.pyx":3375 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -72858,7 +74947,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":3286 + /* "PyCafe.pyx":3376 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -72867,14 +74956,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3286, __pyx_L27_error) + __PYX_ERR(3, 3376, __pyx_L27_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3286, __pyx_L27_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3376, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3287 + /* "PyCafe.pyx":3377 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -72883,7 +74972,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3285 + /* "PyCafe.pyx":3375 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -72901,7 +74990,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3288 + /* "PyCafe.pyx":3378 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -72916,7 +75005,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L29_except_error; __pyx_L29_except_error:; - /* "PyCafe.pyx":3285 + /* "PyCafe.pyx":3375 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -72936,7 +75025,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L34_try_end:; } - /* "PyCafe.pyx":3284 + /* "PyCafe.pyx":3374 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -72945,7 +75034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3290 + /* "PyCafe.pyx":3380 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -72955,7 +75044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3291 + /* "PyCafe.pyx":3381 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -72971,7 +75060,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":3292 + /* "PyCafe.pyx":3382 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -72980,14 +75069,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3292, __pyx_L36_error) + __PYX_ERR(3, 3382, __pyx_L36_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3292, __pyx_L36_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3382, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3293 + /* "PyCafe.pyx":3383 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -72996,7 +75085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3291 + /* "PyCafe.pyx":3381 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73014,7 +75103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3294 + /* "PyCafe.pyx":3384 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -73029,7 +75118,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L38_except_error; __pyx_L38_except_error:; - /* "PyCafe.pyx":3291 + /* "PyCafe.pyx":3381 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73049,7 +75138,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L43_try_end:; } - /* "PyCafe.pyx":3290 + /* "PyCafe.pyx":3380 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73058,7 +75147,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3296 + /* "PyCafe.pyx":3386 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73068,7 +75157,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3297 + /* "PyCafe.pyx":3387 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73084,7 +75173,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":3298 + /* "PyCafe.pyx":3388 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -73093,14 +75182,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3298, __pyx_L45_error) + __PYX_ERR(3, 3388, __pyx_L45_error) } - __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3298, __pyx_L45_error) + __pyx_t_4 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3388, __pyx_L45_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3299 + /* "PyCafe.pyx":3389 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -73109,7 +75198,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3297 + /* "PyCafe.pyx":3387 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73127,7 +75216,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3300 + /* "PyCafe.pyx":3390 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -73142,7 +75231,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L47_except_error; __pyx_L47_except_error:; - /* "PyCafe.pyx":3297 + /* "PyCafe.pyx":3387 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73162,7 +75251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L52_try_end:; } - /* "PyCafe.pyx":3296 + /* "PyCafe.pyx":3386 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73171,7 +75260,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3302 + /* "PyCafe.pyx":3392 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73181,19 +75270,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3303 + /* "PyCafe.pyx":3393 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3303, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3302 + /* "PyCafe.pyx":3392 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73202,17 +75291,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3305 + /* "PyCafe.pyx":3395 * strVal = pvd[i].getAsString() * * localList.append(strVal) # <<<<<<<<<<<<<< * * elif dtcheck == CAFE_SHORT: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3305, __pyx_L1_error) } - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3305, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3395, __pyx_L1_error) } + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3395, __pyx_L1_error) - /* "PyCafe.pyx":3281 + /* "PyCafe.pyx":3371 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -73222,19 +75311,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_SHORT: - /* "PyCafe.pyx":3308 + /* "PyCafe.pyx":3398 * * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3308, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3308, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3307 + /* "PyCafe.pyx":3397 * localList.append(strVal) * * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -73244,19 +75333,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_FLOAT: - /* "PyCafe.pyx":3310 + /* "PyCafe.pyx":3400 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_4 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3310, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3310, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3309 + /* "PyCafe.pyx":3399 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -73266,33 +75355,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_ENUM: - /* "PyCafe.pyx":3313 + /* "PyCafe.pyx":3403 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): # <<<<<<<<<<<<<< * localList.append(pvd[i].getAsString()) * else: */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3313, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3313, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_v_self->_c_cafe->isEnum(__pyx_t_13) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3314 + /* "PyCafe.pyx":3404 * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3314, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3314, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3404, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3313 + /* "PyCafe.pyx":3403 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): # <<<<<<<<<<<<<< @@ -73302,7 +75391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L54; } - /* "PyCafe.pyx":3316 + /* "PyCafe.pyx":3406 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -73310,14 +75399,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ * # ( pvd[i].getAsChar()) */ /*else*/ { - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3316, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3316, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L54:; - /* "PyCafe.pyx":3311 + /* "PyCafe.pyx":3401 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -73327,19 +75416,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_CHAR: - /* "PyCafe.pyx":3319 + /* "PyCafe.pyx":3409 * elif dtcheck == CAFE_CHAR: * # ( pvd[i].getAsChar()) * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3319, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3319, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3317 + /* "PyCafe.pyx":3407 * else: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -73349,19 +75438,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_LONG: - /* "PyCafe.pyx":3321 + /* "PyCafe.pyx":3411 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3321, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3321, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3320 + /* "PyCafe.pyx":3410 * # ( pvd[i].getAsChar()) * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -73371,19 +75460,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_DOUBLE: - /* "PyCafe.pyx":3323 + /* "PyCafe.pyx":3413 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(0) # no data */ - __pyx_t_4 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3323, __pyx_L1_error) + __pyx_t_4 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3323, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3413, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3322 + /* "PyCafe.pyx":3412 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -73393,18 +75482,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; default: - /* "PyCafe.pyx":3325 + /* "PyCafe.pyx":3415 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(0) # no data # <<<<<<<<<<<<<< * * else: */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3325, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3415, __pyx_L1_error) break; } - /* "PyCafe.pyx":3280 + /* "PyCafe.pyx":3370 * localList = [] * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -73414,7 +75503,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L25; } - /* "PyCafe.pyx":3328 + /* "PyCafe.pyx":3418 * * else: * localListInner = [] # <<<<<<<<<<<<<< @@ -73422,12 +75511,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ * for j in range(0, pvd[i].getNelem()): */ /*else*/ { - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3328, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_localListInner, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "PyCafe.pyx":3329 + /* "PyCafe.pyx":3419 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -73437,7 +75526,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":3330 + /* "PyCafe.pyx":3420 * localListInner = [] * if dtcheck == CAFE_STRING: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -73449,14 +75538,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3332 + /* "PyCafe.pyx":3422 * for j in range(0, pvd[i].getNelem()): * * bytesVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3332, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = __pyx_t_4; __Pyx_INCREF(__pyx_t_9); @@ -73464,7 +75553,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_9)); __pyx_t_9 = 0; - /* "PyCafe.pyx":3333 + /* "PyCafe.pyx":3423 * * bytesVal = pvd[i].getAsString(j) * encoding = False # <<<<<<<<<<<<<< @@ -73473,21 +75562,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":3334 + /* "PyCafe.pyx":3424 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_9 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3334, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_9, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 3334, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_9, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 3424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3335 + /* "PyCafe.pyx":3425 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -73503,7 +75592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":3336 + /* "PyCafe.pyx":3426 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -73512,14 +75601,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3336, __pyx_L58_error) + __PYX_ERR(3, 3426, __pyx_L58_error) } - __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3336, __pyx_L58_error) + __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3426, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3337 + /* "PyCafe.pyx":3427 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -73528,7 +75617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3335 + /* "PyCafe.pyx":3425 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -73546,7 +75635,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3338 + /* "PyCafe.pyx":3428 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -73561,7 +75650,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L60_except_error; __pyx_L60_except_error:; - /* "PyCafe.pyx":3335 + /* "PyCafe.pyx":3425 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -73581,7 +75670,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L65_try_end:; } - /* "PyCafe.pyx":3334 + /* "PyCafe.pyx":3424 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -73590,7 +75679,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3340 + /* "PyCafe.pyx":3430 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73600,7 +75689,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3341 + /* "PyCafe.pyx":3431 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73616,7 +75705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":3342 + /* "PyCafe.pyx":3432 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -73625,14 +75714,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3342, __pyx_L67_error) + __PYX_ERR(3, 3432, __pyx_L67_error) } - __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3342, __pyx_L67_error) + __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3432, __pyx_L67_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3343 + /* "PyCafe.pyx":3433 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -73641,7 +75730,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3341 + /* "PyCafe.pyx":3431 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73659,7 +75748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3344 + /* "PyCafe.pyx":3434 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -73674,7 +75763,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L69_except_error; __pyx_L69_except_error:; - /* "PyCafe.pyx":3341 + /* "PyCafe.pyx":3431 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73694,7 +75783,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L74_try_end:; } - /* "PyCafe.pyx":3340 + /* "PyCafe.pyx":3430 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73703,7 +75792,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3346 + /* "PyCafe.pyx":3436 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73713,7 +75802,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3347 + /* "PyCafe.pyx":3437 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73729,7 +75818,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":3348 + /* "PyCafe.pyx":3438 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -73738,14 +75827,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3348, __pyx_L76_error) + __PYX_ERR(3, 3438, __pyx_L76_error) } - __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3348, __pyx_L76_error) + __pyx_t_9 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3438, __pyx_L76_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3349 + /* "PyCafe.pyx":3439 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -73754,7 +75843,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3347 + /* "PyCafe.pyx":3437 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73772,7 +75861,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3350 + /* "PyCafe.pyx":3440 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -73787,7 +75876,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L78_except_error; __pyx_L78_except_error:; - /* "PyCafe.pyx":3347 + /* "PyCafe.pyx":3437 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -73807,7 +75896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_L83_try_end:; } - /* "PyCafe.pyx":3346 + /* "PyCafe.pyx":3436 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73816,7 +75905,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3352 + /* "PyCafe.pyx":3442 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73826,19 +75915,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3353 + /* "PyCafe.pyx":3443 * pass * if not encoding: * strVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * localListInner.append(strVal) #pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: */ - __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3353, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3352 + /* "PyCafe.pyx":3442 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -73847,18 +75936,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":3354 + /* "PyCafe.pyx":3444 * if not encoding: * strVal = pvd[i].getAsString(j) * localListInner.append(strVal) #pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3354, __pyx_L1_error) } - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3354, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3444, __pyx_L1_error) } + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3444, __pyx_L1_error) } - /* "PyCafe.pyx":3329 + /* "PyCafe.pyx":3419 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -73868,7 +75957,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_SHORT: - /* "PyCafe.pyx":3356 + /* "PyCafe.pyx":3446 * localListInner.append(strVal) #pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -73880,20 +75969,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3357 + /* "PyCafe.pyx":3447 * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3357, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3357, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3447, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":3355 + /* "PyCafe.pyx":3445 * strVal = pvd[i].getAsString(j) * localListInner.append(strVal) #pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -73903,7 +75992,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_FLOAT: - /* "PyCafe.pyx":3359 + /* "PyCafe.pyx":3449 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -73915,20 +76004,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3360 + /* "PyCafe.pyx":3450 * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_9 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3360, __pyx_L1_error) + __pyx_t_9 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3360, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":3358 + /* "PyCafe.pyx":3448 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -73938,7 +76027,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_ENUM: - /* "PyCafe.pyx":3362 + /* "PyCafe.pyx":3452 * localListInner.append(pvd[i].getAsDouble(j)) * elif dtcheck == CAFE_ENUM: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -73950,33 +76039,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3364 + /* "PyCafe.pyx":3454 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): # <<<<<<<<<<<<<< * localListInner.append(pvd[i].getAsString(j)) * else: */ - __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3364, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_21 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_21 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3364, __pyx_L1_error) + __pyx_t_21 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_21 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = (__pyx_v_self->_c_cafe->isEnum(__pyx_t_21) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3365 + /* "PyCafe.pyx":3455 * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): * localListInner.append(pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * else: * localListInner.append(pvd[i].getAsLong(j)) */ - __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3365, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3365, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3364 + /* "PyCafe.pyx":3454 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]): # <<<<<<<<<<<<<< @@ -73986,7 +76075,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ goto __pyx_L91; } - /* "PyCafe.pyx":3367 + /* "PyCafe.pyx":3457 * localListInner.append(pvd[i].getAsString(j)) * else: * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< @@ -73994,15 +76083,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ * for j in range(0, pvd[i].getNelem()): */ /*else*/ { - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3367, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3367, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3457, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __pyx_L91:; } - /* "PyCafe.pyx":3361 + /* "PyCafe.pyx":3451 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -74012,7 +76101,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_CHAR: - /* "PyCafe.pyx":3369 + /* "PyCafe.pyx":3459 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_CHAR: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -74024,20 +76113,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3371 + /* "PyCafe.pyx":3461 * for j in range(0, pvd[i].getNelem()): * # ( pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3371, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3371, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3461, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":3368 + /* "PyCafe.pyx":3458 * else: * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -74047,7 +76136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_LONG: - /* "PyCafe.pyx":3373 + /* "PyCafe.pyx":3463 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -74059,20 +76148,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3374 + /* "PyCafe.pyx":3464 * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3374, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3374, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":3372 + /* "PyCafe.pyx":3462 * # ( pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -74082,7 +76171,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; case CAFE_DOUBLE: - /* "PyCafe.pyx":3376 + /* "PyCafe.pyx":3466 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -74094,20 +76183,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3377 + /* "PyCafe.pyx":3467 * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * else: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_9 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3377, __pyx_L1_error) + __pyx_t_9 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3377, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":3375 + /* "PyCafe.pyx":3465 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -74117,7 +76206,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ break; default: - /* "PyCafe.pyx":3379 + /* "PyCafe.pyx":3469 * localListInner.append(pvd[i].getAsDouble(j)) * else: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -74129,42 +76218,42 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":3380 + /* "PyCafe.pyx":3470 * else: * for j in range(0, pvd[i].getNelem()): * localListInner.append(0) # no data # <<<<<<<<<<<<<< * localList.append(localListInner) * */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_int_0); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3380, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_int_0); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3470, __pyx_L1_error) } break; } - /* "PyCafe.pyx":3381 + /* "PyCafe.pyx":3471 * for j in range(0, pvd[i].getNelem()): * localListInner.append(0) # no data * localList.append(localListInner) # <<<<<<<<<<<<<< * * p1 = pvdata() */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3381, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3471, __pyx_L1_error) } __pyx_L25:; - /* "PyCafe.pyx":3383 + /* "PyCafe.pyx":3473 * localList.append(localListInner) * * p1 = pvdata() # <<<<<<<<<<<<<< * p1.value = localList * p1.status = pvd[i].getStatus() */ - __pyx_t_9 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3383, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_p1, ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_9)); __pyx_t_9 = 0; - /* "PyCafe.pyx":3384 + /* "PyCafe.pyx":3474 * * p1 = pvdata() * p1.value = localList # <<<<<<<<<<<<<< @@ -74177,7 +76266,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_DECREF(__pyx_v_p1->value); __pyx_v_p1->value = __pyx_v_localList; - /* "PyCafe.pyx":3385 + /* "PyCafe.pyx":3475 * p1 = pvdata() * p1.value = localList * p1.status = pvd[i].getStatus() # <<<<<<<<<<<<<< @@ -74186,14 +76275,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_p1->status = (__pyx_v_pvd[__pyx_v_i]).getStatus(); - /* "PyCafe.pyx":3386 + /* "PyCafe.pyx":3476 * p1.value = localList * p1.status = pvd[i].getStatus() * p1.statusAsString = pvd[i].getStatusAsString() # <<<<<<<<<<<<<< * p1.nelem = pvd[i].getNelem() * p1.alarmStatus = pvd[i].getAlarmStatus() */ - __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getStatusAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3386, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getStatusAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __Pyx_GOTREF(__pyx_v_p1->statusAsString); @@ -74201,7 +76290,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_v_p1->statusAsString = ((PyObject*)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3387 + /* "PyCafe.pyx":3477 * p1.status = pvd[i].getStatus() * p1.statusAsString = pvd[i].getStatusAsString() * p1.nelem = pvd[i].getNelem() # <<<<<<<<<<<<<< @@ -74210,7 +76299,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_p1->nelem = (__pyx_v_pvd[__pyx_v_i]).getNelem(); - /* "PyCafe.pyx":3388 + /* "PyCafe.pyx":3478 * p1.statusAsString = pvd[i].getStatusAsString() * p1.nelem = pvd[i].getNelem() * p1.alarmStatus = pvd[i].getAlarmStatus() # <<<<<<<<<<<<<< @@ -74219,7 +76308,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_p1->alarmStatus = (__pyx_v_pvd[__pyx_v_i]).getAlarmStatus(); - /* "PyCafe.pyx":3389 + /* "PyCafe.pyx":3479 * p1.nelem = pvd[i].getNelem() * p1.alarmStatus = pvd[i].getAlarmStatus() * p1.alarmSeverity = pvd[i].getAlarmSeverity() # <<<<<<<<<<<<<< @@ -74228,14 +76317,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_p1->alarmSeverity = (__pyx_v_pvd[__pyx_v_i]).getAlarmSeverity(); - /* "PyCafe.pyx":3390 + /* "PyCafe.pyx":3480 * p1.alarmStatus = pvd[i].getAlarmStatus() * p1.alarmSeverity = pvd[i].getAlarmSeverity() * p1.alarmStatusAsString = pvd[i].getAlarmStatusAsString() # <<<<<<<<<<<<<< * p1.alarmSeverityAsString = pvd[i].getAlarmSeverityAsString() * p1.dataType = pvd[i].getDataType() */ - __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAlarmStatusAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3390, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAlarmStatusAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __Pyx_GOTREF(__pyx_v_p1->alarmStatusAsString); @@ -74243,14 +76332,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_v_p1->alarmStatusAsString = ((PyObject*)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3391 + /* "PyCafe.pyx":3481 * p1.alarmSeverity = pvd[i].getAlarmSeverity() * p1.alarmStatusAsString = pvd[i].getAlarmStatusAsString() * p1.alarmSeverityAsString = pvd[i].getAlarmSeverityAsString() # <<<<<<<<<<<<<< * p1.dataType = pvd[i].getDataType() * p1.dataTypeAsString = cdt.message(pvd[i].getDataType()) */ - __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAlarmSeverityAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3391, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAlarmSeverityAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __Pyx_GOTREF(__pyx_v_p1->alarmSeverityAsString); @@ -74258,7 +76347,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_v_p1->alarmSeverityAsString = ((PyObject*)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3392 + /* "PyCafe.pyx":3482 * p1.alarmStatusAsString = pvd[i].getAlarmStatusAsString() * p1.alarmSeverityAsString = pvd[i].getAlarmSeverityAsString() * p1.dataType = pvd[i].getDataType() # <<<<<<<<<<<<<< @@ -74267,14 +76356,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_p1->dataType = (__pyx_v_pvd[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":3393 + /* "PyCafe.pyx":3483 * p1.alarmSeverityAsString = pvd[i].getAlarmSeverityAsString() * p1.dataType = pvd[i].getDataType() * p1.dataTypeAsString = cdt.message(pvd[i].getDataType()) # <<<<<<<<<<<<<< * pvd._etsNorm = pvd[i].getEpicsTimeStampAsUInt32() * */ - __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_cdt.message((__pyx_v_pvd[__pyx_v_i]).getDataType())); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3393, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_cdt.message((__pyx_v_pvd[__pyx_v_i]).getDataType())); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_9); __Pyx_GOTREF(__pyx_v_p1->dataTypeAsString); @@ -74282,7 +76371,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_v_p1->dataTypeAsString = ((PyObject*)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3394 + /* "PyCafe.pyx":3484 * p1.dataType = pvd[i].getDataType() * p1.dataTypeAsString = cdt.message(pvd[i].getDataType()) * pvd._etsNorm = pvd[i].getEpicsTimeStampAsUInt32() # <<<<<<<<<<<<<< @@ -74291,43 +76380,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_pvd->_etsNorm = (__pyx_v_pvd[__pyx_v_i]).getEpicsTimeStampAsUInt32(); - /* "PyCafe.pyx":3396 + /* "PyCafe.pyx":3486 * pvd._etsNorm = pvd[i].getEpicsTimeStampAsUInt32() * * ll = [] # <<<<<<<<<<<<<< * ll.append((pvd[i]._etsNorm).secPastEpoch) * ll.append((pvd[i]._etsNorm).nsec) */ - __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3396, __pyx_L1_error) + __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_ll, ((PyObject*)__pyx_t_9)); __pyx_t_9 = 0; - /* "PyCafe.pyx":3397 + /* "PyCafe.pyx":3487 * * ll = [] * ll.append((pvd[i]._etsNorm).secPastEpoch) # <<<<<<<<<<<<<< * ll.append((pvd[i]._etsNorm).nsec) * p1.ts = ll */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int((__pyx_v_pvd[__pyx_v_i])._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3397, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int((__pyx_v_pvd[__pyx_v_i])._etsNorm.secPastEpoch); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3397, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3398 + /* "PyCafe.pyx":3488 * ll = [] * ll.append((pvd[i]._etsNorm).secPastEpoch) * ll.append((pvd[i]._etsNorm).nsec) # <<<<<<<<<<<<<< * p1.ts = ll * */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int((__pyx_v_pvd[__pyx_v_i])._etsNorm.nsec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3398, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int((__pyx_v_pvd[__pyx_v_i])._etsNorm.nsec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3398, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3488, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3399 + /* "PyCafe.pyx":3489 * ll.append((pvd[i]._etsNorm).secPastEpoch) * ll.append((pvd[i]._etsNorm).nsec) * p1.ts = ll # <<<<<<<<<<<<<< @@ -74340,7 +76429,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_DECREF(__pyx_v_p1->ts); __pyx_v_p1->ts = __pyx_v_ll; - /* "PyCafe.pyx":3401 + /* "PyCafe.pyx":3491 * p1.ts = ll * * pvd._etsDate = pvd[i].getEpicsTimeStampAsDate() # <<<<<<<<<<<<<< @@ -74349,103 +76438,103 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ */ __pyx_v_pvd->_etsDate = (__pyx_v_pvd[__pyx_v_i]).getEpicsTimeStampAsDate(); - /* "PyCafe.pyx":3403 + /* "PyCafe.pyx":3493 * pvd._etsDate = pvd[i].getEpicsTimeStampAsDate() * * ld = [] # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).year) * ld.append((pvd[i]._etsDate).mon) */ - __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3403, __pyx_L1_error) + __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_XDECREF_SET(__pyx_v_ld, ((PyObject*)__pyx_t_9)); __pyx_t_9 = 0; - /* "PyCafe.pyx":3404 + /* "PyCafe.pyx":3494 * * ld = [] * ld.append((pvd[i]._etsDate).year) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).mon) * ld.append((pvd[i]._etsDate).day) */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.year); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3404, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.year); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3404, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3494, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3405 + /* "PyCafe.pyx":3495 * ld = [] * ld.append((pvd[i]._etsDate).year) * ld.append((pvd[i]._etsDate).mon) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).day) * ld.append((pvd[i]._etsDate).hour) */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.mon); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3405, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.mon); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3405, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3406 + /* "PyCafe.pyx":3496 * ld.append((pvd[i]._etsDate).year) * ld.append((pvd[i]._etsDate).mon) * ld.append((pvd[i]._etsDate).day) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).hour) * ld.append((pvd[i]._etsDate).min) */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.day); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3406, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.day); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3406, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3496, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3407 + /* "PyCafe.pyx":3497 * ld.append((pvd[i]._etsDate).mon) * ld.append((pvd[i]._etsDate).day) * ld.append((pvd[i]._etsDate).hour) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).min) * ld.append((pvd[i]._etsDate).sec) */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.hour); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3407, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.hour); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3407, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3497, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3408 + /* "PyCafe.pyx":3498 * ld.append((pvd[i]._etsDate).day) * ld.append((pvd[i]._etsDate).hour) * ld.append((pvd[i]._etsDate).min) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).sec) * ld.append((pvd[i]._etsDate).nsec) */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.min); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3408, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.min); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3408, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3498, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3409 + /* "PyCafe.pyx":3499 * ld.append((pvd[i]._etsDate).hour) * ld.append((pvd[i]._etsDate).min) * ld.append((pvd[i]._etsDate).sec) # <<<<<<<<<<<<<< * ld.append((pvd[i]._etsDate).nsec) * p1.tsDate = ld */ - __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.sec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3409, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i])._etsDate.sec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3409, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3499, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3410 + /* "PyCafe.pyx":3500 * ld.append((pvd[i]._etsDate).min) * ld.append((pvd[i]._etsDate).sec) * ld.append((pvd[i]._etsDate).nsec) # <<<<<<<<<<<<<< * p1.tsDate = ld * */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_long((__pyx_v_pvd[__pyx_v_i])._etsDate.nsec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3410, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_long((__pyx_v_pvd[__pyx_v_i])._etsDate.nsec); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3410, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_ld, __pyx_t_9); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":3411 + /* "PyCafe.pyx":3501 * ld.append((pvd[i]._etsDate).sec) * ld.append((pvd[i]._etsDate).nsec) * p1.tsDate = ld # <<<<<<<<<<<<<< @@ -74458,17 +76547,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __Pyx_DECREF(__pyx_v_p1->tsDate); __pyx_v_p1->tsDate = __pyx_v_ld; - /* "PyCafe.pyx":3413 + /* "PyCafe.pyx":3503 * p1.tsDate = ld * * pvdList.append(p1) # <<<<<<<<<<<<<< * * # free(pvd) */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_pvdList, ((PyObject *)__pyx_v_p1)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3413, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_pvdList, ((PyObject *)__pyx_v_p1)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3503, __pyx_L1_error) } - /* "PyCafe.pyx":3417 + /* "PyCafe.pyx":3507 * # free(pvd) * * return pvdList, status # <<<<<<<<<<<<<< @@ -74476,9 +76565,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3417, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3417, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_pvdList); __Pyx_GIVEREF(__pyx_v_pvdList); @@ -74490,7 +76579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3204 + /* "PyCafe.pyx":3294 * * ################################################################################## * def getPVList(self, handleList, str dt='native', cacheFlag=False): # <<<<<<<<<<<<<< @@ -74525,7 +76614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_274getPVList(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":3425 +/* "PyCafe.pyx":3515 * ################################################################################## * * def printStatusIfError(self, handleList, statusList): # <<<<<<<<<<<<<< @@ -74564,11 +76653,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_277printStatusIfError(PyObject *__pyx_ case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_statusList)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("printStatusIfError", 1, 2, 2, 1); __PYX_ERR(3, 3425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("printStatusIfError", 1, 2, 2, 1); __PYX_ERR(3, 3515, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "printStatusIfError") < 0)) __PYX_ERR(3, 3425, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "printStatusIfError") < 0)) __PYX_ERR(3, 3515, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -74581,7 +76670,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_277printStatusIfError(PyObject *__pyx_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("printStatusIfError", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("printStatusIfError", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3515, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.printStatusIfError", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -74620,7 +76709,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_v_handleList); __Pyx_INCREF(__pyx_v_statusList); - /* "PyCafe.pyx":3427 + /* "PyCafe.pyx":3517 * def printStatusIfError(self, handleList, statusList): * ################################################################################## * cdef str _METHOD = "printStatusIfError" # <<<<<<<<<<<<<< @@ -74630,7 +76719,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_n_u_printStatusIfError); __pyx_v__METHOD = __pyx_n_u_printStatusIfError; - /* "PyCafe.pyx":3429 + /* "PyCafe.pyx":3519 * cdef str _METHOD = "printStatusIfError" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -74658,40 +76747,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3430 + /* "PyCafe.pyx":3520 * * if isinstance(handleList, (str, int, long)): * handleListB = [] # <<<<<<<<<<<<<< * handleListB.append(handleList) * handleList = [] */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3430, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_handleListB = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3431 + /* "PyCafe.pyx":3521 * if isinstance(handleList, (str, int, long)): * handleListB = [] * handleListB.append(handleList) # <<<<<<<<<<<<<< * handleList = [] * handleList = handleListB */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3431, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3521, __pyx_L1_error) - /* "PyCafe.pyx":3432 + /* "PyCafe.pyx":3522 * handleListB = [] * handleListB.append(handleList) * handleList = [] # <<<<<<<<<<<<<< * handleList = handleListB * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3432, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3433 + /* "PyCafe.pyx":3523 * handleListB.append(handleList) * handleList = [] * handleList = handleListB # <<<<<<<<<<<<<< @@ -74701,7 +76790,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_v_handleListB); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_v_handleListB); - /* "PyCafe.pyx":3429 + /* "PyCafe.pyx":3519 * cdef str _METHOD = "printStatusIfError" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -74710,34 +76799,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj */ } - /* "PyCafe.pyx":3435 + /* "PyCafe.pyx":3525 * handleList = handleListB * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3435, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3436 + /* "PyCafe.pyx":3526 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3436, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3436, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3526, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3435 + /* "PyCafe.pyx":3525 * handleList = handleListB * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -74747,14 +76836,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj goto __pyx_L7; } - /* "PyCafe.pyx":3437 + /* "PyCafe.pyx":3527 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("{} {} {}".format(self._exception_text, _METHOD, * "First input argument should be a 'list' of of type if handles or if PVs")) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3437, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_3 != 0); @@ -74771,14 +76860,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3438 + /* "PyCafe.pyx":3528 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< * "First input argument should be a 'list' of of type if handles or if PVs")) * */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -74795,7 +76884,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_4}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -74803,13 +76892,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_4}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -74823,19 +76912,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a_4); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a_4); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_a_4); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3438, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 3438, __pyx_L1_error) + __PYX_ERR(3, 3528, __pyx_L1_error) - /* "PyCafe.pyx":3437 + /* "PyCafe.pyx":3527 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -74845,7 +76934,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj } __pyx_L7:; - /* "PyCafe.pyx":3441 + /* "PyCafe.pyx":3531 * "First input argument should be a 'list' of of type if handles or if PVs")) * * if isinstance(statusList, (int, long)): # <<<<<<<<<<<<<< @@ -74866,40 +76955,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3442 + /* "PyCafe.pyx":3532 * * if isinstance(statusList, (int, long)): * statusListB = [] # <<<<<<<<<<<<<< * statusListB.append(statusList) * statusList = [] */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3442, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_statusListB = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3443 + /* "PyCafe.pyx":3533 * if isinstance(statusList, (int, long)): * statusListB = [] * statusListB.append(statusList) # <<<<<<<<<<<<<< * statusList = [] * statusList = statusListB */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_statusListB, __pyx_v_statusList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3443, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_statusListB, __pyx_v_statusList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3533, __pyx_L1_error) - /* "PyCafe.pyx":3444 + /* "PyCafe.pyx":3534 * statusListB = [] * statusListB.append(statusList) * statusList = [] # <<<<<<<<<<<<<< * statusList = statusListB * */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3444, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_statusList, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3445 + /* "PyCafe.pyx":3535 * statusListB.append(statusList) * statusList = [] * statusList = statusListB # <<<<<<<<<<<<<< @@ -74909,7 +76998,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_v_statusListB); __Pyx_DECREF_SET(__pyx_v_statusList, __pyx_v_statusListB); - /* "PyCafe.pyx":3441 + /* "PyCafe.pyx":3531 * "First input argument should be a 'list' of of type if handles or if PVs")) * * if isinstance(statusList, (int, long)): # <<<<<<<<<<<<<< @@ -74918,7 +77007,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj */ } - /* "PyCafe.pyx":3447 + /* "PyCafe.pyx":3537 * statusList = statusListB * * if not isinstance(statusList, (list)): # <<<<<<<<<<<<<< @@ -74929,14 +77018,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3448 + /* "PyCafe.pyx":3538 * * if not isinstance(statusList, (list)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< * "Second input argument should be of of type ")) * */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_9 = NULL; __pyx_t_8 = 0; @@ -74953,7 +77042,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_should_be}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -74961,13 +77050,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_should_be}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_7 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -74981,19 +77070,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_Second_input_argument_should_be); __Pyx_GIVEREF(__pyx_kp_u_Second_input_argument_should_be); PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_8, __pyx_kp_u_Second_input_argument_should_be); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3448, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 3448, __pyx_L1_error) + __PYX_ERR(3, 3538, __pyx_L1_error) - /* "PyCafe.pyx":3447 + /* "PyCafe.pyx":3537 * statusList = statusListB * * if not isinstance(statusList, (list)): # <<<<<<<<<<<<<< @@ -75002,14 +77091,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj */ } - /* "PyCafe.pyx":3451 + /* "PyCafe.pyx":3541 * "Second input argument should be of of type ")) * * if not isinstance(statusList[0], (int, long, float)): # <<<<<<<<<<<<<< * raise Exception("{} {} {}".format(self._exception_text, _METHOD, * "Second input argument should be a of of type ")) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_statusList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3451, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_statusList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_1 != 0); @@ -75033,14 +77122,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3452 + /* "PyCafe.pyx":3542 * * if not isinstance(statusList[0], (int, long, float)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< * "Second input argument should be a of of type ")) * */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -75057,7 +77146,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_should_be_2}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -75065,13 +77154,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_Second_input_argument_should_be_2}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -75085,19 +77174,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_Second_input_argument_should_be_2); __Pyx_GIVEREF(__pyx_kp_u_Second_input_argument_should_be_2); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_Second_input_argument_should_be_2); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3452, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 3452, __pyx_L1_error) + __PYX_ERR(3, 3542, __pyx_L1_error) - /* "PyCafe.pyx":3451 + /* "PyCafe.pyx":3541 * "Second input argument should be of of type ")) * * if not isinstance(statusList[0], (int, long, float)): # <<<<<<<<<<<<<< @@ -75106,48 +77195,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj */ } - /* "PyCafe.pyx":3458 + /* "PyCafe.pyx":3548 * # do next step to avoid: * # warning: comparison between signed and unsigned integer expressions * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3458, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3548, __pyx_L1_error) __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":3460 + /* "PyCafe.pyx":3550 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * self._c_cafe.printStatusIfError(v, statusList) */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3460, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3460, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3550, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3460, __pyx_L1_error) + __PYX_ERR(3, 3550, __pyx_L1_error) } } - /* "PyCafe.pyx":3462 + /* "PyCafe.pyx":3552 * v.push_back(handleList[i]) * * self._c_cafe.printStatusIfError(v, statusList) # <<<<<<<<<<<<<< * return * */ - __pyx_t_14 = __pyx_convert_vector_from_py_int(__pyx_v_statusList); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 3462, __pyx_L1_error) + __pyx_t_14 = __pyx_convert_vector_from_py_int(__pyx_v_statusList); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 3552, __pyx_L1_error) (void)(__pyx_v_self->_c_cafe->printStatusIfError(__pyx_v_v, __pyx_t_14)); - /* "PyCafe.pyx":3463 + /* "PyCafe.pyx":3553 * * self._c_cafe.printStatusIfError(v, statusList) * return # <<<<<<<<<<<<<< @@ -75158,7 +77247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":3425 + /* "PyCafe.pyx":3515 * ################################################################################## * * def printStatusIfError(self, handleList, statusList): # <<<<<<<<<<<<<< @@ -75187,7 +77276,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_276printStatusIfError(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":3468 +/* "PyCafe.pyx":3558 * * ################################################################################## * def getAsyn(self, handleList): # <<<<<<<<<<<<<< @@ -75233,7 +77322,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __Pyx_RefNannySetupContext("getAsyn", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":3470 + /* "PyCafe.pyx":3560 * def getAsyn(self, handleList): * ################################################################################## * cdef str _METHOD = "getAsyn" # <<<<<<<<<<<<<< @@ -75243,7 +77332,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __Pyx_INCREF(__pyx_n_u_getAsyn); __pyx_v__METHOD = __pyx_n_u_getAsyn; - /* "PyCafe.pyx":3472 + /* "PyCafe.pyx":3562 * cdef str _METHOD = "getAsyn" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -75271,28 +77360,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3473 + /* "PyCafe.pyx":3563 * * if isinstance(handleList, (str, int, long)): * handleListB = [] # <<<<<<<<<<<<<< * handleListB.append(handleList) * #handleList = [] */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3473, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_handleListB = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3474 + /* "PyCafe.pyx":3564 * if isinstance(handleList, (str, int, long)): * handleListB = [] * handleListB.append(handleList) # <<<<<<<<<<<<<< * #handleList = [] * handleList = handleListB */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3474, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3564, __pyx_L1_error) - /* "PyCafe.pyx":3476 + /* "PyCafe.pyx":3566 * handleListB.append(handleList) * #handleList = [] * handleList = handleListB # <<<<<<<<<<<<<< @@ -75302,7 +77391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __Pyx_INCREF(__pyx_v_handleListB); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_v_handleListB); - /* "PyCafe.pyx":3472 + /* "PyCafe.pyx":3562 * cdef str _METHOD = "getAsyn" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -75311,34 +77400,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":3478 + /* "PyCafe.pyx":3568 * handleList = handleListB * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3478, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3479 + /* "PyCafe.pyx":3569 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3479, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3479, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3569, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3478 + /* "PyCafe.pyx":3568 * handleList = handleListB * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -75348,14 +77437,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy goto __pyx_L7; } - /* "PyCafe.pyx":3480 + /* "PyCafe.pyx":3570 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("{} {} {}".format(self._exception_text, _METHOD, * "First input argument should be a 'list' of of type if handles or if PVs")) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3480, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_3 != 0); @@ -75372,14 +77461,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3481 + /* "PyCafe.pyx":3571 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< * "First input argument should be a 'list' of of type if handles or if PVs")) * */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -75396,7 +77485,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_4}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -75404,13 +77493,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_a_4}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -75424,19 +77513,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_a_4); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_a_4); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_a_4); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3481, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 3481, __pyx_L1_error) + __PYX_ERR(3, 3571, __pyx_L1_error) - /* "PyCafe.pyx":3480 + /* "PyCafe.pyx":3570 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -75446,58 +77535,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy } __pyx_L7:; - /* "PyCafe.pyx":3486 + /* "PyCafe.pyx":3576 * cdef vector[unsigned int] v * cdef vector[int] vStatus * v.reserve(len(handleList)) # <<<<<<<<<<<<<< * vStatus.reserve(len(handleList)) * */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3486, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3576, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_10); - /* "PyCafe.pyx":3487 + /* "PyCafe.pyx":3577 * cdef vector[int] vStatus * v.reserve(len(handleList)) * vStatus.reserve(len(handleList)) # <<<<<<<<<<<<<< * * # do next step to avoid: */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3487, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3577, __pyx_L1_error) __pyx_v_vStatus.reserve(__pyx_t_10); - /* "PyCafe.pyx":3491 + /* "PyCafe.pyx":3581 * # do next step to avoid: * # warning: comparison between signed and unsigned integer expressions * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3491, __pyx_L1_error) + __pyx_t_10 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3581, __pyx_L1_error) __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":3493 + /* "PyCafe.pyx":3583 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * # Need to copy to a vector since */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3493, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3493, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_13); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3493, __pyx_L1_error) + __PYX_ERR(3, 3583, __pyx_L1_error) } } - /* "PyCafe.pyx":3497 + /* "PyCafe.pyx":3587 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -75512,7 +77601,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":3498 + /* "PyCafe.pyx":3588 * # Coercion from Python not allowed without the GIL * with nogil: * status = self._c_cafe.getV(v, vStatus) # <<<<<<<<<<<<<< @@ -75522,7 +77611,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getV(__pyx_v_v, __pyx_v_vStatus); } - /* "PyCafe.pyx":3497 + /* "PyCafe.pyx":3587 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -75541,7 +77630,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":3500 + /* "PyCafe.pyx":3590 * status = self._c_cafe.getV(v, vStatus) * * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -75551,7 +77640,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3501 + /* "PyCafe.pyx":3591 * * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -75561,18 +77650,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3502 + /* "PyCafe.pyx":3592 * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error/Warning from def getAsyn: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3502, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3503 + /* "PyCafe.pyx":3593 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error/Warning from def getAsyn: ") * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -75581,7 +77670,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3501 + /* "PyCafe.pyx":3591 * * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -75590,7 +77679,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":3500 + /* "PyCafe.pyx":3590 * status = self._c_cafe.getV(v, vStatus) * * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -75599,7 +77688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":3505 + /* "PyCafe.pyx":3595 * self._c_cafe.printStatusMessage(status) * * return status, vStatus # <<<<<<<<<<<<<< @@ -75607,11 +77696,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3505, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3505, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3505, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); @@ -75623,7 +77712,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3468 + /* "PyCafe.pyx":3558 * * ################################################################################## * def getAsyn(self, handleList): # <<<<<<<<<<<<<< @@ -75650,7 +77739,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_278getAsyn(struct __pyx_obj_6PyCafe_Cy return __pyx_r; } -/* "PyCafe.pyx":3513 +/* "PyCafe.pyx":3603 * ################################################################################## * @verify_handlepv * def waitForGetEvent(self, handlePV): # <<<<<<<<<<<<<< @@ -75680,17 +77769,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("waitForGetEvent", 0); - /* "PyCafe.pyx":3515 + /* "PyCafe.pyx":3605 * def waitForGetEvent(self, handlePV): * * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.waitForGetEvent(handle) */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3515, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3605, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":3516 + /* "PyCafe.pyx":3606 * * cdef unsigned int handle = handlePV * with nogil: # <<<<<<<<<<<<<< @@ -75705,7 +77794,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":3517 + /* "PyCafe.pyx":3607 * cdef unsigned int handle = handlePV * with nogil: * status = self._c_cafe.waitForGetEvent(handle) # <<<<<<<<<<<<<< @@ -75715,7 +77804,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->waitForGetEvent(__pyx_v_handle); } - /* "PyCafe.pyx":3516 + /* "PyCafe.pyx":3606 * * cdef unsigned int handle = handlePV * with nogil: # <<<<<<<<<<<<<< @@ -75734,7 +77823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P } } - /* "PyCafe.pyx":3518 + /* "PyCafe.pyx":3608 * with nogil: * status = self._c_cafe.waitForGetEvent(handle) * return status # <<<<<<<<<<<<<< @@ -75742,13 +77831,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P * # END: def waitForGetEvent(self, handlePV) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3518, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3513 + /* "PyCafe.pyx":3603 * ################################################################################## * @verify_handlepv * def waitForGetEvent(self, handlePV): # <<<<<<<<<<<<<< @@ -75769,7 +77858,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_280waitForGetEvent(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":3524 +/* "PyCafe.pyx":3614 * * ################################################################################## * def waitForBundledEvents(self, handleList): # <<<<<<<<<<<<<< @@ -75813,7 +77902,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __Pyx_RefNannySetupContext("waitForBundledEvents", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":3525 + /* "PyCafe.pyx":3615 * ################################################################################## * def waitForBundledEvents(self, handleList): * cdef str _METHOD = "waitForBundledEvents(self, handleList)" # <<<<<<<<<<<<<< @@ -75823,7 +77912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __Pyx_INCREF(__pyx_kp_u_waitForBundledEvents_self_handle); __pyx_v__METHOD = __pyx_kp_u_waitForBundledEvents_self_handle; - /* "PyCafe.pyx":3527 + /* "PyCafe.pyx":3617 * cdef str _METHOD = "waitForBundledEvents(self, handleList)" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -75851,28 +77940,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3528 + /* "PyCafe.pyx":3618 * * if isinstance(handleList, (str, int, long)): * handleListB = [] # <<<<<<<<<<<<<< * handleListB.append(handleList) * #handleList = [] */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3528, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_handleListB = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3529 + /* "PyCafe.pyx":3619 * if isinstance(handleList, (str, int, long)): * handleListB = [] * handleListB.append(handleList) # <<<<<<<<<<<<<< * #handleList = [] * handleList = handleListB */ - __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3529, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_handleListB, __pyx_v_handleList); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(3, 3619, __pyx_L1_error) - /* "PyCafe.pyx":3531 + /* "PyCafe.pyx":3621 * handleListB.append(handleList) * #handleList = [] * handleList = handleListB # <<<<<<<<<<<<<< @@ -75882,7 +77971,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __Pyx_INCREF(__pyx_v_handleListB); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_v_handleListB); - /* "PyCafe.pyx":3527 + /* "PyCafe.pyx":3617 * cdef str _METHOD = "waitForBundledEvents(self, handleList)" * * if isinstance(handleList, (str, int, long)): # <<<<<<<<<<<<<< @@ -75891,7 +77980,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o */ } - /* "PyCafe.pyx":3533 + /* "PyCafe.pyx":3623 * handleList = handleListB * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -75902,20 +77991,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_1 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3534 + /* "PyCafe.pyx":3624 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3534, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3624, __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(3, 3534, __pyx_L1_error) + __PYX_ERR(3, 3624, __pyx_L1_error) - /* "PyCafe.pyx":3533 + /* "PyCafe.pyx":3623 * handleList = handleListB * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -75924,34 +78013,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o */ } - /* "PyCafe.pyx":3537 + /* "PyCafe.pyx":3627 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3537, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":3538 + /* "PyCafe.pyx":3628 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3538, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3538, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3628, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3537 + /* "PyCafe.pyx":3627 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -75961,14 +78050,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o goto __pyx_L8; } - /* "PyCafe.pyx":3539 + /* "PyCafe.pyx":3629 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3539, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyInt_Check(__pyx_t_4); __pyx_t_2 = (__pyx_t_1 != 0); @@ -75985,20 +78074,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_1 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3540 + /* "PyCafe.pyx":3630 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__68, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3540, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__68, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3630, __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(3, 3540, __pyx_L1_error) + __PYX_ERR(3, 3630, __pyx_L1_error) - /* "PyCafe.pyx":3539 + /* "PyCafe.pyx":3629 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -76008,58 +78097,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o } __pyx_L8:; - /* "PyCafe.pyx":3546 + /* "PyCafe.pyx":3636 * cdef vector[int] vRB * * v.reserve(len(handleList)) # <<<<<<<<<<<<<< * vRB.reserve(len(handleList)) * for i in range(0, len(handleList)): */ - __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3546, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3636, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_6); - /* "PyCafe.pyx":3547 + /* "PyCafe.pyx":3637 * * v.reserve(len(handleList)) * vRB.reserve(len(handleList)) # <<<<<<<<<<<<<< * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages */ - __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3547, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3637, __pyx_L1_error) __pyx_v_vRB.reserve(__pyx_t_6); - /* "PyCafe.pyx":3548 + /* "PyCafe.pyx":3638 * v.reserve(len(handleList)) * vRB.reserve(len(handleList)) * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3548, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3638, __pyx_L1_error) __pyx_t_7 = __pyx_t_6; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":3550 + /* "PyCafe.pyx":3640 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * # Wait for bundle */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3550, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3550, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3640, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_v.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3550, __pyx_L1_error) + __PYX_ERR(3, 3640, __pyx_L1_error) } } - /* "PyCafe.pyx":3553 + /* "PyCafe.pyx":3643 * * # Wait for bundle * with nogil: # <<<<<<<<<<<<<< @@ -76074,7 +78163,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o #endif /*try:*/ { - /* "PyCafe.pyx":3554 + /* "PyCafe.pyx":3644 * # Wait for bundle * with nogil: * status = self._c_cafe.waitForBundledEvents(v, vRB) # <<<<<<<<<<<<<< @@ -76084,7 +78173,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_v_status = __pyx_v_self->_c_cafe->waitForBundledEvents(__pyx_v_v, __pyx_v_vRB); } - /* "PyCafe.pyx":3553 + /* "PyCafe.pyx":3643 * * # Wait for bundle * with nogil: # <<<<<<<<<<<<<< @@ -76103,7 +78192,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o } } - /* "PyCafe.pyx":3555 + /* "PyCafe.pyx":3645 * with nogil: * status = self._c_cafe.waitForBundledEvents(v, vRB) * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -76113,7 +78202,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3556 + /* "PyCafe.pyx":3646 * status = self._c_cafe.waitForBundledEvents(v, vRB) * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -76123,18 +78212,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3557 + /* "PyCafe.pyx":3647 * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def waitForBundledEvents: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * return status */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3557, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":3558 + /* "PyCafe.pyx":3648 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def waitForBundledEvents: ") * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -76143,7 +78232,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":3556 + /* "PyCafe.pyx":3646 * status = self._c_cafe.waitForBundledEvents(v, vRB) * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -76152,7 +78241,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o */ } - /* "PyCafe.pyx":3559 + /* "PyCafe.pyx":3649 * print("Error in def waitForBundledEvents: ") * self._c_cafe.printStatusMessage(status) * return status # <<<<<<<<<<<<<< @@ -76160,13 +78249,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3559, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3555 + /* "PyCafe.pyx":3645 * with nogil: * status = self._c_cafe.waitForBundledEvents(v, vRB) * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -76175,7 +78264,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o */ } - /* "PyCafe.pyx":3560 + /* "PyCafe.pyx":3650 * self._c_cafe.printStatusMessage(status) * return status * return status, vRB # <<<<<<<<<<<<<< @@ -76183,11 +78272,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o * # END: def waitForBundledEvents(self, handleList): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3560, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = __pyx_convert_vector_to_py_int(__pyx_v_vRB); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3560, __pyx_L1_error) + __pyx_t_10 = __pyx_convert_vector_to_py_int(__pyx_v_vRB); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 3650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3560, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_4); @@ -76199,7 +78288,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3524 + /* "PyCafe.pyx":3614 * * ################################################################################## * def waitForBundledEvents(self, handleList): # <<<<<<<<<<<<<< @@ -76225,7 +78314,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_282waitForBundledEvents(struct __pyx_o return __pyx_r; } -/* "PyCafe.pyx":3567 +/* "PyCafe.pyx":3657 * ################################################################################## * * def getScalarArray(self, handleList, str dt='native', bint cacheFlag=False): # <<<<<<<<<<<<<< @@ -76278,7 +78367,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_285getScalarArray(PyObject *__pyx_v_se } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getScalarArray") < 0)) __PYX_ERR(3, 3567, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getScalarArray") < 0)) __PYX_ERR(3, 3657, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -76294,20 +78383,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_285getScalarArray(PyObject *__pyx_v_se __pyx_v_handleList = values[0]; __pyx_v_dt = ((PyObject*)values[1]); if (values[2]) { - __pyx_v_cacheFlag = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_cacheFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3567, __pyx_L3_error) + __pyx_v_cacheFlag = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_cacheFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3657, __pyx_L3_error) } else { __pyx_v_cacheFlag = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getScalarArray", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3567, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getScalarArray", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3657, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getScalarArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3567, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3657, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_284getScalarArray(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag); /* function exit code */ @@ -76368,7 +78457,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_RefNannySetupContext("getScalarArray", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":3569 + /* "PyCafe.pyx":3659 * def getScalarArray(self, handleList, str dt='native', bint cacheFlag=False): * * cdef str _METHOD = "getScalarArray(handleList, str dt, bint cacheFlag)" # <<<<<<<<<<<<<< @@ -76378,7 +78467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_INCREF(__pyx_kp_u_getScalarArray_handleList_str_dt); __pyx_v__METHOD = __pyx_kp_u_getScalarArray_handleList_str_dt; - /* "PyCafe.pyx":3573 + /* "PyCafe.pyx":3663 * # cdef float [::1] mvFloat #C-contiguous * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -76389,20 +78478,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3574 + /* "PyCafe.pyx":3664 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__70, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3574, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__70, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 3574, __pyx_L1_error) + __PYX_ERR(3, 3664, __pyx_L1_error) - /* "PyCafe.pyx":3573 + /* "PyCafe.pyx":3663 * # cdef float [::1] mvFloat #C-contiguous * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -76411,34 +78500,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3577 + /* "PyCafe.pyx":3667 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3577, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3578 + /* "PyCafe.pyx":3668 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3578, __pyx_L1_error) - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3578, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3668, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3577 + /* "PyCafe.pyx":3667 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -76448,14 +78537,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L4; } - /* "PyCafe.pyx":3579 + /* "PyCafe.pyx":3669 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3579, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_Check(__pyx_t_3); __pyx_t_4 = (__pyx_t_2 != 0); @@ -76472,20 +78561,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3580 + /* "PyCafe.pyx":3670 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__71, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3580, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__71, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 3580, __pyx_L1_error) + __PYX_ERR(3, 3670, __pyx_L1_error) - /* "PyCafe.pyx":3579 + /* "PyCafe.pyx":3669 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -76495,29 +78584,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __pyx_L4:; - /* "PyCafe.pyx":3583 + /* "PyCafe.pyx":3673 * First input argument, should be a 'list' of of type if handles or if PVs") * * nelemPrevious = [] # <<<<<<<<<<<<<< * * for i in range(0, len(handleList)): */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3583, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_nelemPrevious = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3585 + /* "PyCafe.pyx":3675 * nelemPrevious = [] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * nelemPrevious.append(self._c_cafe.setNelemToOne(handleList[i])) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3585, __pyx_L1_error) - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3675, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -76525,16 +78614,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3675, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -76542,17 +78631,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3675, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3675, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3585, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -76562,7 +78651,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3585, __pyx_L1_error) + else __PYX_ERR(3, 3675, __pyx_L1_error) } break; } @@ -76571,23 +78660,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3586 + /* "PyCafe.pyx":3676 * * for i in range(0, len(handleList)): * nelemPrevious.append(self._c_cafe.setNelemToOne(handleList[i])) # <<<<<<<<<<<<<< * * # pack into numpy */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3586, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3586, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToOne(__pyx_t_8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3586, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToOne(__pyx_t_8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3586, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3585 + /* "PyCafe.pyx":3675 * nelemPrevious = [] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -76597,37 +78686,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3592 + /* "PyCafe.pyx":3682 * cdef vector[int] vStatus * * v.reserve(len(handleList)) # <<<<<<<<<<<<<< * vStatus.reserve(len(handleList)) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3592, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3682, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_5); - /* "PyCafe.pyx":3593 + /* "PyCafe.pyx":3683 * * v.reserve(len(handleList)) * vStatus.reserve(len(handleList)) # <<<<<<<<<<<<<< * * for i in range(0, len(handleList)): */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3593, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3683, __pyx_L1_error) __pyx_v_vStatus.reserve(__pyx_t_5); - /* "PyCafe.pyx":3595 + /* "PyCafe.pyx":3685 * vStatus.reserve(len(handleList)) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3595, __pyx_L1_error) - __pyx_t_6 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3685, __pyx_L1_error) + __pyx_t_6 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -76635,16 +78724,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) { __pyx_t_3 = __pyx_t_6; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3685, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; for (;;) { @@ -76652,17 +78741,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3685, __pyx_L1_error) #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3685, __pyx_L1_error) #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3595, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } @@ -76672,7 +78761,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3595, __pyx_L1_error) + else __PYX_ERR(3, 3685, __pyx_L1_error) } break; } @@ -76681,25 +78770,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3597 + /* "PyCafe.pyx":3687 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * cdef vector[int] vRB */ - __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3597, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3597, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3687, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3597, __pyx_L1_error) + __PYX_ERR(3, 3687, __pyx_L1_error) } - /* "PyCafe.pyx":3595 + /* "PyCafe.pyx":3685 * vStatus.reserve(len(handleList)) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -76709,7 +78798,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3600 + /* "PyCafe.pyx":3690 * * cdef vector[int] vRB * status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -76718,7 +78807,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":3602 + /* "PyCafe.pyx":3692 * status = ICAFE_NORMAL * * if (cacheFlag == False): # <<<<<<<<<<<<<< @@ -76728,7 +78817,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_cacheFlag == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3605 + /* "PyCafe.pyx":3695 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -76743,7 +78832,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":3606 + /* "PyCafe.pyx":3696 * # Coercion from Python not allowed without the GIL * with nogil: * status = self._c_cafe.getV(v, vStatus) # <<<<<<<<<<<<<< @@ -76753,7 +78842,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->getV(__pyx_v_v, __pyx_v_vStatus); } - /* "PyCafe.pyx":3605 + /* "PyCafe.pyx":3695 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -76772,7 +78861,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":3614 + /* "PyCafe.pyx":3704 * # Functionality not yet moved to CAFE:: * # Required for when dt='native' * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -76782,20 +78871,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3615 + /* "PyCafe.pyx":3705 * # Required for when dt='native' * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): # <<<<<<<<<<<<<< * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle */ - __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -76803,16 +78892,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3705, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -76820,17 +78909,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3705, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3705, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3615, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -76840,7 +78929,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3615, __pyx_L1_error) + else __PYX_ERR(3, 3705, __pyx_L1_error) } break; } @@ -76849,27 +78938,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3616 + /* "PyCafe.pyx":3706 * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): # <<<<<<<<<<<<<< * # getHandle * for j in range(0, (i-1)): */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3616, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3706, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_vStatus[__pyx_t_10]) == ICAFE_WAITING_FOR_PREV_CALLBACK) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3618 + /* "PyCafe.pyx":3708 * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle * for j in range(0, (i-1)): # <<<<<<<<<<<<<< * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): */ - __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -76877,16 +78966,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_12 = 0; __pyx_t_13 = NULL; } else { - __pyx_t_12 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_12 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_13 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 3708, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -76894,17 +78983,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3708, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3708, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3618, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -76914,7 +79003,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3618, __pyx_L1_error) + else __PYX_ERR(3, 3708, __pyx_L1_error) } break; } @@ -76923,41 +79012,41 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3619 + /* "PyCafe.pyx":3709 * # getHandle * for j in range(0, (i-1)): * if(v[j] == v[i]): # <<<<<<<<<<<<<< * if (vStatus[j] == ICAFE_NORMAL): * vStatus[i] = vStatus[j] */ - __pyx_t_14 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3619, __pyx_L1_error) - __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3619, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3709, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3709, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_v[__pyx_t_14]) == (__pyx_v_v[__pyx_t_15])) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3620 + /* "PyCafe.pyx":3710 * for j in range(0, (i-1)): * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): # <<<<<<<<<<<<<< * vStatus[i] = vStatus[j] * */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3620, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3710, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_vStatus[__pyx_t_10]) == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3621 + /* "PyCafe.pyx":3711 * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): * vStatus[i] = vStatus[j] # <<<<<<<<<<<<<< * * # ca_poll() Not required as above will flush! */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3621, __pyx_L1_error) - __pyx_t_16 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3621, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3711, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3711, __pyx_L1_error) (__pyx_v_vStatus[__pyx_t_16]) = (__pyx_v_vStatus[__pyx_t_10]); - /* "PyCafe.pyx":3620 + /* "PyCafe.pyx":3710 * for j in range(0, (i-1)): * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -76966,7 +79055,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3619 + /* "PyCafe.pyx":3709 * # getHandle * for j in range(0, (i-1)): * if(v[j] == v[i]): # <<<<<<<<<<<<<< @@ -76975,7 +79064,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3618 + /* "PyCafe.pyx":3708 * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle * for j in range(0, (i-1)): # <<<<<<<<<<<<<< @@ -76985,7 +79074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3616 + /* "PyCafe.pyx":3706 * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): # <<<<<<<<<<<<<< @@ -76994,7 +79083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3615 + /* "PyCafe.pyx":3705 * # Required for when dt='native' * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): # <<<<<<<<<<<<<< @@ -77004,7 +79093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3614 + /* "PyCafe.pyx":3704 * # Functionality not yet moved to CAFE:: * # Required for when dt='native' * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -77013,7 +79102,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3627 + /* "PyCafe.pyx":3717 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -77028,7 +79117,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":3628 + /* "PyCafe.pyx":3718 * * with nogil: * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) # <<<<<<<<<<<<<< @@ -77038,7 +79127,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_v_statusBundle = __pyx_v_self->_c_cafe->waitForBundledEvents(__pyx_v_v, __pyx_v_vRB); } - /* "PyCafe.pyx":3627 + /* "PyCafe.pyx":3717 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -77057,7 +79146,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":3629 + /* "PyCafe.pyx":3719 * with nogil: * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -77067,7 +79156,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_statusBundle != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3630 + /* "PyCafe.pyx":3720 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -77077,18 +79166,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3631 + /* "PyCafe.pyx":3721 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarArray: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3631, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3632 + /* "PyCafe.pyx":3722 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarArray: ") * self._c_cafe.printStatusMessage(statusBundle) # <<<<<<<<<<<<<< @@ -77097,7 +79186,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_statusBundle); - /* "PyCafe.pyx":3630 + /* "PyCafe.pyx":3720 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -77106,7 +79195,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3629 + /* "PyCafe.pyx":3719 * with nogil: * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -77115,7 +79204,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3602 + /* "PyCafe.pyx":3692 * status = ICAFE_NORMAL * * if (cacheFlag == False): # <<<<<<<<<<<<<< @@ -77124,7 +79213,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3634 + /* "PyCafe.pyx":3724 * self._c_cafe.printStatusMessage(statusBundle) * * cdef unsigned int dtcheck = CAFE_NOT_REQUESTED # native type not yet know # <<<<<<<<<<<<<< @@ -77133,35 +79222,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_dtcheck = CAFE_NOT_REQUESTED; - /* "PyCafe.pyx":3635 + /* "PyCafe.pyx":3725 * * cdef unsigned int dtcheck = CAFE_NOT_REQUESTED # native type not yet know * dtcheck = getMatchedDataType(dt, dtcheck) # <<<<<<<<<<<<<< * * #print ("dt=", dt, "dtcheck=", dtcheck) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3635, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3635, __pyx_L1_error) + __pyx_t_11 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3635, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3725, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_v_dtcheck = __pyx_t_8; - /* "PyCafe.pyx":3639 + /* "PyCafe.pyx":3729 * #print ("dt=", dt, "dtcheck=", dtcheck) * * localList = [] # <<<<<<<<<<<<<< * cdef bytes bytesVal * */ - __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3639, __pyx_L1_error) + __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_v_localList = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3642 + /* "PyCafe.pyx":3732 * cdef bytes bytesVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -77171,7 +79260,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":3644 + /* "PyCafe.pyx":3734 * if dtcheck in [CAFE_STRING]: * * self.vStr.clear() # <<<<<<<<<<<<<< @@ -77180,17 +79269,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_self->vStr.clear(); - /* "PyCafe.pyx":3645 + /* "PyCafe.pyx":3735 * * self.vStr.clear() * self.vStr.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3645, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3735, __pyx_L1_error) __pyx_v_self->vStr.reserve(__pyx_t_5); - /* "PyCafe.pyx":3647 + /* "PyCafe.pyx":3737 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -77205,7 +79294,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":3648 + /* "PyCafe.pyx":3738 * * with nogil: * status = self._c_cafe.getCacheVStr(v, self.vStr, vStatus) # <<<<<<<<<<<<<< @@ -77215,7 +79304,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVStr(__pyx_v_v, __pyx_v_self->vStr, __pyx_v_vStatus); } - /* "PyCafe.pyx":3647 + /* "PyCafe.pyx":3737 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -77234,17 +79323,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":3650 + /* "PyCafe.pyx":3740 * status = self._c_cafe.getCacheVStr(v, self.vStr, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3650, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3740, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -77252,16 +79341,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_6 = __pyx_t_11; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3740, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -77269,17 +79358,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3740, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3740, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3650, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -77289,7 +79378,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3650, __pyx_L1_error) + else __PYX_ERR(3, 3740, __pyx_L1_error) } break; } @@ -77298,23 +79387,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3652 + /* "PyCafe.pyx":3742 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * bytesVal = ( self.vStr[i] ) */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3652, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3742, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3652, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3652, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3742, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3651 + /* "PyCafe.pyx":3741 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -77323,15 +79412,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_8, __pyx_t_17)); - /* "PyCafe.pyx":3654 + /* "PyCafe.pyx":3744 * handleList[i], nelemPrevious[i]) * * bytesVal = ( self.vStr[i] ) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): */ - __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3654, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3654, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3744, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); @@ -77339,7 +79428,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":3655 + /* "PyCafe.pyx":3745 * * bytesVal = ( self.vStr[i] ) * encoding = False # <<<<<<<<<<<<<< @@ -77348,25 +79437,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":3656 + /* "PyCafe.pyx":3746 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3656, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3656, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3656, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3656, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3657 + /* "PyCafe.pyx":3747 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -77382,7 +79471,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":3658 + /* "PyCafe.pyx":3748 * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -77391,14 +79480,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3658, __pyx_L34_error) + __PYX_ERR(3, 3748, __pyx_L34_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3658, __pyx_L34_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3748, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3659 + /* "PyCafe.pyx":3749 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -77407,7 +79496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3657 + /* "PyCafe.pyx":3747 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -77423,7 +79512,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3660 + /* "PyCafe.pyx":3750 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -77438,7 +79527,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L36_except_error; __pyx_L36_except_error:; - /* "PyCafe.pyx":3657 + /* "PyCafe.pyx":3747 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -77458,7 +79547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L41_try_end:; } - /* "PyCafe.pyx":3656 + /* "PyCafe.pyx":3746 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): # <<<<<<<<<<<<<< @@ -77467,7 +79556,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3662 + /* "PyCafe.pyx":3752 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77477,7 +79566,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3663 + /* "PyCafe.pyx":3753 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77493,7 +79582,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":3664 + /* "PyCafe.pyx":3754 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -77502,14 +79591,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3664, __pyx_L43_error) + __PYX_ERR(3, 3754, __pyx_L43_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3664, __pyx_L43_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3754, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3665 + /* "PyCafe.pyx":3755 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -77518,7 +79607,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3663 + /* "PyCafe.pyx":3753 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77534,7 +79623,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3666 + /* "PyCafe.pyx":3756 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -77549,7 +79638,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L45_except_error; __pyx_L45_except_error:; - /* "PyCafe.pyx":3663 + /* "PyCafe.pyx":3753 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77569,7 +79658,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L50_try_end:; } - /* "PyCafe.pyx":3662 + /* "PyCafe.pyx":3752 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77578,7 +79667,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3668 + /* "PyCafe.pyx":3758 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77588,7 +79677,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3669 + /* "PyCafe.pyx":3759 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77604,7 +79693,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":3670 + /* "PyCafe.pyx":3760 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -77613,14 +79702,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3670, __pyx_L52_error) + __PYX_ERR(3, 3760, __pyx_L52_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3670, __pyx_L52_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3760, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3671 + /* "PyCafe.pyx":3761 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -77629,7 +79718,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3669 + /* "PyCafe.pyx":3759 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77645,7 +79734,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3672 + /* "PyCafe.pyx":3762 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -77660,7 +79749,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L54_except_error; __pyx_L54_except_error:; - /* "PyCafe.pyx":3669 + /* "PyCafe.pyx":3759 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -77680,7 +79769,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L59_try_end:; } - /* "PyCafe.pyx":3668 + /* "PyCafe.pyx":3758 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77689,7 +79778,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3674 + /* "PyCafe.pyx":3764 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77699,20 +79788,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3675 + /* "PyCafe.pyx":3765 * pass * if not encoding: * strVal = self.vStr[i] # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3675, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3675, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3765, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3674 + /* "PyCafe.pyx":3764 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -77721,17 +79810,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3677 + /* "PyCafe.pyx":3767 * strVal = self.vStr[i] * * localList.append(strVal) # <<<<<<<<<<<<<< * * return localList, status, vStatus */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3677, __pyx_L1_error) } - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3677, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3767, __pyx_L1_error) } + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3767, __pyx_L1_error) - /* "PyCafe.pyx":3650 + /* "PyCafe.pyx":3740 * status = self._c_cafe.getCacheVStr(v, self.vStr, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -77741,7 +79830,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3679 + /* "PyCafe.pyx":3769 * localList.append(strVal) * * return localList, status, vStatus # <<<<<<<<<<<<<< @@ -77749,11 +79838,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3679, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3679, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3679, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -77768,7 +79857,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3642 + /* "PyCafe.pyx":3732 * cdef bytes bytesVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -77778,7 +79867,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_SHORT: - /* "PyCafe.pyx":3681 + /* "PyCafe.pyx":3771 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -77788,7 +79877,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py case CAFE_CHAR: case CAFE_LONG: - /* "PyCafe.pyx":3683 + /* "PyCafe.pyx":3773 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * * self.vInt.clear() # <<<<<<<<<<<<<< @@ -77797,17 +79886,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_self->vInt.clear(); - /* "PyCafe.pyx":3684 + /* "PyCafe.pyx":3774 * * self.vInt.clear() * self.vInt.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3684, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3774, __pyx_L1_error) __pyx_v_self->vInt.reserve(__pyx_t_5); - /* "PyCafe.pyx":3686 + /* "PyCafe.pyx":3776 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -77822,7 +79911,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":3687 + /* "PyCafe.pyx":3777 * * with nogil: * status = self._c_cafe.getCacheVLong(v, self.vInt, vStatus) # <<<<<<<<<<<<<< @@ -77832,7 +79921,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVLong(__pyx_v_v, __pyx_v_self->vInt, __pyx_v_vStatus); } - /* "PyCafe.pyx":3686 + /* "PyCafe.pyx":3776 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -77851,17 +79940,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":3692 + /* "PyCafe.pyx":3782 * #print ("status " , vStatus[i], " i", i, self._c_cafe.getPVFromHandle(handleList[i])) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3692, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3782, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -77869,16 +79958,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3782, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -77886,17 +79975,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3782, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3782, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3692, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -77906,7 +79995,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3692, __pyx_L1_error) + else __PYX_ERR(3, 3782, __pyx_L1_error) } break; } @@ -77915,23 +80004,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3694 + /* "PyCafe.pyx":3784 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * # localList=[] */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3694, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3694, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3784, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3694, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3694, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3784, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3693 + /* "PyCafe.pyx":3783 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -77940,7 +80029,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_17, __pyx_t_8)); - /* "PyCafe.pyx":3692 + /* "PyCafe.pyx":3782 * #print ("status " , vStatus[i], " i", i, self._c_cafe.getPVFromHandle(handleList[i])) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -77950,7 +80039,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3700 + /* "PyCafe.pyx":3790 * * # for i in range(0, len(self.vInt)): * return self.vInt, status, vStatus # <<<<<<<<<<<<<< @@ -77958,13 +80047,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3700, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3700, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3700, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3700, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_3); @@ -77979,7 +80068,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_23 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3681 + /* "PyCafe.pyx":3771 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -77989,7 +80078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_FLOAT: - /* "PyCafe.pyx":3702 + /* "PyCafe.pyx":3792 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -77998,7 +80087,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ case CAFE_DOUBLE: - /* "PyCafe.pyx":3704 + /* "PyCafe.pyx":3794 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * * self.vFloat.clear() # <<<<<<<<<<<<<< @@ -78007,17 +80096,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_self->vFloat.clear(); - /* "PyCafe.pyx":3705 + /* "PyCafe.pyx":3795 * * self.vFloat.clear() * self.vFloat.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3705, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3795, __pyx_L1_error) __pyx_v_self->vFloat.reserve(__pyx_t_5); - /* "PyCafe.pyx":3707 + /* "PyCafe.pyx":3797 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -78032,7 +80121,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":3708 + /* "PyCafe.pyx":3798 * * with nogil: * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) # <<<<<<<<<<<<<< @@ -78042,7 +80131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVDouble(__pyx_v_v, __pyx_v_self->vFloat, __pyx_v_vStatus); } - /* "PyCafe.pyx":3707 + /* "PyCafe.pyx":3797 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -78061,17 +80150,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":3710 + /* "PyCafe.pyx":3800 * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3710, __pyx_L1_error) - __pyx_t_23 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3800, __pyx_L1_error) + __pyx_t_23 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -78079,16 +80168,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_23)) || PyTuple_CheckExact(__pyx_t_23)) { __pyx_t_6 = __pyx_t_23; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_23); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_23); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3800, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; for (;;) { @@ -78096,17 +80185,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_23 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_23 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3800, __pyx_L1_error) #else - __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_23 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_23 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3800, __pyx_L1_error) #else - __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3710, __pyx_L1_error) + __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); #endif } @@ -78116,7 +80205,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3710, __pyx_L1_error) + else __PYX_ERR(3, 3800, __pyx_L1_error) } break; } @@ -78125,23 +80214,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3712 + /* "PyCafe.pyx":3802 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * # for i in range(0, len(vStatus)): */ - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3712, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3712, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3712, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3712, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3711 + /* "PyCafe.pyx":3801 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -78150,7 +80239,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_8, __pyx_t_17)); - /* "PyCafe.pyx":3710 + /* "PyCafe.pyx":3800 * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -78160,7 +80249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3727 + /* "PyCafe.pyx":3817 * * # for i in range(0, len(self.vFloat)): * return self.vFloat, status, vStatus # <<<<<<<<<<<<<< @@ -78168,13 +80257,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * # Native */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3727, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3727, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_11 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3727, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3727, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); @@ -78189,7 +80278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3702 + /* "PyCafe.pyx":3792 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -78200,7 +80289,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py default: break; } - /* "PyCafe.pyx":3740 + /* "PyCafe.pyx":3830 * # Create temporary group from handleList * # Does group exist? * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -78209,16 +80298,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_pvd = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":3756 + /* "PyCafe.pyx":3846 * * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * pvd[i].setNelem(1) * */ - __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -78226,16 +80315,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3846, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -78243,17 +80332,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3846, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3846, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3756, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -78263,7 +80352,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3756, __pyx_L1_error) + else __PYX_ERR(3, 3846, __pyx_L1_error) } break; } @@ -78272,17 +80361,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3757 + /* "PyCafe.pyx":3847 * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): * pvd[i].setNelem(1) # <<<<<<<<<<<<<< * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3757, __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(3, 3847, __pyx_L1_error) (void)((__pyx_v_pvd[__pyx_t_12]).setNelem(1)); - /* "PyCafe.pyx":3756 + /* "PyCafe.pyx":3846 * * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -78292,7 +80381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3759 + /* "PyCafe.pyx":3849 * pvd[i].setNelem(1) * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) # <<<<<<<<<<<<<< @@ -78301,17 +80390,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_statusNoWait = __pyx_v_self->_c_cafe->getCachePVArrayNoWait(__pyx_v_v, __pyx_v_pvd); - /* "PyCafe.pyx":3761 + /* "PyCafe.pyx":3851 * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3761, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3851, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -78319,16 +80408,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3851, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -78336,17 +80425,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3851, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3851, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3761, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -78356,7 +80445,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3761, __pyx_L1_error) + else __PYX_ERR(3, 3851, __pyx_L1_error) } break; } @@ -78365,24 +80454,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3762 + /* "PyCafe.pyx":3852 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * statusList = [] */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3762, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3762, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3852, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3762, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3762, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3852, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_17, __pyx_t_8)); - /* "PyCafe.pyx":3761 + /* "PyCafe.pyx":3851 * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -78392,19 +80481,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3764 + /* "PyCafe.pyx":3854 * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) * * statusList = [] # <<<<<<<<<<<<<< * statusFlag = True * statusLocal = ICAFE_NORMAL */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3764, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_statusList = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3765 + /* "PyCafe.pyx":3855 * * statusList = [] * statusFlag = True # <<<<<<<<<<<<<< @@ -78413,19 +80502,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_statusFlag = 1; - /* "PyCafe.pyx":3766 + /* "PyCafe.pyx":3856 * statusList = [] * statusFlag = True * statusLocal = ICAFE_NORMAL # <<<<<<<<<<<<<< * if (cacheFlag): * */ - __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3766, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_statusLocal = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":3767 + /* "PyCafe.pyx":3857 * statusFlag = True * statusLocal = ICAFE_NORMAL * if (cacheFlag): # <<<<<<<<<<<<<< @@ -78435,16 +80524,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_1 = (__pyx_v_cacheFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3773 + /* "PyCafe.pyx":3863 * # self._c_cafe.printStatusMessage(status) * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: */ - __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -78452,16 +80541,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3863, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -78469,17 +80558,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3863, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3863, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3773, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -78489,7 +80578,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3773, __pyx_L1_error) + else __PYX_ERR(3, 3863, __pyx_L1_error) } break; } @@ -78498,41 +80587,41 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3774 + /* "PyCafe.pyx":3864 * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3774, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3774, __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(3, 3864, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3774, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3864, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3775 + /* "PyCafe.pyx":3865 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarArray") */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3775, __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(3, 3865, __pyx_L1_error) __pyx_t_1 = (((__pyx_v_pvd[__pyx_t_12]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3776 + /* "PyCafe.pyx":3866 * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( # <<<<<<<<<<<<<< * handleList), " in PyCafe def getScalarArray") * print("Handle= ", handleList[i], " PV=", */ - __pyx_t_12 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3776, __pyx_L1_error) - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3776, __pyx_L1_error) + __pyx_t_12 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3866, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_23 = PyTuple_New(5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3776, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_kp_u_Error_in_Element); __Pyx_GIVEREF(__pyx_kp_u_Error_in_Element); @@ -78549,43 +80638,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_kp_u_in_PyCafe_def_getScalarArray); PyTuple_SET_ITEM(__pyx_t_23, 4, __pyx_kp_u_in_PyCafe_def_getScalarArray); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_23, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3776, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_23, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3778 + /* "PyCafe.pyx":3868 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarArray") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3778, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":3779 + /* "PyCafe.pyx":3869 * handleList), " in PyCafe def getScalarArray") * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) */ - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3779, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3779, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_8)); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3779, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_8)); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - /* "PyCafe.pyx":3778 + /* "PyCafe.pyx":3868 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarArray") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3778, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_Handle_2); __Pyx_GIVEREF(__pyx_kp_u_Handle_2); @@ -78599,22 +80688,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_23); __pyx_t_3 = 0; __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3778, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3780 + /* "PyCafe.pyx":3870 * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3780, __pyx_L1_error) - __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3780, __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(3, 3870, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3780, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -78622,22 +80711,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3780, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3781 + /* "PyCafe.pyx":3871 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) # <<<<<<<<<<<<<< * if statusFlag: * statusLocal = pvd[i].getStatus() */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3781, __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(3, 3871, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatusMessage((__pyx_v_pvd[__pyx_t_12]).getStatus()); - /* "PyCafe.pyx":3782 + /* "PyCafe.pyx":3872 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -78647,20 +80736,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_1 = (__pyx_v_statusFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3783 + /* "PyCafe.pyx":3873 * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: * statusLocal = pvd[i].getStatus() # <<<<<<<<<<<<<< * statusFlag = False * */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3783, __pyx_L1_error) - __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3783, __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(3, 3873, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF_SET(__pyx_v_statusLocal, __pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3784 + /* "PyCafe.pyx":3874 * if statusFlag: * statusLocal = pvd[i].getStatus() * statusFlag = False # <<<<<<<<<<<<<< @@ -78669,7 +80758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_statusFlag = 0; - /* "PyCafe.pyx":3782 + /* "PyCafe.pyx":3872 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -78678,7 +80767,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3775 + /* "PyCafe.pyx":3865 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -78687,7 +80776,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3773 + /* "PyCafe.pyx":3863 * # self._c_cafe.printStatusMessage(status) * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -78697,7 +80786,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3767 + /* "PyCafe.pyx":3857 * statusFlag = True * statusLocal = ICAFE_NORMAL * if (cacheFlag): # <<<<<<<<<<<<<< @@ -78706,28 +80795,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3794 + /* "PyCafe.pyx":3884 * cdef unsigned int dtn * * localList = [] # <<<<<<<<<<<<<< * * */ - __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3794, __pyx_L1_error) + __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF_SET(__pyx_v_localList, ((PyObject*)__pyx_t_11)); __pyx_t_11 = 0; - /* "PyCafe.pyx":3797 + /* "PyCafe.pyx":3887 * * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * * dtn = pvd[i].getDataType() */ - __pyx_t_11 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -78735,16 +80824,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_23, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_23, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_23 = __pyx_t_11; __Pyx_INCREF(__pyx_t_23); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_23 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_23 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_7 = Py_TYPE(__pyx_t_23)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_23)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3887, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -78752,17 +80841,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py if (likely(PyList_CheckExact(__pyx_t_23))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_23)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3887, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_23)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3887, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3797, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -78772,7 +80861,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3797, __pyx_L1_error) + else __PYX_ERR(3, 3887, __pyx_L1_error) } break; } @@ -78781,33 +80870,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3799 + /* "PyCafe.pyx":3889 * for i in range(0, v.size()): #len(handleList)): * * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< * dtcheck = getMatchedDataType(dt, dtn) * */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3799, __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(3, 3889, __pyx_L1_error) __pyx_v_dtn = (__pyx_v_pvd[__pyx_t_12]).getDataType(); - /* "PyCafe.pyx":3800 + /* "PyCafe.pyx":3890 * * dtn = pvd[i].getDataType() * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * #print ("dt=", dt, "dtn=", dtn, "dtcheck=", dtcheck) */ - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3800, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3800, __pyx_L1_error) + __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3800, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3890, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_dtcheck = __pyx_t_8; - /* "PyCafe.pyx":3806 + /* "PyCafe.pyx":3896 * #print (pvd[i].getAsDouble()) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -78817,15 +80906,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":3807 + /* "PyCafe.pyx":3897 * * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3807, __pyx_L1_error) - __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3807, __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(3, 3897, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_11 = __pyx_t_6; __Pyx_INCREF(__pyx_t_11); @@ -78833,7 +80922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_11)); __pyx_t_11 = 0; - /* "PyCafe.pyx":3808 + /* "PyCafe.pyx":3898 * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -78842,22 +80931,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":3809 + /* "PyCafe.pyx":3899 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3809, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_t_15]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3809, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3899, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_t_15]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_11, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 3809, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_11, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 3899, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3810 + /* "PyCafe.pyx":3900 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -78873,7 +80962,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":3811 + /* "PyCafe.pyx":3901 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -78882,14 +80971,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3811, __pyx_L83_error) + __PYX_ERR(3, 3901, __pyx_L83_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3811, __pyx_L83_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3901, __pyx_L83_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3812 + /* "PyCafe.pyx":3902 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -78898,7 +80987,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3810 + /* "PyCafe.pyx":3900 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -78915,7 +81004,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3813 + /* "PyCafe.pyx":3903 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -78930,7 +81019,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L85_except_error; __pyx_L85_except_error:; - /* "PyCafe.pyx":3810 + /* "PyCafe.pyx":3900 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -78950,7 +81039,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L90_try_end:; } - /* "PyCafe.pyx":3809 + /* "PyCafe.pyx":3899 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -78959,7 +81048,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3815 + /* "PyCafe.pyx":3905 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -78969,7 +81058,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3816 + /* "PyCafe.pyx":3906 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -78985,7 +81074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":3817 + /* "PyCafe.pyx":3907 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -78994,14 +81083,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3817, __pyx_L92_error) + __PYX_ERR(3, 3907, __pyx_L92_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3817, __pyx_L92_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3907, __pyx_L92_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3818 + /* "PyCafe.pyx":3908 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -79010,7 +81099,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3816 + /* "PyCafe.pyx":3906 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -79027,7 +81116,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3819 + /* "PyCafe.pyx":3909 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -79042,7 +81131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L94_except_error; __pyx_L94_except_error:; - /* "PyCafe.pyx":3816 + /* "PyCafe.pyx":3906 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -79062,7 +81151,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L99_try_end:; } - /* "PyCafe.pyx":3815 + /* "PyCafe.pyx":3905 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -79071,7 +81160,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3821 + /* "PyCafe.pyx":3911 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -79081,7 +81170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3822 + /* "PyCafe.pyx":3912 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -79097,7 +81186,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":3823 + /* "PyCafe.pyx":3913 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -79106,14 +81195,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3823, __pyx_L101_error) + __PYX_ERR(3, 3913, __pyx_L101_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3823, __pyx_L101_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3913, __pyx_L101_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3824 + /* "PyCafe.pyx":3914 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -79122,7 +81211,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3822 + /* "PyCafe.pyx":3912 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -79139,7 +81228,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3825 + /* "PyCafe.pyx":3915 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -79154,7 +81243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L103_except_error; __pyx_L103_except_error:; - /* "PyCafe.pyx":3822 + /* "PyCafe.pyx":3912 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -79174,7 +81263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_L108_try_end:; } - /* "PyCafe.pyx":3821 + /* "PyCafe.pyx":3911 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -79183,7 +81272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3827 + /* "PyCafe.pyx":3917 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -79193,20 +81282,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3828 + /* "PyCafe.pyx":3918 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3828, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3828, __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(3, 3918, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3827 + /* "PyCafe.pyx":3917 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -79215,17 +81304,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3830 + /* "PyCafe.pyx":3920 * strVal = pvd[i].getAsString() * * localList.append(strVal) # <<<<<<<<<<<<<< * * ##localList.append(pvd[i].getAsString()) */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3830, __pyx_L1_error) } - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3830, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 3920, __pyx_L1_error) } + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3920, __pyx_L1_error) - /* "PyCafe.pyx":3806 + /* "PyCafe.pyx":3896 * #print (pvd[i].getAsDouble()) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -79235,20 +81324,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_SHORT: - /* "PyCafe.pyx":3834 + /* "PyCafe.pyx":3924 * ##localList.append(pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3834, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3834, __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(3, 3924, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3834, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3924, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3833 + /* "PyCafe.pyx":3923 * * ##localList.append(pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -79258,20 +81347,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_FLOAT: - /* "PyCafe.pyx":3836 + /* "PyCafe.pyx":3926 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3836, __pyx_L1_error) - __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3836, __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(3, 3926, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3836, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3926, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3835 + /* "PyCafe.pyx":3925 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -79281,31 +81370,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_ENUM: - /* "PyCafe.pyx":3840 + /* "PyCafe.pyx":3930 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): # <<<<<<<<<<<<<< * localList.append(pvd[i].getAsString()) * else: */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3840, __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(3, 3930, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPV((__pyx_v_pvd[__pyx_t_12]).getPVName())) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3841 + /* "PyCafe.pyx":3931 * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3841, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3841, __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(3, 3931, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3841, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3931, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3840 + /* "PyCafe.pyx":3930 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): # <<<<<<<<<<<<<< @@ -79315,7 +81404,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py goto __pyx_L110; } - /* "PyCafe.pyx":3843 + /* "PyCafe.pyx":3933 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -79323,15 +81412,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3843, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3843, __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(3, 3933, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3843, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __pyx_L110:; - /* "PyCafe.pyx":3837 + /* "PyCafe.pyx":3927 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -79341,20 +81430,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_CHAR: - /* "PyCafe.pyx":3847 + /* "PyCafe.pyx":3937 * elif dtcheck == CAFE_CHAR: * # pvd[i].getAsChar() * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3847, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3847, __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(3, 3937, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3847, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3937, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3845 + /* "PyCafe.pyx":3935 * localList.append(pvd[i].getAsLong()) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -79364,20 +81453,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_LONG: - /* "PyCafe.pyx":3849 + /* "PyCafe.pyx":3939 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3849, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3849, __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(3, 3939, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3849, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3939, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3848 + /* "PyCafe.pyx":3938 * # pvd[i].getAsChar() * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -79387,20 +81476,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; case CAFE_DOUBLE: - /* "PyCafe.pyx":3851 + /* "PyCafe.pyx":3941 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(0) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3851, __pyx_L1_error) - __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3851, __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(3, 3941, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3851, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3850 + /* "PyCafe.pyx":3940 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -79410,16 +81499,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; default: - /* "PyCafe.pyx":3853 + /* "PyCafe.pyx":3943 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(0) # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarArray:") */ - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3853, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3943, __pyx_L1_error) - /* "PyCafe.pyx":3854 + /* "PyCafe.pyx":3944 * else: * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: # <<<<<<<<<<<<<< @@ -79429,25 +81518,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_HIGH) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3855 + /* "PyCafe.pyx":3945 * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarArray:") # <<<<<<<<<<<<<< * print("Entering 0 for element", i, * "as channel is not connected!") */ - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3855, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3856 + /* "PyCafe.pyx":3946 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarArray:") * print("Entering 0 for element", i, # <<<<<<<<<<<<<< * "as channel is not connected!") * */ - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3856, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_Entering_0_for_element); __Pyx_GIVEREF(__pyx_kp_u_Entering_0_for_element); @@ -79458,12 +81547,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __Pyx_INCREF(__pyx_kp_u_as_channel_is_not_connected); __Pyx_GIVEREF(__pyx_kp_u_as_channel_is_not_connected); PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u_as_channel_is_not_connected); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3856, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3854 + /* "PyCafe.pyx":3944 * else: * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: # <<<<<<<<<<<<<< @@ -79474,7 +81563,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py break; } - /* "PyCafe.pyx":3797 + /* "PyCafe.pyx":3887 * * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -79484,7 +81573,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py } __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":3862 + /* "PyCafe.pyx":3952 * * # free(pvd) * if cacheFlag: # <<<<<<<<<<<<<< @@ -79494,7 +81583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_2 = (__pyx_v_cacheFlag != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3863 + /* "PyCafe.pyx":3953 * # free(pvd) * if cacheFlag: * return localList, statusLocal, statusList # <<<<<<<<<<<<<< @@ -79502,7 +81591,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * # use vstatus instead of statusList (as cache is NoWait) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3863, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -79517,7 +81606,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_23 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3862 + /* "PyCafe.pyx":3952 * * # free(pvd) * if cacheFlag: # <<<<<<<<<<<<<< @@ -79526,7 +81615,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":3866 + /* "PyCafe.pyx":3956 * * # use vstatus instead of statusList (as cache is NoWait) * return localList, status, vStatus # <<<<<<<<<<<<<< @@ -79534,11 +81623,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3866, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 3956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3866, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3866, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -79553,7 +81642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3567 + /* "PyCafe.pyx":3657 * ################################################################################## * * def getScalarArray(self, handleList, str dt='native', bint cacheFlag=False): # <<<<<<<<<<<<<< @@ -79587,7 +81676,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_284getScalarArray(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":3877 +/* "PyCafe.pyx":3967 * ################################################################################## * * def getStrScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79617,7 +81706,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_286getStrScalarList(struct __pyx_obj_6 PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getStrScalarList", 0); - /* "PyCafe.pyx":3879 + /* "PyCafe.pyx":3969 * def getStrScalarList(self, handleList): * ################################################################################## * return self.getScalarList(handleList, dt='str') # <<<<<<<<<<<<<< @@ -79625,17 +81714,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_286getStrScalarList(struct __pyx_obj_6 * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3879, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3879, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3879, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 3879, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3879, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 3969, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -79644,7 +81733,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_286getStrScalarList(struct __pyx_obj_6 __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3877 + /* "PyCafe.pyx":3967 * ################################################################################## * * def getStrScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79668,7 +81757,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_286getStrScalarList(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":3882 +/* "PyCafe.pyx":3972 * * ################################################################################## * def getIntScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79698,7 +81787,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_288getIntScalarList(struct __pyx_obj_6 PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getIntScalarList", 0); - /* "PyCafe.pyx":3884 + /* "PyCafe.pyx":3974 * def getIntScalarList(self, handleList): * ################################################################################## * return self.getScalarList(handleList, dt='int') # <<<<<<<<<<<<<< @@ -79706,17 +81795,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_288getIntScalarList(struct __pyx_obj_6 * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3884, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3884, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3884, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 3884, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3884, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 3974, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -79725,7 +81814,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_288getIntScalarList(struct __pyx_obj_6 __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3882 + /* "PyCafe.pyx":3972 * * ################################################################################## * def getIntScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79749,7 +81838,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_288getIntScalarList(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":3887 +/* "PyCafe.pyx":3977 * * ################################################################################## * def getFloatScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79779,7 +81868,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_290getFloatScalarList(struct __pyx_obj PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getFloatScalarList", 0); - /* "PyCafe.pyx":3889 + /* "PyCafe.pyx":3979 * def getFloatScalarList(self, handleList): * ################################################################################## * return self.getScalarList(handleList, dt='float') # <<<<<<<<<<<<<< @@ -79787,17 +81876,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_290getFloatScalarList(struct __pyx_obj * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3889, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3889, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handleList); __Pyx_GIVEREF(__pyx_v_handleList); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handleList); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3889, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 3889, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3889, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 3979, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -79806,7 +81895,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_290getFloatScalarList(struct __pyx_obj __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3887 + /* "PyCafe.pyx":3977 * * ################################################################################## * def getFloatScalarList(self, handleList): # <<<<<<<<<<<<<< @@ -79830,7 +81919,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_290getFloatScalarList(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":3892 +/* "PyCafe.pyx":3982 * * ################################################################################## * def getScalarList(self, handleList, dt: str = 'native', # <<<<<<<<<<<<<< @@ -79853,7 +81942,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_293getScalarList(PyObject *__pyx_v_sel PyObject* values[4] = {0,0,0,0}; values[1] = ((PyObject*)__pyx_n_u_native); - /* "PyCafe.pyx":3893 + /* "PyCafe.pyx":3983 * ################################################################################## * def getScalarList(self, handleList, dt: str = 'native', * cacheFlag: bool = False, dictFlag: bool = False): # <<<<<<<<<<<<<< @@ -79902,7 +81991,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_293getScalarList(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getScalarList") < 0)) __PYX_ERR(3, 3892, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getScalarList") < 0)) __PYX_ERR(3, 3982, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -79924,16 +82013,16 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_293getScalarList(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getScalarList", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3892, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getScalarList", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3982, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getScalarList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3892, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 3982, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_292getScalarList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag, __pyx_v_dictFlag); - /* "PyCafe.pyx":3892 + /* "PyCafe.pyx":3982 * * ################################################################################## * def getScalarList(self, handleList, dt: str = 'native', # <<<<<<<<<<<<<< @@ -79999,7 +82088,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_RefNannySetupContext("getScalarList", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":3895 + /* "PyCafe.pyx":3985 * cacheFlag: bool = False, dictFlag: bool = False): * ################################################################################## * cdef str _METHOD = "getScalarList(handleList, str dt, bint cacheFlag)" # <<<<<<<<<<<<<< @@ -80009,7 +82098,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_getScalarList_handleList_str_dt); __pyx_v__METHOD = __pyx_kp_u_getScalarList_handleList_str_dt; - /* "PyCafe.pyx":3899 + /* "PyCafe.pyx":3989 * # cdef float [::1] mvFloat #C-contiguous * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -80020,20 +82109,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3900 + /* "PyCafe.pyx":3990 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3900, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 3900, __pyx_L1_error) + __PYX_ERR(3, 3990, __pyx_L1_error) - /* "PyCafe.pyx":3899 + /* "PyCafe.pyx":3989 * # cdef float [::1] mvFloat #C-contiguous * * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -80042,34 +82131,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3903 + /* "PyCafe.pyx":3993 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3903, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3904 + /* "PyCafe.pyx":3994 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3904, __pyx_L1_error) - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3904, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 3994, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3903 + /* "PyCafe.pyx":3993 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -80079,14 +82168,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L4; } - /* "PyCafe.pyx":3905 + /* "PyCafe.pyx":3995 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3905, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_Check(__pyx_t_3); __pyx_t_4 = (__pyx_t_2 != 0); @@ -80103,20 +82192,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3906 + /* "PyCafe.pyx":3996 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__75, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3906, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__75, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 3906, __pyx_L1_error) + __PYX_ERR(3, 3996, __pyx_L1_error) - /* "PyCafe.pyx":3905 + /* "PyCafe.pyx":3995 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -80126,29 +82215,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __pyx_L4:; - /* "PyCafe.pyx":3909 + /* "PyCafe.pyx":3999 * First input argument, should be a 'list' of of type if handles or if PVs") * * nelemPrevious = [] # <<<<<<<<<<<<<< * * for i in range(0, len(handleList)): */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3909, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_nelemPrevious = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3911 + /* "PyCafe.pyx":4001 * nelemPrevious = [] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * nelemPrevious.append(self._c_cafe.setNelemToOne(handleList[i])) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3911, __pyx_L1_error) - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4001, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -80156,16 +82245,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4001, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -80173,17 +82262,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4001, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4001, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3911, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -80193,7 +82282,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3911, __pyx_L1_error) + else __PYX_ERR(3, 4001, __pyx_L1_error) } break; } @@ -80202,23 +82291,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3912 + /* "PyCafe.pyx":4002 * * for i in range(0, len(handleList)): * nelemPrevious.append(self._c_cafe.setNelemToOne(handleList[i])) # <<<<<<<<<<<<<< * * # c=self.hh.getNelemClient(handleList[i]) */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3912, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3912, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4002, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToOne(__pyx_t_8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3912, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToOne(__pyx_t_8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 3912, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4002, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3911 + /* "PyCafe.pyx":4001 * nelemPrevious = [] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -80228,37 +82317,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3925 + /* "PyCafe.pyx":4015 * cdef vector[int] vStatus * * v.reserve(len(handleList)) # <<<<<<<<<<<<<< * vStatus.reserve(len(handleList)) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3925, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4015, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_5); - /* "PyCafe.pyx":3926 + /* "PyCafe.pyx":4016 * * v.reserve(len(handleList)) * vStatus.reserve(len(handleList)) # <<<<<<<<<<<<<< * * for i in range(0, len(handleList)): */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3926, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4016, __pyx_L1_error) __pyx_v_vStatus.reserve(__pyx_t_5); - /* "PyCafe.pyx":3928 + /* "PyCafe.pyx":4018 * vStatus.reserve(len(handleList)) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3928, __pyx_L1_error) - __pyx_t_6 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4018, __pyx_L1_error) + __pyx_t_6 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -80266,16 +82355,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) { __pyx_t_3 = __pyx_t_6; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4018, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; for (;;) { @@ -80283,17 +82372,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4018, __pyx_L1_error) #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_6); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4018, __pyx_L1_error) #else - __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3928, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } @@ -80303,7 +82392,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3928, __pyx_L1_error) + else __PYX_ERR(3, 4018, __pyx_L1_error) } break; } @@ -80312,25 +82401,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3930 + /* "PyCafe.pyx":4020 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * cdef vector[int] vRB */ - __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3930, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3930, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4020, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; try { __pyx_v_v.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 3930, __pyx_L1_error) + __PYX_ERR(3, 4020, __pyx_L1_error) } - /* "PyCafe.pyx":3928 + /* "PyCafe.pyx":4018 * vStatus.reserve(len(handleList)) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -80340,7 +82429,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3933 + /* "PyCafe.pyx":4023 * * cdef vector[int] vRB * status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -80349,19 +82438,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":3937 + /* "PyCafe.pyx":4027 * cdef bytes bytesVal * * if (cacheFlag == False): # <<<<<<<<<<<<<< * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL */ - __pyx_t_3 = PyObject_RichCompare(__pyx_v_cacheFlag, Py_False, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3937, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3937, __pyx_L1_error) + __pyx_t_3 = PyObject_RichCompare(__pyx_v_cacheFlag, Py_False, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4027, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "PyCafe.pyx":3940 + /* "PyCafe.pyx":4030 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -80376,7 +82465,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":3941 + /* "PyCafe.pyx":4031 * # Coercion from Python not allowed without the GIL * with nogil: * status = self._c_cafe.getV(v, vStatus) # <<<<<<<<<<<<<< @@ -80386,7 +82475,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->getV(__pyx_v_v, __pyx_v_vStatus); } - /* "PyCafe.pyx":3940 + /* "PyCafe.pyx":4030 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -80405,7 +82494,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":3953 + /* "PyCafe.pyx":4043 * # Functionality not yet moved to CAFE:: * # Required for when dt='native' * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -80415,20 +82504,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3954 + /* "PyCafe.pyx":4044 * # Required for when dt='native' * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): # <<<<<<<<<<<<<< * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle */ - __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -80436,16 +82525,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4044, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -80453,17 +82542,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4044, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4044, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3954, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -80473,7 +82562,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3954, __pyx_L1_error) + else __PYX_ERR(3, 4044, __pyx_L1_error) } break; } @@ -80482,27 +82571,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3955 + /* "PyCafe.pyx":4045 * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): # <<<<<<<<<<<<<< * # getHandle * for j in range(0, (i-1)): */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3955, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4045, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_vStatus[__pyx_t_10]) == ICAFE_WAITING_FOR_PREV_CALLBACK) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3957 + /* "PyCafe.pyx":4047 * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle * for j in range(0, (i-1)): # <<<<<<<<<<<<<< * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): */ - __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -80510,16 +82599,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_12 = 0; __pyx_t_13 = NULL; } else { - __pyx_t_12 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_12 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_13 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_13 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 4047, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -80527,17 +82616,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 4047, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) __PYX_ERR(3, 4047, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3957, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -80547,7 +82636,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3957, __pyx_L1_error) + else __PYX_ERR(3, 4047, __pyx_L1_error) } break; } @@ -80556,41 +82645,41 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3958 + /* "PyCafe.pyx":4048 * # getHandle * for j in range(0, (i-1)): * if(v[j] == v[i]): # <<<<<<<<<<<<<< * if (vStatus[j] == ICAFE_NORMAL): * vStatus[i] = vStatus[j] */ - __pyx_t_14 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3958, __pyx_L1_error) - __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3958, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_14 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4048, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4048, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_v[__pyx_t_14]) == (__pyx_v_v[__pyx_t_15])) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3959 + /* "PyCafe.pyx":4049 * for j in range(0, (i-1)): * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): # <<<<<<<<<<<<<< * vStatus[i] = vStatus[j] * */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3959, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4049, __pyx_L1_error) __pyx_t_2 = (((__pyx_v_vStatus[__pyx_t_10]) == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3960 + /* "PyCafe.pyx":4050 * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): * vStatus[i] = vStatus[j] # <<<<<<<<<<<<<< * * # ca_poll() Not required as above will flush! */ - __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3960, __pyx_L1_error) - __pyx_t_16 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3960, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_size_t(__pyx_v_j); if (unlikely((__pyx_t_10 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4050, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4050, __pyx_L1_error) (__pyx_v_vStatus[__pyx_t_16]) = (__pyx_v_vStatus[__pyx_t_10]); - /* "PyCafe.pyx":3959 + /* "PyCafe.pyx":4049 * for j in range(0, (i-1)): * if(v[j] == v[i]): * if (vStatus[j] == ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -80599,7 +82688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3958 + /* "PyCafe.pyx":4048 * # getHandle * for j in range(0, (i-1)): * if(v[j] == v[i]): # <<<<<<<<<<<<<< @@ -80608,7 +82697,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3957 + /* "PyCafe.pyx":4047 * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): * # getHandle * for j in range(0, (i-1)): # <<<<<<<<<<<<<< @@ -80618,7 +82707,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3955 + /* "PyCafe.pyx":4045 * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): * if (vStatus[i] == ICAFE_WAITING_FOR_PREV_CALLBACK): # <<<<<<<<<<<<<< @@ -80627,7 +82716,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3954 + /* "PyCafe.pyx":4044 * # Required for when dt='native' * if (status != ICAFE_NORMAL): * for i in range(0, len(vStatus)): # <<<<<<<<<<<<<< @@ -80637,7 +82726,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3953 + /* "PyCafe.pyx":4043 * # Functionality not yet moved to CAFE:: * # Required for when dt='native' * if (status != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -80646,7 +82735,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3965 + /* "PyCafe.pyx":4055 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -80661,7 +82750,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":3966 + /* "PyCafe.pyx":4056 * * with nogil: * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) # <<<<<<<<<<<<<< @@ -80671,7 +82760,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_v_statusBundle = __pyx_v_self->_c_cafe->waitForBundledEvents(__pyx_v_v, __pyx_v_vRB); } - /* "PyCafe.pyx":3965 + /* "PyCafe.pyx":4055 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -80690,7 +82779,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":3968 + /* "PyCafe.pyx":4058 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -80700,7 +82789,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_statusBundle != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3969 + /* "PyCafe.pyx":4059 * * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -80710,18 +82799,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":3970 + /* "PyCafe.pyx":4060 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarList: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__76, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3970, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__76, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":3971 + /* "PyCafe.pyx":4061 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarList: ") * self._c_cafe.printStatusMessage(statusBundle) # <<<<<<<<<<<<<< @@ -80730,7 +82819,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_statusBundle); - /* "PyCafe.pyx":3969 + /* "PyCafe.pyx":4059 * * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -80739,7 +82828,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3968 + /* "PyCafe.pyx":4058 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -80748,7 +82837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3937 + /* "PyCafe.pyx":4027 * cdef bytes bytesVal * * if (cacheFlag == False): # <<<<<<<<<<<<<< @@ -80757,7 +82846,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":3973 + /* "PyCafe.pyx":4063 * self._c_cafe.printStatusMessage(statusBundle) * * cdef unsigned int dtcheck = CAFE_NOT_REQUESTED # native type not yet know # <<<<<<<<<<<<<< @@ -80766,23 +82855,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_dtcheck = CAFE_NOT_REQUESTED; - /* "PyCafe.pyx":3974 + /* "PyCafe.pyx":4064 * * cdef unsigned int dtcheck = CAFE_NOT_REQUESTED # native type not yet know * dtcheck = getMatchedDataType(dt, dtcheck) # <<<<<<<<<<<<<< * * #print ("dt=", dt, "dtcheck=", dtcheck) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3974, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3974, __pyx_L1_error) + __pyx_t_11 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3974, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4064, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_v_dtcheck = __pyx_t_8; - /* "PyCafe.pyx":3978 + /* "PyCafe.pyx":4068 * #print ("dt=", dt, "dtcheck=", dtcheck) * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -80792,7 +82881,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":3980 + /* "PyCafe.pyx":4070 * if dtcheck in [CAFE_STRING]: * * self.vStr.clear() # <<<<<<<<<<<<<< @@ -80801,17 +82890,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->vStr.clear(); - /* "PyCafe.pyx":3981 + /* "PyCafe.pyx":4071 * * self.vStr.clear() * self.vStr.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3981, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4071, __pyx_L1_error) __pyx_v_self->vStr.reserve(__pyx_t_5); - /* "PyCafe.pyx":3983 + /* "PyCafe.pyx":4073 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -80826,7 +82915,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":3984 + /* "PyCafe.pyx":4074 * * with nogil: * status = self._c_cafe.getCacheVStr(v, self.vStr, vStatus) # <<<<<<<<<<<<<< @@ -80836,7 +82925,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVStr(__pyx_v_v, __pyx_v_self->vStr, __pyx_v_vStatus); } - /* "PyCafe.pyx":3983 + /* "PyCafe.pyx":4073 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -80855,29 +82944,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":3987 + /* "PyCafe.pyx":4077 * * * localList=[] # <<<<<<<<<<<<<< * # statusList=[] * */ - __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3987, __pyx_L1_error) + __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_v_localList = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3990 + /* "PyCafe.pyx":4080 * # statusList=[] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 3990, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4080, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -80885,16 +82974,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_6 = __pyx_t_11; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4080, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -80902,17 +82991,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4080, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4080, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3990, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -80922,7 +83011,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 3990, __pyx_L1_error) + else __PYX_ERR(3, 4080, __pyx_L1_error) } break; } @@ -80931,23 +83020,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3992 + /* "PyCafe.pyx":4082 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * bytesVal = ( self.vStr[i] ) * encoding = False */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3992, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3992, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3992, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3992, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":3991 + /* "PyCafe.pyx":4081 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -80956,15 +83045,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_8, __pyx_t_17)); - /* "PyCafe.pyx":3993 + /* "PyCafe.pyx":4083 * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) * bytesVal = ( self.vStr[i] ) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): */ - __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 3993, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 3993, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4083, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_t_18]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); @@ -80972,7 +83061,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":3994 + /* "PyCafe.pyx":4084 * handleList[i], nelemPrevious[i]) * bytesVal = ( self.vStr[i] ) * encoding = False # <<<<<<<<<<<<<< @@ -80981,25 +83070,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":3995 + /* "PyCafe.pyx":4085 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3995, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 3995, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4085, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3995, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 3995, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4085, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":3996 + /* "PyCafe.pyx":4086 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -81015,7 +83104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":3997 + /* "PyCafe.pyx":4087 * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -81024,14 +83113,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 3997, __pyx_L34_error) + __PYX_ERR(3, 4087, __pyx_L34_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3997, __pyx_L34_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4087, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3998 + /* "PyCafe.pyx":4088 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -81040,7 +83129,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":3996 + /* "PyCafe.pyx":4086 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -81056,7 +83145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":3999 + /* "PyCafe.pyx":4089 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -81071,7 +83160,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L36_except_error; __pyx_L36_except_error:; - /* "PyCafe.pyx":3996 + /* "PyCafe.pyx":4086 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): * try: # <<<<<<<<<<<<<< @@ -81091,7 +83180,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L41_try_end:; } - /* "PyCafe.pyx":3995 + /* "PyCafe.pyx":4085 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handleList[i]): # <<<<<<<<<<<<<< @@ -81100,7 +83189,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4001 + /* "PyCafe.pyx":4091 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81110,7 +83199,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4002 + /* "PyCafe.pyx":4092 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81126,7 +83215,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":4003 + /* "PyCafe.pyx":4093 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -81135,14 +83224,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4003, __pyx_L43_error) + __PYX_ERR(3, 4093, __pyx_L43_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4003, __pyx_L43_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4093, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4004 + /* "PyCafe.pyx":4094 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -81151,7 +83240,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4002 + /* "PyCafe.pyx":4092 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81167,7 +83256,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4005 + /* "PyCafe.pyx":4095 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -81182,7 +83271,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L45_except_error; __pyx_L45_except_error:; - /* "PyCafe.pyx":4002 + /* "PyCafe.pyx":4092 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81202,7 +83291,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L50_try_end:; } - /* "PyCafe.pyx":4001 + /* "PyCafe.pyx":4091 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81211,7 +83300,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4007 + /* "PyCafe.pyx":4097 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81221,7 +83310,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4008 + /* "PyCafe.pyx":4098 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81237,7 +83326,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":4009 + /* "PyCafe.pyx":4099 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -81246,14 +83335,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4009, __pyx_L52_error) + __PYX_ERR(3, 4099, __pyx_L52_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4009, __pyx_L52_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4099, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4010 + /* "PyCafe.pyx":4100 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -81262,7 +83351,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4008 + /* "PyCafe.pyx":4098 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81278,7 +83367,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4011 + /* "PyCafe.pyx":4101 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -81293,7 +83382,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L54_except_error; __pyx_L54_except_error:; - /* "PyCafe.pyx":4008 + /* "PyCafe.pyx":4098 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -81313,7 +83402,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L59_try_end:; } - /* "PyCafe.pyx":4007 + /* "PyCafe.pyx":4097 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81322,7 +83411,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4013 + /* "PyCafe.pyx":4103 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81332,20 +83421,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4014 + /* "PyCafe.pyx":4104 * pass * if not encoding: * strVal = self.vStr[i] # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4014, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_self->vStr[__pyx_t_18])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4014, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_18 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4104, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_self->vStr[__pyx_t_18])); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4013 + /* "PyCafe.pyx":4103 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -81354,17 +83443,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4016 + /* "PyCafe.pyx":4106 * strVal = self.vStr[i] * * localList.append(strVal) # <<<<<<<<<<<<<< * * return localList, status, vStatus */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4016, __pyx_L1_error) } - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4016, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4106, __pyx_L1_error) } + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4106, __pyx_L1_error) - /* "PyCafe.pyx":3990 + /* "PyCafe.pyx":4080 * # statusList=[] * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -81374,7 +83463,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4018 + /* "PyCafe.pyx":4108 * localList.append(strVal) * * return localList, status, vStatus # <<<<<<<<<<<<<< @@ -81382,11 +83471,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4018, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4018, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4018, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -81401,7 +83490,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3978 + /* "PyCafe.pyx":4068 * #print ("dt=", dt, "dtcheck=", dtcheck) * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -81411,7 +83500,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_SHORT: - /* "PyCafe.pyx":4020 + /* "PyCafe.pyx":4110 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -81421,7 +83510,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC case CAFE_CHAR: case CAFE_LONG: - /* "PyCafe.pyx":4022 + /* "PyCafe.pyx":4112 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * * self.vInt.clear() # <<<<<<<<<<<<<< @@ -81430,17 +83519,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->vInt.clear(); - /* "PyCafe.pyx":4023 + /* "PyCafe.pyx":4113 * * self.vInt.clear() * self.vInt.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4023, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4113, __pyx_L1_error) __pyx_v_self->vInt.reserve(__pyx_t_5); - /* "PyCafe.pyx":4025 + /* "PyCafe.pyx":4115 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -81455,7 +83544,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":4026 + /* "PyCafe.pyx":4116 * * with nogil: * status = self._c_cafe.getCacheVLong(v, self.vInt, vStatus) # <<<<<<<<<<<<<< @@ -81465,7 +83554,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVLong(__pyx_v_v, __pyx_v_self->vInt, __pyx_v_vStatus); } - /* "PyCafe.pyx":4025 + /* "PyCafe.pyx":4115 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -81484,17 +83573,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":4031 + /* "PyCafe.pyx":4121 * #print ("status " , vStatus[i], " i", i, self._c_cafe.getPVFromHandle(handleList[i])) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4031, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4121, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -81502,16 +83591,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4121, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -81519,17 +83608,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4121, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4121, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4031, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -81539,7 +83628,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4031, __pyx_L1_error) + else __PYX_ERR(3, 4121, __pyx_L1_error) } break; } @@ -81548,23 +83637,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4033 + /* "PyCafe.pyx":4123 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * # localList=[] */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4033, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4033, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4033, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4033, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4032 + /* "PyCafe.pyx":4122 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -81573,7 +83662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_17, __pyx_t_8)); - /* "PyCafe.pyx":4031 + /* "PyCafe.pyx":4121 * #print ("status " , vStatus[i], " i", i, self._c_cafe.getPVFromHandle(handleList[i])) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -81583,7 +83672,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4039 + /* "PyCafe.pyx":4129 * * # for i in range(0, len(self.vInt)): * return self.vInt, status, vStatus # <<<<<<<<<<<<<< @@ -81591,13 +83680,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4039, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4039, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4039, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4039, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_3); @@ -81612,7 +83701,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_23 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4020 + /* "PyCafe.pyx":4110 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -81622,7 +83711,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_FLOAT: - /* "PyCafe.pyx":4041 + /* "PyCafe.pyx":4131 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -81631,7 +83720,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ case CAFE_DOUBLE: - /* "PyCafe.pyx":4043 + /* "PyCafe.pyx":4133 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * * self.vFloat.clear() # <<<<<<<<<<<<<< @@ -81640,17 +83729,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->vFloat.clear(); - /* "PyCafe.pyx":4044 + /* "PyCafe.pyx":4134 * * self.vFloat.clear() * self.vFloat.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4044, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4134, __pyx_L1_error) __pyx_v_self->vFloat.reserve(__pyx_t_5); - /* "PyCafe.pyx":4046 + /* "PyCafe.pyx":4136 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -81665,7 +83754,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":4047 + /* "PyCafe.pyx":4137 * * with nogil: * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) # <<<<<<<<<<<<<< @@ -81675,7 +83764,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVDouble(__pyx_v_v, __pyx_v_self->vFloat, __pyx_v_vStatus); } - /* "PyCafe.pyx":4046 + /* "PyCafe.pyx":4136 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -81694,17 +83783,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":4049 + /* "PyCafe.pyx":4139 * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4049, __pyx_L1_error) - __pyx_t_23 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4139, __pyx_L1_error) + __pyx_t_23 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -81712,16 +83801,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (likely(PyList_CheckExact(__pyx_t_23)) || PyTuple_CheckExact(__pyx_t_23)) { __pyx_t_6 = __pyx_t_23; __Pyx_INCREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_23); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_23); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4139, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; for (;;) { @@ -81729,17 +83818,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_23 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_23 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4139, __pyx_L1_error) #else - __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_23 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_23 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_5); __Pyx_INCREF(__pyx_t_23); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4139, __pyx_L1_error) #else - __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4049, __pyx_L1_error) + __pyx_t_23 = PySequence_ITEM(__pyx_t_6, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); #endif } @@ -81749,7 +83838,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4049, __pyx_L1_error) + else __PYX_ERR(3, 4139, __pyx_L1_error) } break; } @@ -81758,23 +83847,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4051 + /* "PyCafe.pyx":4141 * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * #for i in range(0, len(vStatus)): */ - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4051, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4051, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4051, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4051, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4050 + /* "PyCafe.pyx":4140 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -81783,7 +83872,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_8, __pyx_t_17)); - /* "PyCafe.pyx":4049 + /* "PyCafe.pyx":4139 * status = self._c_cafe.getCacheVDouble(v, self.vFloat, vStatus) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -81793,7 +83882,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4066 + /* "PyCafe.pyx":4156 * * # for i in range(0, len(self.vFloat)): * return self.vFloat, status, vStatus # <<<<<<<<<<<<<< @@ -81801,13 +83890,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * # Native */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4066, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4066, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_11 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4066, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4066, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); @@ -81822,7 +83911,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4041 + /* "PyCafe.pyx":4131 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -81833,7 +83922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC default: break; } - /* "PyCafe.pyx":4078 + /* "PyCafe.pyx":4168 * * * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -81842,16 +83931,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_pvd = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":4093 + /* "PyCafe.pyx":4183 * * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * pvd[i].setNelem(1) * */ - __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -81859,16 +83948,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4183, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -81876,17 +83965,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4183, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4183, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4093, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -81896,7 +83985,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4093, __pyx_L1_error) + else __PYX_ERR(3, 4183, __pyx_L1_error) } break; } @@ -81905,17 +83994,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4094 + /* "PyCafe.pyx":4184 * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): * pvd[i].setNelem(1) # <<<<<<<<<<<<<< * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4094, __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(3, 4184, __pyx_L1_error) (void)((__pyx_v_pvd[__pyx_t_12]).setNelem(1)); - /* "PyCafe.pyx":4093 + /* "PyCafe.pyx":4183 * * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -81925,7 +84014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4096 + /* "PyCafe.pyx":4186 * pvd[i].setNelem(1) * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) # <<<<<<<<<<<<<< @@ -81934,17 +84023,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_statusNoWait = __pyx_v_self->_c_cafe->getCachePVArrayNoWait(__pyx_v_v, __pyx_v_pvd); - /* "PyCafe.pyx":4098 + /* "PyCafe.pyx":4188 * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) * */ - __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4098, __pyx_L1_error) - __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4188, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -81952,16 +84041,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_3, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_3 = __pyx_t_11; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4188, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -81969,17 +84058,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4188, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4188, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4098, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -81989,7 +84078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4098, __pyx_L1_error) + else __PYX_ERR(3, 4188, __pyx_L1_error) } break; } @@ -81998,24 +84087,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4099 + /* "PyCafe.pyx":4189 * * for i in range(0, len(handleList)): * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< * * statusList = [] */ - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4099, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4099, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4189, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4099, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_nelemPrevious, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4099, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_11); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4189, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_17, __pyx_t_8)); - /* "PyCafe.pyx":4098 + /* "PyCafe.pyx":4188 * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -82025,19 +84114,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4101 + /* "PyCafe.pyx":4191 * self._c_cafe.setNelemToPrevious(handleList[i], nelemPrevious[i]) * * statusList = [] # <<<<<<<<<<<<<< * statusFlag = True * statusLocal = ICAFE_NORMAL */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4101, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_statusList = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4102 + /* "PyCafe.pyx":4192 * * statusList = [] * statusFlag = True # <<<<<<<<<<<<<< @@ -82046,28 +84135,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_statusFlag = 1; - /* "PyCafe.pyx":4103 + /* "PyCafe.pyx":4193 * statusList = [] * statusFlag = True * statusLocal = ICAFE_NORMAL # <<<<<<<<<<<<<< * * */ - __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4103, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_statusLocal = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":4114 + /* "PyCafe.pyx":4204 * # self._c_cafe.printStatusMessage(status) * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: */ - __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -82075,16 +84164,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_11, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_11 = __pyx_t_3; __Pyx_INCREF(__pyx_t_11); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4204, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { @@ -82092,17 +84181,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_11))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4204, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_11)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4204, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4114, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_11, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif } @@ -82112,7 +84201,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4114, __pyx_L1_error) + else __PYX_ERR(3, 4204, __pyx_L1_error) } break; } @@ -82121,41 +84210,41 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4115 + /* "PyCafe.pyx":4205 * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4115, __pyx_L1_error) - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4115, __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(3, 4205, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4115, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4116 + /* "PyCafe.pyx":4206 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarList") */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4116, __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(3, 4206, __pyx_L1_error) __pyx_t_1 = (((__pyx_v_pvd[__pyx_t_12]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4117 + /* "PyCafe.pyx":4207 * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( # <<<<<<<<<<<<<< * handleList), " in PyCafe def getScalarList") * print("Handle= ", handleList[i], " PV=", */ - __pyx_t_12 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4117, __pyx_L1_error) - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4117, __pyx_L1_error) + __pyx_t_12 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4207, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_23 = PyTuple_New(5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4117, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(5); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_kp_u_Error_in_Element); __Pyx_GIVEREF(__pyx_kp_u_Error_in_Element); @@ -82172,43 +84261,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_kp_u_in_PyCafe_def_getScalarList); PyTuple_SET_ITEM(__pyx_t_23, 4, __pyx_kp_u_in_PyCafe_def_getScalarList); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_23, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4117, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_23, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4119 + /* "PyCafe.pyx":4209 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarList") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4119, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":4120 + /* "PyCafe.pyx":4210 * handleList), " in PyCafe def getScalarList") * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) */ - __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4120, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_GetItem(__pyx_v_handleList, __pyx_v_i); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4120, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_23); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_8)); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4120, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_8)); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - /* "PyCafe.pyx":4119 + /* "PyCafe.pyx":4209 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getScalarList") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4119, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_Handle_2); __Pyx_GIVEREF(__pyx_kp_u_Handle_2); @@ -82222,22 +84311,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_23); __pyx_t_3 = 0; __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4119, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4121 + /* "PyCafe.pyx":4211 * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4121, __pyx_L1_error) - __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4121, __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(3, 4211, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4121, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -82245,22 +84334,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_23); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_23); __pyx_t_23 = 0; - __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4121, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4122 + /* "PyCafe.pyx":4212 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) # <<<<<<<<<<<<<< * if statusFlag: * statusLocal = pvd[i].getStatus() */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4122, __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(3, 4212, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatusMessage((__pyx_v_pvd[__pyx_t_12]).getStatus()); - /* "PyCafe.pyx":4123 + /* "PyCafe.pyx":4213 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -82270,20 +84359,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_v_statusFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4124 + /* "PyCafe.pyx":4214 * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: * statusLocal = pvd[i].getStatus() # <<<<<<<<<<<<<< * statusFlag = False * */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4124, __pyx_L1_error) - __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4124, __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(3, 4214, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getStatus()); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_DECREF_SET(__pyx_v_statusLocal, __pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4125 + /* "PyCafe.pyx":4215 * if statusFlag: * statusLocal = pvd[i].getStatus() * statusFlag = False # <<<<<<<<<<<<<< @@ -82292,7 +84381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_statusFlag = 0; - /* "PyCafe.pyx":4123 + /* "PyCafe.pyx":4213 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -82301,7 +84390,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4116 + /* "PyCafe.pyx":4206 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -82310,7 +84399,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4114 + /* "PyCafe.pyx":4204 * # self._c_cafe.printStatusMessage(status) * # status=ICAFE_NORMAL * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -82320,28 +84409,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4135 + /* "PyCafe.pyx":4225 * cdef unsigned int dtn * * localList = [] # <<<<<<<<<<<<<< * * */ - __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4135, __pyx_L1_error) + __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_v_localList = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4138 + /* "PyCafe.pyx":4228 * * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< * * dtn = pvd[i].getDataType() */ - __pyx_t_11 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(((int)__pyx_v_v.size())); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); @@ -82349,16 +84438,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_23, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_23, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; if (likely(PyList_CheckExact(__pyx_t_11)) || PyTuple_CheckExact(__pyx_t_11)) { __pyx_t_23 = __pyx_t_11; __Pyx_INCREF(__pyx_t_23); __pyx_t_5 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_23 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_23 = PyObject_GetIter(__pyx_t_11); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_7 = Py_TYPE(__pyx_t_23)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_23)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4228, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; for (;;) { @@ -82366,17 +84455,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC if (likely(PyList_CheckExact(__pyx_t_23))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_23)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyList_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = PyList_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4228, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_23)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = PyTuple_GET_ITEM(__pyx_t_23, __pyx_t_5); __Pyx_INCREF(__pyx_t_11); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(3, 4228, __pyx_L1_error) #else - __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4138, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(__pyx_t_23, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif } @@ -82386,7 +84475,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(3, 4138, __pyx_L1_error) + else __PYX_ERR(3, 4228, __pyx_L1_error) } break; } @@ -82395,33 +84484,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4140 + /* "PyCafe.pyx":4230 * for i in range(0, v.size()): #len(handleList)): * * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< * dtcheck = getMatchedDataType(dt, dtn) * */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4140, __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(3, 4230, __pyx_L1_error) __pyx_v_dtn = (__pyx_v_pvd[__pyx_t_12]).getDataType(); - /* "PyCafe.pyx":4141 + /* "PyCafe.pyx":4231 * * dtn = pvd[i].getDataType() * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * #print ("dt=", dt, "dtn=", dtn, "dtcheck=", dtcheck) */ - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4141, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4141, __pyx_L1_error) + __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4141, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_dtcheck = __pyx_t_8; - /* "PyCafe.pyx":4147 + /* "PyCafe.pyx":4237 * #print (pvd[i].getAsDouble()) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -82431,15 +84520,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":4149 + /* "PyCafe.pyx":4239 * if dtcheck == CAFE_STRING: * * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4149, __pyx_L1_error) - __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4149, __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(3, 4239, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_11 = __pyx_t_6; __Pyx_INCREF(__pyx_t_11); @@ -82447,7 +84536,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_11)); __pyx_t_11 = 0; - /* "PyCafe.pyx":4150 + /* "PyCafe.pyx":4240 * * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -82456,22 +84545,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4151 + /* "PyCafe.pyx":4241 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4151, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_t_15]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4151, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyInt_As_size_t(__pyx_v_i); if (unlikely((__pyx_t_15 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4241, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_t_15]))); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_11, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4151, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_11, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4152 + /* "PyCafe.pyx":4242 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -82487,7 +84576,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":4153 + /* "PyCafe.pyx":4243 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -82496,14 +84585,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4153, __pyx_L82_error) + __PYX_ERR(3, 4243, __pyx_L82_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4153, __pyx_L82_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4243, __pyx_L82_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4154 + /* "PyCafe.pyx":4244 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -82512,7 +84601,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4152 + /* "PyCafe.pyx":4242 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -82529,7 +84618,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4155 + /* "PyCafe.pyx":4245 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -82544,7 +84633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L84_except_error; __pyx_L84_except_error:; - /* "PyCafe.pyx":4152 + /* "PyCafe.pyx":4242 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -82564,7 +84653,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L89_try_end:; } - /* "PyCafe.pyx":4151 + /* "PyCafe.pyx":4241 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -82573,7 +84662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4157 + /* "PyCafe.pyx":4247 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82583,7 +84672,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4158 + /* "PyCafe.pyx":4248 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82599,7 +84688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "PyCafe.pyx":4159 + /* "PyCafe.pyx":4249 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -82608,14 +84697,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4159, __pyx_L91_error) + __PYX_ERR(3, 4249, __pyx_L91_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4159, __pyx_L91_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4249, __pyx_L91_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4160 + /* "PyCafe.pyx":4250 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -82624,7 +84713,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4158 + /* "PyCafe.pyx":4248 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82641,7 +84730,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4161 + /* "PyCafe.pyx":4251 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -82656,7 +84745,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L93_except_error; __pyx_L93_except_error:; - /* "PyCafe.pyx":4158 + /* "PyCafe.pyx":4248 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82676,7 +84765,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L98_try_end:; } - /* "PyCafe.pyx":4157 + /* "PyCafe.pyx":4247 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82685,7 +84774,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4163 + /* "PyCafe.pyx":4253 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82695,7 +84784,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4164 + /* "PyCafe.pyx":4254 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82711,7 +84800,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_19); /*try:*/ { - /* "PyCafe.pyx":4165 + /* "PyCafe.pyx":4255 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -82720,14 +84809,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4165, __pyx_L100_error) + __PYX_ERR(3, 4255, __pyx_L100_error) } - __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4165, __pyx_L100_error) + __pyx_t_11 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4255, __pyx_L100_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4166 + /* "PyCafe.pyx":4256 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -82736,7 +84825,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4164 + /* "PyCafe.pyx":4254 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82753,7 +84842,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4167 + /* "PyCafe.pyx":4257 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -82768,7 +84857,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L102_except_error; __pyx_L102_except_error:; - /* "PyCafe.pyx":4164 + /* "PyCafe.pyx":4254 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -82788,7 +84877,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_L107_try_end:; } - /* "PyCafe.pyx":4163 + /* "PyCafe.pyx":4253 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82797,7 +84886,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4169 + /* "PyCafe.pyx":4259 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82807,20 +84896,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4170 + /* "PyCafe.pyx":4260 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4170, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4170, __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(3, 4260, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4169 + /* "PyCafe.pyx":4259 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -82829,17 +84918,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4172 + /* "PyCafe.pyx":4262 * strVal = pvd[i].getAsString() * * localList.append(strVal) # <<<<<<<<<<<<<< * * elif dtcheck == CAFE_SHORT: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4172, __pyx_L1_error) } - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4172, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4262, __pyx_L1_error) } + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4262, __pyx_L1_error) - /* "PyCafe.pyx":4147 + /* "PyCafe.pyx":4237 * #print (pvd[i].getAsDouble()) * * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -82849,20 +84938,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_SHORT: - /* "PyCafe.pyx":4175 + /* "PyCafe.pyx":4265 * * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4175, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4175, __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(3, 4265, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4175, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4174 + /* "PyCafe.pyx":4264 * localList.append(strVal) * * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -82872,20 +84961,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_FLOAT: - /* "PyCafe.pyx":4177 + /* "PyCafe.pyx":4267 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4177, __pyx_L1_error) - __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4177, __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(3, 4267, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4177, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4176 + /* "PyCafe.pyx":4266 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -82895,31 +84984,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_ENUM: - /* "PyCafe.pyx":4181 + /* "PyCafe.pyx":4271 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): # <<<<<<<<<<<<<< * localList.append(pvd[i].getAsString()) * else: */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4181, __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(3, 4271, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPV((__pyx_v_pvd[__pyx_t_12]).getPVName())) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4182 + /* "PyCafe.pyx":4272 * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4182, __pyx_L1_error) - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4182, __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(3, 4272, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_t_12]).getAsString()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4182, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4181 + /* "PyCafe.pyx":4271 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPV(pvd[i].getPVName())): # <<<<<<<<<<<<<< @@ -82929,7 +85018,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC goto __pyx_L109; } - /* "PyCafe.pyx":4184 + /* "PyCafe.pyx":4274 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -82937,15 +85026,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4184, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4184, __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(3, 4274, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4184, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __pyx_L109:; - /* "PyCafe.pyx":4178 + /* "PyCafe.pyx":4268 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -82955,20 +85044,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_CHAR: - /* "PyCafe.pyx":4188 + /* "PyCafe.pyx":4278 * elif dtcheck == CAFE_CHAR: * # pvd[i].getAsChar() * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4188, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4188, __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(3, 4278, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4188, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4186 + /* "PyCafe.pyx":4276 * localList.append(pvd[i].getAsLong()) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -82978,20 +85067,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_LONG: - /* "PyCafe.pyx":4190 + /* "PyCafe.pyx":4280 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4190, __pyx_L1_error) - __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4190, __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(3, 4280, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_t_12]).getAsLong()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4190, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4189 + /* "PyCafe.pyx":4279 * # pvd[i].getAsChar() * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -83001,20 +85090,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; case CAFE_DOUBLE: - /* "PyCafe.pyx":4192 + /* "PyCafe.pyx":4282 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(0) */ - __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(3, 4192, __pyx_L1_error) - __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4192, __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(3, 4282, __pyx_L1_error) + __pyx_t_11 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_t_12]).getAsDouble()); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4192, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_11); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4191 + /* "PyCafe.pyx":4281 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -83024,16 +85113,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; default: - /* "PyCafe.pyx":4194 + /* "PyCafe.pyx":4284 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(0) # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarList:") */ - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4194, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(3, 4284, __pyx_L1_error) - /* "PyCafe.pyx":4195 + /* "PyCafe.pyx":4285 * else: * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: # <<<<<<<<<<<<<< @@ -83043,25 +85132,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_HIGH) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4196 + /* "PyCafe.pyx":4286 * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarList:") # <<<<<<<<<<<<<< * print("Entering 0 for element", i, * "as channel is not connected!") */ - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__77, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4196, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__77, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":4197 + /* "PyCafe.pyx":4287 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarList:") * print("Entering 0 for element", i, # <<<<<<<<<<<<<< * "as channel is not connected!") * */ - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4197, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_Entering_0_for_element); __Pyx_GIVEREF(__pyx_kp_u_Entering_0_for_element); @@ -83072,12 +85161,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_as_channel_is_not_connected); __Pyx_GIVEREF(__pyx_kp_u_as_channel_is_not_connected); PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_kp_u_as_channel_is_not_connected); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4197, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4195 + /* "PyCafe.pyx":4285 * else: * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: # <<<<<<<<<<<<<< @@ -83088,7 +85177,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC break; } - /* "PyCafe.pyx":4138 + /* "PyCafe.pyx":4228 * * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -83098,19 +85187,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC } __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; - /* "PyCafe.pyx":4203 + /* "PyCafe.pyx":4293 * * # free(pvd) * if (cacheFlag == True): # <<<<<<<<<<<<<< * return localList, statusLocal, statusList * */ - __pyx_t_23 = PyObject_RichCompare(__pyx_v_cacheFlag, Py_True, Py_EQ); __Pyx_XGOTREF(__pyx_t_23); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4203, __pyx_L1_error) - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_23); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4203, __pyx_L1_error) + __pyx_t_23 = PyObject_RichCompare(__pyx_v_cacheFlag, Py_True, Py_EQ); __Pyx_XGOTREF(__pyx_t_23); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4293, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_23); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0; if (__pyx_t_2) { - /* "PyCafe.pyx":4204 + /* "PyCafe.pyx":4294 * # free(pvd) * if (cacheFlag == True): * return localList, statusLocal, statusList # <<<<<<<<<<<<<< @@ -83118,7 +85207,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * # use vstatus instead of statusList (as cache is NoWait) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4204, __pyx_L1_error) + __pyx_t_23 = PyTuple_New(3); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -83133,7 +85222,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_23 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4203 + /* "PyCafe.pyx":4293 * * # free(pvd) * if (cacheFlag == True): # <<<<<<<<<<<<<< @@ -83142,7 +85231,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4207 + /* "PyCafe.pyx":4297 * * # use vstatus instead of statusList (as cache is NoWait) * return localList, statusNoWait, vStatus # <<<<<<<<<<<<<< @@ -83150,11 +85239,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_statusNoWait); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4207, __pyx_L1_error) + __pyx_t_23 = __Pyx_PyInt_From_int(__pyx_v_statusNoWait); if (unlikely(!__pyx_t_23)) __PYX_ERR(3, 4297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_23); - __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4207, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4207, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 4297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -83169,7 +85258,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":3892 + /* "PyCafe.pyx":3982 * * ################################################################################## * def getScalarList(self, handleList, dt: str = 'native', # <<<<<<<<<<<<<< @@ -83203,7 +85292,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_292getScalarList(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":4215 +/* "PyCafe.pyx":4305 * * * def getDictionary(self, pvhandleList, dt: str = 'native', cacheFlag: bool = False, # <<<<<<<<<<<<<< @@ -83227,7 +85316,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_295getDictionary(PyObject *__pyx_v_sel values[1] = ((PyObject*)__pyx_n_u_native); values[2] = ((PyObject *)Py_False); - /* "PyCafe.pyx":4216 + /* "PyCafe.pyx":4306 * * def getDictionary(self, pvhandleList, dt: str = 'native', cacheFlag: bool = False, * scalarOnly: bool = False): # <<<<<<<<<<<<<< @@ -83275,7 +85364,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_295getDictionary(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getDictionary") < 0)) __PYX_ERR(3, 4215, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getDictionary") < 0)) __PYX_ERR(3, 4305, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -83297,16 +85386,16 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_295getDictionary(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getDictionary", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4215, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getDictionary", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4305, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4215, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4305, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_294getDictionary(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pvhandleList, __pyx_v_dt, __pyx_v_cacheFlag, __pyx_v_scalarOnly); - /* "PyCafe.pyx":4215 + /* "PyCafe.pyx":4305 * * * def getDictionary(self, pvhandleList, dt: str = 'native', cacheFlag: bool = False, # <<<<<<<<<<<<<< @@ -83351,7 +85440,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC unsigned int __pyx_t_14; __Pyx_RefNannySetupContext("getDictionary", 0); - /* "PyCafe.pyx":4217 + /* "PyCafe.pyx":4307 * def getDictionary(self, pvhandleList, dt: str = 'native', cacheFlag: bool = False, * scalarOnly: bool = False): * cdef str _METHOD = "getDictionary(handleList, dt, cacheFlag )" # <<<<<<<<<<<<<< @@ -83361,7 +85450,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_getDictionary_handleList_dt_cach); __pyx_v__METHOD = __pyx_kp_u_getDictionary_handleList_dt_cach; - /* "PyCafe.pyx":4219 + /* "PyCafe.pyx":4309 * cdef str _METHOD = "getDictionary(handleList, dt, cacheFlag )" * * pvList = None # <<<<<<<<<<<<<< @@ -83371,7 +85460,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(Py_None); __pyx_v_pvList = Py_None; - /* "PyCafe.pyx":4220 + /* "PyCafe.pyx":4310 * * pvList = None * handleList = pvhandleList # <<<<<<<<<<<<<< @@ -83381,7 +85470,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_pvhandleList); __pyx_v_handleList = __pyx_v_pvhandleList; - /* "PyCafe.pyx":4222 + /* "PyCafe.pyx":4312 * handleList = pvhandleList * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -83392,14 +85481,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4223 + /* "PyCafe.pyx":4313 * * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) # <<<<<<<<<<<<<< * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getDictionary. \n" + */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4223, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -83413,37 +85502,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_handleList) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_handleList); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4223, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4224 + /* "PyCafe.pyx":4314 * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: # <<<<<<<<<<<<<< * raise Exception(("EXCEPTION RAISED IN PyCafe def getDictionary. \n" + * "First input argument should be " + */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_handleList); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4224, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_handleList); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4314, __pyx_L1_error) __pyx_t_1 = ((!__pyx_t_2) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4225 + /* "PyCafe.pyx":4315 * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getDictionary. \n" + # <<<<<<<<<<<<<< * "First input argument should be " + * "of handles or PVs\nelse for " + */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__78, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4225, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__78, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4225, __pyx_L1_error) + __PYX_ERR(3, 4315, __pyx_L1_error) - /* "PyCafe.pyx":4224 + /* "PyCafe.pyx":4314 * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: # <<<<<<<<<<<<<< @@ -83452,7 +85541,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4222 + /* "PyCafe.pyx":4312 * handleList = pvhandleList * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -83462,7 +85551,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":4230 + /* "PyCafe.pyx":4320 * "CAFE 'group' name")) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -83474,20 +85563,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4231 + /* "PyCafe.pyx":4321 * else: * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4231, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4231, __pyx_L1_error) + __PYX_ERR(3, 4321, __pyx_L1_error) - /* "PyCafe.pyx":4230 + /* "PyCafe.pyx":4320 * "CAFE 'group' name")) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -83496,21 +85585,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4234 + /* "PyCafe.pyx":4324 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * pvList = handleList * handleList = self.checkForHandleList(handleList) */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4234, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4235 + /* "PyCafe.pyx":4325 * * if isinstance(handleList[0], (str)): * pvList = handleList # <<<<<<<<<<<<<< @@ -83520,20 +85609,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_handleList); __Pyx_DECREF_SET(__pyx_v_pvList, __pyx_v_handleList); - /* "PyCafe.pyx":4236 + /* "PyCafe.pyx":4326 * if isinstance(handleList[0], (str)): * pvList = handleList * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 4236, __pyx_L1_error) - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4236, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 4326, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4234 + /* "PyCafe.pyx":4324 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -83543,14 +85632,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC goto __pyx_L6; } - /* "PyCafe.pyx":4237 + /* "PyCafe.pyx":4327 * pvList = handleList * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4237, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_Check(__pyx_t_3); __pyx_t_6 = (__pyx_t_2 != 0); @@ -83567,20 +85656,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4238 + /* "PyCafe.pyx":4328 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4238, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4238, __pyx_L1_error) + __PYX_ERR(3, 4328, __pyx_L1_error) - /* "PyCafe.pyx":4237 + /* "PyCafe.pyx":4327 * pvList = handleList * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -83590,24 +85679,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC } __pyx_L6:; - /* "PyCafe.pyx":4241 + /* "PyCafe.pyx":4331 * First input argument, should be a 'list' of of type if handles or if PVs") * * if scalarOnly: # <<<<<<<<<<<<<< * value, statusOverall, status =self.getScalarList(handleList, dt, cacheFlag) * else: */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_scalarOnly); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4241, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_scalarOnly); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4331, __pyx_L1_error) if (__pyx_t_2) { - /* "PyCafe.pyx":4242 + /* "PyCafe.pyx":4332 * * if scalarOnly: * value, statusOverall, status =self.getScalarList(handleList, dt, cacheFlag) # <<<<<<<<<<<<<< * else: * value, statusOverall, status =self.getCompoundList(handleList, dt, cacheFlag) */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getScalarList); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_7 = 0; @@ -83624,7 +85713,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else @@ -83632,13 +85721,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { - __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -83652,7 +85741,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_cacheFlag); __Pyx_GIVEREF(__pyx_v_cacheFlag); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_v_cacheFlag); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } @@ -83663,7 +85752,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC if (unlikely(size != 3)) { if (size > 3) __Pyx_RaiseTooManyValuesError(3); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(3, 4242, __pyx_L1_error) + __PYX_ERR(3, 4332, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -83679,17 +85768,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_5); #else - __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_5 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_5 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { Py_ssize_t index = -1; - __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4242, __pyx_L1_error) + __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext; @@ -83699,7 +85788,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_GOTREF(__pyx_t_8); index = 2; __pyx_t_5 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_5)) goto __pyx_L10_unpacking_failed; __Pyx_GOTREF(__pyx_t_5); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(3, 4242, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(3, 4332, __pyx_L1_error) __pyx_t_10 = NULL; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L11_unpacking_done; @@ -83707,7 +85796,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_10 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(3, 4242, __pyx_L1_error) + __PYX_ERR(3, 4332, __pyx_L1_error) __pyx_L11_unpacking_done:; } __pyx_v_value = __pyx_t_4; @@ -83717,7 +85806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __pyx_v_status = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":4241 + /* "PyCafe.pyx":4331 * First input argument, should be a 'list' of of type if handles or if PVs") * * if scalarOnly: # <<<<<<<<<<<<<< @@ -83727,7 +85816,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC goto __pyx_L9; } - /* "PyCafe.pyx":4244 + /* "PyCafe.pyx":4334 * value, statusOverall, status =self.getScalarList(handleList, dt, cacheFlag) * else: * value, statusOverall, status =self.getCompoundList(handleList, dt, cacheFlag) # <<<<<<<<<<<<<< @@ -83735,7 +85824,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC * pvdict = OrderedDict() */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_7 = 0; @@ -83752,7 +85841,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); } else @@ -83760,13 +85849,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_8, __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { - __pyx_t_4 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -83780,7 +85869,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_v_cacheFlag); __Pyx_GIVEREF(__pyx_v_cacheFlag); PyTuple_SET_ITEM(__pyx_t_4, 2+__pyx_t_7, __pyx_v_cacheFlag); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } @@ -83791,7 +85880,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC if (unlikely(size != 3)) { if (size > 3) __Pyx_RaiseTooManyValuesError(3); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(3, 4244, __pyx_L1_error) + __PYX_ERR(3, 4334, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -83807,17 +85896,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); #else - __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { Py_ssize_t index = -1; - __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4244, __pyx_L1_error) + __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext; @@ -83827,7 +85916,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_GOTREF(__pyx_t_4); index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L12_unpacking_failed; __Pyx_GOTREF(__pyx_t_8); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(3, 4244, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(3, 4334, __pyx_L1_error) __pyx_t_10 = NULL; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; goto __pyx_L13_unpacking_done; @@ -83835,7 +85924,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_10 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(3, 4244, __pyx_L1_error) + __PYX_ERR(3, 4334, __pyx_L1_error) __pyx_L13_unpacking_done:; } __pyx_v_value = __pyx_t_5; @@ -83847,14 +85936,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC } __pyx_L9:; - /* "PyCafe.pyx":4246 + /* "PyCafe.pyx":4336 * value, statusOverall, status =self.getCompoundList(handleList, dt, cacheFlag) * * pvdict = OrderedDict() # <<<<<<<<<<<<<< * for i in range(0, len(handleList)): * _val = value[i] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4246, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { @@ -83868,55 +85957,55 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC } __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_8); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4246, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_pvdict = __pyx_t_3; __pyx_t_3 = 0; - /* "PyCafe.pyx":4247 + /* "PyCafe.pyx":4337 * * pvdict = OrderedDict() * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * _val = value[i] * if status[i] != ICAFE_NORMAL: */ - __pyx_t_11 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4247, __pyx_L1_error) + __pyx_t_11 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4337, __pyx_L1_error) __pyx_t_12 = __pyx_t_11; for (__pyx_t_13 = 0; __pyx_t_13 < __pyx_t_12; __pyx_t_13+=1) { __pyx_v_i = __pyx_t_13; - /* "PyCafe.pyx":4248 + /* "PyCafe.pyx":4338 * pvdict = OrderedDict() * for i in range(0, len(handleList)): * _val = value[i] # <<<<<<<<<<<<<< * if status[i] != ICAFE_NORMAL: * _val = None */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_value, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4248, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_value, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v__val, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4249 + /* "PyCafe.pyx":4339 * for i in range(0, len(handleList)): * _val = value[i] * if status[i] != ICAFE_NORMAL: # <<<<<<<<<<<<<< * _val = None * pvdict[self._c_cafe.getPVFromHandle(handleList[i])] = _val */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_status, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4249, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_status, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4249, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4249, __pyx_L1_error) + __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4249, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { - /* "PyCafe.pyx":4250 + /* "PyCafe.pyx":4340 * _val = value[i] * if status[i] != ICAFE_NORMAL: * _val = None # <<<<<<<<<<<<<< @@ -83926,7 +86015,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC __Pyx_INCREF(Py_None); __Pyx_DECREF_SET(__pyx_v__val, Py_None); - /* "PyCafe.pyx":4249 + /* "PyCafe.pyx":4339 * for i in range(0, len(handleList)): * _val = value[i] * if status[i] != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -83935,24 +86024,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4251 + /* "PyCafe.pyx":4341 * if status[i] != ICAFE_NORMAL: * _val = None * pvdict[self._c_cafe.getPVFromHandle(handleList[i])] = _val # <<<<<<<<<<<<<< * * return pvdict, statusOverall, status */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4251, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_14 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_14 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4251, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_14 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_14)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4251, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_t_14)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (unlikely(PyObject_SetItem(__pyx_v_pvdict, __pyx_t_4, __pyx_v__val) < 0)) __PYX_ERR(3, 4251, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_v_pvdict, __pyx_t_4, __pyx_v__val) < 0)) __PYX_ERR(3, 4341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":4253 + /* "PyCafe.pyx":4343 * pvdict[self._c_cafe.getPVFromHandle(handleList[i])] = _val * * return pvdict, statusOverall, status # <<<<<<<<<<<<<< @@ -83960,7 +86049,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC * # int alarmStatus=None, int alarmSev=None): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4253, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_pvdict); __Pyx_GIVEREF(__pyx_v_pvdict); @@ -83977,7 +86066,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC } __pyx_L3:; - /* "PyCafe.pyx":4215 + /* "PyCafe.pyx":4305 * * * def getDictionary(self, pvhandleList, dt: str = 'native', cacheFlag: bool = False, # <<<<<<<<<<<<<< @@ -84010,7 +86099,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_294getDictionary(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":4257 +/* "PyCafe.pyx":4347 * # int alarmStatus=None, int alarmSev=None): * ################################################################################## * def getCompoundList(self, handleList, str dt='native', bint cacheFlag=False): # <<<<<<<<<<<<<< @@ -84063,7 +86152,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_297getCompoundList(PyObject *__pyx_v_s } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCompoundList") < 0)) __PYX_ERR(3, 4257, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCompoundList") < 0)) __PYX_ERR(3, 4347, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -84079,20 +86168,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_297getCompoundList(PyObject *__pyx_v_s __pyx_v_handleList = values[0]; __pyx_v_dt = ((PyObject*)values[1]); if (values[2]) { - __pyx_v_cacheFlag = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_cacheFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4257, __pyx_L3_error) + __pyx_v_cacheFlag = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_cacheFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4347, __pyx_L3_error) } else { __pyx_v_cacheFlag = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getCompoundList", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4257, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getCompoundList", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4347, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getCompoundList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4257, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4347, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_296getCompoundList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_dt, __pyx_v_cacheFlag); /* function exit code */ @@ -84154,7 +86243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_RefNannySetupContext("getCompoundList", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":4259 + /* "PyCafe.pyx":4349 * def getCompoundList(self, handleList, str dt='native', bint cacheFlag=False): * ################################################################################## * cdef str _METHOD = "getCompoundList(handleList, str dt='native')" # <<<<<<<<<<<<<< @@ -84164,7 +86253,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_INCREF(__pyx_kp_u_getCompoundList_handleList_str_d); __pyx_v__METHOD = __pyx_kp_u_getCompoundList_handleList_str_d; - /* "PyCafe.pyx":4261 + /* "PyCafe.pyx":4351 * cdef str _METHOD = "getCompoundList(handleList, str dt='native')" * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -84175,14 +86264,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4262 + /* "PyCafe.pyx":4352 * * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) # <<<<<<<<<<<<<< * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getCompoundList. \n" + */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4262, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -84196,37 +86285,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_handleList) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_handleList); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4262, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4263 + /* "PyCafe.pyx":4353 * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: # <<<<<<<<<<<<<< * raise Exception(("EXCEPTION RAISED IN PyCafe def getCompoundList. \n" + * "First input argument should be " + */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_handleList); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4263, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_handleList); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4353, __pyx_L1_error) __pyx_t_1 = ((!__pyx_t_2) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4264 + /* "PyCafe.pyx":4354 * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getCompoundList. \n" + # <<<<<<<<<<<<<< * "First input argument should be " + * "of handles or PVs\nelse for " + */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4264, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4264, __pyx_L1_error) + __PYX_ERR(3, 4354, __pyx_L1_error) - /* "PyCafe.pyx":4263 + /* "PyCafe.pyx":4353 * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: # <<<<<<<<<<<<<< @@ -84235,7 +86324,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4261 + /* "PyCafe.pyx":4351 * cdef str _METHOD = "getCompoundList(handleList, str dt='native')" * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -84245,7 +86334,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L3; } - /* "PyCafe.pyx":4269 + /* "PyCafe.pyx":4359 * "CAFE 'group' name")) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -84257,20 +86346,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4270 + /* "PyCafe.pyx":4360 * else: * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4270, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4270, __pyx_L1_error) + __PYX_ERR(3, 4360, __pyx_L1_error) - /* "PyCafe.pyx":4269 + /* "PyCafe.pyx":4359 * "CAFE 'group' name")) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -84279,34 +86368,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4273 + /* "PyCafe.pyx":4363 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4273, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4274 + /* "PyCafe.pyx":4364 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 4274, __pyx_L1_error) - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4274, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 4364, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4273 + /* "PyCafe.pyx":4363 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -84316,14 +86405,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L6; } - /* "PyCafe.pyx":4275 + /* "PyCafe.pyx":4365 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4275, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyInt_Check(__pyx_t_3); __pyx_t_6 = (__pyx_t_2 != 0); @@ -84340,20 +86429,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4276 + /* "PyCafe.pyx":4366 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4276, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 4276, __pyx_L1_error) + __PYX_ERR(3, 4366, __pyx_L1_error) - /* "PyCafe.pyx":4275 + /* "PyCafe.pyx":4365 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -84365,27 +86454,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } __pyx_L3:; - /* "PyCafe.pyx":4285 + /* "PyCafe.pyx":4375 * cdef vector[int] vRB * * v.reserve(len(handleList)) # <<<<<<<<<<<<<< * vStatus.reserve(len(handleList)) * */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4285, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4375, __pyx_L1_error) __pyx_v_v.reserve(__pyx_t_7); - /* "PyCafe.pyx":4286 + /* "PyCafe.pyx":4376 * * v.reserve(len(handleList)) * vStatus.reserve(len(handleList)) # <<<<<<<<<<<<<< * * cdef bint flagCompound = False */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4286, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4376, __pyx_L1_error) __pyx_v_vStatus.reserve(__pyx_t_7); - /* "PyCafe.pyx":4288 + /* "PyCafe.pyx":4378 * vStatus.reserve(len(handleList)) * * cdef bint flagCompound = False # <<<<<<<<<<<<<< @@ -84394,7 +86483,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_flagCompound = 0; - /* "PyCafe.pyx":4290 + /* "PyCafe.pyx":4380 * cdef bint flagCompound = False * * cdef unsigned int nelemLocal = 1 # <<<<<<<<<<<<<< @@ -84403,37 +86492,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_nelemLocal = 1; - /* "PyCafe.pyx":4292 + /* "PyCafe.pyx":4382 * cdef unsigned int nelemLocal = 1 * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4292, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4382, __pyx_L1_error) __pyx_t_8 = __pyx_t_7; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":4294 + /* "PyCafe.pyx":4384 * for i in range(0, len(handleList)): * # do this copy to avoid compiler warning messages * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * if (nelemLocal == 1): */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4294, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4294, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4384, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; try { __pyx_v_v.push_back(__pyx_t_10); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 4294, __pyx_L1_error) + __PYX_ERR(3, 4384, __pyx_L1_error) } - /* "PyCafe.pyx":4296 + /* "PyCafe.pyx":4386 * v.push_back(handleList[i]) * * if (nelemLocal == 1): # <<<<<<<<<<<<<< @@ -84443,20 +86532,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_nelemLocal == 1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4297 + /* "PyCafe.pyx":4387 * * if (nelemLocal == 1): * nelemLocal = self.hh.getNelemNative(handleList[i]) # <<<<<<<<<<<<<< * if nelemLocal > 1: * flagCompound = True */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4297, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4297, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4387, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_nelemLocal = __pyx_v_self->hh.getNelemNative(__pyx_t_10); - /* "PyCafe.pyx":4298 + /* "PyCafe.pyx":4388 * if (nelemLocal == 1): * nelemLocal = self.hh.getNelemNative(handleList[i]) * if nelemLocal > 1: # <<<<<<<<<<<<<< @@ -84466,7 +86555,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_nelemLocal > 1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4299 + /* "PyCafe.pyx":4389 * nelemLocal = self.hh.getNelemNative(handleList[i]) * if nelemLocal > 1: * flagCompound = True # <<<<<<<<<<<<<< @@ -84475,7 +86564,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_flagCompound = 1; - /* "PyCafe.pyx":4298 + /* "PyCafe.pyx":4388 * if (nelemLocal == 1): * nelemLocal = self.hh.getNelemNative(handleList[i]) * if nelemLocal > 1: # <<<<<<<<<<<<<< @@ -84484,7 +86573,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4296 + /* "PyCafe.pyx":4386 * v.push_back(handleList[i]) * * if (nelemLocal == 1): # <<<<<<<<<<<<<< @@ -84494,7 +86583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4301 + /* "PyCafe.pyx":4391 * flagCompound = True * * status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -84503,7 +86592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":4303 + /* "PyCafe.pyx":4393 * status = ICAFE_NORMAL * * if not cacheFlag: # <<<<<<<<<<<<<< @@ -84513,7 +86602,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_v_cacheFlag != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4307 + /* "PyCafe.pyx":4397 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -84528,7 +86617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":4308 + /* "PyCafe.pyx":4398 * # Coercion from Python not allowed without the GIL * with nogil: * status = self._c_cafe.getV(v, vStatus) # <<<<<<<<<<<<<< @@ -84538,7 +86627,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->getV(__pyx_v_v, __pyx_v_vStatus); } - /* "PyCafe.pyx":4307 + /* "PyCafe.pyx":4397 * # Need to copy to a vector since * # Coercion from Python not allowed without the GIL * with nogil: # <<<<<<<<<<<<<< @@ -84557,7 +86646,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4314 + /* "PyCafe.pyx":4404 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -84572,7 +86661,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":4315 + /* "PyCafe.pyx":4405 * * with nogil: * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) # <<<<<<<<<<<<<< @@ -84582,7 +86671,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_v_statusBundle = __pyx_v_self->_c_cafe->waitForBundledEvents(__pyx_v_v, __pyx_v_vRB); } - /* "PyCafe.pyx":4314 + /* "PyCafe.pyx":4404 * # Wait for bundle * * with nogil: # <<<<<<<<<<<<<< @@ -84601,7 +86690,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4317 + /* "PyCafe.pyx":4407 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -84611,7 +86700,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_statusBundle != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4318 + /* "PyCafe.pyx":4408 * * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -84621,18 +86710,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4319 + /* "PyCafe.pyx":4409 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getCompoundList: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__82, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4319, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__82, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4320 + /* "PyCafe.pyx":4410 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getCompoundList: ") * self._c_cafe.printStatusMessage(statusBundle) # <<<<<<<<<<<<<< @@ -84641,7 +86730,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_statusBundle); - /* "PyCafe.pyx":4318 + /* "PyCafe.pyx":4408 * * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -84650,7 +86739,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4317 + /* "PyCafe.pyx":4407 * statusBundle = self._c_cafe.waitForBundledEvents(v, vRB) * * if (statusBundle != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -84659,7 +86748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4303 + /* "PyCafe.pyx":4393 * status = ICAFE_NORMAL * * if not cacheFlag: # <<<<<<<<<<<<<< @@ -84668,7 +86757,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4322 + /* "PyCafe.pyx":4412 * self._c_cafe.printStatusMessage(statusBundle) * * cdef int dtcheck = CAFE_NOT_REQUESTED # native type not yet know # <<<<<<<<<<<<<< @@ -84677,35 +86766,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_dtcheck = CAFE_NOT_REQUESTED; - /* "PyCafe.pyx":4323 + /* "PyCafe.pyx":4413 * * cdef int dtcheck = CAFE_NOT_REQUESTED # native type not yet know * dtcheck = getMatchedDataType(dt, dtcheck) # <<<<<<<<<<<<<< * * cdef bytes bytesVal */ - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4323, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dtcheck); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4323, __pyx_L1_error) + __pyx_t_4 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4323, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4413, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_dtcheck = __pyx_t_11; - /* "PyCafe.pyx":4326 + /* "PyCafe.pyx":4416 * * cdef bytes bytesVal * localList = [] # <<<<<<<<<<<<<< * * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4326, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_localList = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":4330 + /* "PyCafe.pyx":4420 * * # Use Scalar * if not flagCompound: # <<<<<<<<<<<<<< @@ -84715,7 +86804,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_v_flagCompound != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4332 + /* "PyCafe.pyx":4422 * if not flagCompound: * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -84725,7 +86814,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":4334 + /* "PyCafe.pyx":4424 * if dtcheck in [CAFE_STRING]: * * self.vStr.clear() # <<<<<<<<<<<<<< @@ -84734,17 +86823,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_self->vStr.clear(); - /* "PyCafe.pyx":4335 + /* "PyCafe.pyx":4425 * * self.vStr.clear() * self.vStr.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4335, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4425, __pyx_L1_error) __pyx_v_self->vStr.reserve(__pyx_t_7); - /* "PyCafe.pyx":4337 + /* "PyCafe.pyx":4427 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -84759,7 +86848,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":4338 + /* "PyCafe.pyx":4428 * * with nogil: * status = self._c_cafe.getCacheVStr(v, self.vStr, vStatus) # <<<<<<<<<<<<<< @@ -84769,7 +86858,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVStr(__pyx_v_v, __pyx_v_self->vStr, __pyx_v_vStatus); } - /* "PyCafe.pyx":4337 + /* "PyCafe.pyx":4427 * self.vStr.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -84788,29 +86877,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4341 + /* "PyCafe.pyx":4431 * * #warning: __pyx_v_i may be used uninitialized in this function * for i in range(0, len(v)): # <<<<<<<<<<<<<< * bytesVal = ( self.vStr[i] ) * encoding = False */ - __pyx_t_4 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4341, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_v); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4341, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_8 = __pyx_t_7; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":4342 + /* "PyCafe.pyx":4432 * #warning: __pyx_v_i may be used uninitialized in this function * for i in range(0, len(v)): * bytesVal = ( self.vStr[i] ) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_v_i]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4342, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_v_i]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); @@ -84818,7 +86907,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":4343 + /* "PyCafe.pyx":4433 * for i in range(0, len(v)): * bytesVal = ( self.vStr[i] ) * encoding = False # <<<<<<<<<<<<<< @@ -84827,21 +86916,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4344 + /* "PyCafe.pyx":4434 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4344, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4344, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4434, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4345 + /* "PyCafe.pyx":4435 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -84857,7 +86946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4346 + /* "PyCafe.pyx":4436 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -84866,14 +86955,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4346, __pyx_L29_error) + __PYX_ERR(3, 4436, __pyx_L29_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4346, __pyx_L29_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4436, __pyx_L29_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4347 + /* "PyCafe.pyx":4437 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -84882,7 +86971,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4345 + /* "PyCafe.pyx":4435 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -84899,7 +86988,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4348 + /* "PyCafe.pyx":4438 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -84914,7 +87003,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L31_except_error; __pyx_L31_except_error:; - /* "PyCafe.pyx":4345 + /* "PyCafe.pyx":4435 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -84934,7 +87023,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L36_try_end:; } - /* "PyCafe.pyx":4344 + /* "PyCafe.pyx":4434 * bytesVal = ( self.vStr[i] ) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -84943,7 +87032,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4350 + /* "PyCafe.pyx":4440 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -84953,7 +87042,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4351 + /* "PyCafe.pyx":4441 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -84969,7 +87058,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":4352 + /* "PyCafe.pyx":4442 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -84978,14 +87067,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4352, __pyx_L38_error) + __PYX_ERR(3, 4442, __pyx_L38_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4352, __pyx_L38_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4442, __pyx_L38_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4353 + /* "PyCafe.pyx":4443 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -84994,7 +87083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4351 + /* "PyCafe.pyx":4441 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -85011,7 +87100,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4354 + /* "PyCafe.pyx":4444 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -85026,7 +87115,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L40_except_error; __pyx_L40_except_error:; - /* "PyCafe.pyx":4351 + /* "PyCafe.pyx":4441 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -85046,7 +87135,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L45_try_end:; } - /* "PyCafe.pyx":4350 + /* "PyCafe.pyx":4440 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -85055,7 +87144,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4356 + /* "PyCafe.pyx":4446 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -85065,7 +87154,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4357 + /* "PyCafe.pyx":4447 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -85081,7 +87170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4358 + /* "PyCafe.pyx":4448 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -85090,14 +87179,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4358, __pyx_L47_error) + __PYX_ERR(3, 4448, __pyx_L47_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4358, __pyx_L47_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4448, __pyx_L47_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4359 + /* "PyCafe.pyx":4449 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -85106,7 +87195,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4357 + /* "PyCafe.pyx":4447 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -85123,7 +87212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4360 + /* "PyCafe.pyx":4450 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -85138,7 +87227,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L49_except_error; __pyx_L49_except_error:; - /* "PyCafe.pyx":4357 + /* "PyCafe.pyx":4447 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -85158,7 +87247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L54_try_end:; } - /* "PyCafe.pyx":4356 + /* "PyCafe.pyx":4446 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -85167,7 +87256,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4362 + /* "PyCafe.pyx":4452 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -85177,19 +87266,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4363 + /* "PyCafe.pyx":4453 * pass * if not encoding: * strVal = self.vStr[i] # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4363, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string(((std::string)(__pyx_v_self->vStr[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4362 + /* "PyCafe.pyx":4452 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -85198,18 +87287,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4365 + /* "PyCafe.pyx":4455 * strVal = self.vStr[i] * * localList.append(strVal) # <<<<<<<<<<<<<< * * return localList, status, vStatus */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4365, __pyx_L1_error) } - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4365, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4455, __pyx_L1_error) } + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4455, __pyx_L1_error) } - /* "PyCafe.pyx":4367 + /* "PyCafe.pyx":4457 * localList.append(strVal) * * return localList, status, vStatus # <<<<<<<<<<<<<< @@ -85217,11 +87306,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4367, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4367, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4367, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -85236,7 +87325,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4332 + /* "PyCafe.pyx":4422 * if not flagCompound: * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -85246,7 +87335,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_SHORT: - /* "PyCafe.pyx":4369 + /* "PyCafe.pyx":4459 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -85256,7 +87345,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P case CAFE_CHAR: case CAFE_LONG: - /* "PyCafe.pyx":4371 + /* "PyCafe.pyx":4461 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * * self.vInt.clear() # <<<<<<<<<<<<<< @@ -85265,17 +87354,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_self->vInt.clear(); - /* "PyCafe.pyx":4372 + /* "PyCafe.pyx":4462 * * self.vInt.clear() * self.vInt.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4372, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4462, __pyx_L1_error) __pyx_v_self->vInt.reserve(__pyx_t_7); - /* "PyCafe.pyx":4374 + /* "PyCafe.pyx":4464 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -85290,7 +87379,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":4375 + /* "PyCafe.pyx":4465 * * with nogil: * status = self._c_cafe.getCacheVLong(v, self.vInt, vStatus) # <<<<<<<<<<<<<< @@ -85300,7 +87389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVLong(__pyx_v_v, __pyx_v_self->vInt, __pyx_v_vStatus); } - /* "PyCafe.pyx":4374 + /* "PyCafe.pyx":4464 * self.vInt.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -85319,7 +87408,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4377 + /* "PyCafe.pyx":4467 * status = self._c_cafe.getCacheVLong(v, self.vInt, vStatus) * #print("getCompound", status, vStatus) * return self.vInt, status, vStatus # <<<<<<<<<<<<<< @@ -85327,13 +87416,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4377, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_vector_to_py_dbr_long_t(__pyx_v_self->vInt); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4377, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4377, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_16 = PyTuple_New(3); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 4377, __pyx_L1_error) + __pyx_t_16 = PyTuple_New(3); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 4467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_5); @@ -85348,7 +87437,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_16 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4369 + /* "PyCafe.pyx":4459 * return localList, status, vStatus * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -85358,7 +87447,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_FLOAT: - /* "PyCafe.pyx":4379 + /* "PyCafe.pyx":4469 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -85367,7 +87456,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ case CAFE_DOUBLE: - /* "PyCafe.pyx":4381 + /* "PyCafe.pyx":4471 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * * self.vFloat.clear() # <<<<<<<<<<<<<< @@ -85376,17 +87465,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_self->vFloat.clear(); - /* "PyCafe.pyx":4382 + /* "PyCafe.pyx":4472 * * self.vFloat.clear() * self.vFloat.reserve(len(handleList)) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4382, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4472, __pyx_L1_error) __pyx_v_self->vFloat.reserve(__pyx_t_7); - /* "PyCafe.pyx":4384 + /* "PyCafe.pyx":4474 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -85401,7 +87490,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":4385 + /* "PyCafe.pyx":4475 * * with nogil: * status = self._c_cafe.getCacheVDouble( # <<<<<<<<<<<<<< @@ -85411,7 +87500,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->getCacheVDouble(__pyx_v_v, __pyx_v_self->vFloat, __pyx_v_vStatus); } - /* "PyCafe.pyx":4384 + /* "PyCafe.pyx":4474 * self.vFloat.reserve(len(handleList)) * * with nogil: # <<<<<<<<<<<<<< @@ -85430,7 +87519,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4388 + /* "PyCafe.pyx":4478 * v, self.vFloat, vStatus) * * return self.vFloat, status, vStatus # <<<<<<<<<<<<<< @@ -85438,13 +87527,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_16 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 4388, __pyx_L1_error) + __pyx_t_16 = __pyx_convert_vector_to_py_double(__pyx_v_self->vFloat); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 4478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4388, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4388, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4388, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_16); @@ -85459,7 +87548,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4379 + /* "PyCafe.pyx":4469 * return self.vInt, status, vStatus * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -85470,7 +87559,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P default: break; } - /* "PyCafe.pyx":4330 + /* "PyCafe.pyx":4420 * * # Use Scalar * if not flagCompound: # <<<<<<<<<<<<<< @@ -85479,7 +87568,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4396 + /* "PyCafe.pyx":4486 * # Does group exist? * * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -85488,7 +87577,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_pvd = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":4399 + /* "PyCafe.pyx":4489 * * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -85500,21 +87589,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_17; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":4400 + /* "PyCafe.pyx":4490 * # Required to allocate memory for shared pointer * for i in range(0, v.size()): #len(handleList)): * pvd[i].setNelem(self.hh.getNelemClient(handleList[i])) # <<<<<<<<<<<<<< * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4400, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4400, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4490, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvd[__pyx_v_i]).setNelem(__pyx_v_self->hh.getNelemClient(__pyx_t_10))); } - /* "PyCafe.pyx":4402 + /* "PyCafe.pyx":4492 * pvd[i].setNelem(self.hh.getNelemClient(handleList[i])) * * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) # <<<<<<<<<<<<<< @@ -85523,19 +87612,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_statusNoWait = __pyx_v_self->_c_cafe->getCachePVArrayNoWait(__pyx_v_v, __pyx_v_pvd); - /* "PyCafe.pyx":4404 + /* "PyCafe.pyx":4494 * statusNoWait = self._c_cafe.getCachePVArrayNoWait(v, pvd) * * statusList = [] # <<<<<<<<<<<<<< * statusFlag = True * statusLocal = ICAFE_NORMAL */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4404, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_statusList = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4405 + /* "PyCafe.pyx":4495 * * statusList = [] * statusFlag = True # <<<<<<<<<<<<<< @@ -85544,7 +87633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_statusFlag = 1; - /* "PyCafe.pyx":4406 + /* "PyCafe.pyx":4496 * statusList = [] * statusFlag = True * statusLocal = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -85553,7 +87642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_statusLocal = ICAFE_NORMAL; - /* "PyCafe.pyx":4408 + /* "PyCafe.pyx":4498 * statusLocal = ICAFE_NORMAL * * if cacheFlag: # <<<<<<<<<<<<<< @@ -85563,7 +87652,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = (__pyx_v_cacheFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4409 + /* "PyCafe.pyx":4499 * * if cacheFlag: * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -85575,19 +87664,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_17; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":4410 + /* "PyCafe.pyx":4500 * if cacheFlag: * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4410, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4410, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4411 + /* "PyCafe.pyx":4501 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -85597,35 +87686,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = (((__pyx_v_pvd[__pyx_v_i]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4412 + /* "PyCafe.pyx":4502 * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( # <<<<<<<<<<<<<< * handleList), " in PyCafe def getCompundList") * print("Handle= ", handleList[i], " PV=", */ - __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4412, __pyx_L1_error) + __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":4413 + /* "PyCafe.pyx":4503 * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getCompundList") # <<<<<<<<<<<<<< * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) */ - __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4412, __pyx_L1_error) + __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4502, __pyx_L1_error) - /* "PyCafe.pyx":4412 + /* "PyCafe.pyx":4502 * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: * print("Error in Element ", i, " from ", len( # <<<<<<<<<<<<<< * handleList), " in PyCafe def getCompundList") * print("Handle= ", handleList[i], " PV=", */ - __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4412, __pyx_L1_error) + __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4412, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_Error_in_Element); __Pyx_GIVEREF(__pyx_kp_u_Error_in_Element); @@ -85642,43 +87731,43 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_kp_u_in_PyCafe_def_getCompundList); __pyx_t_5 = 0; __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4412, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4502, __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; - /* "PyCafe.pyx":4414 + /* "PyCafe.pyx":4504 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getCompundList") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4414, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":4415 + /* "PyCafe.pyx":4505 * handleList), " in PyCafe def getCompundList") * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4415, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4415, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4505, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_10)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4415, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_10)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - /* "PyCafe.pyx":4414 + /* "PyCafe.pyx":4504 * print("Error in Element ", i, " from ", len( * handleList), " in PyCafe def getCompundList") * print("Handle= ", handleList[i], " PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4414, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_kp_u_Handle_2); __Pyx_GIVEREF(__pyx_kp_u_Handle_2); @@ -85692,21 +87781,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_3); __pyx_t_4 = 0; __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4414, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4416 + /* "PyCafe.pyx":4506 * print("Handle= ", handleList[i], " PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: */ - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4416, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4416, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -85714,12 +87803,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4416, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4417 + /* "PyCafe.pyx":4507 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) # <<<<<<<<<<<<<< @@ -85728,7 +87817,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage((__pyx_v_pvd[__pyx_v_i]).getStatus()); - /* "PyCafe.pyx":4418 + /* "PyCafe.pyx":4508 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -85738,7 +87827,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = (__pyx_v_statusFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4419 + /* "PyCafe.pyx":4509 * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: * statusLocal = pvd[i].getStatus() # <<<<<<<<<<<<<< @@ -85747,7 +87836,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_statusLocal = (__pyx_v_pvd[__pyx_v_i]).getStatus(); - /* "PyCafe.pyx":4420 + /* "PyCafe.pyx":4510 * if statusFlag: * statusLocal = pvd[i].getStatus() * statusFlag = False # <<<<<<<<<<<<<< @@ -85756,7 +87845,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_statusFlag = 0; - /* "PyCafe.pyx":4418 + /* "PyCafe.pyx":4508 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * if statusFlag: # <<<<<<<<<<<<<< @@ -85765,7 +87854,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4411 + /* "PyCafe.pyx":4501 * for i in range(0, v.size()): #len(handleList)): * statusList.append(pvd[i].getStatus()) * if pvd[i].getStatus() != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -85775,7 +87864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":4408 + /* "PyCafe.pyx":4498 * statusLocal = ICAFE_NORMAL * * if cacheFlag: # <<<<<<<<<<<<<< @@ -85784,19 +87873,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4424 + /* "PyCafe.pyx":4514 * cdef unsigned int dtn * * localList = [] # <<<<<<<<<<<<<< * * */ - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4424, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_localList, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":4427 + /* "PyCafe.pyx":4517 * * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -85808,7 +87897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_17; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":4429 + /* "PyCafe.pyx":4519 * for i in range(0, v.size()): #len(handleList)): * * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< @@ -85817,23 +87906,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_dtn = (__pyx_v_pvd[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":4430 + /* "PyCafe.pyx":4520 * * dtn = pvd[i].getDataType() * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * if pvd[i].getNelem() == 1: */ - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4430, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4430, __pyx_L1_error) + __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_18 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_18 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4430, __pyx_L1_error) + __pyx_t_18 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_18 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_dtcheck = __pyx_t_18; - /* "PyCafe.pyx":4432 + /* "PyCafe.pyx":4522 * dtcheck = getMatchedDataType(dt, dtn) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -85843,7 +87932,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = (((__pyx_v_pvd[__pyx_v_i]).getNelem() == 1) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4433 + /* "PyCafe.pyx":4523 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -85853,14 +87942,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":4434 + /* "PyCafe.pyx":4524 * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4434, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __pyx_t_5; __Pyx_INCREF(__pyx_t_3); @@ -85868,7 +87957,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":4435 + /* "PyCafe.pyx":4525 * if dtcheck == CAFE_STRING: * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -85877,21 +87966,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4436 + /* "PyCafe.pyx":4526 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4436, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4436, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_3, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4526, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4437 + /* "PyCafe.pyx":4527 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -85907,7 +87996,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":4438 + /* "PyCafe.pyx":4528 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -85916,14 +88005,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4438, __pyx_L73_error) + __PYX_ERR(3, 4528, __pyx_L73_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4438, __pyx_L73_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4528, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4439 + /* "PyCafe.pyx":4529 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -85932,7 +88021,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4437 + /* "PyCafe.pyx":4527 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -85950,7 +88039,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4440 + /* "PyCafe.pyx":4530 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -85965,7 +88054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L75_except_error; __pyx_L75_except_error:; - /* "PyCafe.pyx":4437 + /* "PyCafe.pyx":4527 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -85985,7 +88074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L80_try_end:; } - /* "PyCafe.pyx":4436 + /* "PyCafe.pyx":4526 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -85994,7 +88083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4442 + /* "PyCafe.pyx":4532 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86004,7 +88093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4443 + /* "PyCafe.pyx":4533 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86020,7 +88109,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4444 + /* "PyCafe.pyx":4534 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -86029,14 +88118,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4444, __pyx_L82_error) + __PYX_ERR(3, 4534, __pyx_L82_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4444, __pyx_L82_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4534, __pyx_L82_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4445 + /* "PyCafe.pyx":4535 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -86045,7 +88134,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4443 + /* "PyCafe.pyx":4533 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86063,7 +88152,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4446 + /* "PyCafe.pyx":4536 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -86078,7 +88167,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L84_except_error; __pyx_L84_except_error:; - /* "PyCafe.pyx":4443 + /* "PyCafe.pyx":4533 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86098,7 +88187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L89_try_end:; } - /* "PyCafe.pyx":4442 + /* "PyCafe.pyx":4532 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86107,7 +88196,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4448 + /* "PyCafe.pyx":4538 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86117,7 +88206,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4449 + /* "PyCafe.pyx":4539 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86133,7 +88222,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":4450 + /* "PyCafe.pyx":4540 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -86142,14 +88231,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4450, __pyx_L91_error) + __PYX_ERR(3, 4540, __pyx_L91_error) } - __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4450, __pyx_L91_error) + __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4540, __pyx_L91_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4451 + /* "PyCafe.pyx":4541 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -86158,7 +88247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4449 + /* "PyCafe.pyx":4539 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86176,7 +88265,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4452 + /* "PyCafe.pyx":4542 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -86191,7 +88280,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L93_except_error; __pyx_L93_except_error:; - /* "PyCafe.pyx":4449 + /* "PyCafe.pyx":4539 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86211,7 +88300,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L98_try_end:; } - /* "PyCafe.pyx":4448 + /* "PyCafe.pyx":4538 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86220,7 +88309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4454 + /* "PyCafe.pyx":4544 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86230,19 +88319,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4455 + /* "PyCafe.pyx":4545 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4455, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4454 + /* "PyCafe.pyx":4544 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86251,17 +88340,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4457 + /* "PyCafe.pyx":4547 * strVal = pvd[i].getAsString() * * localList.append(strVal) # <<<<<<<<<<<<<< * * #localList.append(pvd[i].getAsString()) */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4457, __pyx_L1_error) } - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4457, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4547, __pyx_L1_error) } + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4547, __pyx_L1_error) - /* "PyCafe.pyx":4433 + /* "PyCafe.pyx":4523 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -86271,19 +88360,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_SHORT: - /* "PyCafe.pyx":4461 + /* "PyCafe.pyx":4551 * #localList.append(pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4461, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4461, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4551, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4460 + /* "PyCafe.pyx":4550 * * #localList.append(pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -86293,19 +88382,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_FLOAT: - /* "PyCafe.pyx":4463 + /* "PyCafe.pyx":4553 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_3 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4463, __pyx_L1_error) + __pyx_t_3 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4463, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4553, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4462 + /* "PyCafe.pyx":4552 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -86315,33 +88404,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_ENUM: - /* "PyCafe.pyx":4466 + /* "PyCafe.pyx":4556 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: # <<<<<<<<<<<<<< * localList.append(pvd[i].getAsString()) * else: */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4466, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4466, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_3); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4556, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = ((__pyx_v_self->_c_cafe->isEnum(__pyx_t_10) == 1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4467 + /* "PyCafe.pyx":4557 * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4467, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4467, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4557, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4466 + /* "PyCafe.pyx":4556 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: # <<<<<<<<<<<<<< @@ -86351,7 +88440,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L100; } - /* "PyCafe.pyx":4469 + /* "PyCafe.pyx":4559 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -86359,14 +88448,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4469, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4469, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4559, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_L100:; - /* "PyCafe.pyx":4464 + /* "PyCafe.pyx":4554 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -86376,19 +88465,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_CHAR: - /* "PyCafe.pyx":4472 + /* "PyCafe.pyx":4562 * * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_3 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4472, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4472, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4562, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4471 + /* "PyCafe.pyx":4561 * localList.append(pvd[i].getAsLong()) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -86398,19 +88487,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_LONG: - /* "PyCafe.pyx":4474 + /* "PyCafe.pyx":4564 * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4474, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4474, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4564, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4473 + /* "PyCafe.pyx":4563 * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -86420,19 +88509,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_DOUBLE: - /* "PyCafe.pyx":4476 + /* "PyCafe.pyx":4566 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(0) # no data */ - __pyx_t_3 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4476, __pyx_L1_error) + __pyx_t_3 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4476, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4566, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":4475 + /* "PyCafe.pyx":4565 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -86442,18 +88531,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; default: - /* "PyCafe.pyx":4478 + /* "PyCafe.pyx":4568 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(0) # no data # <<<<<<<<<<<<<< * else: * localListInner = [] */ - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4478, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_int_0); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4568, __pyx_L1_error) break; } - /* "PyCafe.pyx":4432 + /* "PyCafe.pyx":4522 * dtcheck = getMatchedDataType(dt, dtn) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -86463,7 +88552,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L71; } - /* "PyCafe.pyx":4480 + /* "PyCafe.pyx":4570 * localList.append(0) # no data * else: * localListInner = [] # <<<<<<<<<<<<<< @@ -86471,12 +88560,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * for j in range(0, pvd[i].getNelem()): */ /*else*/ { - __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4480, __pyx_L1_error) + __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_XDECREF_SET(__pyx_v_localListInner, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "PyCafe.pyx":4481 + /* "PyCafe.pyx":4571 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -86486,7 +88575,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":4482 + /* "PyCafe.pyx":4572 * localListInner = [] * if dtcheck == CAFE_STRING: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -86498,14 +88587,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4484 + /* "PyCafe.pyx":4574 * for j in range(0, pvd[i].getNelem()): * * bytesVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): */ - __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4484, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __Pyx_INCREF(__pyx_t_5); @@ -86513,7 +88602,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":4485 + /* "PyCafe.pyx":4575 * * bytesVal = pvd[i].getAsString(j) * encoding = False # <<<<<<<<<<<<<< @@ -86522,21 +88611,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4486 + /* "PyCafe.pyx":4576 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4486, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle((__pyx_v_v[__pyx_v_i]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4486, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4576, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4487 + /* "PyCafe.pyx":4577 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -86552,7 +88641,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4488 + /* "PyCafe.pyx":4578 * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -86561,14 +88650,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4488, __pyx_L104_error) + __PYX_ERR(3, 4578, __pyx_L104_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4488, __pyx_L104_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4578, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4489 + /* "PyCafe.pyx":4579 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -86577,7 +88666,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4487 + /* "PyCafe.pyx":4577 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -86595,7 +88684,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4490 + /* "PyCafe.pyx":4580 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -86610,7 +88699,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L106_except_error; __pyx_L106_except_error:; - /* "PyCafe.pyx":4487 + /* "PyCafe.pyx":4577 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): * try: # <<<<<<<<<<<<<< @@ -86630,7 +88719,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L111_try_end:; } - /* "PyCafe.pyx":4486 + /* "PyCafe.pyx":4576 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(v[i]): # <<<<<<<<<<<<<< @@ -86639,7 +88728,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4492 + /* "PyCafe.pyx":4582 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86649,7 +88738,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4493 + /* "PyCafe.pyx":4583 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86665,7 +88754,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":4494 + /* "PyCafe.pyx":4584 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -86674,14 +88763,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4494, __pyx_L113_error) + __PYX_ERR(3, 4584, __pyx_L113_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4494, __pyx_L113_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4584, __pyx_L113_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4495 + /* "PyCafe.pyx":4585 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -86690,7 +88779,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4493 + /* "PyCafe.pyx":4583 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86708,7 +88797,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4496 + /* "PyCafe.pyx":4586 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -86723,7 +88812,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L115_except_error; __pyx_L115_except_error:; - /* "PyCafe.pyx":4493 + /* "PyCafe.pyx":4583 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86743,7 +88832,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L120_try_end:; } - /* "PyCafe.pyx":4492 + /* "PyCafe.pyx":4582 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86752,7 +88841,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4498 + /* "PyCafe.pyx":4588 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86762,7 +88851,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4499 + /* "PyCafe.pyx":4589 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86778,7 +88867,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4500 + /* "PyCafe.pyx":4590 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -86787,14 +88876,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4500, __pyx_L122_error) + __PYX_ERR(3, 4590, __pyx_L122_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4500, __pyx_L122_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4590, __pyx_L122_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4501 + /* "PyCafe.pyx":4591 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -86803,7 +88892,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4499 + /* "PyCafe.pyx":4589 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86821,7 +88910,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4502 + /* "PyCafe.pyx":4592 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -86836,7 +88925,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L124_except_error; __pyx_L124_except_error:; - /* "PyCafe.pyx":4499 + /* "PyCafe.pyx":4589 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -86856,7 +88945,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_L129_try_end:; } - /* "PyCafe.pyx":4498 + /* "PyCafe.pyx":4588 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86865,7 +88954,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4504 + /* "PyCafe.pyx":4594 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86875,19 +88964,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4505 + /* "PyCafe.pyx":4595 * pass * if not encoding: * strVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * * localListInner.append(strVal) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4505, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4504 + /* "PyCafe.pyx":4594 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -86896,18 +88985,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4507 + /* "PyCafe.pyx":4597 * strVal = pvd[i].getAsString(j) * * localListInner.append(strVal) # <<<<<<<<<<<<<< * #localListInner.append(pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4507, __pyx_L1_error) } - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4507, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4597, __pyx_L1_error) } + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4597, __pyx_L1_error) } - /* "PyCafe.pyx":4481 + /* "PyCafe.pyx":4571 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -86917,7 +89006,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_SHORT: - /* "PyCafe.pyx":4510 + /* "PyCafe.pyx":4600 * #localListInner.append(pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -86929,20 +89018,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4511 + /* "PyCafe.pyx":4601 * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4511, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4511, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":4509 + /* "PyCafe.pyx":4599 * localListInner.append(strVal) * #localListInner.append(pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -86952,7 +89041,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_FLOAT: - /* "PyCafe.pyx":4513 + /* "PyCafe.pyx":4603 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -86964,20 +89053,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4514 + /* "PyCafe.pyx":4604 * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4514, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4514, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4604, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":4512 + /* "PyCafe.pyx":4602 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -86987,7 +89076,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_ENUM: - /* "PyCafe.pyx":4517 + /* "PyCafe.pyx":4607 * elif dtcheck == CAFE_ENUM: * * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -86999,33 +89088,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4519 + /* "PyCafe.pyx":4609 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: # <<<<<<<<<<<<<< * localListInner.append(pvd[i].getAsString(j)) * else: */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4519, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_21 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_21 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4519, __pyx_L1_error) + __pyx_t_21 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_21 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4609, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = ((__pyx_v_self->_c_cafe->isEnum(__pyx_t_21) == 1) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4520 + /* "PyCafe.pyx":4610 * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: * localListInner.append(pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * else: * localListInner.append(pvd[i].getAsLong(j)) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4520, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4520, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4610, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4519 + /* "PyCafe.pyx":4609 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(handleList[i]) == 1: # <<<<<<<<<<<<<< @@ -87035,7 +89124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P goto __pyx_L137; } - /* "PyCafe.pyx":4522 + /* "PyCafe.pyx":4612 * localListInner.append(pvd[i].getAsString(j)) * else: * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< @@ -87043,15 +89132,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4522, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4522, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4612, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_L137:; } - /* "PyCafe.pyx":4515 + /* "PyCafe.pyx":4605 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -87061,7 +89150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_CHAR: - /* "PyCafe.pyx":4525 + /* "PyCafe.pyx":4615 * * elif dtcheck == CAFE_CHAR: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -87073,20 +89162,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4527 + /* "PyCafe.pyx":4617 * for j in range(0, pvd[i].getNelem()): * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4527, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4527, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4617, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":4524 + /* "PyCafe.pyx":4614 * localListInner.append(pvd[i].getAsLong(j)) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -87096,7 +89185,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_LONG: - /* "PyCafe.pyx":4529 + /* "PyCafe.pyx":4619 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -87108,20 +89197,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4530 + /* "PyCafe.pyx":4620 * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4530, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4530, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4620, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":4528 + /* "PyCafe.pyx":4618 * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -87131,7 +89220,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P break; case CAFE_DOUBLE: - /* "PyCafe.pyx":4532 + /* "PyCafe.pyx":4622 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -87143,21 +89232,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_19; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4533 + /* "PyCafe.pyx":4623 * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * else: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4533, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4533, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4623, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } /*else*/ { - /* "PyCafe.pyx":4535 + /* "PyCafe.pyx":4625 * localListInner.append(pvd[i].getAsDouble(j)) * else: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -87169,18 +89258,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P for (__pyx_t_20 = 0; __pyx_t_20 < __pyx_t_22; __pyx_t_20+=1) { __pyx_v_j = __pyx_t_20; - /* "PyCafe.pyx":4536 + /* "PyCafe.pyx":4626 * else: * for j in range(0, pvd[i].getNelem()): * localListInner.append(0) # no data # <<<<<<<<<<<<<< * localList.append(localListInner) * */ - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_int_0); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4536, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_int_0); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4626, __pyx_L1_error) } } - /* "PyCafe.pyx":4531 + /* "PyCafe.pyx":4621 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -87191,19 +89280,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P default: break; } - /* "PyCafe.pyx":4537 + /* "PyCafe.pyx":4627 * for j in range(0, pvd[i].getNelem()): * localListInner.append(0) # no data * localList.append(localListInner) # <<<<<<<<<<<<<< * * # free(pvd) */ - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4537, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4627, __pyx_L1_error) } __pyx_L71:; } - /* "PyCafe.pyx":4540 + /* "PyCafe.pyx":4630 * * # free(pvd) * if cacheFlag: # <<<<<<<<<<<<<< @@ -87213,7 +89302,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_1 = (__pyx_v_cacheFlag != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4541 + /* "PyCafe.pyx":4631 * # free(pvd) * if cacheFlag: * return localList, statusLocal, statusList # <<<<<<<<<<<<<< @@ -87221,9 +89310,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * return localList, status, vStatus */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_statusLocal); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4541, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_statusLocal); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4541, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -87238,7 +89327,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4540 + /* "PyCafe.pyx":4630 * * # free(pvd) * if cacheFlag: # <<<<<<<<<<<<<< @@ -87247,7 +89336,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":4543 + /* "PyCafe.pyx":4633 * return localList, statusLocal, statusList * # use vstatus instead of statusList (as cache is NoWait) * return localList, status, vStatus # <<<<<<<<<<<<<< @@ -87255,11 +89344,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4543, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4543, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4543, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -87274,7 +89363,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4257 + /* "PyCafe.pyx":4347 * # int alarmStatus=None, int alarmSev=None): * ################################################################################## * def getCompoundList(self, handleList, str dt='native', bint cacheFlag=False): # <<<<<<<<<<<<<< @@ -87305,7 +89394,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_296getCompoundList(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":4551 +/* "PyCafe.pyx":4641 * ################################################################################## * * def getCompoundPVGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -87349,7 +89438,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_299getCompoundPVGroup(PyObject *__pyx_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCompoundPVGroup") < 0)) __PYX_ERR(3, 4551, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCompoundPVGroup") < 0)) __PYX_ERR(3, 4641, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -87365,13 +89454,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_299getCompoundPVGroup(PyObject *__pyx_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getCompoundPVGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4551, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getCompoundPVGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4641, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getCompoundPVGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4551, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4641, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_dt); /* function exit code */ @@ -87421,7 +89510,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj int __pyx_t_17; __Pyx_RefNannySetupContext("getCompoundPVGroup", 0); - /* "PyCafe.pyx":4553 + /* "PyCafe.pyx":4643 * def getCompoundPVGroup(self, ghandleName, str dt='native'): * ################################################################################## * cdef str _METHOD = "getCompoundPVGroup(ghandleName, str dt='native')" # <<<<<<<<<<<<<< @@ -87431,7 +89520,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_INCREF(__pyx_kp_u_getCompoundPVGroup_ghandleName_s); __pyx_v__METHOD = __pyx_kp_u_getCompoundPVGroup_ghandleName_s; - /* "PyCafe.pyx":4555 + /* "PyCafe.pyx":4645 * cdef str _METHOD = "getCompoundPVGroup(ghandleName, str dt='native')" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -87440,7 +89529,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":4556 + /* "PyCafe.pyx":4646 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -87461,17 +89550,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4557 + /* "PyCafe.pyx":4647 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4557, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4647, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":4556 + /* "PyCafe.pyx":4646 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -87481,7 +89570,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj goto __pyx_L3; } - /* "PyCafe.pyx":4558 + /* "PyCafe.pyx":4648 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -87492,21 +89581,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4559 + /* "PyCafe.pyx":4649 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 4559, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4559, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 4649, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4559, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":4558 + /* "PyCafe.pyx":4648 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -87516,7 +89605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj goto __pyx_L3; } - /* "PyCafe.pyx":4562 + /* "PyCafe.pyx":4652 * else: * * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundPVGroup. \n\ # <<<<<<<<<<<<<< @@ -87524,36 +89613,36 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__83, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4562, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__83, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 4562, __pyx_L1_error) + __PYX_ERR(3, 4652, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":4565 + /* "PyCafe.pyx":4655 * First input argument, should be of type if group handle, else if group name") * * handleList = [] # <<<<<<<<<<<<<< * handleList = self.getHandlesFromWithinGroup(ghandle) * */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4565, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_handleList = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":4566 + /* "PyCafe.pyx":4656 * * handleList = [] * handleList = self.getHandlesFromWithinGroup(ghandle) # <<<<<<<<<<<<<< * * localList = [] */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4566, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4566, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -87568,68 +89657,68 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4566, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4568 + /* "PyCafe.pyx":4658 * handleList = self.getHandlesFromWithinGroup(ghandle) * * localList = [] # <<<<<<<<<<<<<< * statusList = [] * */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4568, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_localList = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":4569 + /* "PyCafe.pyx":4659 * * localList = [] * statusList = [] # <<<<<<<<<<<<<< * * cdef vector[unsigned int] hV */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4569, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_statusList = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":4573 + /* "PyCafe.pyx":4663 * cdef vector[unsigned int] hV * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * hV.push_back(handleList[i]) * */ - __pyx_t_9 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4573, __pyx_L1_error) + __pyx_t_9 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(3, 4663, __pyx_L1_error) __pyx_t_10 = __pyx_t_9; for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; - /* "PyCafe.pyx":4574 + /* "PyCafe.pyx":4664 * * for i in range(0, len(handleList)): * hV.push_back(handleList[i]) # <<<<<<<<<<<<<< * * self.hh.setCafeDbrTypeV(hV, DBR_TIME) */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4574, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4574, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4664, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; try { __pyx_v_hV.push_back(__pyx_t_4); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 4574, __pyx_L1_error) + __PYX_ERR(3, 4664, __pyx_L1_error) } } - /* "PyCafe.pyx":4576 + /* "PyCafe.pyx":4666 * hV.push_back(handleList[i]) * * self.hh.setCafeDbrTypeV(hV, DBR_TIME) # <<<<<<<<<<<<<< @@ -87638,14 +89727,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ (void)(__pyx_v_self->hh.setCafeDbrTypeV(__pyx_v_hV, DBR_TIME)); - /* "PyCafe.pyx":4578 + /* "PyCafe.pyx":4668 * self.hh.setCafeDbrTypeV(hV, DBR_TIME) * * localList, status, statusList = self.getCompoundList(handleList, dt) # <<<<<<<<<<<<<< * * cdef PVGroup pvg */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_12 = 0; @@ -87662,7 +89751,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_handleList, __pyx_v_dt}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -87670,13 +89759,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_v_handleList, __pyx_v_dt}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_8 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -87687,7 +89776,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_INCREF(__pyx_v_dt); __Pyx_GIVEREF(__pyx_v_dt); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_12, __pyx_v_dt); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } @@ -87698,7 +89787,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj if (unlikely(size != 3)) { if (size > 3) __Pyx_RaiseTooManyValuesError(3); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(3, 4578, __pyx_L1_error) + __PYX_ERR(3, 4668, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -87714,17 +89803,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_7); #else - __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_7 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_7 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { Py_ssize_t index = -1; - __pyx_t_13 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 4578, __pyx_L1_error) + __pyx_t_13 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 4668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_14 = Py_TYPE(__pyx_t_13)->tp_iternext; @@ -87734,7 +89823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_GOTREF(__pyx_t_8); index = 2; __pyx_t_7 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_7)) goto __pyx_L8_unpacking_failed; __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 3) < 0) __PYX_ERR(3, 4578, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 3) < 0) __PYX_ERR(3, 4668, __pyx_L1_error) __pyx_t_14 = NULL; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L9_unpacking_done; @@ -87742,7 +89831,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __pyx_t_14 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(3, 4578, __pyx_L1_error) + __PYX_ERR(3, 4668, __pyx_L1_error) __pyx_L9_unpacking_done:; } __Pyx_DECREF_SET(__pyx_v_localList, __pyx_t_6); @@ -87752,7 +89841,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_DECREF_SET(__pyx_v_statusList, __pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":4582 + /* "PyCafe.pyx":4672 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -87767,7 +89856,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj #endif /*try:*/ { - /* "PyCafe.pyx":4583 + /* "PyCafe.pyx":4673 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -87777,7 +89866,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":4582 + /* "PyCafe.pyx":4672 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -87796,7 +89885,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj } } - /* "PyCafe.pyx":4586 + /* "PyCafe.pyx":4676 * * cdef PVDataHolder * pvd * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -87805,19 +89894,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":4590 + /* "PyCafe.pyx":4680 * cdef pvdata p1 * * localListToStruct = [] # <<<<<<<<<<<<<< * * cdef int groupStatus = ICAFE_NORMAL */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4590, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_localListToStruct = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4592 + /* "PyCafe.pyx":4682 * localListToStruct = [] * * cdef int groupStatus = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -87826,7 +89915,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_groupStatus = ICAFE_NORMAL; - /* "PyCafe.pyx":4594 + /* "PyCafe.pyx":4684 * cdef int groupStatus = ICAFE_NORMAL * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -87838,19 +89927,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_15; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":4595 + /* "PyCafe.pyx":4685 * * for i in range(0, pvg.getNPV()): * p1 = pvdata() # <<<<<<<<<<<<<< * * # pvd[i].setDouble(localList[i]) */ - __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4595, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvdata)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_p1, ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":4598 + /* "PyCafe.pyx":4688 * * # pvd[i].setDouble(localList[i]) * p1 = PVDataHolderToStruct(pvd[i], dt) # <<<<<<<<<<<<<< @@ -87859,50 +89948,50 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_t_16.__pyx_n = 1; __pyx_t_16.dt = __pyx_v_dt; - __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_16)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4598, __pyx_L1_error) + __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_16)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v_p1, ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":4600 + /* "PyCafe.pyx":4690 * p1 = PVDataHolderToStruct(pvd[i], dt) * * if not isinstance(localList[i], (list)): # <<<<<<<<<<<<<< * ll = [] * ll.append(localList[i]) */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4600, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_1 = PyList_Check(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4601 + /* "PyCafe.pyx":4691 * * if not isinstance(localList[i], (list)): * ll = [] # <<<<<<<<<<<<<< * ll.append(localList[i]) * p1.value = ll */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4601, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_ll, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":4602 + /* "PyCafe.pyx":4692 * if not isinstance(localList[i], (list)): * ll = [] * ll.append(localList[i]) # <<<<<<<<<<<<<< * p1.value = ll * else: */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4602, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_5); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 4602, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_ll, __pyx_t_5); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 4692, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4603 + /* "PyCafe.pyx":4693 * ll = [] * ll.append(localList[i]) * p1.value = ll # <<<<<<<<<<<<<< @@ -87915,7 +90004,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_DECREF(__pyx_v_p1->value); __pyx_v_p1->value = __pyx_v_ll; - /* "PyCafe.pyx":4600 + /* "PyCafe.pyx":4690 * p1 = PVDataHolderToStruct(pvd[i], dt) * * if not isinstance(localList[i], (list)): # <<<<<<<<<<<<<< @@ -87925,7 +90014,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj goto __pyx_L15; } - /* "PyCafe.pyx":4605 + /* "PyCafe.pyx":4695 * p1.value = ll * else: * p1.value = localList[i] # put into List! # <<<<<<<<<<<<<< @@ -87933,9 +90022,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj * p1.status = statusList[i] */ /*else*/ { - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4605, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_localList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4605, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4695, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_5); __Pyx_GOTREF(__pyx_v_p1->value); __Pyx_DECREF(__pyx_v_p1->value); @@ -87944,20 +90033,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj } __pyx_L15:; - /* "PyCafe.pyx":4607 + /* "PyCafe.pyx":4697 * p1.value = localList[i] # put into List! * * p1.status = statusList[i] # <<<<<<<<<<<<<< * * if groupStatus == ICAFE_NORMAL: */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4607, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4607, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4697, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_p1->status = __pyx_t_12; - /* "PyCafe.pyx":4609 + /* "PyCafe.pyx":4699 * p1.status = statusList[i] * * if groupStatus == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -87967,20 +90056,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_2 = ((__pyx_v_groupStatus == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4610 + /* "PyCafe.pyx":4700 * * if groupStatus == ICAFE_NORMAL: * groupStatus = statusList[i] # <<<<<<<<<<<<<< * * aStatSev = [] */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4610, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4610, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4700, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_groupStatus = __pyx_t_12; - /* "PyCafe.pyx":4609 + /* "PyCafe.pyx":4699 * p1.status = statusList[i] * * if groupStatus == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -87989,28 +90078,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ } - /* "PyCafe.pyx":4612 + /* "PyCafe.pyx":4702 * groupStatus = statusList[i] * * aStatSev = [] # <<<<<<<<<<<<<< * aStatSev = self.getAlarmStatusSeverity(handleList[i]) * p1.alarmStatus = aStatSev[0] */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4612, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_aStatSev, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4613 + /* "PyCafe.pyx":4703 * * aStatSev = [] * aStatSev = self.getAlarmStatusSeverity(handleList[i]) # <<<<<<<<<<<<<< * p1.alarmStatus = aStatSev[0] * p1.alarmSeverity = aStatSev[1] */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getAlarmStatusSeverity); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4613, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getAlarmStatusSeverity); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4613, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { @@ -88025,48 +90114,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4613, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF_SET(__pyx_v_aStatSev, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4614 + /* "PyCafe.pyx":4704 * aStatSev = [] * aStatSev = self.getAlarmStatusSeverity(handleList[i]) * p1.alarmStatus = aStatSev[0] # <<<<<<<<<<<<<< * p1.alarmSeverity = aStatSev[1] * */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_aStatSev, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4614, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_aStatSev, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4614, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4704, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_p1->alarmStatus = __pyx_t_12; - /* "PyCafe.pyx":4615 + /* "PyCafe.pyx":4705 * aStatSev = self.getAlarmStatusSeverity(handleList[i]) * p1.alarmStatus = aStatSev[0] * p1.alarmSeverity = aStatSev[1] # <<<<<<<<<<<<<< * * p1.ts = self.getTimeStamp(handleList[i]) */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_aStatSev, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4615, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_aStatSev, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4615, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4705, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_p1->alarmSeverity = __pyx_t_12; - /* "PyCafe.pyx":4617 + /* "PyCafe.pyx":4707 * p1.alarmSeverity = aStatSev[1] * * p1.ts = self.getTimeStamp(handleList[i]) # <<<<<<<<<<<<<< * p1.tsDate = self.getTimeStampAsDate(handleList[i]) * */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getTimeStamp); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4617, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getTimeStamp); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4617, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { @@ -88081,26 +90170,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4617, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4617, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4707, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_5); __Pyx_GOTREF(__pyx_v_p1->ts); __Pyx_DECREF(__pyx_v_p1->ts); __pyx_v_p1->ts = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4618 + /* "PyCafe.pyx":4708 * * p1.ts = self.getTimeStamp(handleList[i]) * p1.tsDate = self.getTimeStampAsDate(handleList[i]) # <<<<<<<<<<<<<< * * localListToStruct.append(p1) */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getTimeStampAsDate); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4618, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getTimeStampAsDate); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4618, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 4708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { @@ -88115,39 +90204,39 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4618, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4618, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(3, 4708, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_5); __Pyx_GOTREF(__pyx_v_p1->tsDate); __Pyx_DECREF(__pyx_v_p1->tsDate); __pyx_v_p1->tsDate = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4620 + /* "PyCafe.pyx":4710 * p1.tsDate = self.getTimeStampAsDate(handleList[i]) * * localListToStruct.append(p1) # <<<<<<<<<<<<<< * * cpdef pvgroup pg */ - __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_localListToStruct, ((PyObject *)__pyx_v_p1)); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 4620, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_localListToStruct, ((PyObject *)__pyx_v_p1)); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(3, 4710, __pyx_L1_error) } - /* "PyCafe.pyx":4624 + /* "PyCafe.pyx":4714 * cpdef pvgroup pg * * pg = pvgroup() # <<<<<<<<<<<<<< * * pg.pvdata = localListToStruct */ - __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4624, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pg = ((struct __pyx_obj_6PyCafe_pvgroup *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4626 + /* "PyCafe.pyx":4716 * pg = pvgroup() * * pg.pvdata = localListToStruct # <<<<<<<<<<<<<< @@ -88160,7 +90249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __Pyx_DECREF(__pyx_v_pg->pvdata); __pyx_v_pg->pvdata = __pyx_v_localListToStruct; - /* "PyCafe.pyx":4629 + /* "PyCafe.pyx":4719 * # pg.pvdata[0].showMax(10) * * pg.npv = pvg.getNPV() # <<<<<<<<<<<<<< @@ -88169,7 +90258,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_pg->npv = __pyx_v_pvg.getNPV(); - /* "PyCafe.pyx":4630 + /* "PyCafe.pyx":4720 * * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() # <<<<<<<<<<<<<< @@ -88178,7 +90267,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_pg->name = __pyx_v_pvg.getNameAsString(); - /* "PyCafe.pyx":4631 + /* "PyCafe.pyx":4721 * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() * pg.groupStatus = groupStatus # pvg.getStatusGroup() # <<<<<<<<<<<<<< @@ -88187,7 +90276,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_pg->groupStatus = __pyx_v_groupStatus; - /* "PyCafe.pyx":4632 + /* "PyCafe.pyx":4722 * pg.name = pvg.getNameAsString() * pg.groupStatus = groupStatus # pvg.getStatusGroup() * pg.groupHandle = pvg.getGroupHandle() # <<<<<<<<<<<<<< @@ -88196,14 +90285,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj */ __pyx_v_pg->groupHandle = __pyx_v_pvg.getGroupHandle(); - /* "PyCafe.pyx":4634 + /* "PyCafe.pyx":4724 * pg.groupHandle = pvg.getGroupHandle() * * pg.showMax(1) # <<<<<<<<<<<<<< * * return pg */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pg), __pyx_n_s_showMax); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4634, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pg), __pyx_n_s_showMax); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 4724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { @@ -88217,12 +90306,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj } __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_int_1) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_int_1); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4634, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4636 + /* "PyCafe.pyx":4726 * pg.showMax(1) * * return pg # <<<<<<<<<<<<<< @@ -88234,7 +90323,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj __pyx_r = ((PyObject *)__pyx_v_pg); goto __pyx_L0; - /* "PyCafe.pyx":4551 + /* "PyCafe.pyx":4641 * ################################################################################## * * def getCompoundPVGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -88269,7 +90358,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_298getCompoundPVGroup(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":4644 +/* "PyCafe.pyx":4734 * ################################################################################## * * def getStrCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88300,7 +90389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getStrCache", 0); - /* "PyCafe.pyx":4645 + /* "PyCafe.pyx":4735 * * def getStrCache(self, handlePV): * return self.getCache(handlePV, 'str') # <<<<<<<<<<<<<< @@ -88308,7 +90397,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4645, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -88325,7 +90414,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4645, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4735, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -88333,13 +90422,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4645, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4735, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4645, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -88350,7 +90439,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_n_u_str); __Pyx_GIVEREF(__pyx_n_u_str); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_str); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4645, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -88359,7 +90448,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4644 + /* "PyCafe.pyx":4734 * ################################################################################## * * def getStrCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88383,7 +90472,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_300getStrCache(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":4649 +/* "PyCafe.pyx":4739 * * ################################################################################## * def getIntCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88414,7 +90503,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getIntCache", 0); - /* "PyCafe.pyx":4650 + /* "PyCafe.pyx":4740 * ################################################################################## * def getIntCache(self, handlePV): * return self.getCache(handlePV, 'int') # <<<<<<<<<<<<<< @@ -88422,7 +90511,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4650, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -88439,7 +90528,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4650, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4740, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -88447,13 +90536,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4650, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4740, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4650, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -88464,7 +90553,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_n_u_int); __Pyx_GIVEREF(__pyx_n_u_int); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_int); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4650, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -88473,7 +90562,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4649 + /* "PyCafe.pyx":4739 * * ################################################################################## * def getIntCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88497,7 +90586,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_302getIntCache(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":4654 +/* "PyCafe.pyx":4744 * * ################################################################################## * def getFloatCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88528,7 +90617,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getFloatCache", 0); - /* "PyCafe.pyx":4655 + /* "PyCafe.pyx":4745 * ################################################################################## * def getFloatCache(self, handlePV): * return self.getCache(handlePV, 'float') # <<<<<<<<<<<<<< @@ -88536,7 +90625,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -88553,7 +90642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4745, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -88561,13 +90650,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4745, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -88578,7 +90667,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_float); __Pyx_GIVEREF(__pyx_n_u_float); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_float); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -88587,7 +90676,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4654 + /* "PyCafe.pyx":4744 * * ################################################################################## * def getFloatCache(self, handlePV): # <<<<<<<<<<<<<< @@ -88611,7 +90700,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_304getFloatCache(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":4660 +/* "PyCafe.pyx":4750 * ################################################################################## * * def getCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -88655,7 +90744,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_307getCache(PyObject *__pyx_v_self, Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCache") < 0)) __PYX_ERR(3, 4660, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCache") < 0)) __PYX_ERR(3, 4750, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -88671,13 +90760,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_307getCache(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4660, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4750, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4660, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4750, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_306getCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -88713,7 +90802,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("getCache", 0); - /* "PyCafe.pyx":4661 + /* "PyCafe.pyx":4751 * * def getCache(self, handlePV, str dt='native'): * cdef str _METHOD = "getCache(handlePV, str dt='native')" # <<<<<<<<<<<<<< @@ -88723,7 +90812,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_kp_u_getCache_handlePV_str_dt_native); __pyx_v__METHOD = __pyx_kp_u_getCache_handlePV_str_dt_native; - /* "PyCafe.pyx":4663 + /* "PyCafe.pyx":4753 * cdef str _METHOD = "getCache(handlePV, str dt='native')" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -88732,7 +90821,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_handle = 0; - /* "PyCafe.pyx":4665 + /* "PyCafe.pyx":4755 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -88753,17 +90842,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4666 + /* "PyCafe.pyx":4756 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4666, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4756, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":4665 + /* "PyCafe.pyx":4755 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -88773,7 +90862,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":4667 + /* "PyCafe.pyx":4757 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -88784,21 +90873,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4668 + /* "PyCafe.pyx":4758 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCache. \n\ */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 4668, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4668, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 4758, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4668, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":4667 + /* "PyCafe.pyx":4757 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -88808,7 +90897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":4670 + /* "PyCafe.pyx":4760 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCache. \n\ # <<<<<<<<<<<<<< @@ -88816,15 +90905,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__84, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4670, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__84, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 4670, __pyx_L1_error) + __PYX_ERR(3, 4760, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":4673 + /* "PyCafe.pyx":4763 * First input argument, should be of type if handle, else if PV") * * cdef long dtr = 0 # <<<<<<<<<<<<<< @@ -88833,34 +90922,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_dtr = 0; - /* "PyCafe.pyx":4674 + /* "PyCafe.pyx":4764 * * cdef long dtr = 0 * status = self.hh.getDataTypeNative(handle, dtr) # <<<<<<<<<<<<<< * * if status != ICAFE_NORMAL: */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_dtr)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4674, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_dtr)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_status = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":4676 + /* "PyCafe.pyx":4766 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: */ - __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4676, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4676, __pyx_L1_error) + __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4676, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4677 + /* "PyCafe.pyx":4767 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -88870,7 +90959,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4678 + /* "PyCafe.pyx":4768 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -88880,17 +90969,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4679 + /* "PyCafe.pyx":4769 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< * else: * self._c_cafe.printStatus(handle, status) */ - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4679, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4769, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatusMessage(__pyx_t_7); - /* "PyCafe.pyx":4678 + /* "PyCafe.pyx":4768 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -88900,7 +90989,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L8; } - /* "PyCafe.pyx":4681 + /* "PyCafe.pyx":4771 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -88908,12 +90997,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * raise Exception( */ /*else*/ { - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4681, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4771, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_t_7); } __pyx_L8:; - /* "PyCafe.pyx":4677 + /* "PyCafe.pyx":4767 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -88922,7 +91011,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4682 + /* "PyCafe.pyx":4772 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -88932,31 +91021,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4684 + /* "PyCafe.pyx":4774 * if self._enable_exceptions: * raise Exception( * "EXCEPTION RAISED in PyCafe def getCache. Status = %d" % status) # <<<<<<<<<<<<<< * return None * */ - __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_3, __pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4684, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_3, __pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":4683 + /* "PyCafe.pyx":4773 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def getCache. Status = %d" % status) * return None */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4683, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 4683, __pyx_L1_error) + __PYX_ERR(3, 4773, __pyx_L1_error) - /* "PyCafe.pyx":4682 + /* "PyCafe.pyx":4772 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -88965,7 +91054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4685 + /* "PyCafe.pyx":4775 * raise Exception( * "EXCEPTION RAISED in PyCafe def getCache. Status = %d" % status) * return None # <<<<<<<<<<<<<< @@ -88976,7 +91065,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":4676 + /* "PyCafe.pyx":4766 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -88986,7 +91075,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L6; } - /* "PyCafe.pyx":4687 + /* "PyCafe.pyx":4777 * return None * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -89005,7 +91094,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4688 + /* "PyCafe.pyx":4778 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: # <<<<<<<<<<<<<< @@ -89015,7 +91104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_self->_c_cafe->isChannelConnected(__pyx_v_handle) == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4689 + /* "PyCafe.pyx":4779 * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -89024,7 +91113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":4690 + /* "PyCafe.pyx":4780 * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -89034,7 +91123,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4691 + /* "PyCafe.pyx":4781 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus( # <<<<<<<<<<<<<< @@ -89043,7 +91132,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_self->channelInfo.getCafeConnectionState()); - /* "PyCafe.pyx":4690 + /* "PyCafe.pyx":4780 * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -89052,7 +91141,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4693 + /* "PyCafe.pyx":4783 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -89062,84 +91151,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4695 + /* "PyCafe.pyx":4785 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4695, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4696 + /* "PyCafe.pyx":4786 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4696, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4697 + /* "PyCafe.pyx":4787 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), # <<<<<<<<<<<<<< * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4697, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4698 + /* "PyCafe.pyx":4788 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4698, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4700 + /* "PyCafe.pyx":4790 * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState())) * raise _cafeException */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4700, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 4695, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 4785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4694 + /* "PyCafe.pyx":4784 * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4694, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4702 + /* "PyCafe.pyx":4792 * _error_info=self.cs.info( * self.channelInfo.getCafeConnectionState())) * raise _cafeException # <<<<<<<<<<<<<< @@ -89147,9 +91236,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4702, __pyx_L1_error) + __PYX_ERR(3, 4792, __pyx_L1_error) - /* "PyCafe.pyx":4693 + /* "PyCafe.pyx":4783 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -89158,7 +91247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4703 + /* "PyCafe.pyx":4793 * self.channelInfo.getCafeConnectionState())) * raise _cafeException * return None # <<<<<<<<<<<<<< @@ -89169,7 +91258,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":4688 + /* "PyCafe.pyx":4778 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: # <<<<<<<<<<<<<< @@ -89178,7 +91267,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4706 + /* "PyCafe.pyx":4796 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -89188,7 +91277,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4707 + /* "PyCafe.pyx":4797 * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) # <<<<<<<<<<<<<< @@ -89197,7 +91286,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, ICAFE_TYPENOTCONN); - /* "PyCafe.pyx":4706 + /* "PyCafe.pyx":4796 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -89206,7 +91295,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4708 + /* "PyCafe.pyx":4798 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -89216,84 +91305,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4710 + /* "PyCafe.pyx":4800 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4710, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4711 + /* "PyCafe.pyx":4801 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4711, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4712 + /* "PyCafe.pyx":4802 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) */ - __pyx_t_5 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4712, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4713 + /* "PyCafe.pyx":4803 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4713, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4714 + /* "PyCafe.pyx":4804 * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) # <<<<<<<<<<<<<< * raise _cafeException * return None */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4714, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4710, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4709 + /* "PyCafe.pyx":4799 * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4709, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4715 + /* "PyCafe.pyx":4805 * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException # <<<<<<<<<<<<<< @@ -89301,9 +91390,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4715, __pyx_L1_error) + __PYX_ERR(3, 4805, __pyx_L1_error) - /* "PyCafe.pyx":4708 + /* "PyCafe.pyx":4798 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -89312,7 +91401,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4716 + /* "PyCafe.pyx":4806 * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException * return None # <<<<<<<<<<<<<< @@ -89323,7 +91412,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":4687 + /* "PyCafe.pyx":4777 * return None * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -89333,7 +91422,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C } __pyx_L6:; - /* "PyCafe.pyx":4718 + /* "PyCafe.pyx":4808 * return None * * cdef int dtcheck = dtr # <<<<<<<<<<<<<< @@ -89342,23 +91431,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_dtcheck = __pyx_v_dtr; - /* "PyCafe.pyx":4719 + /* "PyCafe.pyx":4809 * * cdef int dtcheck = dtr * dtcheck = getMatchedDataType(dt, dtr) # <<<<<<<<<<<<<< * * cdef bytes bVal */ - __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4719, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4719, __pyx_L1_error) + __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4719, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_dtcheck = __pyx_t_7; - /* "PyCafe.pyx":4723 + /* "PyCafe.pyx":4813 * cdef bytes bVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -89368,41 +91457,41 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":4724 + /* "PyCafe.pyx":4814 * * if dtcheck in [CAFE_STRING]: * status = self._c_cafe.getCacheString(handle, self.valStr) # <<<<<<<<<<<<<< * if status == ICAFE_NORMAL: * bVal = self.valStr */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheString(__pyx_v_handle, __pyx_v_self->valStr)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4724, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheString(__pyx_v_handle, __pyx_v_self->valStr)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4725 + /* "PyCafe.pyx":4815 * if dtcheck in [CAFE_STRING]: * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * bVal = self.valStr * encoding = False */ - __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4725, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4815, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4725, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4815, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4725, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4815, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_2) { - /* "PyCafe.pyx":4726 + /* "PyCafe.pyx":4816 * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: * bVal = self.valStr # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): */ - __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4726, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); @@ -89410,7 +91499,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_v_bVal = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4727 + /* "PyCafe.pyx":4817 * if status == ICAFE_NORMAL: * bVal = self.valStr * encoding = False # <<<<<<<<<<<<<< @@ -89419,21 +91508,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4728 + /* "PyCafe.pyx":4818 * bVal = self.valStr * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< * try: * strVal = (bVal).decode('latin-1') */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4728, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4728, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4818, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4729 + /* "PyCafe.pyx":4819 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -89449,7 +91538,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "PyCafe.pyx":4730 + /* "PyCafe.pyx":4820 * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: * strVal = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -89458,14 +91547,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4730, __pyx_L17_error) + __PYX_ERR(3, 4820, __pyx_L17_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4730, __pyx_L17_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4820, __pyx_L17_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_strVal = __pyx_t_6; __pyx_t_6 = 0; - /* "PyCafe.pyx":4731 + /* "PyCafe.pyx":4821 * try: * strVal = (bVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -89474,7 +91563,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4729 + /* "PyCafe.pyx":4819 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -89490,7 +91579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4732 + /* "PyCafe.pyx":4822 * strVal = (bVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -89505,7 +91594,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L19_except_error; __pyx_L19_except_error:; - /* "PyCafe.pyx":4729 + /* "PyCafe.pyx":4819 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -89525,7 +91614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_L22_try_end:; } - /* "PyCafe.pyx":4728 + /* "PyCafe.pyx":4818 * bVal = self.valStr * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< @@ -89534,7 +91623,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4734 + /* "PyCafe.pyx":4824 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89544,7 +91633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4735 + /* "PyCafe.pyx":4825 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89560,7 +91649,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "PyCafe.pyx":4736 + /* "PyCafe.pyx":4826 * if not encoding: * try: * strVal = (bVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -89569,14 +91658,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4736, __pyx_L24_error) + __PYX_ERR(3, 4826, __pyx_L24_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4736, __pyx_L24_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4826, __pyx_L24_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4737 + /* "PyCafe.pyx":4827 * try: * strVal = (bVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -89585,7 +91674,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4735 + /* "PyCafe.pyx":4825 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89601,7 +91690,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4738 + /* "PyCafe.pyx":4828 * strVal = (bVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -89616,7 +91705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L26_except_error; __pyx_L26_except_error:; - /* "PyCafe.pyx":4735 + /* "PyCafe.pyx":4825 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89636,7 +91725,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_L29_try_end:; } - /* "PyCafe.pyx":4734 + /* "PyCafe.pyx":4824 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89645,7 +91734,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4740 + /* "PyCafe.pyx":4830 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89655,7 +91744,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4741 + /* "PyCafe.pyx":4831 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89671,7 +91760,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "PyCafe.pyx":4742 + /* "PyCafe.pyx":4832 * if not encoding: * try: * strVal = (bVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -89680,14 +91769,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4742, __pyx_L31_error) + __PYX_ERR(3, 4832, __pyx_L31_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4742, __pyx_L31_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4832, __pyx_L31_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4743 + /* "PyCafe.pyx":4833 * try: * strVal = (bVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -89696,7 +91785,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4741 + /* "PyCafe.pyx":4831 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89712,7 +91801,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4744 + /* "PyCafe.pyx":4834 * strVal = (bVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -89727,7 +91816,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L33_except_error; __pyx_L33_except_error:; - /* "PyCafe.pyx":4741 + /* "PyCafe.pyx":4831 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -89747,7 +91836,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_L36_try_end:; } - /* "PyCafe.pyx":4740 + /* "PyCafe.pyx":4830 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89756,7 +91845,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4746 + /* "PyCafe.pyx":4836 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89766,19 +91855,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4747 + /* "PyCafe.pyx":4837 * pass * if not encoding: * strVal = self.valStr # <<<<<<<<<<<<<< * * return strVal */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4747, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4746 + /* "PyCafe.pyx":4836 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -89787,7 +91876,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4749 + /* "PyCafe.pyx":4839 * strVal = self.valStr * * return strVal # <<<<<<<<<<<<<< @@ -89795,12 +91884,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * */ __Pyx_XDECREF(__pyx_r); - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4749, __pyx_L1_error) } + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 4839, __pyx_L1_error) } __Pyx_INCREF(__pyx_v_strVal); __pyx_r = __pyx_v_strVal; goto __pyx_L0; - /* "PyCafe.pyx":4725 + /* "PyCafe.pyx":4815 * if dtcheck in [CAFE_STRING]: * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -89809,7 +91898,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4723 + /* "PyCafe.pyx":4813 * cdef bytes bVal * * if dtcheck in [CAFE_STRING]: # <<<<<<<<<<<<<< @@ -89819,7 +91908,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C break; case CAFE_SHORT: - /* "PyCafe.pyx":4752 + /* "PyCafe.pyx":4842 * * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -89829,34 +91918,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C case CAFE_CHAR: case CAFE_LONG: - /* "PyCafe.pyx":4753 + /* "PyCafe.pyx":4843 * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * status = self._c_cafe.getCacheLong(handle, self.valInt) # <<<<<<<<<<<<<< * if status == ICAFE_NORMAL: * return self.valInt */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheLong(__pyx_v_handle, __pyx_v_self->valInt)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4753, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheLong(__pyx_v_handle, __pyx_v_self->valInt)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4754 + /* "PyCafe.pyx":4844 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * return self.valInt * */ - __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4754, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4754, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4754, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4755 + /* "PyCafe.pyx":4845 * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: * return self.valInt # <<<<<<<<<<<<<< @@ -89864,13 +91953,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4755, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4754 + /* "PyCafe.pyx":4844 * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -89879,7 +91968,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4752 + /* "PyCafe.pyx":4842 * * * elif dtcheck in [CAFE_SHORT, CAFE_CHAR, CAFE_LONG]: # <<<<<<<<<<<<<< @@ -89889,7 +91978,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C break; case CAFE_FLOAT: - /* "PyCafe.pyx":4757 + /* "PyCafe.pyx":4847 * return self.valInt * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -89898,34 +91987,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ case CAFE_DOUBLE: - /* "PyCafe.pyx":4758 + /* "PyCafe.pyx":4848 * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * status = self._c_cafe.getCacheDouble(handle, self.valFloat) # <<<<<<<<<<<<<< * if status == ICAFE_NORMAL: * return self.valFloat */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheDouble(__pyx_v_handle, __pyx_v_self->valFloat)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4758, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheDouble(__pyx_v_handle, __pyx_v_self->valFloat)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4759 + /* "PyCafe.pyx":4849 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * status = self._c_cafe.getCacheDouble(handle, self.valFloat) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * return self.valFloat * */ - __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4759, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4759, __pyx_L1_error) + __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4849, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4759, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4849, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4760 + /* "PyCafe.pyx":4850 * status = self._c_cafe.getCacheDouble(handle, self.valFloat) * if status == ICAFE_NORMAL: * return self.valFloat # <<<<<<<<<<<<<< @@ -89933,13 +92022,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * elif dtcheck == CAFE_ENUM: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = PyFloat_FromDouble(__pyx_v_self->valFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4760, __pyx_L1_error) + __pyx_t_6 = PyFloat_FromDouble(__pyx_v_self->valFloat); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4759 + /* "PyCafe.pyx":4849 * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: * status = self._c_cafe.getCacheDouble(handle, self.valFloat) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -89948,7 +92037,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4757 + /* "PyCafe.pyx":4847 * return self.valInt * * elif dtcheck in [CAFE_FLOAT, CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -89958,7 +92047,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C break; case CAFE_ENUM: - /* "PyCafe.pyx":4764 + /* "PyCafe.pyx":4854 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -89968,34 +92057,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_handle) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4765 + /* "PyCafe.pyx":4855 * # if enum, string taken as native * if self._c_cafe.isEnum(handle): * status = self._c_cafe.getCacheString(handle, self.valStr) # <<<<<<<<<<<<<< * if status == ICAFE_NORMAL: * return self.valStr */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheString(__pyx_v_handle, __pyx_v_self->valStr)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4765, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheString(__pyx_v_handle, __pyx_v_self->valStr)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4766 + /* "PyCafe.pyx":4856 * if self._c_cafe.isEnum(handle): * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * return self.valStr * else: */ - __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4766, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4766, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4766, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4767 + /* "PyCafe.pyx":4857 * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: * return self.valStr # <<<<<<<<<<<<<< @@ -90003,13 +92092,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * status = self._c_cafe.getCacheLong(handle, self.valInt) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4767, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->valStr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4766 + /* "PyCafe.pyx":4856 * if self._c_cafe.isEnum(handle): * status = self._c_cafe.getCacheString(handle, self.valStr) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -90018,7 +92107,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4764 + /* "PyCafe.pyx":4854 * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native * if self._c_cafe.isEnum(handle): # <<<<<<<<<<<<<< @@ -90028,7 +92117,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L40; } - /* "PyCafe.pyx":4769 + /* "PyCafe.pyx":4859 * return self.valStr * else: * status = self._c_cafe.getCacheLong(handle, self.valInt) # <<<<<<<<<<<<<< @@ -90036,27 +92125,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * return self.valInt */ /*else*/ { - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheLong(__pyx_v_handle, __pyx_v_self->valInt)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4769, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->getCacheLong(__pyx_v_handle, __pyx_v_self->valInt)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4770 + /* "PyCafe.pyx":4860 * else: * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * return self.valInt * */ - __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4770, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4770, __pyx_L1_error) + __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4770, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4771 + /* "PyCafe.pyx":4861 * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: * return self.valInt # <<<<<<<<<<<<<< @@ -90064,13 +92153,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * else: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4771, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_dbr_long_t(__pyx_v_self->valInt); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4770 + /* "PyCafe.pyx":4860 * else: * status = self._c_cafe.getCacheLong(handle, self.valInt) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -90081,7 +92170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C } __pyx_L40:; - /* "PyCafe.pyx":4762 + /* "PyCafe.pyx":4852 * return self.valFloat * * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -90091,56 +92180,56 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C break; default: - /* "PyCafe.pyx":4774 + /* "PyCafe.pyx":4864 * * else: * status = self.hh.getStatus(handle) # <<<<<<<<<<<<<< * if status == ICAFE_NORMAL: * print("This line in PyCafe def getCache should never appear!") */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getStatus(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4774, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->hh.getStatus(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_status, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4775 + /* "PyCafe.pyx":4865 * else: * status = self.hh.getStatus(handle) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * print("This line in PyCafe def getCache should never appear!") * print("Datatype unknown, returning value 0") */ - __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4775, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4775, __pyx_L1_error) + __pyx_t_5 = PyObject_RichCompare(__pyx_v_status, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4775, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4776 + /* "PyCafe.pyx":4866 * status = self.hh.getStatus(handle) * if status == ICAFE_NORMAL: * print("This line in PyCafe def getCache should never appear!") # <<<<<<<<<<<<<< * print("Datatype unknown, returning value 0") * return 0 */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__85, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4776, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__85, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4777 + /* "PyCafe.pyx":4867 * if status == ICAFE_NORMAL: * print("This line in PyCafe def getCache should never appear!") * print("Datatype unknown, returning value 0") # <<<<<<<<<<<<<< * return 0 * */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__86, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4777, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__86, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4778 + /* "PyCafe.pyx":4868 * print("This line in PyCafe def getCache should never appear!") * print("Datatype unknown, returning value 0") * return 0 # <<<<<<<<<<<<<< @@ -90152,7 +92241,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_r = __pyx_int_0; goto __pyx_L0; - /* "PyCafe.pyx":4775 + /* "PyCafe.pyx":4865 * else: * status = self.hh.getStatus(handle) * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -90163,22 +92252,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C break; } - /* "PyCafe.pyx":4780 + /* "PyCafe.pyx":4870 * return 0 * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: */ - __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4780, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4780, __pyx_L1_error) + __pyx_t_6 = PyObject_RichCompare(__pyx_v_status, __pyx_t_5, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4870, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4780, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 4870, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":4781 + /* "PyCafe.pyx":4871 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -90188,7 +92277,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4782 + /* "PyCafe.pyx":4872 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -90198,17 +92287,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4783 + /* "PyCafe.pyx":4873 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< * else: * self._c_cafe.printStatus(handle, status) */ - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4783, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4873, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatusMessage(__pyx_t_7); - /* "PyCafe.pyx":4782 + /* "PyCafe.pyx":4872 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -90218,7 +92307,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C goto __pyx_L46; } - /* "PyCafe.pyx":4785 + /* "PyCafe.pyx":4875 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -90226,12 +92315,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * if self._enable_exceptions: */ /*else*/ { - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4785, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4875, __pyx_L1_error) __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_t_7); } __pyx_L46:; - /* "PyCafe.pyx":4781 + /* "PyCafe.pyx":4871 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -90240,7 +92329,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4787 + /* "PyCafe.pyx":4877 * self._c_cafe.printStatus(handle, status) * * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -90250,75 +92339,75 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4789 + /* "PyCafe.pyx":4879 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4789, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4789, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4790 + /* "PyCafe.pyx":4880 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4790, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4791 + /* "PyCafe.pyx":4881 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_v_status) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4791, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_t_7)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4791, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_v_status) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4881, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_t_7)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4792 + /* "PyCafe.pyx":4882 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4792, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_t_7)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4792, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_status); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4882, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_t_7)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4789, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4788 + /* "PyCafe.pyx":4878 * * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4788, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4793 + /* "PyCafe.pyx":4883 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -90326,9 +92415,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C * ################################################################################## */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4793, __pyx_L1_error) + __PYX_ERR(3, 4883, __pyx_L1_error) - /* "PyCafe.pyx":4787 + /* "PyCafe.pyx":4877 * self._c_cafe.printStatus(handle, status) * * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -90337,7 +92426,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4780 + /* "PyCafe.pyx":4870 * return 0 * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -90346,7 +92435,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":4660 + /* "PyCafe.pyx":4750 * ################################################################################## * * def getCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -90373,7 +92462,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_306getCache(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":4799 +/* "PyCafe.pyx":4889 * ################################################################################## * * def getStrArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90417,7 +92506,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_309getStrArrayCache(PyObject *__pyx_v_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStrArrayCache") < 0)) __PYX_ERR(3, 4799, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getStrArrayCache") < 0)) __PYX_ERR(3, 4889, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -90433,13 +92522,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_309getStrArrayCache(PyObject *__pyx_v_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getStrArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4799, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getStrArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4889, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getStrArrayCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4799, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4889, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_308getStrArrayCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -90460,7 +92549,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_308getStrArrayCache(struct __pyx_obj_6 PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getStrArrayCache", 0); - /* "PyCafe.pyx":4800 + /* "PyCafe.pyx":4890 * * def getStrArrayCache(self, handlePV, str art='numpy'): * return self.getArrayCache(handlePV, dt='str', art=art) # <<<<<<<<<<<<<< @@ -90468,18 +92557,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_308getStrArrayCache(struct __pyx_obj_6 * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4800, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4800, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4800, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4800, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4800, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 4890, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4890, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -90488,7 +92577,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_308getStrArrayCache(struct __pyx_obj_6 __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4799 + /* "PyCafe.pyx":4889 * ################################################################################## * * def getStrArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90512,7 +92601,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_308getStrArrayCache(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":4804 +/* "PyCafe.pyx":4894 * * ################################################################################## * def getIntArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90556,7 +92645,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_311getIntArrayCache(PyObject *__pyx_v_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getIntArrayCache") < 0)) __PYX_ERR(3, 4804, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getIntArrayCache") < 0)) __PYX_ERR(3, 4894, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -90572,13 +92661,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_311getIntArrayCache(PyObject *__pyx_v_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getIntArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4804, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getIntArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4894, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getIntArrayCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4804, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4894, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_310getIntArrayCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -90599,7 +92688,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_310getIntArrayCache(struct __pyx_obj_6 PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getIntArrayCache", 0); - /* "PyCafe.pyx":4805 + /* "PyCafe.pyx":4895 * ################################################################################## * def getIntArrayCache(self, handlePV, str art='numpy'): * return self.getArrayCache(handlePV, dt='int', art=art) # <<<<<<<<<<<<<< @@ -90607,18 +92696,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_310getIntArrayCache(struct __pyx_obj_6 * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4805, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4805, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4805, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 4805, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4805, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4805, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -90627,7 +92716,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_310getIntArrayCache(struct __pyx_obj_6 __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4804 + /* "PyCafe.pyx":4894 * * ################################################################################## * def getIntArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90651,7 +92740,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_310getIntArrayCache(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":4809 +/* "PyCafe.pyx":4899 * * ################################################################################## * def getFloatArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90695,7 +92784,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_313getFloatArrayCache(PyObject *__pyx_ } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloatArrayCache") < 0)) __PYX_ERR(3, 4809, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFloatArrayCache") < 0)) __PYX_ERR(3, 4899, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -90711,13 +92800,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_313getFloatArrayCache(PyObject *__pyx_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getFloatArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4809, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getFloatArrayCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4899, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getFloatArrayCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4809, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4899, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_312getFloatArrayCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_art); /* function exit code */ @@ -90738,7 +92827,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_312getFloatArrayCache(struct __pyx_obj PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getFloatArrayCache", 0); - /* "PyCafe.pyx":4810 + /* "PyCafe.pyx":4900 * ################################################################################## * def getFloatArrayCache(self, handlePV, str art='numpy'): * return self.getArrayCache(handlePV, dt='float', art=art) # <<<<<<<<<<<<<< @@ -90746,18 +92835,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_312getFloatArrayCache(struct __pyx_obj * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4810, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getArrayCache); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4810, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handlePV); - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4810, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 4900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 4810, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4810, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4810, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 4900, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_art, __pyx_v_art) < 0) __PYX_ERR(3, 4900, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -90766,7 +92855,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_312getFloatArrayCache(struct __pyx_obj __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4809 + /* "PyCafe.pyx":4899 * * ################################################################################## * def getFloatArrayCache(self, handlePV, str art='numpy'): # <<<<<<<<<<<<<< @@ -90790,7 +92879,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_312getFloatArrayCache(struct __pyx_obj return __pyx_r; } -/* "PyCafe.pyx":4814 +/* "PyCafe.pyx":4904 * * ################################################################################## * def getArrayCache(self, handlePV, str dt='native', str art='numpy'): # <<<<<<<<<<<<<< @@ -90844,7 +92933,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_315getArrayCache(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getArrayCache") < 0)) __PYX_ERR(3, 4814, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getArrayCache") < 0)) __PYX_ERR(3, 4904, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -90863,14 +92952,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_315getArrayCache(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getArrayCache", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4814, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getArrayCache", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4904, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getArrayCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4814, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4814, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 4904, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_art), (&PyUnicode_Type), 1, "art", 1))) __PYX_ERR(3, 4904, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_314getArrayCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt, __pyx_v_art); /* function exit code */ @@ -90885,6 +92974,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_315getArrayCache(PyObject *__pyx_v_sel static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyCafe_CyCafe *__pyx_v_self, PyObject *__pyx_v_handlePV, PyObject *__pyx_v_dt, PyObject *__pyx_v_art) { PyObject *__pyx_v__METHOD = 0; unsigned int __pyx_v_handle; + dbr_char_t *__pyx_v_ui8val; short *__pyx_v_i16val; int *__pyx_v_ival; double *__pyx_v_dval; @@ -90907,7 +92997,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC CYTHON_UNUSED PyObject *__pyx_v_strVal = NULL; PyObject *__pyx_v_valStr = NULL; CYTHON_UNUSED int __pyx_v_encoded; - PyObject *__pyx_v_mvShortNP = NULL; + PyObject *__pyx_v_mvInt8 = NULL; + PyObject *__pyx_v_mvUInt8 = NULL; PyObject *__pyx_v_arrayArray = NULL; PyObject *__pyx_v_ctypesArray = NULL; PyObject *__pyx_v_mvIntNP = NULL; @@ -90935,18 +93026,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_memviewslice __pyx_t_18 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_19; size_t __pyx_t_20; - __Pyx_memviewslice __pyx_t_21 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_21; size_t __pyx_t_22; size_t __pyx_t_23; - __Pyx_memviewslice __pyx_t_24 = { 0, 0, { 0 }, { 0 }, { 0 } }; - size_t __pyx_t_25; + size_t __pyx_t_24; + __Pyx_memviewslice __pyx_t_25 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_26; - __Pyx_memviewslice __pyx_t_27 = { 0, 0, { 0 }, { 0 }, { 0 } }; - size_t __pyx_t_28; + size_t __pyx_t_27; + __Pyx_memviewslice __pyx_t_28 = { 0, 0, { 0 }, { 0 }, { 0 } }; size_t __pyx_t_29; + size_t __pyx_t_30; + __Pyx_memviewslice __pyx_t_31 = { 0, 0, { 0 }, { 0 }, { 0 } }; + size_t __pyx_t_32; + size_t __pyx_t_33; __Pyx_RefNannySetupContext("getArrayCache", 0); - /* "PyCafe.pyx":4825 + /* "PyCafe.pyx":4915 * # allowing sharing of data buffers without copying * * cdef str _METHOD = "getArrayCache" # <<<<<<<<<<<<<< @@ -90956,7 +93051,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_getArrayCache); __pyx_v__METHOD = __pyx_n_u_getArrayCache; - /* "PyCafe.pyx":4827 + /* "PyCafe.pyx":4917 * cdef str _METHOD = "getArrayCache" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -90965,7 +93060,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_handle = 0; - /* "PyCafe.pyx":4829 + /* "PyCafe.pyx":4919 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -90986,17 +93081,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4830 + /* "PyCafe.pyx":4920 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4830, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4920, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":4829 + /* "PyCafe.pyx":4919 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -91006,7 +93101,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":4831 + /* "PyCafe.pyx":4921 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -91017,21 +93112,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4832 + /* "PyCafe.pyx":4922 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("{} {} {}".format(self._exception_text, _METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 4832, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4832, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 4922, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4832, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4922, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":4831 + /* "PyCafe.pyx":4921 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -91041,7 +93136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":4834 + /* "PyCafe.pyx":4924 * handle = self.checkForHandle(handlePV) * else: * raise Exception("{} {} {}".format(self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -91049,7 +93144,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__39, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; @@ -91066,7 +93161,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_4}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -91074,13 +93169,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_input_argument_should_be_o_4}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -91094,21 +93189,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_First_input_argument_should_be_o_4); __Pyx_GIVEREF(__pyx_kp_u_First_input_argument_should_be_o_4); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_input_argument_should_be_o_4); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4834, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 4834, __pyx_L1_error) + __PYX_ERR(3, 4924, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":4849 + /* "PyCafe.pyx":4940 * # str [:,::1] mvStr * cnp.ndarray arr * long dtr = 0 # <<<<<<<<<<<<<< @@ -91117,7 +93212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_dtr = 0; - /* "PyCafe.pyx":4854 + /* "PyCafe.pyx":4945 * unsigned int ij * * status = self.hh.getDataTypeNative(handle, dtr) # <<<<<<<<<<<<<< @@ -91126,7 +93221,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->hh.getDataTypeNative(__pyx_v_handle, __pyx_v_dtr); - /* "PyCafe.pyx":4856 + /* "PyCafe.pyx":4947 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -91136,7 +93231,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4857 + /* "PyCafe.pyx":4948 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91146,7 +93241,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4858 + /* "PyCafe.pyx":4949 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -91156,7 +93251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4859 + /* "PyCafe.pyx":4950 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -91165,7 +93260,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":4858 + /* "PyCafe.pyx":4949 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -91175,7 +93270,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L8; } - /* "PyCafe.pyx":4861 + /* "PyCafe.pyx":4952 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -91187,7 +93282,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC } __pyx_L8:; - /* "PyCafe.pyx":4857 + /* "PyCafe.pyx":4948 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91196,7 +93291,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4862 + /* "PyCafe.pyx":4953 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91206,76 +93301,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4864 + /* "PyCafe.pyx":4955 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4864, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4865 + /* "PyCafe.pyx":4956 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4865, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4866 + /* "PyCafe.pyx":4957 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4866, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4866, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4867 + /* "PyCafe.pyx":4958 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4867, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4864, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4863 + /* "PyCafe.pyx":4954 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4863, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4868 + /* "PyCafe.pyx":4959 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -91283,9 +93378,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * return [None] */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4868, __pyx_L1_error) + __PYX_ERR(3, 4959, __pyx_L1_error) - /* "PyCafe.pyx":4862 + /* "PyCafe.pyx":4953 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91294,7 +93389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4870 + /* "PyCafe.pyx":4961 * raise _cafeException * * return [None] # <<<<<<<<<<<<<< @@ -91302,7 +93397,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4870, __pyx_L1_error) + __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -91311,7 +93406,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4856 + /* "PyCafe.pyx":4947 * status = self.hh.getDataTypeNative(handle, dtr) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -91321,7 +93416,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L6; } - /* "PyCafe.pyx":4872 + /* "PyCafe.pyx":4963 * return [None] * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -91340,7 +93435,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4873 + /* "PyCafe.pyx":4964 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: # <<<<<<<<<<<<<< @@ -91350,7 +93445,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_self->_c_cafe->isChannelConnected(__pyx_v_handle) == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4874 + /* "PyCafe.pyx":4965 * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -91359,7 +93454,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":4875 + /* "PyCafe.pyx":4966 * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91369,7 +93464,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4876 + /* "PyCafe.pyx":4967 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus( # <<<<<<<<<<<<<< @@ -91378,7 +93473,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_self->channelInfo.getCafeConnectionState()); - /* "PyCafe.pyx":4875 + /* "PyCafe.pyx":4966 * if self._c_cafe.isChannelConnected(handle) is False: * self._c_cafe.getChannelInfo(handle, self.channelInfo) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91387,7 +93482,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4878 + /* "PyCafe.pyx":4969 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91397,84 +93492,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4880 + /* "PyCafe.pyx":4971 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4880, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4881 + /* "PyCafe.pyx":4972 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4881, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4882 + /* "PyCafe.pyx":4973 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), # <<<<<<<<<<<<<< * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4882, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->channelInfo.getCafeConnectionState()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4883 + /* "PyCafe.pyx":4974 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=self.channelInfo.getCafeConnectionState(), * _error_text=self.cs.code( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4883, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4885 + /* "PyCafe.pyx":4976 * _error_text=self.cs.code( * self.channelInfo.getCafeConnectionState()), * _error_info=self.cs.info( # <<<<<<<<<<<<<< * self.channelInfo.getCafeConnectionState())) * raise _cafeException */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4885, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_self->channelInfo.getCafeConnectionState())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 4880, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 4971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4879 + /* "PyCafe.pyx":4970 * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4879, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4887 + /* "PyCafe.pyx":4978 * _error_info=self.cs.info( * self.channelInfo.getCafeConnectionState())) * raise _cafeException # <<<<<<<<<<<<<< @@ -91482,9 +93577,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4887, __pyx_L1_error) + __PYX_ERR(3, 4978, __pyx_L1_error) - /* "PyCafe.pyx":4878 + /* "PyCafe.pyx":4969 * self._c_cafe.printStatus( * handle, self.channelInfo.getCafeConnectionState()) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91493,7 +93588,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4888 + /* "PyCafe.pyx":4979 * self.channelInfo.getCafeConnectionState())) * raise _cafeException * return [None] # <<<<<<<<<<<<<< @@ -91501,7 +93596,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * # Likely to be superfluous */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4888, __pyx_L1_error) + __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -91510,7 +93605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4873 + /* "PyCafe.pyx":4964 * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: * if self._c_cafe.isChannelConnected(handle) is False: # <<<<<<<<<<<<<< @@ -91519,7 +93614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4891 + /* "PyCafe.pyx":4982 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91529,7 +93624,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4892 + /* "PyCafe.pyx":4983 * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) # <<<<<<<<<<<<<< @@ -91538,7 +93633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, ICAFE_TYPENOTCONN); - /* "PyCafe.pyx":4891 + /* "PyCafe.pyx":4982 * * # Likely to be superfluous * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -91547,7 +93642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4893 + /* "PyCafe.pyx":4984 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91557,84 +93652,84 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4895 + /* "PyCafe.pyx":4986 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4895, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4896 + /* "PyCafe.pyx":4987 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4896, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_t_5) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4897 + /* "PyCafe.pyx":4988 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) */ - __pyx_t_5 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4897, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_CAFE_CFT_STATE(ICAFE_TYPENOTCONN); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4898 + /* "PyCafe.pyx":4989 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4898, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4899 + /* "PyCafe.pyx":4990 * _error_code=ICAFE_TYPENOTCONN, * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) # <<<<<<<<<<<<<< * raise _cafeException * return [None] */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4899, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ICAFE_TYPENOTCONN)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 4986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4894 + /* "PyCafe.pyx":4985 * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4894, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4900 + /* "PyCafe.pyx":4991 * _error_text=self.cs.code(ICAFE_TYPENOTCONN), * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException # <<<<<<<<<<<<<< @@ -91642,9 +93737,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 4900, __pyx_L1_error) + __PYX_ERR(3, 4991, __pyx_L1_error) - /* "PyCafe.pyx":4893 + /* "PyCafe.pyx":4984 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatus(handle, ICAFE_TYPENOTCONN) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -91653,7 +93748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4901 + /* "PyCafe.pyx":4992 * _error_info=self.cs.info(ICAFE_TYPENOTCONN)) * raise _cafeException * return [None] # <<<<<<<<<<<<<< @@ -91661,7 +93756,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * cdef unsigned int nelemToRetrieveFromCache = self.hh.getNelemToRetrieveFromCache(handle) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4901, __pyx_L1_error) + __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -91670,7 +93765,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":4872 + /* "PyCafe.pyx":4963 * return [None] * * elif dtr in [CAFE_NO_ACCESS, CAFE_TYPENOTCONN]: # <<<<<<<<<<<<<< @@ -91680,7 +93775,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC } __pyx_L6:; - /* "PyCafe.pyx":4903 + /* "PyCafe.pyx":4994 * return [None] * * cdef unsigned int nelemToRetrieveFromCache = self.hh.getNelemToRetrieveFromCache(handle) # <<<<<<<<<<<<<< @@ -91689,7 +93784,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_nelemToRetrieveFromCache = __pyx_v_self->hh.getNelemToRetrieveFromCache(__pyx_v_handle); - /* "PyCafe.pyx":4905 + /* "PyCafe.pyx":4996 * cdef unsigned int nelemToRetrieveFromCache = self.hh.getNelemToRetrieveFromCache(handle) * * cdef unsigned int dtcheck = dtr # <<<<<<<<<<<<<< @@ -91698,23 +93793,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_dtcheck = __pyx_v_dtr; - /* "PyCafe.pyx":4906 + /* "PyCafe.pyx":4997 * * cdef unsigned int dtcheck = dtr * dtcheck = getMatchedDataType(dt, dtr) # <<<<<<<<<<<<<< * * # The element type of a typed memoryview may be a numeric scalar type (int, float) */ - __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4906, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_long(__pyx_v_dtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4906, __pyx_L1_error) + __pyx_t_6 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4906, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 4997, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_dtcheck = __pyx_t_4; - /* "PyCafe.pyx":4911 + /* "PyCafe.pyx":5002 * # It may be a ctypedef alias, or it may be a structured type declared with e.g. cdef struct * * if dtcheck in [CAFE_STRING, CAFE_ENUM]: # <<<<<<<<<<<<<< @@ -91725,7 +93820,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC case CAFE_STRING: case CAFE_ENUM: - /* "PyCafe.pyx":4912 + /* "PyCafe.pyx":5003 * * if dtcheck in [CAFE_STRING, CAFE_ENUM]: * sval = malloc(nelemToRetrieveFromCache * sizeof(dbr_string_t)) # <<<<<<<<<<<<<< @@ -91734,7 +93829,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_sval = ((char (*)[40])malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(dbr_string_t))))); - /* "PyCafe.pyx":4914 + /* "PyCafe.pyx":5005 * sval = malloc(nelemToRetrieveFromCache * sizeof(dbr_string_t)) * * status = self._c_cafe.getCacheDbrStringArray(handle, sval) # <<<<<<<<<<<<<< @@ -91743,19 +93838,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->_c_cafe->getCacheDbrStringArray(__pyx_v_handle, __pyx_v_sval); - /* "PyCafe.pyx":4916 + /* "PyCafe.pyx":5007 * status = self._c_cafe.getCacheDbrStringArray(handle, sval) * * locallist = [] # <<<<<<<<<<<<<< * * if status == ICAFE_NORMAL: */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4916, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_locallist = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":4918 + /* "PyCafe.pyx":5009 * locallist = [] * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -91765,7 +93860,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":4920 + /* "PyCafe.pyx":5011 * if status == ICAFE_NORMAL: * * for i in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -91777,14 +93872,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; - /* "PyCafe.pyx":4922 + /* "PyCafe.pyx":5013 * for i in range(0, nelemToRetrieveFromCache): * * bVal = ( sval[i]) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): */ - __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_sval[__pyx_v_i]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 4922, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string(((std::string)(__pyx_v_sval[__pyx_v_i]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __pyx_t_6; __Pyx_INCREF(__pyx_t_5); @@ -91792,7 +93887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_bVal, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":4923 + /* "PyCafe.pyx":5014 * * bVal = ( sval[i]) * encoding = False # <<<<<<<<<<<<<< @@ -91801,21 +93896,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":4924 + /* "PyCafe.pyx":5015 * bVal = ( sval[i]) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< * try: * strVal = (bVal).decode('latin-1') */ - __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4924, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 4924, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5015, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4925 + /* "PyCafe.pyx":5016 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -91831,7 +93926,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4926 + /* "PyCafe.pyx":5017 * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: * strVal = (bVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -91840,14 +93935,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4926, __pyx_L19_error) + __PYX_ERR(3, 5017, __pyx_L19_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4926, __pyx_L19_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5017, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4927 + /* "PyCafe.pyx":5018 * try: * strVal = (bVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -91856,7 +93951,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":4925 + /* "PyCafe.pyx":5016 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -91874,7 +93969,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4928 + /* "PyCafe.pyx":5019 * strVal = (bVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -91889,7 +93984,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L21_except_error; __pyx_L21_except_error:; - /* "PyCafe.pyx":4925 + /* "PyCafe.pyx":5016 * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): * try: # <<<<<<<<<<<<<< @@ -91909,7 +94004,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_L26_try_end:; } - /* "PyCafe.pyx":4924 + /* "PyCafe.pyx":5015 * bVal = ( sval[i]) * encoding = False * if '.EGU' in self._c_cafe.getPVFromHandle(handle): # <<<<<<<<<<<<<< @@ -91918,7 +94013,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4931 + /* "PyCafe.pyx":5022 * pass * * if not encoding: # <<<<<<<<<<<<<< @@ -91928,7 +94023,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4932 + /* "PyCafe.pyx":5023 * * if not encoding: * try: # <<<<<<<<<<<<<< @@ -91944,7 +94039,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "PyCafe.pyx":4933 + /* "PyCafe.pyx":5024 * if not encoding: * try: * valStr = bVal.decode('utf-8') # <<<<<<<<<<<<<< @@ -91953,14 +94048,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4933, __pyx_L28_error) + __PYX_ERR(3, 5024, __pyx_L28_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4933, __pyx_L28_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5024, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4934 + /* "PyCafe.pyx":5025 * try: * valStr = bVal.decode('utf-8') * encoded = True # <<<<<<<<<<<<<< @@ -91969,7 +94064,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_encoded = 1; - /* "PyCafe.pyx":4932 + /* "PyCafe.pyx":5023 * * if not encoding: * try: # <<<<<<<<<<<<<< @@ -91987,7 +94082,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4935 + /* "PyCafe.pyx":5026 * valStr = bVal.decode('utf-8') * encoded = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -92002,7 +94097,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L30_except_error; __pyx_L30_except_error:; - /* "PyCafe.pyx":4932 + /* "PyCafe.pyx":5023 * * if not encoding: * try: # <<<<<<<<<<<<<< @@ -92022,7 +94117,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_L35_try_end:; } - /* "PyCafe.pyx":4931 + /* "PyCafe.pyx":5022 * pass * * if not encoding: # <<<<<<<<<<<<<< @@ -92031,7 +94126,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4937 + /* "PyCafe.pyx":5028 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -92041,7 +94136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4938 + /* "PyCafe.pyx":5029 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -92057,7 +94152,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "PyCafe.pyx":4939 + /* "PyCafe.pyx":5030 * if not encoding: * try: * valStr = bVal.decode('utf-16') # <<<<<<<<<<<<<< @@ -92066,14 +94161,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_bVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 4939, __pyx_L37_error) + __PYX_ERR(3, 5030, __pyx_L37_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4939, __pyx_L37_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5030, __pyx_L37_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4940 + /* "PyCafe.pyx":5031 * try: * valStr = bVal.decode('utf-16') * encoded = True # <<<<<<<<<<<<<< @@ -92082,7 +94177,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_encoded = 1; - /* "PyCafe.pyx":4938 + /* "PyCafe.pyx":5029 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -92100,7 +94195,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4941 + /* "PyCafe.pyx":5032 * valStr = bVal.decode('utf-16') * encoded = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -92115,7 +94210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC goto __pyx_L39_except_error; __pyx_L39_except_error:; - /* "PyCafe.pyx":4938 + /* "PyCafe.pyx":5029 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -92135,7 +94230,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_L44_try_end:; } - /* "PyCafe.pyx":4937 + /* "PyCafe.pyx":5028 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -92144,7 +94239,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4944 + /* "PyCafe.pyx":5035 * pass * * if not encoding: # <<<<<<<<<<<<<< @@ -92154,19 +94249,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":4945 + /* "PyCafe.pyx":5036 * * if not encoding: * valStr = sval[i] # <<<<<<<<<<<<<< * * */ - __pyx_t_5 = __Pyx_PyObject_FromString((__pyx_v_sval[__pyx_v_i])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 4945, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FromString((__pyx_v_sval[__pyx_v_i])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_valStr, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":4944 + /* "PyCafe.pyx":5035 * pass * * if not encoding: # <<<<<<<<<<<<<< @@ -92175,18 +94270,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4948 + /* "PyCafe.pyx":5039 * * * locallist.append(valStr) #sval[i]) # <<<<<<<<<<<<<< * * free(sval) */ - if (unlikely(!__pyx_v_valStr)) { __Pyx_RaiseUnboundLocalError("valStr"); __PYX_ERR(3, 4948, __pyx_L1_error) } - __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_locallist, __pyx_v_valStr); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 4948, __pyx_L1_error) + if (unlikely(!__pyx_v_valStr)) { __Pyx_RaiseUnboundLocalError("valStr"); __PYX_ERR(3, 5039, __pyx_L1_error) } + __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_locallist, __pyx_v_valStr); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5039, __pyx_L1_error) } - /* "PyCafe.pyx":4950 + /* "PyCafe.pyx":5041 * locallist.append(valStr) #sval[i]) * * free(sval) # <<<<<<<<<<<<<< @@ -92195,7 +94290,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_sval); - /* "PyCafe.pyx":4951 + /* "PyCafe.pyx":5042 * * free(sval) * return locallist # <<<<<<<<<<<<<< @@ -92207,7 +94302,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_locallist; goto __pyx_L0; - /* "PyCafe.pyx":4918 + /* "PyCafe.pyx":5009 * locallist = [] * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -92216,7 +94311,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4911 + /* "PyCafe.pyx":5002 * # It may be a ctypedef alias, or it may be a structured type declared with e.g. cdef struct * * if dtcheck in [CAFE_STRING, CAFE_ENUM]: # <<<<<<<<<<<<<< @@ -92224,33 +94319,1388 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * */ break; - case CAFE_SHORT: - - /* "PyCafe.pyx":5007 - * return mvStr - * ''' - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: # <<<<<<<<<<<<<< - * - * i16val = malloc(nelemToRetrieveFromCache * sizeof(np.int16)) - */ case CAFE_CHAR: - /* "PyCafe.pyx":5009 - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: + /* "PyCafe.pyx":5100 + * elif dtcheck in [CAFE_CHAR]: + * + * ui8val = malloc(nelemToRetrieveFromCache * sizeof(np.uint8)) # <<<<<<<<<<<<<< + * + * status = self._c_cafe.getCacheCharArray(handle, ui8val) + */ + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_uint8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_ui8val = ((dbr_char_t *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(__pyx_t_6))))); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5102 + * ui8val = malloc(nelemToRetrieveFromCache * sizeof(np.uint8)) + * + * status = self._c_cafe.getCacheCharArray(handle, ui8val) # <<<<<<<<<<<<<< + * + * if status == ICAFE_NORMAL: + */ + __pyx_v_status = __pyx_v_self->_c_cafe->getCacheCharArray(__pyx_v_handle, __pyx_v_ui8val); + + /* "PyCafe.pyx":5104 + * status = self._c_cafe.getCacheCharArray(handle, ui8val) + * + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + */ + __pyx_t_1 = ((__pyx_v_status == ICAFE_NORMAL) != 0); + if (__pyx_t_1) { + + /* "PyCafe.pyx":5107 + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5107, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L48_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5107, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L48_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5107, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L48_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5107, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L48_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5107, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L48_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { + + /* "PyCafe.pyx":5109 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5109, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L54_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5109, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L54_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5109, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L54_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5109, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = __pyx_t_1; + __pyx_L54_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__pyx_t_3 != 0); + if (__pyx_t_1) { + + /* "PyCafe.pyx":5110 + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5111 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] + */ + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + + /* "PyCafe.pyx":5110 + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5111 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] + */ + __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int16); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5111, __pyx_L1_error) + + /* "PyCafe.pyx":5110 + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_17, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_v_mvShort = __pyx_t_18; + __pyx_t_18.memview = NULL; + __pyx_t_18.data = NULL; + + /* "PyCafe.pyx":5112 + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvShort[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5113 + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return np.array(mvShort) + */ + __pyx_t_19 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_19 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5113, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_19)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_ui8val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5114 + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * return np.array(mvShort) + * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5115 + * mvShort[ij] = ui8val[ij] + * free(ui8val) + * return np.array(mvShort) # <<<<<<<<<<<<<< + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_6 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_9, function); + } + } + __pyx_t_17 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_6); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_r = __pyx_t_17; + __pyx_t_17 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5109 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + goto __pyx_L53; + } + + /* "PyCafe.pyx":5117 + * return np.array(mvShort) + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L60_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L60_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L60_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L60_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L60_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5117, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L60_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { + + /* "PyCafe.pyx":5118 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + + /* "PyCafe.pyx":5119 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = ui8val[ij] + */ + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + + /* "PyCafe.pyx":5118 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_17); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_17); + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5119 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = ui8val[ij] + */ + __pyx_t_17 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int8); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5119, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5119, __pyx_L1_error) + + /* "PyCafe.pyx":5118 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, __pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_v_mvInt8 = __pyx_t_7; + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5120 + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvInt8[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5121 + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return np.array(mvInt8) + */ + __pyx_t_7 = __Pyx_PyInt_From_npy_int8(((__pyx_t_5numpy_int8_t)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvInt8, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5121, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + } + + /* "PyCafe.pyx":5122 + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * return np.array(mvInt8) + * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5123 + * mvInt8[ij] = ui8val[ij] + * free(ui8val) + * return np.array(mvInt8) # <<<<<<<<<<<<<< + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_array); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_17 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_17)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_17); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_7 = (__pyx_t_17) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_17, __pyx_v_mvInt8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_mvInt8); + __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_r = __pyx_t_7; + __pyx_t_7 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5117 + * return np.array(mvShort) + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + */ + goto __pyx_L53; + } + + /* "PyCafe.pyx":5125 + * return np.array(mvInt8) + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L68_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L68_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + __pyx_t_3 = __pyx_t_2; + __pyx_L68_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":5126 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5127 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + */ + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + + /* "PyCafe.pyx":5126 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_GIVEREF(__pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_7); + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5127 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + */ + __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_uint8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5127, __pyx_L1_error) + + /* "PyCafe.pyx":5126 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_17, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_v_mvUInt8 = __pyx_t_5; + __pyx_t_5 = 0; + + /* "PyCafe.pyx":5128 + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5129 + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return np.array(mvUInt8) + */ + __pyx_t_5 = __Pyx_PyInt_From_npy_uint8(((__pyx_t_5numpy_uint8_t)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvUInt8, __pyx_v_ij, __pyx_t_5, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5129, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + + /* "PyCafe.pyx":5130 + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * return np.array(mvUInt8) + * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5131 + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) + * return np.array(mvUInt8) # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_array); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_7 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_17))) { + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_17); + if (likely(__pyx_t_7)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_17); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_17, function); + } + } + __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_17, __pyx_t_7, __pyx_v_mvUInt8) : __Pyx_PyObject_CallOneArg(__pyx_t_17, __pyx_v_mvUInt8); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5125 + * return np.array(mvInt8) + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + */ + goto __pyx_L53; + } + + /* "PyCafe.pyx":5135 + * else: + * + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * + */ + /*else*/ { + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "PyCafe.pyx":5136 + * + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "PyCafe.pyx":5135 + * else: + * + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * + */ + __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); + __pyx_t_5 = 0; + + /* "PyCafe.pyx":5136 + * + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5136, __pyx_L1_error) + + /* "PyCafe.pyx":5135 + * else: + * + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * + */ + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_17, __pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_mvUInt8 = __pyx_t_9; + __pyx_t_9 = 0; + + /* "PyCafe.pyx":5138 + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvUInt8[ij] = ui8val[ij] + * + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5139 + * + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * + * free(ui8val) + */ + __pyx_t_9 = __Pyx_PyInt_From_npy_uint8(((__pyx_t_5numpy_uint8_t)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvUInt8, __pyx_v_ij, __pyx_t_9, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5139, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + } + + /* "PyCafe.pyx":5141 + * mvUInt8[ij] = ui8val[ij] + * + * free(ui8val) # <<<<<<<<<<<<<< + * + * return np.array(mvUInt8) + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5143 + * free(ui8val) + * + * return np.array(mvUInt8) # <<<<<<<<<<<<<< + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_array); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_7, function); + } + } + __pyx_t_9 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_v_mvUInt8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_mvUInt8); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + __pyx_L53:; + + /* "PyCafe.pyx":5107 + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + */ + goto __pyx_L47; + } + + /* "PyCafe.pyx":5145 + * return np.array(mvUInt8) + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5145, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_2 = __pyx_t_1; + goto __pyx_L75_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5145, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_2 = __pyx_t_3; + goto __pyx_L75_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5145, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L75_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { + + /* "PyCafe.pyx":5146 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "PyCafe.pyx":5147 + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + + /* "PyCafe.pyx":5146 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_9); + __pyx_t_9 = 0; + + /* "PyCafe.pyx":5147 + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_int16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(3, 5147, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5147, __pyx_L1_error) + + /* "PyCafe.pyx":5146 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_6, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5146, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_v_mvShort = __pyx_t_18; + __pyx_t_18.memview = NULL; + __pyx_t_18.data = NULL; + + /* "PyCafe.pyx":5149 + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvShort[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5150 + * + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * + */ + __pyx_t_20 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_20 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5150, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_20)) )) = ((short)(__pyx_v_ui8val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5151 + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * + * return mvShort + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5153 + * free(ui8val) + * + * return mvShort # <<<<<<<<<<<<<< + * + * elif art in ['array', 'array.array']: + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_6 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_r = __pyx_t_6; + __pyx_t_6 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5145 + * return np.array(mvUInt8) + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + goto __pyx_L47; + } + + /* "PyCafe.pyx":5155 + * return mvShort + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5155, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L80_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5155, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = __pyx_t_2; + __pyx_L80_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_1 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":5156 + * + * elif art in ['array', 'array.array']: + * arrayArray = array.array('h') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( ui8val[ij]) + */ + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_v_arrayArray = __pyx_t_6; + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5157 + * elif art in ['array', 'array.array']: + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * arrayArray.append( ui8val[ij]) + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5158 + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( ui8val[ij]) # <<<<<<<<<<<<<< + * free(ui8val) + * return arrayArray + */ + __pyx_t_6 = __Pyx_PyInt_From_dbr_char_t(((dbr_char_t)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5158, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_6); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5158, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + } + + /* "PyCafe.pyx":5159 + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( ui8val[ij]) + * free(ui8val) # <<<<<<<<<<<<<< + * return arrayArray + * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5160 + * arrayArray.append( ui8val[ij]) + * free(ui8val) + * return arrayArray # <<<<<<<<<<<<<< + * + * elif art in ['ctypes', 'ctype']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_arrayArray); + __pyx_r = __pyx_v_arrayArray; + goto __pyx_L0; + + /* "PyCafe.pyx":5155 + * return mvShort + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + */ + goto __pyx_L47; + } + + /* "PyCafe.pyx":5162 + * return arrayArray + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5162, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_2 = __pyx_t_3; + goto __pyx_L84_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5162, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L84_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { + + /* "PyCafe.pyx":5163 + * + * elif art in ['ctypes', 'ctype']: + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = ui8val[ij] + */ + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_7 = PyNumber_Multiply(__pyx_t_5, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_7, function); + } + } + __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_v_ctypesArray = __pyx_t_6; + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5164 + * elif art in ['ctypes', 'ctype']: + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * ctypesArray[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5165 + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * return ctypesArray + */ + __pyx_t_6 = __Pyx_PyInt_From_short(((short)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_6, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5165, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + } + + /* "PyCafe.pyx":5166 + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * return ctypesArray + * + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5167 + * ctypesArray[ij] = ui8val[ij] + * free(ui8val) + * return ctypesArray # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ctypesArray); + __pyx_r = __pyx_v_ctypesArray; + goto __pyx_L0; + + /* "PyCafe.pyx":5162 + * return arrayArray + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + */ + goto __pyx_L47; + } + + /* "PyCafe.pyx":5170 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + /*else*/ { + + /* "PyCafe.pyx":5171 + * else: + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") # <<<<<<<<<<<<<< + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + */ + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_INCREF(__pyx_v_art); + __Pyx_GIVEREF(__pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_art); + __Pyx_INCREF(__pyx_kp_u_Possible_types_are); + __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u_Possible_types_are); + + /* "PyCafe.pyx":5170 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5172 + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< + * print("Returning memoryview") + * mvUInt8 = np.empty( + */ + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5173 + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + */ + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5174 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5175 + * print("Returning memoryview") + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + */ + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + + /* "PyCafe.pyx":5174 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5175 + * print("Returning memoryview") + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + */ + __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_uint8); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5175, __pyx_L1_error) + + /* "PyCafe.pyx":5174 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_v_mvUInt8 = __pyx_t_17; + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5176 + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5177 + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] # <<<<<<<<<<<<<< + * free(ui8val) + * + */ + __pyx_t_17 = __Pyx_PyInt_From_dbr_char_t(((dbr_char_t)(__pyx_v_ui8val[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvUInt8, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5177, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + } + + /* "PyCafe.pyx":5178 + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = ui8val[ij] + * free(ui8val) # <<<<<<<<<<<<<< + * + * return mvUInt8 + */ + free(__pyx_v_ui8val); + + /* "PyCafe.pyx":5180 + * free(ui8val) + * + * return mvUInt8 # <<<<<<<<<<<<<< + * + * + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_mvUInt8); + __pyx_r = __pyx_v_mvUInt8; + goto __pyx_L0; + } + __pyx_L47:; + + /* "PyCafe.pyx":5104 + * status = self._c_cafe.getCacheCharArray(handle, ui8val) + * + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + */ + } + + /* "PyCafe.pyx":5098 + * return mvStr + * ''' + * elif dtcheck in [CAFE_CHAR]: # <<<<<<<<<<<<<< + * + * ui8val = malloc(nelemToRetrieveFromCache * sizeof(np.uint8)) + */ + break; + case CAFE_SHORT: + + /* "PyCafe.pyx":5186 + * elif dtcheck in [CAFE_SHORT]: * * i16val = malloc(nelemToRetrieveFromCache * sizeof(np.int16)) # <<<<<<<<<<<<<< * * status = self._c_cafe.getCacheShortArray(handle, i16val) */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_i16val = ((short *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(__pyx_t_6))))); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_int16); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_v_i16val = ((short *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(__pyx_t_7))))); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":5011 + /* "PyCafe.pyx":5188 * i16val = malloc(nelemToRetrieveFromCache * sizeof(np.int16)) * * status = self._c_cafe.getCacheShortArray(handle, i16val) # <<<<<<<<<<<<<< @@ -92259,7 +95709,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->_c_cafe->getCacheShortArray(__pyx_v_handle, __pyx_v_i16val); - /* "PyCafe.pyx":5013 + /* "PyCafe.pyx":5190 * status = self._c_cafe.getCacheShortArray(handle, i16val) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -92269,178 +95719,777 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_status == ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5016 + /* "PyCafe.pyx":5193 * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * - * mvShortNP = np.empty( + * if dt in ['np.short', 'np.int16', 'short', 'int16']: */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5016, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; - goto __pyx_L48_bool_binop_done; + goto __pyx_L92_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5016, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (!__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; - goto __pyx_L48_bool_binop_done; + goto __pyx_L92_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5016, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; - goto __pyx_L48_bool_binop_done; + goto __pyx_L92_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5016, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (!__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; - goto __pyx_L48_bool_binop_done; + goto __pyx_L92_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5016, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); __pyx_t_1 = __pyx_t_3; - __pyx_L48_bool_binop_done:; + __pyx_L92_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":5018 + /* "PyCafe.pyx":5195 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * - * mvShortNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_short, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5195, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L98_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_int16, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5195, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L98_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_short, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5195, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L98_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_int16, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5195, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = __pyx_t_1; + __pyx_L98_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__pyx_t_3 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5019 + /* "PyCafe.pyx":5196 * - * mvShortNP = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * - * for ij in range(0, nelemToRetrieveFromCache): + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - - /* "PyCafe.pyx":5018 - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - * - * mvShortNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * - */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); - __pyx_t_6 = 0; - - /* "PyCafe.pyx":5019 - * - * mvShortNP = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int16); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5019, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5019, __pyx_L1_error) - - /* "PyCafe.pyx":5018 - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - * - * mvShortNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * - */ - __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_v_mvShortNP = __pyx_t_17; - __pyx_t_17 = 0; - - /* "PyCafe.pyx":5021 - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * mvShortNP[ij] = i16val[ij] - * # arr=np.asarray(mvShort) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5022 - * - * for ij in range(0, nelemToRetrieveFromCache): - * mvShortNP[ij] = i16val[ij] # <<<<<<<<<<<<<< - * # arr=np.asarray(mvShort) - * - */ - __pyx_t_17 = __Pyx_PyInt_From_npy_int16(((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5022, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5196, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - if (unlikely(__Pyx_SetItemInt(__pyx_v_mvShortNP, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5022, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + + /* "PyCafe.pyx":5197 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + */ + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + + /* "PyCafe.pyx":5196 + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5196, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_7); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5197 + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + */ + __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5197, __pyx_L1_error) + + /* "PyCafe.pyx":5196 + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_17, __pyx_t_9, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5196, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5196, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_mvShort = __pyx_t_18; + __pyx_t_18.memview = NULL; + __pyx_t_18.data = NULL; + + /* "PyCafe.pyx":5198 + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5199 + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvShort) + */ + __pyx_t_21 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_21 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5199, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_21)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5200 + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvShort) + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5201 + * mvShort[ij] = i16val[ij] + * free(i16val) + * return np.array(mvShort) # <<<<<<<<<<<<<< + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_array); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_17 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { + __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_9); + if (likely(__pyx_t_17)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); + __Pyx_INCREF(__pyx_t_17); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_9, function); + } + } + __pyx_t_5 = (__pyx_t_17) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_17, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); + __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5195 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * if dt in ['np.short', 'np.int16', 'short', 'int16']: # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + goto __pyx_L97; } - /* "PyCafe.pyx":5025 - * # arr=np.asarray(mvShort) + /* "PyCafe.pyx":5203 + * return np.array(mvShort) * - * free(i16val) # <<<<<<<<<<<<<< - * - * return mvShortNP # arr + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') */ - free(__pyx_v_i16val); + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_int8, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L104_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_bool, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L104_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L104_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_bool, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L104_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_byte, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L104_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_int8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L104_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { - /* "PyCafe.pyx":5027 - * free(i16val) + /* "PyCafe.pyx":5204 * - * return mvShortNP # arr # <<<<<<<<<<<<<< + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "PyCafe.pyx":5205 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = i16val[ij] + */ + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "PyCafe.pyx":5204 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); + __pyx_t_5 = 0; + + /* "PyCafe.pyx":5205 + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = i16val[ij] + */ + __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_int8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(3, 5205, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5205, __pyx_L1_error) + + /* "PyCafe.pyx":5204 + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: + * mvInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_mvInt8 = __pyx_t_6; + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5206 + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvInt8[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5207 + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvInt8) + */ + __pyx_t_6 = __Pyx_PyInt_From_npy_int8(((__pyx_t_5numpy_int8_t)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvInt8, __pyx_v_ij, __pyx_t_6, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5207, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + } + + /* "PyCafe.pyx":5208 + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt8[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvInt8) + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5209 + * mvInt8[ij] = i16val[ij] + * free(i16val) + * return np.array(mvInt8) # <<<<<<<<<<<<<< + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_array); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_7, function); + } + } + __pyx_t_6 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_v_mvInt8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_mvInt8); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_r = __pyx_t_6; + __pyx_t_6 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5203 + * return np.array(mvShort) + * + * elif dt in ['np.int8', 'np.bool_', 'np.byte', 'bool', 'byte', 'int8']: # <<<<<<<<<<<<<< + * mvInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.int8, order='C') + */ + goto __pyx_L97; + } + + /* "PyCafe.pyx":5211 + * return np.array(mvInt8) + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + */ + __Pyx_INCREF(__pyx_v_dt); + __pyx_t_16 = __pyx_v_dt; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_uchar, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5211, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L112_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_uint8, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5211, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L112_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_uint8, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5211, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + __pyx_t_3 = __pyx_t_2; + __pyx_L112_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":5212 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5213 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = i16val[ij] + */ + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + + /* "PyCafe.pyx":5212 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5213 + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = i16val[ij] + */ + __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_uint8); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5213, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5213, __pyx_L1_error) + + /* "PyCafe.pyx":5212 + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: + * mvUInt8 = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_v_mvUInt8 = __pyx_t_17; + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5214 + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvUInt8[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5215 + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return np.array(mvUInt8) + */ + __pyx_t_17 = __Pyx_PyInt_From_npy_uint8(((__pyx_t_5numpy_uint8_t)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvUInt8, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5215, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + } + + /* "PyCafe.pyx":5216 + * for ij in range(0, nelemToRetrieveFromCache): + * mvUInt8[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return np.array(mvUInt8) + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5217 + * mvUInt8[ij] = i16val[ij] + * free(i16val) + * return np.array(mvUInt8) # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_array); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_6 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_6)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + __pyx_t_17 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_mvUInt8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_mvUInt8); + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_r = __pyx_t_17; + __pyx_t_17 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5211 + * return np.array(mvInt8) + * + * elif dt in ['uchar', 'np.uint8', 'uint8']: # <<<<<<<<<<<<<< + * mvUInt8 = np.empty( + * nelemToRetrieveFromCache, dtype=np.uint8, order='C') + */ + goto __pyx_L97; + } + + /* "PyCafe.pyx":5221 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + /*else*/ { + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + + /* "PyCafe.pyx":5222 + * + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + + /* "PyCafe.pyx":5221 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_17); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_17); + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5222 + * + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 5222, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5222, __pyx_L1_error) + + /* "PyCafe.pyx":5221 + * else: + * + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, __pyx_t_17); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_9, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_v_mvShort = __pyx_t_18; + __pyx_t_18.memview = NULL; + __pyx_t_18.data = NULL; + + /* "PyCafe.pyx":5224 + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5225 + * + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * + * free(i16val) + */ + __pyx_t_22 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_22 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5225, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_22)) )) = ((__pyx_t_5numpy_int16_t)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5227 + * mvShort[ij] = i16val[ij] + * + * free(i16val) # <<<<<<<<<<<<<< + * + * return np.array(mvShort) # arr + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5229 + * free(i16val) + * + * return np.array(mvShort) # arr # <<<<<<<<<<<<<< * * elif art in ['memoryview', 'mv', 'memoryviewslice']: */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_mvShortNP); - __pyx_r = __pyx_v_mvShortNP; - goto __pyx_L0; + __Pyx_XDECREF(__pyx_r); + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_array); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_17 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_5 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_9 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_5, __pyx_t_17) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_17); + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + __pyx_L97:; - /* "PyCafe.pyx":5016 + /* "PyCafe.pyx":5193 * # np.empty preferred, else mvInt does not get correct value for first couple of array elements * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * - * mvShortNP = np.empty( + * if dt in ['np.short', 'np.int16', 'short', 'int16']: */ - goto __pyx_L47; + goto __pyx_L91; } - /* "PyCafe.pyx":5029 - * return mvShortNP # arr + /* "PyCafe.pyx":5231 + * return np.array(mvShort) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * mvShort = np.empty( @@ -92448,101 +96497,101 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5029, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L55_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5029, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5231, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); if (!__pyx_t_1) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L55_bool_binop_done; + __pyx_t_2 = __pyx_t_1; + goto __pyx_L119_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5029, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - __pyx_t_3 = __pyx_t_2; - __pyx_L55_bool_binop_done:; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5231, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_2 = __pyx_t_3; + goto __pyx_L119_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5231, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L119_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5030 + /* "PyCafe.pyx":5232 * * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvShort = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.int16, order='C') * */ - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5030, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5030, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - - /* "PyCafe.pyx":5031 - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - * mvShort = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5031, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - - /* "PyCafe.pyx":5030 - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * - */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5030, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_17); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_17); - __pyx_t_17 = 0; + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":5031 + /* "PyCafe.pyx":5233 * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvShort = np.empty( * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< * * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_17 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5031, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + + /* "PyCafe.pyx":5232 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * + */ + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5031, __pyx_L1_error) + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_9); + __pyx_t_9 = 0; + + /* "PyCafe.pyx":5233 + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int16); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5031, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int16); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5031, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5031, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5233, __pyx_L1_error) - /* "PyCafe.pyx":5030 + /* "PyCafe.pyx":5232 * * elif art in ['memoryview', 'mv', 'memoryviewslice']: * mvShort = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.int16, order='C') * */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5030, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5030, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_mvShort = __pyx_t_18; __pyx_t_18.memview = NULL; __pyx_t_18.data = NULL; - /* "PyCafe.pyx":5033 + /* "PyCafe.pyx":5235 * nelemToRetrieveFromCache, dtype=np.int16, order='C') * * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -92554,24 +96603,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5034 + /* "PyCafe.pyx":5236 * * for ij in range(0, nelemToRetrieveFromCache): * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< * free(i16val) * */ - __pyx_t_19 = __pyx_v_ij; + __pyx_t_23 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_19 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_23 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5034, __pyx_L1_error) + __PYX_ERR(3, 5236, __pyx_L1_error) } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_19)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_23)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); } - /* "PyCafe.pyx":5035 + /* "PyCafe.pyx":5237 * for ij in range(0, nelemToRetrieveFromCache): * mvShort[ij] = i16val[ij] * free(i16val) # <<<<<<<<<<<<<< @@ -92580,7 +96629,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_i16val); - /* "PyCafe.pyx":5037 + /* "PyCafe.pyx":5239 * free(i16val) * * return mvShort # <<<<<<<<<<<<<< @@ -92588,23 +96637,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * elif art in ['array', 'array.array']: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5037, __pyx_L1_error) + __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5029 - * return mvShortNP # arr + /* "PyCafe.pyx":5231 + * return np.array(mvShort) # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * mvShort = np.empty( * nelemToRetrieveFromCache, dtype=np.int16, order='C') */ - goto __pyx_L47; + goto __pyx_L91; } - /* "PyCafe.pyx":5039 + /* "PyCafe.pyx":5241 * return mvShort * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -92613,34 +96662,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5039, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - if (!__pyx_t_1) { - } else { - __pyx_t_2 = __pyx_t_1; - goto __pyx_L60_bool_binop_done; - } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5039, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); - __pyx_t_2 = __pyx_t_3; - __pyx_L60_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5241, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); - if (__pyx_t_3) { + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L124_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5241, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = __pyx_t_2; + __pyx_L124_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_1 != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5040 + /* "PyCafe.pyx":5242 * * elif art in ['array', 'array.array']: * arrayArray = array.array('h') # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append( < short > i16val[ij]) */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5040, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_arrayArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5041 + /* "PyCafe.pyx":5243 * elif art in ['array', 'array.array']: * arrayArray = array.array('h') * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -92652,20 +96701,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5042 + /* "PyCafe.pyx":5244 * arrayArray = array.array('h') * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append( < short > i16val[ij]) # <<<<<<<<<<<<<< * free(i16val) * return arrayArray */ - __pyx_t_7 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5042, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5042, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5043 + /* "PyCafe.pyx":5245 * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append( < short > i16val[ij]) * free(i16val) # <<<<<<<<<<<<<< @@ -92674,7 +96723,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_i16val); - /* "PyCafe.pyx":5044 + /* "PyCafe.pyx":5246 * arrayArray.append( < short > i16val[ij]) * free(i16val) * return arrayArray # <<<<<<<<<<<<<< @@ -92686,17 +96735,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_arrayArray; goto __pyx_L0; - /* "PyCafe.pyx":5039 + /* "PyCafe.pyx":5241 * return mvShort * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * arrayArray = array.array('h') * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L47; + goto __pyx_L91; } - /* "PyCafe.pyx":5046 + /* "PyCafe.pyx":5248 * return arrayArray * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< @@ -92705,36 +96754,804 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5046, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); - if (!__pyx_t_1) { + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5248, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L64_bool_binop_done; + __pyx_t_2 = __pyx_t_3; + goto __pyx_L128_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5046, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - __pyx_t_3 = __pyx_t_2; - __pyx_L64_bool_binop_done:; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5248, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L128_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5047 + /* "PyCafe.pyx":5249 * * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = i16val[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5047, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5047, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_6 = PyNumber_Multiply(__pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_6, function); + } + } + __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_v_ctypesArray = __pyx_t_7; + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5250 + * elif art in ['ctypes', 'ctype']: + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * ctypesArray[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5251 + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * return ctypesArray + */ + __pyx_t_7 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5251, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + } + + /* "PyCafe.pyx":5252 + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * return ctypesArray + * + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5253 + * ctypesArray[ij] = i16val[ij] + * free(i16val) + * return ctypesArray # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ctypesArray); + __pyx_r = __pyx_v_ctypesArray; + goto __pyx_L0; + + /* "PyCafe.pyx":5248 + * return arrayArray + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + */ + goto __pyx_L91; + } + + /* "PyCafe.pyx":5256 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + /*else*/ { + + /* "PyCafe.pyx":5257 + * else: + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") # <<<<<<<<<<<<<< + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + */ + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); + PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); + __Pyx_INCREF(__pyx_v_art); + __Pyx_GIVEREF(__pyx_v_art); + PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_art); + __Pyx_INCREF(__pyx_kp_u_Possible_types_are); + __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); + PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Possible_types_are); + + /* "PyCafe.pyx":5256 + * + * else: + * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + */ + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5258 + * print("Unknow array type in user request for art='", + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< + * print("Returning memoryview") + * mvShort = np.empty( + */ + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5259 + * art, "'. Possible types are:") + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") # <<<<<<<<<<<<<< + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + */ + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5260 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5261 + * print("Returning memoryview") + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + */ + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + + /* "PyCafe.pyx":5260 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5261 + * print("Returning memoryview") + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + */ + __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_int16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5261, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5261, __pyx_L1_error) + + /* "PyCafe.pyx":5260 + * print("memoryview, numpy, array, ctypes") + * print("Returning memoryview") + * mvShort = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5260, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_mvShort = __pyx_t_18; + __pyx_t_18.memview = NULL; + __pyx_t_18.data = NULL; + + /* "PyCafe.pyx":5262 + * mvShort = np.empty( + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvShort[ij] = i16val[ij] + * free(i16val) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5263 + * nelemToRetrieveFromCache, dtype=np.int16, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< + * free(i16val) + * + */ + __pyx_t_24 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_24 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5263, __pyx_L1_error) + } + *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_24)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5264 + * for ij in range(0, nelemToRetrieveFromCache): + * mvShort[ij] = i16val[ij] + * free(i16val) # <<<<<<<<<<<<<< + * + * return mvShort + */ + free(__pyx_v_i16val); + + /* "PyCafe.pyx":5266 + * free(i16val) + * + * return mvShort # <<<<<<<<<<<<<< + * + * + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; + goto __pyx_L0; + } + __pyx_L91:; + + /* "PyCafe.pyx":5190 + * status = self._c_cafe.getCacheShortArray(handle, i16val) + * + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * # np.empty preferred, else mvInt does not get correct value for first couple of array elements + * + */ + } + + /* "PyCafe.pyx":5184 + * + * + * elif dtcheck in [CAFE_SHORT]: # <<<<<<<<<<<<<< + * + * i16val = malloc(nelemToRetrieveFromCache * sizeof(np.int16)) + */ + break; + case CAFE_LONG: + + /* "PyCafe.pyx":5273 + * elif dtcheck in [CAFE_LONG]: + * + * ival = malloc(nelemToRetrieveFromCache * sizeof(np.int32)) # <<<<<<<<<<<<<< + * + * status = self._c_cafe.getCacheLongArray(handle, ival) + */ + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int32); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_ival = ((int *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(__pyx_t_6))))); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5275 + * ival = malloc(nelemToRetrieveFromCache * sizeof(np.int32)) + * + * status = self._c_cafe.getCacheLongArray(handle, ival) # <<<<<<<<<<<<<< + * + * if status == ICAFE_NORMAL: + */ + __pyx_v_status = __pyx_v_self->_c_cafe->getCacheLongArray(__pyx_v_handle, __pyx_v_ival); + + /* "PyCafe.pyx":5277 + * status = self._c_cafe.getCacheLongArray(handle, ival) + * + * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + */ + __pyx_t_1 = ((__pyx_v_status == ICAFE_NORMAL) != 0); + if (__pyx_t_1) { + + /* "PyCafe.pyx":5279 + * if status == ICAFE_NORMAL: + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< + * + * mvIntNP = np.empty( + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5279, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L136_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5279, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L136_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5279, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L136_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5279, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L136_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5279, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L136_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { + + /* "PyCafe.pyx":5281 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * mvIntNP = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "PyCafe.pyx":5282 + * + * mvIntNP = np.empty( + * nelemToRetrieveFromCache, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvIntNP[ij] = ival[ij] + */ + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + + /* "PyCafe.pyx":5281 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * mvIntNP = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); + __pyx_t_6 = 0; + + /* "PyCafe.pyx":5282 + * + * mvIntNP = np.empty( + * nelemToRetrieveFromCache, dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvIntNP[ij] = ival[ij] + */ + __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5282, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5282, __pyx_L1_error) + + /* "PyCafe.pyx":5281 + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: + * + * mvIntNP = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_v_mvIntNP = __pyx_t_17; + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5283 + * mvIntNP = np.empty( + * nelemToRetrieveFromCache, dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvIntNP[ij] = ival[ij] + * free(ival) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5284 + * nelemToRetrieveFromCache, dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvIntNP[ij] = ival[ij] # <<<<<<<<<<<<<< + * free(ival) + * return mvIntNP # arr + */ + __pyx_t_17 = __Pyx_PyInt_From_npy_int32(((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvIntNP, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5284, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + } + + /* "PyCafe.pyx":5285 + * for ij in range(0, nelemToRetrieveFromCache): + * mvIntNP[ij] = ival[ij] + * free(ival) # <<<<<<<<<<<<<< + * return mvIntNP # arr + * + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":5286 + * mvIntNP[ij] = ival[ij] + * free(ival) + * return mvIntNP # arr # <<<<<<<<<<<<<< + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_mvIntNP); + __pyx_r = __pyx_v_mvIntNP; + goto __pyx_L0; + + /* "PyCafe.pyx":5279 + * if status == ICAFE_NORMAL: + * + * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< + * + * mvIntNP = np.empty( + */ + goto __pyx_L135; + } + + /* "PyCafe.pyx":5288 + * return mvIntNP # arr + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvInt = np.empty(nelemToRetrieveFromCache, + * dtype=np.int32, order='C') + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5288, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L143_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5288, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L143_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5288, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + __pyx_t_3 = __pyx_t_2; + __pyx_L143_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":5289 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< + * dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_17); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_17); + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5290 + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvInt = np.empty(nelemToRetrieveFromCache, + * dtype=np.int32, order='C') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt[ij] = ival[ij] + */ + __pyx_t_17 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int32); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5290, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5290, __pyx_L1_error) + + /* "PyCafe.pyx":5289 + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: + * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< + * dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_25 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_25.memview)) __PYX_ERR(3, 5289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_v_mvInt = __pyx_t_25; + __pyx_t_25.memview = NULL; + __pyx_t_25.data = NULL; + + /* "PyCafe.pyx":5291 + * mvInt = np.empty(nelemToRetrieveFromCache, + * dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * mvInt[ij] = ival[ij] + * free(ival) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5292 + * dtype=np.int32, order='C') + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< + * free(ival) + * return mvInt + */ + __pyx_t_26 = __pyx_v_ij; + __pyx_t_8 = -1; + if (unlikely(__pyx_t_26 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_8 != -1)) { + __Pyx_RaiseBufferIndexError(__pyx_t_8); + __PYX_ERR(3, 5292, __pyx_L1_error) + } + *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_26)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); + } + + /* "PyCafe.pyx":5293 + * for ij in range(0, nelemToRetrieveFromCache): + * mvInt[ij] = ival[ij] + * free(ival) # <<<<<<<<<<<<<< + * return mvInt + * + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":5294 + * mvInt[ij] = ival[ij] + * free(ival) + * return mvInt # <<<<<<<<<<<<<< + * + * elif art in ['array', 'array.array']: + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5294, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_r = __pyx_t_7; + __pyx_t_7 = 0; + goto __pyx_L0; + + /* "PyCafe.pyx":5288 + * return mvIntNP # arr + * + * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< + * mvInt = np.empty(nelemToRetrieveFromCache, + * dtype=np.int32, order='C') + */ + goto __pyx_L135; + } + + /* "PyCafe.pyx":5296 + * return mvInt + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5296, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_2 = __pyx_t_1; + goto __pyx_L148_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5296, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + __pyx_t_2 = __pyx_t_3; + __pyx_L148_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_3 = (__pyx_t_2 != 0); + if (__pyx_t_3) { + + /* "PyCafe.pyx":5297 + * + * elif art in ['array', 'array.array']: + * arrayArray = array.array('h') # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( < int > ival[ij]) + */ + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_v_arrayArray = __pyx_t_7; + __pyx_t_7 = 0; + + /* "PyCafe.pyx":5298 + * elif art in ['array', 'array.array']: + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< + * arrayArray.append( < int > ival[ij]) + * free(ival) + */ + __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; + __pyx_t_10 = __pyx_t_4; + for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { + __pyx_v_ij = __pyx_t_11; + + /* "PyCafe.pyx":5299 + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( < int > ival[ij]) # <<<<<<<<<<<<<< + * free(ival) + * return arrayArray + */ + __pyx_t_7 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5299, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + } + + /* "PyCafe.pyx":5300 + * for ij in range(0, nelemToRetrieveFromCache): + * arrayArray.append( < int > ival[ij]) + * free(ival) # <<<<<<<<<<<<<< + * return arrayArray + * + */ + free(__pyx_v_ival); + + /* "PyCafe.pyx":5301 + * arrayArray.append( < int > ival[ij]) + * free(ival) + * return arrayArray # <<<<<<<<<<<<<< + * + * elif art in ['ctypes', 'ctype']: + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_arrayArray); + __pyx_r = __pyx_v_arrayArray; + goto __pyx_L0; + + /* "PyCafe.pyx":5296 + * return mvInt + * + * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< + * arrayArray = array.array('h') + * for ij in range(0, nelemToRetrieveFromCache): + */ + goto __pyx_L135; + } + + /* "PyCafe.pyx":5303 + * return arrayArray + * + * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< + * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() + * for ij in range(0, nelemToRetrieveFromCache): + */ + __Pyx_INCREF(__pyx_v_art); + __pyx_t_16 = __pyx_v_art; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5303, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L152_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5303, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + __pyx_t_3 = __pyx_t_2; + __pyx_L152_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { + + /* "PyCafe.pyx":5304 + * + * elif art in ['ctypes', 'ctype']: + * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * ctypesArray[ij] = ival[ij] + */ + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5047, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __pyx_t_6 = PyNumber_Multiply(__pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5047, __pyx_L1_error) + __pyx_t_6 = PyNumber_Multiply(__pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; @@ -92750,781 +97567,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC } __pyx_t_7 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5047, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_ctypesArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5048 - * elif art in ['ctypes', 'ctype']: - * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * ctypesArray[ij] = i16val[ij] - * free(i16val) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5049 - * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() - * for ij in range(0, nelemToRetrieveFromCache): - * ctypesArray[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) - * return ctypesArray - */ - __pyx_t_7 = __Pyx_PyInt_From_short(((short)(__pyx_v_i16val[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5049, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5049, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } - - /* "PyCafe.pyx":5050 - * for ij in range(0, nelemToRetrieveFromCache): - * ctypesArray[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< - * return ctypesArray - * - */ - free(__pyx_v_i16val); - - /* "PyCafe.pyx":5051 - * ctypesArray[ij] = i16val[ij] - * free(i16val) - * return ctypesArray # <<<<<<<<<<<<<< - * - * else: - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_ctypesArray); - __pyx_r = __pyx_v_ctypesArray; - goto __pyx_L0; - - /* "PyCafe.pyx":5046 - * return arrayArray - * - * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< - * ctypesArray = (ctypes.c_int16*nelemToRetrieveFromCache)() - * for ij in range(0, nelemToRetrieveFromCache): - */ - goto __pyx_L47; - } - - /* "PyCafe.pyx":5054 - * - * else: - * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< - * art, "'. Possible types are:") - * print("memoryview, numpy, array, ctypes") - */ - /*else*/ { - - /* "PyCafe.pyx":5055 - * else: - * print("Unknow array type in user request for art='", - * art, "'. Possible types are:") # <<<<<<<<<<<<<< - * print("memoryview, numpy, array, ctypes") - * print("Returning memoryview") - */ - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); - __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); - PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u_Unknow_array_type_in_user_reques); - __Pyx_INCREF(__pyx_v_art); - __Pyx_GIVEREF(__pyx_v_art); - PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_art); - __Pyx_INCREF(__pyx_kp_u_Possible_types_are); - __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); - PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Possible_types_are); - - /* "PyCafe.pyx":5054 - * - * else: - * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< - * art, "'. Possible types are:") - * print("memoryview, numpy, array, ctypes") - */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5056 - * print("Unknow array type in user request for art='", - * art, "'. Possible types are:") - * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< - * print("Returning memoryview") - * mvShort = np.empty( - */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5056, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5057 - * art, "'. Possible types are:") - * print("memoryview, numpy, array, ctypes") - * print("Returning memoryview") # <<<<<<<<<<<<<< - * mvShort = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5057, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5058 - * print("memoryview, numpy, array, ctypes") - * print("Returning memoryview") - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5058, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5058, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5059 - * print("Returning memoryview") - * mvShort = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvShort[ij] = i16val[ij] - */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - - /* "PyCafe.pyx":5058 - * print("memoryview, numpy, array, ctypes") - * print("Returning memoryview") - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5058, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_6); - __pyx_t_6 = 0; - - /* "PyCafe.pyx":5059 - * print("Returning memoryview") - * mvShort = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvShort[ij] = i16val[ij] - */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5059, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5059, __pyx_L1_error) - - /* "PyCafe.pyx":5058 - * print("memoryview, numpy, array, ctypes") - * print("Returning memoryview") - * mvShort = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_17, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5058, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_int16_t(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(3, 5058, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_mvShort = __pyx_t_18; - __pyx_t_18.memview = NULL; - __pyx_t_18.data = NULL; - - /* "PyCafe.pyx":5060 - * mvShort = np.empty( - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * mvShort[ij] = i16val[ij] - * free(i16val) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5061 - * nelemToRetrieveFromCache, dtype=np.int16, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - * mvShort[ij] = i16val[ij] # <<<<<<<<<<<<<< - * free(i16val) - * - */ - __pyx_t_20 = __pyx_v_ij; - __pyx_t_8 = -1; - if (unlikely(__pyx_t_20 >= (size_t)__pyx_v_mvShort.shape[0])) __pyx_t_8 = 0; - if (unlikely(__pyx_t_8 != -1)) { - __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5061, __pyx_L1_error) - } - *((__pyx_t_5numpy_int16_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_int16_t *) __pyx_v_mvShort.data) + __pyx_t_20)) )) = ((short)(__pyx_v_i16val[__pyx_v_ij])); - } - - /* "PyCafe.pyx":5062 - * for ij in range(0, nelemToRetrieveFromCache): - * mvShort[ij] = i16val[ij] - * free(i16val) # <<<<<<<<<<<<<< - * - * return mvShort - */ - free(__pyx_v_i16val); - - /* "PyCafe.pyx":5064 - * free(i16val) - * - * return mvShort # <<<<<<<<<<<<<< - * - * elif dtcheck in [CAFE_LONG]: - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvShort, 1, (PyObject *(*)(char *)) __pyx_memview_get_nn___pyx_t_5numpy_int16_t, (int (*)(char *, PyObject *)) __pyx_memview_set_nn___pyx_t_5numpy_int16_t, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5064, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_r = __pyx_t_5; - __pyx_t_5 = 0; - goto __pyx_L0; - } - __pyx_L47:; - - /* "PyCafe.pyx":5013 - * status = self._c_cafe.getCacheShortArray(handle, i16val) - * - * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< - * # np.empty preferred, else mvInt does not get correct value for first couple of array elements - * - */ - } - - /* "PyCafe.pyx":5007 - * return mvStr - * ''' - * elif dtcheck in [CAFE_SHORT, CAFE_CHAR]: # <<<<<<<<<<<<<< - * - * i16val = malloc(nelemToRetrieveFromCache * sizeof(np.int16)) - */ - break; - case CAFE_LONG: - - /* "PyCafe.pyx":5068 - * elif dtcheck in [CAFE_LONG]: - * - * ival = malloc(nelemToRetrieveFromCache * sizeof(np.int32)) # <<<<<<<<<<<<<< - * - * status = self._c_cafe.getCacheLongArray(handle, ival) - */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5068, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int32); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5068, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_ival = ((int *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(__pyx_t_6))))); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5070 - * ival = malloc(nelemToRetrieveFromCache * sizeof(np.int32)) - * - * status = self._c_cafe.getCacheLongArray(handle, ival) # <<<<<<<<<<<<<< - * - * if status == ICAFE_NORMAL: - */ - __pyx_v_status = __pyx_v_self->_c_cafe->getCacheLongArray(__pyx_v_handle, __pyx_v_ival); - - /* "PyCafe.pyx":5072 - * status = self._c_cafe.getCacheLongArray(handle, ival) - * - * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< - * - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - */ - __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); - if (__pyx_t_2) { - - /* "PyCafe.pyx":5074 - * if status == ICAFE_NORMAL: - * - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< - * - * mvIntNP = np.empty( - */ - __Pyx_INCREF(__pyx_v_art); - __pyx_t_16 = __pyx_v_art; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5074, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - if (!__pyx_t_1) { - } else { - __pyx_t_2 = __pyx_t_1; - goto __pyx_L72_bool_binop_done; - } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5074, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); - if (!__pyx_t_3) { - } else { - __pyx_t_2 = __pyx_t_3; - goto __pyx_L72_bool_binop_done; - } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5074, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - if (!__pyx_t_1) { - } else { - __pyx_t_2 = __pyx_t_1; - goto __pyx_L72_bool_binop_done; - } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5074, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); - if (!__pyx_t_3) { - } else { - __pyx_t_2 = __pyx_t_3; - goto __pyx_L72_bool_binop_done; - } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5074, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - __pyx_t_2 = __pyx_t_1; - __pyx_L72_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_1 = (__pyx_t_2 != 0); - if (__pyx_t_1) { - - /* "PyCafe.pyx":5076 - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - * - * mvIntNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5076, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5076, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "PyCafe.pyx":5077 - * - * mvIntNP = np.empty( - * nelemToRetrieveFromCache, dtype=np.int32, order='C') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvIntNP[ij] = ival[ij] - */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - - /* "PyCafe.pyx":5076 - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - * - * mvIntNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5076, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_6); - __pyx_t_6 = 0; - - /* "PyCafe.pyx":5077 - * - * mvIntNP = np.empty( - * nelemToRetrieveFromCache, dtype=np.int32, order='C') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvIntNP[ij] = ival[ij] - */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 5077, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5077, __pyx_L1_error) - - /* "PyCafe.pyx":5076 - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: - * - * mvIntNP = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_17, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5076, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_v_mvIntNP = __pyx_t_9; - __pyx_t_9 = 0; - - /* "PyCafe.pyx":5078 - * mvIntNP = np.empty( - * nelemToRetrieveFromCache, dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * mvIntNP[ij] = ival[ij] - * free(ival) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5079 - * nelemToRetrieveFromCache, dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - * mvIntNP[ij] = ival[ij] # <<<<<<<<<<<<<< - * free(ival) - * return mvIntNP # arr - */ - __pyx_t_9 = __Pyx_PyInt_From_npy_int32(((__pyx_t_5numpy_int32_t)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - if (unlikely(__Pyx_SetItemInt(__pyx_v_mvIntNP, __pyx_v_ij, __pyx_t_9, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5079, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - } - - /* "PyCafe.pyx":5080 - * for ij in range(0, nelemToRetrieveFromCache): - * mvIntNP[ij] = ival[ij] - * free(ival) # <<<<<<<<<<<<<< - * return mvIntNP # arr - * - */ - free(__pyx_v_ival); - - /* "PyCafe.pyx":5081 - * mvIntNP[ij] = ival[ij] - * free(ival) - * return mvIntNP # arr # <<<<<<<<<<<<<< - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_mvIntNP); - __pyx_r = __pyx_v_mvIntNP; - goto __pyx_L0; - - /* "PyCafe.pyx":5074 - * if status == ICAFE_NORMAL: - * - * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< - * - * mvIntNP = np.empty( - */ - goto __pyx_L71; - } - - /* "PyCafe.pyx":5083 - * return mvIntNP # arr - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< - * mvInt = np.empty(nelemToRetrieveFromCache, - * dtype=np.int32, order='C') - */ - __Pyx_INCREF(__pyx_v_art); - __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5083, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - if (!__pyx_t_3) { - } else { - __pyx_t_1 = __pyx_t_3; - goto __pyx_L79_bool_binop_done; - } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5083, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_3 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_1 = __pyx_t_2; - goto __pyx_L79_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5083, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - __pyx_t_1 = __pyx_t_3; - __pyx_L79_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_3 = (__pyx_t_1 != 0); - if (__pyx_t_3) { - - /* "PyCafe.pyx":5084 - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< - * dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_9); - __pyx_t_9 = 0; - - /* "PyCafe.pyx":5085 - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - * mvInt = np.empty(nelemToRetrieveFromCache, - * dtype=np.int32, order='C') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvInt[ij] = ival[ij] - */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5085, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5085, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_int32); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5085, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5085, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5085, __pyx_L1_error) - - /* "PyCafe.pyx":5084 - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: - * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< - * dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_21 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_21.memview)) __PYX_ERR(3, 5084, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_v_mvInt = __pyx_t_21; - __pyx_t_21.memview = NULL; - __pyx_t_21.data = NULL; - - /* "PyCafe.pyx":5086 - * mvInt = np.empty(nelemToRetrieveFromCache, - * dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * mvInt[ij] = ival[ij] - * free(ival) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5087 - * dtype=np.int32, order='C') - * for ij in range(0, nelemToRetrieveFromCache): - * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< - * free(ival) - * return mvInt - */ - __pyx_t_22 = __pyx_v_ij; - __pyx_t_8 = -1; - if (unlikely(__pyx_t_22 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_8 = 0; - if (unlikely(__pyx_t_8 != -1)) { - __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5087, __pyx_L1_error) - } - *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_22)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); - } - - /* "PyCafe.pyx":5088 - * for ij in range(0, nelemToRetrieveFromCache): - * mvInt[ij] = ival[ij] - * free(ival) # <<<<<<<<<<<<<< - * return mvInt - * - */ - free(__pyx_v_ival); - - /* "PyCafe.pyx":5089 - * mvInt[ij] = ival[ij] - * free(ival) - * return mvInt # <<<<<<<<<<<<<< - * - * elif art in ['array', 'array.array']: - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_r = __pyx_t_7; - __pyx_t_7 = 0; - goto __pyx_L0; - - /* "PyCafe.pyx":5083 - * return mvIntNP # arr - * - * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< - * mvInt = np.empty(nelemToRetrieveFromCache, - * dtype=np.int32, order='C') - */ - goto __pyx_L71; - } - - /* "PyCafe.pyx":5091 - * return mvInt - * - * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< - * arrayArray = array.array('h') - * for ij in range(0, nelemToRetrieveFromCache): - */ - __Pyx_INCREF(__pyx_v_art); - __pyx_t_16 = __pyx_v_art; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5091, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L84_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5091, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); - __pyx_t_3 = __pyx_t_1; - __pyx_L84_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_1 = (__pyx_t_3 != 0); - if (__pyx_t_1) { - - /* "PyCafe.pyx":5092 - * - * elif art in ['array', 'array.array']: - * arrayArray = array.array('h') # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * arrayArray.append( < int > ival[ij]) - */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5092, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_v_arrayArray = __pyx_t_7; - __pyx_t_7 = 0; - - /* "PyCafe.pyx":5093 - * elif art in ['array', 'array.array']: - * arrayArray = array.array('h') - * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< - * arrayArray.append( < int > ival[ij]) - * free(ival) - */ - __pyx_t_4 = __pyx_v_nelemToRetrieveFromCache; - __pyx_t_10 = __pyx_t_4; - for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { - __pyx_v_ij = __pyx_t_11; - - /* "PyCafe.pyx":5094 - * arrayArray = array.array('h') - * for ij in range(0, nelemToRetrieveFromCache): - * arrayArray.append( < int > ival[ij]) # <<<<<<<<<<<<<< - * free(ival) - * return arrayArray - */ - __pyx_t_7 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5094, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5094, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } - - /* "PyCafe.pyx":5095 - * for ij in range(0, nelemToRetrieveFromCache): - * arrayArray.append( < int > ival[ij]) - * free(ival) # <<<<<<<<<<<<<< - * return arrayArray - * - */ - free(__pyx_v_ival); - - /* "PyCafe.pyx":5096 - * arrayArray.append( < int > ival[ij]) - * free(ival) - * return arrayArray # <<<<<<<<<<<<<< - * - * elif art in ['ctypes', 'ctype']: - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_arrayArray); - __pyx_r = __pyx_v_arrayArray; - goto __pyx_L0; - - /* "PyCafe.pyx":5091 - * return mvInt - * - * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< - * arrayArray = array.array('h') - * for ij in range(0, nelemToRetrieveFromCache): - */ - goto __pyx_L71; - } - - /* "PyCafe.pyx":5098 - * return arrayArray - * - * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< - * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() - * for ij in range(0, nelemToRetrieveFromCache): - */ - __Pyx_INCREF(__pyx_v_art); - __pyx_t_16 = __pyx_v_art; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5098, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_3 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_1 = __pyx_t_2; - goto __pyx_L88_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5098, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - __pyx_t_1 = __pyx_t_3; - __pyx_L88_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_3 = (__pyx_t_1 != 0); - if (__pyx_t_3) { - - /* "PyCafe.pyx":5099 - * - * elif art in ['ctypes', 'ctype']: - * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * ctypesArray[ij] = ival[ij] - */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_6 = PyNumber_Multiply(__pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = NULL; - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_9); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - } - } - __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_v_ctypesArray = __pyx_t_7; - __pyx_t_7 = 0; - - /* "PyCafe.pyx":5100 + /* "PyCafe.pyx":5305 * elif art in ['ctypes', 'ctype']: * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -93536,20 +97585,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5101 + /* "PyCafe.pyx":5306 * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = ival[ij] # <<<<<<<<<<<<<< * free(ival) * return ctypesArray */ - __pyx_t_7 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5101, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_int(((int)(__pyx_v_ival[__pyx_v_ij]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5101, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5102 + /* "PyCafe.pyx":5307 * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = ival[ij] * free(ival) # <<<<<<<<<<<<<< @@ -93558,7 +97607,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_ival); - /* "PyCafe.pyx":5103 + /* "PyCafe.pyx":5308 * ctypesArray[ij] = ival[ij] * free(ival) * return ctypesArray # <<<<<<<<<<<<<< @@ -93570,17 +97619,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":5098 + /* "PyCafe.pyx":5303 * return arrayArray * * elif art in ['ctypes', 'ctype']: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_int32*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L71; + goto __pyx_L135; } - /* "PyCafe.pyx":5106 + /* "PyCafe.pyx":5311 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -93589,14 +97638,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ /*else*/ { - /* "PyCafe.pyx":5107 + /* "PyCafe.pyx":5312 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5106, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); @@ -93608,97 +97657,97 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":5106 + /* "PyCafe.pyx":5311 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5106, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5108 + /* "PyCafe.pyx":5313 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvInt = np.empty(nelemToRetrieveFromCache, */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5108, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5109 + /* "PyCafe.pyx":5314 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvInt = np.empty(nelemToRetrieveFromCache, * dtype=np.int32, order='C') */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5109, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5110 + /* "PyCafe.pyx":5315 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< * dtype=np.int32, order='C') * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5110, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5110, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5110, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5110, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5111 + /* "PyCafe.pyx":5316 * print("Returning memoryview") * mvInt = np.empty(nelemToRetrieveFromCache, * dtype=np.int32, order='C') # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvInt[ij] = ival[ij] */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5111, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_int32); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_int32); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5111, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5111, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_order, __pyx_n_u_C) < 0) __PYX_ERR(3, 5316, __pyx_L1_error) - /* "PyCafe.pyx":5110 + /* "PyCafe.pyx":5315 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvInt = np.empty(nelemToRetrieveFromCache, # <<<<<<<<<<<<<< * dtype=np.int32, order='C') * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5110, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_17, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_21 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_21.memview)) __PYX_ERR(3, 5110, __pyx_L1_error) + __pyx_t_25 = __Pyx_PyObject_to_MemoryviewSlice_dc_int(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_25.memview)) __PYX_ERR(3, 5315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_mvInt = __pyx_t_21; - __pyx_t_21.memview = NULL; - __pyx_t_21.data = NULL; + __pyx_v_mvInt = __pyx_t_25; + __pyx_t_25.memview = NULL; + __pyx_t_25.data = NULL; - /* "PyCafe.pyx":5112 + /* "PyCafe.pyx":5317 * mvInt = np.empty(nelemToRetrieveFromCache, * dtype=np.int32, order='C') * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -93710,24 +97759,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5113 + /* "PyCafe.pyx":5318 * dtype=np.int32, order='C') * for ij in range(0, nelemToRetrieveFromCache): * mvInt[ij] = ival[ij] # <<<<<<<<<<<<<< * free(ival) * return mvInt */ - __pyx_t_23 = __pyx_v_ij; + __pyx_t_27 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_23 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_27 >= (size_t)__pyx_v_mvInt.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5113, __pyx_L1_error) + __PYX_ERR(3, 5318, __pyx_L1_error) } - *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_23)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); + *((int *) ( /* dim=0 */ ((char *) (((int *) __pyx_v_mvInt.data) + __pyx_t_27)) )) = ((int)(__pyx_v_ival[__pyx_v_ij])); } - /* "PyCafe.pyx":5114 + /* "PyCafe.pyx":5319 * for ij in range(0, nelemToRetrieveFromCache): * mvInt[ij] = ival[ij] * free(ival) # <<<<<<<<<<<<<< @@ -93736,7 +97785,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_ival); - /* "PyCafe.pyx":5115 + /* "PyCafe.pyx":5320 * mvInt[ij] = ival[ij] * free(ival) * return mvInt # <<<<<<<<<<<<<< @@ -93744,15 +97793,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * elif dtcheck in [CAFE_FLOAT]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5115, __pyx_L1_error) + __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvInt, 1, (PyObject *(*)(char *)) __pyx_memview_get_int, (int (*)(char *, PyObject *)) __pyx_memview_set_int, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } - __pyx_L71:; + __pyx_L135:; - /* "PyCafe.pyx":5072 + /* "PyCafe.pyx":5277 * status = self._c_cafe.getCacheLongArray(handle, ival) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -93761,8 +97810,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5066 - * return mvShort + /* "PyCafe.pyx":5271 + * * * elif dtcheck in [CAFE_LONG]: # <<<<<<<<<<<<<< * @@ -93771,7 +97820,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC break; case CAFE_FLOAT: - /* "PyCafe.pyx":5119 + /* "PyCafe.pyx":5324 * elif dtcheck in [CAFE_FLOAT]: * * fval = malloc(nelemToRetrieveFromCache * sizeof(float)) # <<<<<<<<<<<<<< @@ -93780,7 +97829,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_fval = ((float *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(float))))); - /* "PyCafe.pyx":5121 + /* "PyCafe.pyx":5326 * fval = malloc(nelemToRetrieveFromCache * sizeof(float)) * * status = self._c_cafe.getCacheFloatArray(handle, fval) # <<<<<<<<<<<<<< @@ -93789,17 +97838,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->_c_cafe->getCacheFloatArray(__pyx_v_handle, __pyx_v_fval); - /* "PyCafe.pyx":5123 + /* "PyCafe.pyx":5328 * status = self._c_cafe.getCacheFloatArray(handle, fval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: */ - __pyx_t_3 = ((__pyx_v_status == ICAFE_NORMAL) != 0); - if (__pyx_t_3) { + __pyx_t_2 = ((__pyx_v_status == ICAFE_NORMAL) != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5125 + /* "PyCafe.pyx":5330 * if status == ICAFE_NORMAL: * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< @@ -93808,111 +97857,111 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L96_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); if (!__pyx_t_1) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L96_bool_binop_done; + __pyx_t_2 = __pyx_t_1; + goto __pyx_L160_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - if (!__pyx_t_2) { + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L96_bool_binop_done; + __pyx_t_2 = __pyx_t_3; + goto __pyx_L160_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); if (!__pyx_t_1) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L96_bool_binop_done; + __pyx_t_2 = __pyx_t_1; + goto __pyx_L160_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5125, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - __pyx_t_3 = __pyx_t_2; - __pyx_L96_bool_binop_done:; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_2 = __pyx_t_3; + goto __pyx_L160_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L160_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5127 + /* "PyCafe.pyx":5332 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvFloatNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5127, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5128 + /* "PyCafe.pyx":5333 * * mvFloatNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvFloatNP[ij] = fval[ij] # pvd.getAsFloat(ij) */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5128, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":5127 + /* "PyCafe.pyx":5332 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvFloatNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); __Pyx_GIVEREF(__pyx_t_5); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5128 + /* "PyCafe.pyx":5333 * * mvFloatNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvFloatNP[ij] = fval[ij] # pvd.getAsFloat(ij) */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5128, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5128, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float32); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float32); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5128, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 5333, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":5127 + /* "PyCafe.pyx":5332 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvFloatNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, __pyx_t_5); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_17, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_mvFloatNP = __pyx_t_17; - __pyx_t_17 = 0; + __pyx_v_mvFloatNP = __pyx_t_9; + __pyx_t_9 = 0; - /* "PyCafe.pyx":5129 + /* "PyCafe.pyx":5334 * mvFloatNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -93924,20 +97973,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5130 + /* "PyCafe.pyx":5335 * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): * mvFloatNP[ij] = fval[ij] # pvd.getAsFloat(ij) # <<<<<<<<<<<<<< * * free(fval) */ - __pyx_t_17 = PyFloat_FromDouble(((float)(__pyx_v_fval[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - if (unlikely(__Pyx_SetItemInt(__pyx_v_mvFloatNP, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5130, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_9 = PyFloat_FromDouble(((float)(__pyx_v_fval[__pyx_v_ij]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvFloatNP, __pyx_v_ij, __pyx_t_9, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5335, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } - /* "PyCafe.pyx":5132 + /* "PyCafe.pyx":5337 * mvFloatNP[ij] = fval[ij] # pvd.getAsFloat(ij) * * free(fval) # <<<<<<<<<<<<<< @@ -93946,7 +97995,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_fval); - /* "PyCafe.pyx":5134 + /* "PyCafe.pyx":5339 * free(fval) * * return mvFloatNP # arr # <<<<<<<<<<<<<< @@ -93958,17 +98007,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_mvFloatNP; goto __pyx_L0; - /* "PyCafe.pyx":5125 + /* "PyCafe.pyx":5330 * if status == ICAFE_NORMAL: * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * * mvFloatNP = np.empty( */ - goto __pyx_L95; + goto __pyx_L159; } - /* "PyCafe.pyx":5136 + /* "PyCafe.pyx":5341 * return mvFloatNP # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< @@ -93977,100 +98026,100 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5136, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - if (!__pyx_t_1) { - } else { - __pyx_t_2 = __pyx_t_1; - goto __pyx_L103_bool_binop_done; - } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5136, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5341, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); if (!__pyx_t_3) { } else { - __pyx_t_2 = __pyx_t_3; - goto __pyx_L103_bool_binop_done; + __pyx_t_1 = __pyx_t_3; + goto __pyx_L167_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5136, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - __pyx_t_2 = __pyx_t_1; - __pyx_L103_bool_binop_done:; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5341, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_1 = __pyx_t_2; + goto __pyx_L167_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5341, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L167_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_1 = (__pyx_t_2 != 0); - if (__pyx_t_1) { + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { - /* "PyCafe.pyx":5139 + /* "PyCafe.pyx":5344 * * # Method A to return memory view * mvFloat = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - - /* "PyCafe.pyx":5140 - * # Method A to return memory view - * mvFloat = np.empty( - * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvFloat[ij] = fval[ij] - */ - __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5140, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - - /* "PyCafe.pyx":5139 - * - * # Method A to return memory view - * mvFloat = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.float32) - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5139, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_17); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_17); - __pyx_t_17 = 0; + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":5140 + /* "PyCafe.pyx":5345 * # Method A to return memory view * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] */ - __pyx_t_17 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5140, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + + /* "PyCafe.pyx":5344 + * + * # Method A to return memory view + * mvFloat = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.float32) + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5140, __pyx_L1_error) + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_9); + __pyx_t_9 = 0; + + /* "PyCafe.pyx":5345 + * # Method A to return memory view + * mvFloat = np.empty( + * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvFloat[ij] = fval[ij] + */ + __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float32); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5140, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float32); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5140, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5345, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":5139 + /* "PyCafe.pyx":5344 * * # Method A to return memory view * mvFloat = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5139, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_24 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_24.memview)) __PYX_ERR(3, 5139, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_28 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_28.memview)) __PYX_ERR(3, 5344, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_v_mvFloat = __pyx_t_24; - __pyx_t_24.memview = NULL; - __pyx_t_24.data = NULL; + __pyx_v_mvFloat = __pyx_t_28; + __pyx_t_28.memview = NULL; + __pyx_t_28.data = NULL; - /* "PyCafe.pyx":5141 + /* "PyCafe.pyx":5346 * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94082,24 +98131,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5142 + /* "PyCafe.pyx":5347 * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] # <<<<<<<<<<<<<< * * free(fval) */ - __pyx_t_25 = __pyx_v_ij; + __pyx_t_29 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_25 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_29 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5142, __pyx_L1_error) + __PYX_ERR(3, 5347, __pyx_L1_error) } - *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_25)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); + *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_29)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); } - /* "PyCafe.pyx":5144 + /* "PyCafe.pyx":5349 * mvFloat[ij] = fval[ij] * * free(fval) # <<<<<<<<<<<<<< @@ -94108,7 +98157,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_fval); - /* "PyCafe.pyx":5145 + /* "PyCafe.pyx":5350 * * free(fval) * return mvFloat # <<<<<<<<<<<<<< @@ -94116,23 +98165,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * # Method B to return memory view */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5145, __pyx_L1_error) + __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5136 + /* "PyCafe.pyx":5341 * return mvFloatNP # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * * # Method A to return memory view */ - goto __pyx_L95; + goto __pyx_L159; } - /* "PyCafe.pyx":5159 + /* "PyCafe.pyx":5364 * ''' * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -94141,34 +98190,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5159, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - if (!__pyx_t_3) { - } else { - __pyx_t_1 = __pyx_t_3; - goto __pyx_L108_bool_binop_done; - } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5159, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_3 != 0); - __pyx_t_1 = __pyx_t_2; - __pyx_L108_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5364, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); - if (__pyx_t_2) { + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L172_bool_binop_done; + } + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5364, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = __pyx_t_1; + __pyx_L172_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_1 = (__pyx_t_3 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5160 + /* "PyCafe.pyx":5365 * * elif art in ['array', 'array.array']: * arrayArray = array.array('f') # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(fval[ij]) */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5160, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_arrayArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5161 + /* "PyCafe.pyx":5366 * elif art in ['array', 'array.array']: * arrayArray = array.array('f') * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94180,20 +98229,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5162 + /* "PyCafe.pyx":5367 * arrayArray = array.array('f') * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(fval[ij]) # <<<<<<<<<<<<<< * free(fval) * return arrayArray */ - __pyx_t_7 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5162, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5162, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5163 + /* "PyCafe.pyx":5368 * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(fval[ij]) * free(fval) # <<<<<<<<<<<<<< @@ -94202,7 +98251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_fval); - /* "PyCafe.pyx":5164 + /* "PyCafe.pyx":5369 * arrayArray.append(fval[ij]) * free(fval) * return arrayArray # <<<<<<<<<<<<<< @@ -94214,17 +98263,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_arrayArray; goto __pyx_L0; - /* "PyCafe.pyx":5159 + /* "PyCafe.pyx":5364 * ''' * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * arrayArray = array.array('f') * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L95; + goto __pyx_L159; } - /* "PyCafe.pyx":5166 + /* "PyCafe.pyx":5371 * return arrayArray * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< @@ -94233,58 +98282,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5166, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); - if (!__pyx_t_3) { + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5371, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (!__pyx_t_2) { } else { - __pyx_t_2 = __pyx_t_3; - goto __pyx_L112_bool_binop_done; + __pyx_t_1 = __pyx_t_2; + goto __pyx_L176_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5166, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - __pyx_t_2 = __pyx_t_1; - __pyx_L112_bool_binop_done:; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5371, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_2 != 0); + __pyx_t_1 = __pyx_t_3; + __pyx_L176_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_1 = (__pyx_t_2 != 0); - if (__pyx_t_1) { + __pyx_t_3 = (__pyx_t_1 != 0); + if (__pyx_t_3) { - /* "PyCafe.pyx":5167 + /* "PyCafe.pyx":5372 * * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_float*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = fval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5167, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_c_float); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5167, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5167, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_float); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __pyx_t_5 = PyNumber_Multiply(__pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5167, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_5 = PyNumber_Multiply(__pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - __pyx_t_17 = NULL; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_17)) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_17); + __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } - __pyx_t_7 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5167, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ctypesArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5168 + /* "PyCafe.pyx":5373 * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_float*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94296,20 +98345,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5169 + /* "PyCafe.pyx":5374 * ctypesArray = (ctypes.c_float*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = fval[ij] # <<<<<<<<<<<<<< * free(fval) * return ctypesArray */ - __pyx_t_7 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5169, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble((__pyx_v_fval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5169, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5170 + /* "PyCafe.pyx":5375 * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = fval[ij] * free(fval) # <<<<<<<<<<<<<< @@ -94318,7 +98367,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_fval); - /* "PyCafe.pyx":5171 + /* "PyCafe.pyx":5376 * ctypesArray[ij] = fval[ij] * free(fval) * return ctypesArray # <<<<<<<<<<<<<< @@ -94330,17 +98379,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":5166 + /* "PyCafe.pyx":5371 * return arrayArray * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_float*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L95; + goto __pyx_L159; } - /* "PyCafe.pyx":5174 + /* "PyCafe.pyx":5379 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -94349,14 +98398,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ /*else*/ { - /* "PyCafe.pyx":5175 + /* "PyCafe.pyx":5380 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5174, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); @@ -94368,112 +98417,112 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":5174 + /* "PyCafe.pyx":5379 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5174, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5176 + /* "PyCafe.pyx":5381 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvFloat = np.empty( */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5176, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5177 + /* "PyCafe.pyx":5382 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5177, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5178 + /* "PyCafe.pyx":5383 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvFloat = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5178, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5178, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5179 + /* "PyCafe.pyx":5384 * print("Returning memoryview") * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5179, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":5178 + /* "PyCafe.pyx":5383 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvFloat = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5178, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_5); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5179 + /* "PyCafe.pyx":5384 * print("Returning memoryview") * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5179, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_float32); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5179, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5384, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_float32); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(3, 5179, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_6) < 0) __PYX_ERR(3, 5384, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5178 + /* "PyCafe.pyx":5383 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvFloat = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_17, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5178, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_24 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_6, PyBUF_WRITABLE); if (unlikely(!__pyx_t_24.memview)) __PYX_ERR(3, 5178, __pyx_L1_error) + __pyx_t_28 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_6, PyBUF_WRITABLE); if (unlikely(!__pyx_t_28.memview)) __PYX_ERR(3, 5383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_v_mvFloat = __pyx_t_24; - __pyx_t_24.memview = NULL; - __pyx_t_24.data = NULL; + __pyx_v_mvFloat = __pyx_t_28; + __pyx_t_28.memview = NULL; + __pyx_t_28.data = NULL; - /* "PyCafe.pyx":5180 + /* "PyCafe.pyx":5385 * mvFloat = np.empty( * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94485,24 +98534,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5181 + /* "PyCafe.pyx":5386 * nelemToRetrieveFromCache, dtype=np.float32) * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] # <<<<<<<<<<<<<< * free(fval) * return mvFloat */ - __pyx_t_26 = __pyx_v_ij; + __pyx_t_30 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_26 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_30 >= (size_t)__pyx_v_mvFloat.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5181, __pyx_L1_error) + __PYX_ERR(3, 5386, __pyx_L1_error) } - *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_26)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); + *((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_mvFloat.data) + __pyx_t_30)) )) = ((float)(__pyx_v_fval[__pyx_v_ij])); } - /* "PyCafe.pyx":5182 + /* "PyCafe.pyx":5387 * for ij in range(0, nelemToRetrieveFromCache): * mvFloat[ij] = fval[ij] * free(fval) # <<<<<<<<<<<<<< @@ -94511,7 +98560,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_fval); - /* "PyCafe.pyx":5183 + /* "PyCafe.pyx":5388 * mvFloat[ij] = fval[ij] * free(fval) * return mvFloat # <<<<<<<<<<<<<< @@ -94519,15 +98568,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * elif dtcheck in [CAFE_DOUBLE]: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5183, __pyx_L1_error) + __pyx_t_6 = __pyx_memoryview_fromslice(__pyx_v_mvFloat, 1, (PyObject *(*)(char *)) __pyx_memview_get_float, (int (*)(char *, PyObject *)) __pyx_memview_set_float, 0);; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; } - __pyx_L95:; + __pyx_L159:; - /* "PyCafe.pyx":5123 + /* "PyCafe.pyx":5328 * status = self._c_cafe.getCacheFloatArray(handle, fval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -94536,7 +98585,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5117 + /* "PyCafe.pyx":5322 * return mvInt * * elif dtcheck in [CAFE_FLOAT]: # <<<<<<<<<<<<<< @@ -94546,7 +98595,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC break; case CAFE_DOUBLE: - /* "PyCafe.pyx":5187 + /* "PyCafe.pyx":5392 * elif dtcheck in [CAFE_DOUBLE]: * * dval = malloc(nelemToRetrieveFromCache * sizeof(double)) # <<<<<<<<<<<<<< @@ -94555,7 +98604,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_dval = ((double *)malloc((__pyx_v_nelemToRetrieveFromCache * (sizeof(double))))); - /* "PyCafe.pyx":5189 + /* "PyCafe.pyx":5394 * dval = malloc(nelemToRetrieveFromCache * sizeof(double)) * * status = self._c_cafe.getDoubleArray(handle, dval) # <<<<<<<<<<<<<< @@ -94564,17 +98613,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_status = __pyx_v_self->_c_cafe->getDoubleArray(__pyx_v_handle, __pyx_v_dval); - /* "PyCafe.pyx":5191 + /* "PyCafe.pyx":5396 * status = self._c_cafe.getDoubleArray(handle, dval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: */ - __pyx_t_1 = ((__pyx_v_status == ICAFE_NORMAL) != 0); - if (__pyx_t_1) { + __pyx_t_3 = ((__pyx_v_status == ICAFE_NORMAL) != 0); + if (__pyx_t_3) { - /* "PyCafe.pyx":5193 + /* "PyCafe.pyx":5398 * if status == ICAFE_NORMAL: * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< @@ -94583,111 +98632,111 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - if (!__pyx_t_3) { - } else { - __pyx_t_1 = __pyx_t_3; - goto __pyx_L120_bool_binop_done; - } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_numpy, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); if (!__pyx_t_2) { } else { - __pyx_t_1 = __pyx_t_2; - goto __pyx_L120_bool_binop_done; + __pyx_t_3 = __pyx_t_2; + goto __pyx_L184_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - if (!__pyx_t_3) { + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { } else { - __pyx_t_1 = __pyx_t_3; - goto __pyx_L120_bool_binop_done; + __pyx_t_3 = __pyx_t_1; + goto __pyx_L184_bool_binop_done; } - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_numpy_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); if (!__pyx_t_2) { } else { - __pyx_t_1 = __pyx_t_2; - goto __pyx_L120_bool_binop_done; + __pyx_t_3 = __pyx_t_2; + goto __pyx_L184_bool_binop_done; } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5193, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_2 != 0); - __pyx_t_1 = __pyx_t_3; - __pyx_L120_bool_binop_done:; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_np, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_2 != 0); + if (!__pyx_t_1) { + } else { + __pyx_t_3 = __pyx_t_1; + goto __pyx_L184_bool_binop_done; + } + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_np_ndarray, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_1 != 0); + __pyx_t_3 = __pyx_t_2; + __pyx_L184_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_3 = (__pyx_t_1 != 0); - if (__pyx_t_3) { + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5195 + /* "PyCafe.pyx":5400 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvDoubleNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5195, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5195, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5196 + /* "PyCafe.pyx":5401 * * mvDoubleNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvDoubleNP[ij] = dval[ij] */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5196, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":5195 + /* "PyCafe.pyx":5400 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvDoubleNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5196 + /* "PyCafe.pyx":5401 * * mvDoubleNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvDoubleNP[ij] = dval[ij] */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5196, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5196, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float64); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5196, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_float64); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_9) < 0) __PYX_ERR(3, 5196, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_17) < 0) __PYX_ERR(3, 5401, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - /* "PyCafe.pyx":5195 + /* "PyCafe.pyx":5400 * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: * * mvDoubleNP = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_17, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_v_mvDoubleNP = __pyx_t_9; - __pyx_t_9 = 0; + __pyx_v_mvDoubleNP = __pyx_t_17; + __pyx_t_17 = 0; - /* "PyCafe.pyx":5197 + /* "PyCafe.pyx":5402 * mvDoubleNP = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94699,20 +98748,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5198 + /* "PyCafe.pyx":5403 * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): * mvDoubleNP[ij] = dval[ij] # <<<<<<<<<<<<<< * * free(dval) */ - __pyx_t_9 = PyFloat_FromDouble(((double)(__pyx_v_dval[__pyx_v_ij]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5198, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - if (unlikely(__Pyx_SetItemInt(__pyx_v_mvDoubleNP, __pyx_v_ij, __pyx_t_9, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5198, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_17 = PyFloat_FromDouble(((double)(__pyx_v_dval[__pyx_v_ij]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + if (unlikely(__Pyx_SetItemInt(__pyx_v_mvDoubleNP, __pyx_v_ij, __pyx_t_17, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5403, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; } - /* "PyCafe.pyx":5200 + /* "PyCafe.pyx":5405 * mvDoubleNP[ij] = dval[ij] * * free(dval) # <<<<<<<<<<<<<< @@ -94721,7 +98770,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_dval); - /* "PyCafe.pyx":5201 + /* "PyCafe.pyx":5406 * * free(dval) * return mvDoubleNP # arr # <<<<<<<<<<<<<< @@ -94733,17 +98782,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_mvDoubleNP; goto __pyx_L0; - /* "PyCafe.pyx":5193 + /* "PyCafe.pyx":5398 * if status == ICAFE_NORMAL: * * if art in ['numpy', 'ndarray', 'numpy.ndarray', 'np', 'np.ndarray']: # <<<<<<<<<<<<<< * * mvDoubleNP = np.empty( */ - goto __pyx_L119; + goto __pyx_L183; } - /* "PyCafe.pyx":5203 + /* "PyCafe.pyx":5408 * return mvDoubleNP # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< @@ -94752,100 +98801,100 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L127_bool_binop_done; - } - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryview, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5408, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); if (!__pyx_t_1) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L127_bool_binop_done; + __pyx_t_2 = __pyx_t_1; + goto __pyx_L191_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5203, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - __pyx_t_3 = __pyx_t_2; - __pyx_L127_bool_binop_done:; + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_mv, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5408, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { + } else { + __pyx_t_2 = __pyx_t_3; + goto __pyx_L191_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_memoryviewslice, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5408, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L191_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5206 + /* "PyCafe.pyx":5411 * * # Method A to return memory view * mvDouble = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5206, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5206, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "PyCafe.pyx":5207 - * # Method A to return memory view - * mvDouble = np.empty( - * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< - * for ij in range(0, nelemToRetrieveFromCache): - * mvDouble[ij] = dval[ij] - */ - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - - /* "PyCafe.pyx":5206 - * - * # Method A to return memory view - * mvDouble = np.empty( # <<<<<<<<<<<<<< - * nelemToRetrieveFromCache, dtype=np.float64) - * for ij in range(0, nelemToRetrieveFromCache): - */ - __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5206, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_9); - __pyx_t_9 = 0; + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_empty); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - /* "PyCafe.pyx":5207 + /* "PyCafe.pyx":5412 * # Method A to return memory view * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5207, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + + /* "PyCafe.pyx":5411 + * + * # Method A to return memory view + * mvDouble = np.empty( # <<<<<<<<<<<<<< + * nelemToRetrieveFromCache, dtype=np.float64) + * for ij in range(0, nelemToRetrieveFromCache): + */ + __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5207, __pyx_L1_error) + __Pyx_GIVEREF(__pyx_t_17); + PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_17); + __pyx_t_17 = 0; + + /* "PyCafe.pyx":5412 + * # Method A to return memory view + * mvDouble = np.empty( + * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< + * for ij in range(0, nelemToRetrieveFromCache): + * mvDouble[ij] = dval[ij] + */ + __pyx_t_17 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_np); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_float64); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5207, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_float64); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5207, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_17, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(3, 5412, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":5206 + /* "PyCafe.pyx":5411 * * # Method A to return memory view * mvDouble = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5206, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_27 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_27.memview)) __PYX_ERR(3, 5206, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_31 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_7, PyBUF_WRITABLE); if (unlikely(!__pyx_t_31.memview)) __PYX_ERR(3, 5411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_v_mvDouble = __pyx_t_27; - __pyx_t_27.memview = NULL; - __pyx_t_27.data = NULL; + __pyx_v_mvDouble = __pyx_t_31; + __pyx_t_31.memview = NULL; + __pyx_t_31.data = NULL; - /* "PyCafe.pyx":5208 + /* "PyCafe.pyx":5413 * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94857,24 +98906,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5209 + /* "PyCafe.pyx":5414 * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * return mvDouble */ - __pyx_t_28 = __pyx_v_ij; + __pyx_t_32 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_28 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_32 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5209, __pyx_L1_error) + __PYX_ERR(3, 5414, __pyx_L1_error) } - *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_28)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); + *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_32)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); } - /* "PyCafe.pyx":5210 + /* "PyCafe.pyx":5415 * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -94883,7 +98932,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_dval); - /* "PyCafe.pyx":5211 + /* "PyCafe.pyx":5416 * mvDouble[ij] = dval[ij] * free(dval) * return mvDouble # <<<<<<<<<<<<<< @@ -94891,23 +98940,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * elif art in ['array', 'array.array']: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5211, __pyx_L1_error) + __pyx_t_7 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5203 + /* "PyCafe.pyx":5408 * return mvDoubleNP # arr * * elif art in ['memoryview', 'mv', 'memoryviewslice']: # <<<<<<<<<<<<<< * * # Method A to return memory view */ - goto __pyx_L119; + goto __pyx_L183; } - /* "PyCafe.pyx":5213 + /* "PyCafe.pyx":5418 * return mvDouble * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< @@ -94916,34 +98965,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5213, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_3 != 0); - if (!__pyx_t_1) { - } else { - __pyx_t_2 = __pyx_t_1; - goto __pyx_L132_bool_binop_done; - } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5213, __pyx_L1_error) - __pyx_t_3 = (__pyx_t_1 != 0); - __pyx_t_2 = __pyx_t_3; - __pyx_L132_bool_binop_done:; - __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_array, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5418, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); - if (__pyx_t_3) { + if (!__pyx_t_3) { + } else { + __pyx_t_1 = __pyx_t_3; + goto __pyx_L196_bool_binop_done; + } + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_kp_u_array_array, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5418, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = __pyx_t_2; + __pyx_L196_bool_binop_done:; + __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; + __pyx_t_2 = (__pyx_t_1 != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5214 + /* "PyCafe.pyx":5419 * * elif art in ['array', 'array.array']: * arrayArray = array.array('d') # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(dval[ij]) */ - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5214, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7cpython_5array_array), __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_arrayArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5215 + /* "PyCafe.pyx":5420 * elif art in ['array', 'array.array']: * arrayArray = array.array('d') * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -94955,20 +99004,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5216 + /* "PyCafe.pyx":5421 * arrayArray = array.array('d') * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(dval[ij]) # <<<<<<<<<<<<<< * free(dval) * return arrayArray */ - __pyx_t_7 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5216, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5216, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_Append(__pyx_v_arrayArray, __pyx_t_7); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 5421, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5217 + /* "PyCafe.pyx":5422 * for ij in range(0, nelemToRetrieveFromCache): * arrayArray.append(dval[ij]) * free(dval) # <<<<<<<<<<<<<< @@ -94977,7 +99026,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_dval); - /* "PyCafe.pyx":5218 + /* "PyCafe.pyx":5423 * arrayArray.append(dval[ij]) * free(dval) * return arrayArray # <<<<<<<<<<<<<< @@ -94989,17 +99038,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_arrayArray; goto __pyx_L0; - /* "PyCafe.pyx":5213 + /* "PyCafe.pyx":5418 * return mvDouble * * elif art in ['array', 'array.array']: # <<<<<<<<<<<<<< * arrayArray = array.array('d') * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L119; + goto __pyx_L183; } - /* "PyCafe.pyx":5220 + /* "PyCafe.pyx":5425 * return arrayArray * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< @@ -95008,58 +99057,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __Pyx_INCREF(__pyx_v_art); __pyx_t_16 = __pyx_v_art; - __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5220, __pyx_L1_error) - __pyx_t_1 = (__pyx_t_2 != 0); - if (!__pyx_t_1) { + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctypes, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5425, __pyx_L1_error) + __pyx_t_3 = (__pyx_t_1 != 0); + if (!__pyx_t_3) { } else { - __pyx_t_3 = __pyx_t_1; - goto __pyx_L136_bool_binop_done; + __pyx_t_2 = __pyx_t_3; + goto __pyx_L200_bool_binop_done; } - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5220, __pyx_L1_error) - __pyx_t_2 = (__pyx_t_1 != 0); - __pyx_t_3 = __pyx_t_2; - __pyx_L136_bool_binop_done:; + __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_16, __pyx_n_u_ctype, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5425, __pyx_L1_error) + __pyx_t_1 = (__pyx_t_3 != 0); + __pyx_t_2 = __pyx_t_1; + __pyx_L200_bool_binop_done:; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5221 + /* "PyCafe.pyx":5426 * * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_double*nelemToRetrieveFromCache)() # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = dval[ij] */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_c_double); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5221, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_17); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5221, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_c_double); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_6 = PyNumber_Multiply(__pyx_t_17, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_17 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); + __pyx_t_6 = PyNumber_Multiply(__pyx_t_9, __pyx_t_17); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = NULL; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; + __pyx_t_17 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_9)) { + __pyx_t_17 = PyMethod_GET_SELF(__pyx_t_6); + if (likely(__pyx_t_17)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_17); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5221, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_17) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_17) : __Pyx_PyObject_CallNoArg(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_ctypesArray = __pyx_t_7; __pyx_t_7 = 0; - /* "PyCafe.pyx":5222 + /* "PyCafe.pyx":5427 * elif art in ['ctypes', "ctype"]: * ctypesArray = (ctypes.c_double*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -95071,20 +99120,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5223 + /* "PyCafe.pyx":5428 * ctypesArray = (ctypes.c_double*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * return ctypesArray */ - __pyx_t_7 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5223, __pyx_L1_error) + __pyx_t_7 = PyFloat_FromDouble((__pyx_v_dval[__pyx_v_ij])); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5223, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_ctypesArray, __pyx_v_ij, __pyx_t_7, unsigned int, 0, __Pyx_PyInt_From_unsigned_int, 0, 0, 1) < 0)) __PYX_ERR(3, 5428, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":5224 + /* "PyCafe.pyx":5429 * for ij in range(0, nelemToRetrieveFromCache): * ctypesArray[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -95093,7 +99142,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_dval); - /* "PyCafe.pyx":5225 + /* "PyCafe.pyx":5430 * ctypesArray[ij] = dval[ij] * free(dval) * return ctypesArray # <<<<<<<<<<<<<< @@ -95105,17 +99154,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_r = __pyx_v_ctypesArray; goto __pyx_L0; - /* "PyCafe.pyx":5220 + /* "PyCafe.pyx":5425 * return arrayArray * * elif art in ['ctypes', "ctype"]: # <<<<<<<<<<<<<< * ctypesArray = (ctypes.c_double*nelemToRetrieveFromCache)() * for ij in range(0, nelemToRetrieveFromCache): */ - goto __pyx_L119; + goto __pyx_L183; } - /* "PyCafe.pyx":5228 + /* "PyCafe.pyx":5433 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< @@ -95124,14 +99173,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ /*else*/ { - /* "PyCafe.pyx":5229 + /* "PyCafe.pyx":5434 * else: * print("Unknow array type in user request for art='", * art, "'. Possible types are:") # <<<<<<<<<<<<<< * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") */ - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5228, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_kp_u_Unknow_array_type_in_user_reques); __Pyx_GIVEREF(__pyx_kp_u_Unknow_array_type_in_user_reques); @@ -95143,112 +99192,112 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_kp_u_Possible_types_are); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_Possible_types_are); - /* "PyCafe.pyx":5228 + /* "PyCafe.pyx":5433 * * else: * print("Unknow array type in user request for art='", # <<<<<<<<<<<<<< * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5228, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5433, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5230 + /* "PyCafe.pyx":5435 * print("Unknow array type in user request for art='", * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") # <<<<<<<<<<<<<< * print("Returning memoryview") * mvDouble = np.empty( */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5230, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5231 + /* "PyCafe.pyx":5436 * art, "'. Possible types are:") * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") # <<<<<<<<<<<<<< * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5231, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5232 + /* "PyCafe.pyx":5437 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvDouble = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5232, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5232, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_empty); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5233 + /* "PyCafe.pyx":5438 * print("Returning memoryview") * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5233, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_nelemToRetrieveFromCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":5232 + /* "PyCafe.pyx":5437 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvDouble = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5232, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_9); + __pyx_t_17 = PyTuple_New(1); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_17); __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5233 + /* "PyCafe.pyx":5438 * print("Returning memoryview") * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) # <<<<<<<<<<<<<< * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5233, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_n_s_np); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 5233, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_17); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_n_s_float64); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_np); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_float64); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(3, 5438, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5232 + /* "PyCafe.pyx":5437 * print("memoryview, numpy, array, ctypes") * print("Returning memoryview") * mvDouble = np.empty( # <<<<<<<<<<<<<< * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5232, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_17, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_27 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_27.memview)) __PYX_ERR(3, 5232, __pyx_L1_error) + __pyx_t_31 = __Pyx_PyObject_to_MemoryviewSlice_dc_double(__pyx_t_5, PyBUF_WRITABLE); if (unlikely(!__pyx_t_31.memview)) __PYX_ERR(3, 5437, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_mvDouble = __pyx_t_27; - __pyx_t_27.memview = NULL; - __pyx_t_27.data = NULL; + __pyx_v_mvDouble = __pyx_t_31; + __pyx_t_31.memview = NULL; + __pyx_t_31.data = NULL; - /* "PyCafe.pyx":5234 + /* "PyCafe.pyx":5439 * mvDouble = np.empty( * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): # <<<<<<<<<<<<<< @@ -95260,24 +99309,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_ij = __pyx_t_11; - /* "PyCafe.pyx":5235 + /* "PyCafe.pyx":5440 * nelemToRetrieveFromCache, dtype=np.float64) * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] # <<<<<<<<<<<<<< * free(dval) * return mvDouble */ - __pyx_t_29 = __pyx_v_ij; + __pyx_t_33 = __pyx_v_ij; __pyx_t_8 = -1; - if (unlikely(__pyx_t_29 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_8 = 0; + if (unlikely(__pyx_t_33 >= (size_t)__pyx_v_mvDouble.shape[0])) __pyx_t_8 = 0; if (unlikely(__pyx_t_8 != -1)) { __Pyx_RaiseBufferIndexError(__pyx_t_8); - __PYX_ERR(3, 5235, __pyx_L1_error) + __PYX_ERR(3, 5440, __pyx_L1_error) } - *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_29)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); + *((double *) ( /* dim=0 */ ((char *) (((double *) __pyx_v_mvDouble.data) + __pyx_t_33)) )) = ((double)(__pyx_v_dval[__pyx_v_ij])); } - /* "PyCafe.pyx":5236 + /* "PyCafe.pyx":5441 * for ij in range(0, nelemToRetrieveFromCache): * mvDouble[ij] = dval[ij] * free(dval) # <<<<<<<<<<<<<< @@ -95286,7 +99335,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ free(__pyx_v_dval); - /* "PyCafe.pyx":5237 + /* "PyCafe.pyx":5442 * mvDouble[ij] = dval[ij] * free(dval) * return mvDouble # <<<<<<<<<<<<<< @@ -95294,15 +99343,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * if status != ICAFE_NORMAL: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5237, __pyx_L1_error) + __pyx_t_5 = __pyx_memoryview_fromslice(__pyx_v_mvDouble, 1, (PyObject *(*)(char *)) __pyx_memview_get_double, (int (*)(char *, PyObject *)) __pyx_memview_set_double, 0);; if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; } - __pyx_L119:; + __pyx_L183:; - /* "PyCafe.pyx":5191 + /* "PyCafe.pyx":5396 * status = self._c_cafe.getDoubleArray(handle, dval) * * if status == ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -95311,7 +99360,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5185 + /* "PyCafe.pyx":5390 * return mvFloat * * elif dtcheck in [CAFE_DOUBLE]: # <<<<<<<<<<<<<< @@ -95322,37 +99371,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC default: break; } - /* "PyCafe.pyx":5239 + /* "PyCafe.pyx":5444 * return mvDouble * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: */ - __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); - if (__pyx_t_2) { + __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5240 + /* "PyCafe.pyx":5445 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< * if handle == 0: * self._c_cafe.printStatusMessage(status) */ - __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); - if (__pyx_t_2) { + __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5241 + /* "PyCafe.pyx":5446 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * else: */ - __pyx_t_2 = ((__pyx_v_handle == 0) != 0); - if (__pyx_t_2) { + __pyx_t_1 = ((__pyx_v_handle == 0) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5242 + /* "PyCafe.pyx":5447 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -95361,17 +99410,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5241 + /* "PyCafe.pyx":5446 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * else: */ - goto __pyx_L144; + goto __pyx_L208; } - /* "PyCafe.pyx":5244 + /* "PyCafe.pyx":5449 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -95381,9 +99430,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC /*else*/ { __pyx_v_self->_c_cafe->printStatus(__pyx_v_handle, __pyx_v_status); } - __pyx_L144:; + __pyx_L208:; - /* "PyCafe.pyx":5240 + /* "PyCafe.pyx":5445 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -95392,94 +99441,94 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5245 + /* "PyCafe.pyx":5450 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, */ - __pyx_t_2 = (__pyx_v_self->_enable_exceptions != 0); - if (__pyx_t_2) { + __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5247 + /* "PyCafe.pyx":5452 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5247, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5248 + /* "PyCafe.pyx":5453 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, * _error_text=self.cs.code(status), */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5248, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5249 + /* "PyCafe.pyx":5454 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, # <<<<<<<<<<<<<< * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5249, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5250 + /* "PyCafe.pyx":5455 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, * _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5250, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5251 + /* "PyCafe.pyx":5456 * _error_code=status, * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * return [None] */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5251, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5246 + /* "PyCafe.pyx":5451 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5246, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5252 + /* "PyCafe.pyx":5457 * _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -95487,9 +99536,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5252, __pyx_L1_error) + __PYX_ERR(3, 5457, __pyx_L1_error) - /* "PyCafe.pyx":5245 + /* "PyCafe.pyx":5450 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -95498,7 +99547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5253 + /* "PyCafe.pyx":5458 * _error_info=self.cs.info(status)) * raise _cafeException * return [None] # <<<<<<<<<<<<<< @@ -95506,7 +99555,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5253, __pyx_L1_error) + __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); @@ -95515,7 +99564,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5239 + /* "PyCafe.pyx":5444 * return mvDouble * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -95524,7 +99573,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":4814 + /* "PyCafe.pyx":4904 * * ################################################################################## * def getArrayCache(self, handlePV, str dt='native', str art='numpy'): # <<<<<<<<<<<<<< @@ -95543,9 +99592,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_16); __Pyx_XDECREF(__pyx_t_17); __PYX_XDEC_MEMVIEW(&__pyx_t_18, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_21, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_24, 1); - __PYX_XDEC_MEMVIEW(&__pyx_t_27, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_25, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_28, 1); + __PYX_XDEC_MEMVIEW(&__pyx_t_31, 1); __Pyx_AddTraceback("PyCafe.CyCafe.getArrayCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -95559,7 +99608,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_v_bVal); __Pyx_XDECREF(__pyx_v_strVal); __Pyx_XDECREF(__pyx_v_valStr); - __Pyx_XDECREF(__pyx_v_mvShortNP); + __Pyx_XDECREF(__pyx_v_mvInt8); + __Pyx_XDECREF(__pyx_v_mvUInt8); __Pyx_XDECREF(__pyx_v_arrayArray); __Pyx_XDECREF(__pyx_v_ctypesArray); __Pyx_XDECREF(__pyx_v_mvIntNP); @@ -95570,7 +99620,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_314getArrayCache(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":5261 +/* "PyCafe.pyx":5466 * ################################################################################## * * def getPVStrCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95601,7 +99651,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVStrCache", 0); - /* "PyCafe.pyx":5262 + /* "PyCafe.pyx":5467 * * def getPVStrCache(self, handlePV): * return self.getPVCache(handlePV, 'str') # <<<<<<<<<<<<<< @@ -95609,7 +99659,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5262, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -95626,7 +99676,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5262, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -95634,13 +99684,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5262, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5467, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5262, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -95651,7 +99701,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_str); __Pyx_GIVEREF(__pyx_n_u_str); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_str); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5262, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -95660,7 +99710,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5261 + /* "PyCafe.pyx":5466 * ################################################################################## * * def getPVStrCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95684,7 +99734,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_316getPVStrCache(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":5266 +/* "PyCafe.pyx":5471 * * ################################################################################## * def getPVIntCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95715,7 +99765,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVIntCache", 0); - /* "PyCafe.pyx":5267 + /* "PyCafe.pyx":5472 * ################################################################################## * def getPVIntCache(self, handlePV): * return self.getPVCache(handlePV, 'int') # <<<<<<<<<<<<<< @@ -95723,7 +99773,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5267, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -95740,7 +99790,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5267, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5472, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -95748,13 +99798,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5267, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5472, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5267, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -95765,7 +99815,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_int); __Pyx_GIVEREF(__pyx_n_u_int); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_int); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5267, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -95774,7 +99824,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5266 + /* "PyCafe.pyx":5471 * * ################################################################################## * def getPVIntCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95798,7 +99848,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_318getPVIntCache(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":5271 +/* "PyCafe.pyx":5476 * * ################################################################################## * def getPVFloatCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95829,7 +99879,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getPVFloatCache", 0); - /* "PyCafe.pyx":5272 + /* "PyCafe.pyx":5477 * ################################################################################## * def getPVFloatCache(self, handlePV): * return self.getPVCache(handlePV, 'float') # <<<<<<<<<<<<<< @@ -95837,7 +99887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5272, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVCache); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -95854,7 +99904,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5272, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5477, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -95862,13 +99912,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_handlePV, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5272, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5477, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5272, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -95879,7 +99929,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P __Pyx_INCREF(__pyx_n_u_float); __Pyx_GIVEREF(__pyx_n_u_float); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_float); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5272, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -95888,7 +99938,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5271 + /* "PyCafe.pyx":5476 * * ################################################################################## * def getPVFloatCache(self, handlePV): # <<<<<<<<<<<<<< @@ -95912,7 +99962,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_320getPVFloatCache(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":5276 +/* "PyCafe.pyx":5481 * * ################################################################################## * def getPVCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -95956,7 +100006,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_323getPVCache(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVCache") < 0)) __PYX_ERR(3, 5276, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVCache") < 0)) __PYX_ERR(3, 5481, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -95972,13 +100022,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_323getPVCache(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getPVCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5276, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getPVCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5481, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getPVCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5276, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5481, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_322getPVCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -96008,7 +100058,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe struct __pyx_opt_args_6PyCafe_PVDataHolderToStruct __pyx_t_7; __Pyx_RefNannySetupContext("getPVCache", 0); - /* "PyCafe.pyx":5279 + /* "PyCafe.pyx":5484 * ################################################################################## * * cdef str _METHOD = "getPVCache(handlePV, str dt='native'" # <<<<<<<<<<<<<< @@ -96018,7 +100068,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_kp_u_getPVCache_handlePV_str_dt_nativ); __pyx_v__METHOD = __pyx_kp_u_getPVCache_handlePV_str_dt_nativ; - /* "PyCafe.pyx":5281 + /* "PyCafe.pyx":5486 * cdef str _METHOD = "getPVCache(handlePV, str dt='native'" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -96027,7 +100077,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ __pyx_v_handle = 0; - /* "PyCafe.pyx":5283 + /* "PyCafe.pyx":5488 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -96048,17 +100098,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5284 + /* "PyCafe.pyx":5489 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5284, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5489, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5283 + /* "PyCafe.pyx":5488 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -96068,7 +100118,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":5285 + /* "PyCafe.pyx":5490 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -96079,21 +100129,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5286 + /* "PyCafe.pyx":5491 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getPVCache. \n \ */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5286, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5286, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5491, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5286, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5491, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5285 + /* "PyCafe.pyx":5490 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -96103,7 +100153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":5288 + /* "PyCafe.pyx":5493 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getPVCache. \n \ # <<<<<<<<<<<<<< @@ -96111,15 +100161,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__87, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5288, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__87, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 5288, __pyx_L1_error) + __PYX_ERR(3, 5493, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5293 + /* "PyCafe.pyx":5498 * cdef PVDataHolder pvd * * pvd.setNelem(self.hh.getNelemToRetrieveFromCache(handle)) # <<<<<<<<<<<<<< @@ -96128,7 +100178,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ (void)(__pyx_v_pvd.setNelem(__pyx_v_self->hh.getNelemToRetrieveFromCache(__pyx_v_handle))); - /* "PyCafe.pyx":5295 + /* "PyCafe.pyx":5500 * pvd.setNelem(self.hh.getNelemToRetrieveFromCache(handle)) * * status = self._c_cafe.getCache(handle, pvd) # <<<<<<<<<<<<<< @@ -96137,7 +100187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ __pyx_v_status = __pyx_v_self->_c_cafe->getCache(__pyx_v_handle, __pyx_v_pvd); - /* "PyCafe.pyx":5297 + /* "PyCafe.pyx":5502 * status = self._c_cafe.getCache(handle, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -96147,7 +100197,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5298 + /* "PyCafe.pyx":5503 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -96157,7 +100207,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5299 + /* "PyCafe.pyx":5504 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -96167,7 +100217,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5300 + /* "PyCafe.pyx":5505 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -96176,7 +100226,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5299 + /* "PyCafe.pyx":5504 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -96186,7 +100236,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe goto __pyx_L8; } - /* "PyCafe.pyx":5302 + /* "PyCafe.pyx":5507 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -96198,7 +100248,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe } __pyx_L8:; - /* "PyCafe.pyx":5298 + /* "PyCafe.pyx":5503 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -96207,7 +100257,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":5303 + /* "PyCafe.pyx":5508 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -96217,76 +100267,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5305 + /* "PyCafe.pyx":5510 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5305, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5306 + /* "PyCafe.pyx":5511 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5306, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5307 + /* "PyCafe.pyx":5512 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5307, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5307, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5308 + /* "PyCafe.pyx":5513 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5308, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5305, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5304 + /* "PyCafe.pyx":5509 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5304, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5309 + /* "PyCafe.pyx":5514 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -96294,9 +100344,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe * pvd_valnone = PVDataHolderToStruct(pvd, dt) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5309, __pyx_L1_error) + __PYX_ERR(3, 5514, __pyx_L1_error) - /* "PyCafe.pyx":5303 + /* "PyCafe.pyx":5508 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -96305,7 +100355,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":5311 + /* "PyCafe.pyx":5516 * raise _cafeException * * pvd_valnone = PVDataHolderToStruct(pvd, dt) # <<<<<<<<<<<<<< @@ -96314,12 +100364,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5311, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pvd_valnone = ((struct __pyx_obj_6PyCafe_pvdata *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5313 + /* "PyCafe.pyx":5518 * pvd_valnone = PVDataHolderToStruct(pvd, dt) * # pvd_valnone.value[0]=None * return pvd_valnone # <<<<<<<<<<<<<< @@ -96331,7 +100381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __pyx_r = ((PyObject *)__pyx_v_pvd_valnone); goto __pyx_L0; - /* "PyCafe.pyx":5297 + /* "PyCafe.pyx":5502 * status = self._c_cafe.getCache(handle, pvd) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -96340,7 +100390,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":5315 + /* "PyCafe.pyx":5520 * return pvd_valnone * * return PVDataHolderToStruct(pvd, dt) # <<<<<<<<<<<<<< @@ -96350,13 +100400,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe __Pyx_XDECREF(__pyx_r); __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5315, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct(__pyx_v_pvd, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5276 + /* "PyCafe.pyx":5481 * * ################################################################################## * def getPVCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -96381,7 +100431,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_322getPVCache(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":5322 +/* "PyCafe.pyx":5527 * * ################################################################################## * def getCtrl(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -96425,7 +100475,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_325getCtrl(PyObject *__pyx_v_self, PyO } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCtrl") < 0)) __PYX_ERR(3, 5322, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCtrl") < 0)) __PYX_ERR(3, 5527, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -96441,13 +100491,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_325getCtrl(PyObject *__pyx_v_self, PyO } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getCtrl", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5322, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getCtrl", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5527, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getCtrl", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5322, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5527, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_324getCtrl(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -96477,7 +100527,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy struct __pyx_opt_args_6PyCafe_PVCtrlHolderToStruct __pyx_t_7; __Pyx_RefNannySetupContext("getCtrl", 0); - /* "PyCafe.pyx":5325 + /* "PyCafe.pyx":5530 * ################################################################################## * * cdef str _METHOD = "getCtrl(handlePV, str dt='native')" # <<<<<<<<<<<<<< @@ -96487,7 +100537,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __Pyx_INCREF(__pyx_kp_u_getCtrl_handlePV_str_dt_native); __pyx_v__METHOD = __pyx_kp_u_getCtrl_handlePV_str_dt_native; - /* "PyCafe.pyx":5327 + /* "PyCafe.pyx":5532 * cdef str _METHOD = "getCtrl(handlePV, str dt='native')" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -96496,7 +100546,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_handle = 0; - /* "PyCafe.pyx":5329 + /* "PyCafe.pyx":5534 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -96517,17 +100567,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5330 + /* "PyCafe.pyx":5535 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5330, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5535, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5329 + /* "PyCafe.pyx":5534 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -96537,7 +100587,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy goto __pyx_L3; } - /* "PyCafe.pyx":5331 + /* "PyCafe.pyx":5536 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -96548,21 +100598,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5332 + /* "PyCafe.pyx":5537 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrl. \n\ */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5332, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5332, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5537, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5332, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5537, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5331 + /* "PyCafe.pyx":5536 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -96572,7 +100622,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy goto __pyx_L3; } - /* "PyCafe.pyx":5334 + /* "PyCafe.pyx":5539 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrl. \n\ # <<<<<<<<<<<<<< @@ -96580,15 +100630,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__88, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5334, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__88, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 5334, __pyx_L1_error) + __PYX_ERR(3, 5539, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5339 + /* "PyCafe.pyx":5544 * cdef PVCtrlHolder pvc * * pvc.setNelem(self.hh.getNelemClientCtrl(handle)) # do this dynamically # <<<<<<<<<<<<<< @@ -96597,7 +100647,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ (void)(__pyx_v_pvc.setNelem(__pyx_v_self->hh.getNelemClientCtrl(__pyx_v_handle))); - /* "PyCafe.pyx":5342 + /* "PyCafe.pyx":5547 * * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -96612,7 +100662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy #endif /*try:*/ { - /* "PyCafe.pyx":5343 + /* "PyCafe.pyx":5548 * cdef int status * with nogil: * status = self._c_cafe.getCtrl(handle, pvc) # <<<<<<<<<<<<<< @@ -96622,7 +100672,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_v_status = __pyx_v_self->_c_cafe->getCtrl(__pyx_v_handle, __pyx_v_pvc); } - /* "PyCafe.pyx":5342 + /* "PyCafe.pyx":5547 * * cdef int status * with nogil: # <<<<<<<<<<<<<< @@ -96641,7 +100691,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy } } - /* "PyCafe.pyx":5345 + /* "PyCafe.pyx":5550 * status = self._c_cafe.getCtrl(handle, pvc) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -96651,7 +100701,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5346 + /* "PyCafe.pyx":5551 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -96661,7 +100711,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5347 + /* "PyCafe.pyx":5552 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -96671,7 +100721,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5348 + /* "PyCafe.pyx":5553 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -96680,7 +100730,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5347 + /* "PyCafe.pyx":5552 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -96690,7 +100740,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy goto __pyx_L11; } - /* "PyCafe.pyx":5350 + /* "PyCafe.pyx":5555 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -96702,7 +100752,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy } __pyx_L11:; - /* "PyCafe.pyx":5346 + /* "PyCafe.pyx":5551 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -96711,7 +100761,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":5351 + /* "PyCafe.pyx":5556 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -96721,76 +100771,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5353 + /* "PyCafe.pyx":5558 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5353, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5354 + /* "PyCafe.pyx":5559 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5354, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5355 + /* "PyCafe.pyx":5560 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5355, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5355, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5356 + /* "PyCafe.pyx":5561 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5356, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5353, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5352 + /* "PyCafe.pyx":5557 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5352, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5357 + /* "PyCafe.pyx":5562 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -96798,9 +100848,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5357, __pyx_L1_error) + __PYX_ERR(3, 5562, __pyx_L1_error) - /* "PyCafe.pyx":5351 + /* "PyCafe.pyx":5556 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -96809,7 +100859,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":5359 + /* "PyCafe.pyx":5564 * raise _cafeException * * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) # <<<<<<<<<<<<<< @@ -96818,12 +100868,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5359, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pvc_valnone = ((struct __pyx_obj_6PyCafe_pvctrl *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5360 + /* "PyCafe.pyx":5565 * * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) * pvc_valnone.value[0] = None # <<<<<<<<<<<<<< @@ -96832,11 +100882,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ if (unlikely(__pyx_v_pvc_valnone->value == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 5360, __pyx_L1_error) + __PYX_ERR(3, 5565, __pyx_L1_error) } - if (unlikely(__Pyx_SetItemInt(__pyx_v_pvc_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 5360, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_pvc_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 5565, __pyx_L1_error) - /* "PyCafe.pyx":5361 + /* "PyCafe.pyx":5566 * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) * pvc_valnone.value[0] = None * return pvc_valnone # <<<<<<<<<<<<<< @@ -96848,7 +100898,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __pyx_r = ((PyObject *)__pyx_v_pvc_valnone); goto __pyx_L0; - /* "PyCafe.pyx":5345 + /* "PyCafe.pyx":5550 * status = self._c_cafe.getCtrl(handle, pvc) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -96857,7 +100907,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy */ } - /* "PyCafe.pyx":5362 + /* "PyCafe.pyx":5567 * pvc_valnone.value[0] = None * return pvc_valnone * return PVCtrlHolderToStruct(pvc, dt) # <<<<<<<<<<<<<< @@ -96867,13 +100917,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy __Pyx_XDECREF(__pyx_r); __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5362, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5322 + /* "PyCafe.pyx":5527 * * ################################################################################## * def getCtrl(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -96898,7 +100948,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_324getCtrl(struct __pyx_obj_6PyCafe_Cy return __pyx_r; } -/* "PyCafe.pyx":5370 +/* "PyCafe.pyx":5575 * ################################################################################## * * def getCtrlCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -96942,7 +100992,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_327getCtrlCache(PyObject *__pyx_v_self } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCtrlCache") < 0)) __PYX_ERR(3, 5370, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getCtrlCache") < 0)) __PYX_ERR(3, 5575, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -96958,13 +101008,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_327getCtrlCache(PyObject *__pyx_v_self } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getCtrlCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5370, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getCtrlCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5575, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getCtrlCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5370, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5575, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_dt); /* function exit code */ @@ -96994,7 +101044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa struct __pyx_opt_args_6PyCafe_PVCtrlHolderToStruct __pyx_t_7; __Pyx_RefNannySetupContext("getCtrlCache", 0); - /* "PyCafe.pyx":5372 + /* "PyCafe.pyx":5577 * def getCtrlCache(self, handlePV, str dt='native'): * ################################################################################## * cdef str _METHOD = "getCtrlCache(handlePV, str dt='native')" # <<<<<<<<<<<<<< @@ -97004,7 +101054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_getCtrlCache_handlePV_str_dt_nat); __pyx_v__METHOD = __pyx_kp_u_getCtrlCache_handlePV_str_dt_nat; - /* "PyCafe.pyx":5373 + /* "PyCafe.pyx":5578 * ################################################################################## * cdef str _METHOD = "getCtrlCache(handlePV, str dt='native')" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -97013,7 +101063,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":5375 + /* "PyCafe.pyx":5580 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -97034,17 +101084,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5376 + /* "PyCafe.pyx":5581 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5376, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5581, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5375 + /* "PyCafe.pyx":5580 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -97054,7 +101104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":5377 + /* "PyCafe.pyx":5582 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -97065,21 +101115,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5378 + /* "PyCafe.pyx":5583 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrlCache. \n\ */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5378, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5378, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5583, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5378, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5377 + /* "PyCafe.pyx":5582 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -97089,7 +101139,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":5380 + /* "PyCafe.pyx":5585 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrlCache. \n\ # <<<<<<<<<<<<<< @@ -97097,15 +101147,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__89, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5380, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__89, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 5380, __pyx_L1_error) + __PYX_ERR(3, 5585, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5385 + /* "PyCafe.pyx":5590 * cdef PVCtrlHolder pvc * * pvc.setNelem(self.hh.getNelemToRetrieveFromCtrlCache(handle)) # <<<<<<<<<<<<<< @@ -97114,7 +101164,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ (void)(__pyx_v_pvc.setNelem(__pyx_v_self->hh.getNelemToRetrieveFromCtrlCache(__pyx_v_handle))); - /* "PyCafe.pyx":5388 + /* "PyCafe.pyx":5593 * * * status = self._c_cafe.getCtrlCache(handle, pvc) # <<<<<<<<<<<<<< @@ -97123,7 +101173,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ __pyx_v_status = __pyx_v_self->_c_cafe->getCtrlCache(__pyx_v_handle, __pyx_v_pvc); - /* "PyCafe.pyx":5390 + /* "PyCafe.pyx":5595 * status = self._c_cafe.getCtrlCache(handle, pvc) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -97133,7 +101183,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5391 + /* "PyCafe.pyx":5596 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -97143,7 +101193,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5392 + /* "PyCafe.pyx":5597 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -97153,7 +101203,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5393 + /* "PyCafe.pyx":5598 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -97162,7 +101212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5392 + /* "PyCafe.pyx":5597 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -97172,7 +101222,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa goto __pyx_L8; } - /* "PyCafe.pyx":5395 + /* "PyCafe.pyx":5600 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -97184,7 +101234,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa } __pyx_L8:; - /* "PyCafe.pyx":5391 + /* "PyCafe.pyx":5596 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -97193,7 +101243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":5396 + /* "PyCafe.pyx":5601 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -97203,76 +101253,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5398 + /* "PyCafe.pyx":5603 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, # <<<<<<<<<<<<<< * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5398, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5399 + /* "PyCafe.pyx":5604 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5399, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5400 + /* "PyCafe.pyx":5605 * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5400, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5400, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5401 + /* "PyCafe.pyx":5606 * _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5401, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5398, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 5603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5397 + /* "PyCafe.pyx":5602 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, * _pv_name=self._c_cafe.getPVFromHandle(handle), */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5397, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5402 + /* "PyCafe.pyx":5607 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -97280,9 +101330,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5402, __pyx_L1_error) + __PYX_ERR(3, 5607, __pyx_L1_error) - /* "PyCafe.pyx":5396 + /* "PyCafe.pyx":5601 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -97291,7 +101341,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":5404 + /* "PyCafe.pyx":5609 * raise _cafeException * * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) # <<<<<<<<<<<<<< @@ -97300,12 +101350,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5404, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pvc_valnone = ((struct __pyx_obj_6PyCafe_pvctrl *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5405 + /* "PyCafe.pyx":5610 * * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) * pvc_valnone.value[0] = None # <<<<<<<<<<<<<< @@ -97314,11 +101364,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ if (unlikely(__pyx_v_pvc_valnone->value == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 5405, __pyx_L1_error) + __PYX_ERR(3, 5610, __pyx_L1_error) } - if (unlikely(__Pyx_SetItemInt(__pyx_v_pvc_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 5405, __pyx_L1_error) + if (unlikely(__Pyx_SetItemInt(__pyx_v_pvc_valnone->value, 0, Py_None, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) __PYX_ERR(3, 5610, __pyx_L1_error) - /* "PyCafe.pyx":5406 + /* "PyCafe.pyx":5611 * pvc_valnone = PVCtrlHolderToStruct(pvc, dt) * pvc_valnone.value[0] = None * return pvc_valnone # <<<<<<<<<<<<<< @@ -97330,7 +101380,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __pyx_r = ((PyObject *)__pyx_v_pvc_valnone); goto __pyx_L0; - /* "PyCafe.pyx":5390 + /* "PyCafe.pyx":5595 * status = self._c_cafe.getCtrlCache(handle, pvc) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -97339,7 +101389,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":5408 + /* "PyCafe.pyx":5613 * return pvc_valnone * * return PVCtrlHolderToStruct(pvc, dt) # <<<<<<<<<<<<<< @@ -97349,13 +101399,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa __Pyx_XDECREF(__pyx_r); __pyx_t_7.__pyx_n = 1; __pyx_t_7.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5408, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVCtrlHolderToStruct(__pyx_v_pvc, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5370 + /* "PyCafe.pyx":5575 * ################################################################################## * * def getCtrlCache(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< @@ -97380,7 +101430,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_326getCtrlCache(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":5416 +/* "PyCafe.pyx":5621 * ################################################################################## * * def groupMonitorStop(self, ghandleName): # <<<<<<<<<<<<<< @@ -97419,7 +101469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("groupMonitorStop", 0); - /* "PyCafe.pyx":5418 + /* "PyCafe.pyx":5623 * def groupMonitorStop(self, ghandleName): * ################################################################################## * cdef str _METHOD = "groupMonitorStop(ghandleName)" # <<<<<<<<<<<<<< @@ -97429,7 +101479,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __Pyx_INCREF(__pyx_kp_u_groupMonitorStop_ghandleName); __pyx_v__METHOD = __pyx_kp_u_groupMonitorStop_ghandleName; - /* "PyCafe.pyx":5420 + /* "PyCafe.pyx":5625 * cdef str _METHOD = "groupMonitorStop(ghandleName)" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -97438,7 +101488,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":5421 + /* "PyCafe.pyx":5626 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -97459,17 +101509,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5422 + /* "PyCafe.pyx":5627 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5422, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5627, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5421 + /* "PyCafe.pyx":5626 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -97479,7 +101529,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":5423 + /* "PyCafe.pyx":5628 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -97490,21 +101540,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5424 + /* "PyCafe.pyx":5629 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5424, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5424, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5629, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5424, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5629, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5423 + /* "PyCafe.pyx":5628 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -97514,7 +101564,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":5426 + /* "PyCafe.pyx":5631 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -97523,33 +101573,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ /*else*/ { - /* "PyCafe.pyx":5427 + /* "PyCafe.pyx":5632 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info= ("First input argument, should be of type " * "if group handle, else if group name")) */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5427, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5427, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5427, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_8) < 0) __PYX_ERR(3, 5427, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_8) < 0) __PYX_ERR(3, 5632, __pyx_L1_error) - /* "PyCafe.pyx":5426 + /* "PyCafe.pyx":5631 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info= ("First input argument, should be of type " */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5426, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5430 + /* "PyCafe.pyx":5635 * _error_info= ("First input argument, should be of type " * "if group handle, else if group name")) * raise _cafeException # <<<<<<<<<<<<<< @@ -97557,11 +101607,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5430, __pyx_L1_error) + __PYX_ERR(3, 5635, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5434 + /* "PyCafe.pyx":5639 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -97576,7 +101626,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 #endif /*try:*/ { - /* "PyCafe.pyx":5435 + /* "PyCafe.pyx":5640 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -97586,7 +101636,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":5434 + /* "PyCafe.pyx":5639 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -97605,7 +101655,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 } } - /* "PyCafe.pyx":5438 + /* "PyCafe.pyx":5643 * * cdef vector[int] vStatus * vStatus.reserve(pvg.getNPV()) # <<<<<<<<<<<<<< @@ -97614,7 +101664,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ __pyx_v_vStatus.reserve(__pyx_v_pvg.getNPV()); - /* "PyCafe.pyx":5440 + /* "PyCafe.pyx":5645 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -97629,7 +101679,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 #endif /*try:*/ { - /* "PyCafe.pyx":5441 + /* "PyCafe.pyx":5646 * * with nogil: * status = self._c_cafe.groupMonitorStop(ghandle, vStatus) # <<<<<<<<<<<<<< @@ -97639,7 +101689,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_v_status = __pyx_v_self->_c_cafe->groupMonitorStop(__pyx_v_ghandle, __pyx_v_vStatus); } - /* "PyCafe.pyx":5440 + /* "PyCafe.pyx":5645 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -97658,7 +101708,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 } } - /* "PyCafe.pyx":5443 + /* "PyCafe.pyx":5648 * status = self._c_cafe.groupMonitorStop(ghandle, vStatus) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -97668,7 +101718,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5444 + /* "PyCafe.pyx":5649 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -97678,7 +101728,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5445 + /* "PyCafe.pyx":5650 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -97687,7 +101737,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5444 + /* "PyCafe.pyx":5649 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -97696,7 +101746,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":5443 + /* "PyCafe.pyx":5648 * status = self._c_cafe.groupMonitorStop(ghandle, vStatus) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -97705,7 +101755,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":5447 + /* "PyCafe.pyx":5652 * self._c_cafe.printStatusMessage(status) * * return status, vStatus # <<<<<<<<<<<<<< @@ -97713,11 +101763,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5447, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5447, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5447, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); @@ -97729,7 +101779,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 __pyx_t_7 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5416 + /* "PyCafe.pyx":5621 * ################################################################################## * * def groupMonitorStop(self, ghandleName): # <<<<<<<<<<<<<< @@ -97754,7 +101804,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_328groupMonitorStop(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":5453 +/* "PyCafe.pyx":5658 * ################################################################################## * * def getMonitorPolicyVector(self, handlePV, _monid): # <<<<<<<<<<<<<< @@ -97793,11 +101843,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_331getMonitorPolicyVector(PyObject *__ case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_monid_2)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("getMonitorPolicyVector", 1, 2, 2, 1); __PYX_ERR(3, 5453, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getMonitorPolicyVector", 1, 2, 2, 1); __PYX_ERR(3, 5658, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getMonitorPolicyVector") < 0)) __PYX_ERR(3, 5453, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getMonitorPolicyVector") < 0)) __PYX_ERR(3, 5658, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -97810,7 +101860,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_331getMonitorPolicyVector(PyObject *__ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getMonitorPolicyVector", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5453, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getMonitorPolicyVector", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5658, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getMonitorPolicyVector", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -97841,7 +101891,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("getMonitorPolicyVector", 0); - /* "PyCafe.pyx":5455 + /* "PyCafe.pyx":5660 * def getMonitorPolicyVector(self, handlePV, _monid): * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -97850,7 +101900,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_handle = 0; - /* "PyCafe.pyx":5456 + /* "PyCafe.pyx":5661 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -97871,17 +101921,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5457 + /* "PyCafe.pyx":5662 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV, force=True) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5457, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5662, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5456 + /* "PyCafe.pyx":5661 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -97891,7 +101941,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":5458 + /* "PyCafe.pyx":5663 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -97902,23 +101952,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5459 + /* "PyCafe.pyx":5664 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV, force=True) # <<<<<<<<<<<<<< * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getMonitorPolicyVector \n\ */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5459, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 5664, __pyx_L1_error) __pyx_t_6.__pyx_n = 1; __pyx_t_6.force = 1; - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5459, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, &__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5459, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5664, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":5458 + /* "PyCafe.pyx":5663 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -97928,7 +101978,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx goto __pyx_L3; } - /* "PyCafe.pyx":5461 + /* "PyCafe.pyx":5666 * handle = self.checkForHandle(handlePV, force=True) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getMonitorPolicyVector \n\ # <<<<<<<<<<<<<< @@ -97936,15 +101986,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx * */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__90, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5461, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__90, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 5461, __pyx_L1_error) + __PYX_ERR(3, 5666, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5466 + /* "PyCafe.pyx":5671 * cdef vector[MonitorPolicy] mpV * * self.hh.getMonitorPolicyVector(handle, mpV) # <<<<<<<<<<<<<< @@ -97953,19 +102003,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ (void)(__pyx_v_self->hh.getMonitorPolicyVector(__pyx_v_handle, __pyx_v_mpV)); - /* "PyCafe.pyx":5470 + /* "PyCafe.pyx":5675 * cdef monitorpolicy mp * * mp = monitorpolicy() # <<<<<<<<<<<<<< * * cdef unsigned int i */ - __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_monitorpolicy)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5470, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_monitorpolicy)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_mp = ((struct __pyx_obj_6PyCafe_monitorpolicy *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5474 + /* "PyCafe.pyx":5679 * cdef unsigned int i * * for i in range(0, mpV.size()): # <<<<<<<<<<<<<< @@ -97977,22 +102027,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_8; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "PyCafe.pyx":5476 + /* "PyCafe.pyx":5681 * for i in range(0, mpV.size()): * * if mpV[i].getMonitorID() == _monid: # <<<<<<<<<<<<<< * * mp.monid = mpV[i].getMonitorID() */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int((__pyx_v_mpV[__pyx_v_i]).getMonitorID()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5476, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int((__pyx_v_mpV[__pyx_v_i]).getMonitorID()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = PyObject_RichCompare(__pyx_t_5, __pyx_v__monid, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5476, __pyx_L1_error) + __pyx_t_9 = PyObject_RichCompare(__pyx_t_5, __pyx_v__monid, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5681, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5476, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5681, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":5478 + /* "PyCafe.pyx":5683 * if mpV[i].getMonitorID() == _monid: * * mp.monid = mpV[i].getMonitorID() # <<<<<<<<<<<<<< @@ -98001,7 +102051,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->monid = (__pyx_v_mpV[__pyx_v_i]).getMonitorID(); - /* "PyCafe.pyx":5480 + /* "PyCafe.pyx":5685 * mp.monid = mpV[i].getMonitorID() * * mp.nelem = mpV[i].getNelem() # <<<<<<<<<<<<<< @@ -98010,7 +102060,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->nelem = (__pyx_v_mpV[__pyx_v_i]).getNelem(); - /* "PyCafe.pyx":5482 + /* "PyCafe.pyx":5687 * mp.nelem = mpV[i].getNelem() * * mp.dataType = mpV[i].getDataType() # <<<<<<<<<<<<<< @@ -98019,7 +102069,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->dataType = (__pyx_v_mpV[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":5483 + /* "PyCafe.pyx":5688 * * mp.dataType = mpV[i].getDataType() * mp.userArgs = mpV[i].getUserArgs() # <<<<<<<<<<<<<< @@ -98028,7 +102078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->userArgs = ((long)(__pyx_v_mpV[__pyx_v_i]).getUserArgs()); - /* "PyCafe.pyx":5484 + /* "PyCafe.pyx":5689 * mp.dataType = mpV[i].getDataType() * mp.userArgs = mpV[i].getUserArgs() * mp.dbrDataType = mpV[i].getDbrDataType() # <<<<<<<<<<<<<< @@ -98037,7 +102087,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->dbrDataType = (__pyx_v_mpV[__pyx_v_i]).getDbrDataType(); - /* "PyCafe.pyx":5485 + /* "PyCafe.pyx":5690 * mp.userArgs = mpV[i].getUserArgs() * mp.dbrDataType = mpV[i].getDbrDataType() * mp.cafeDbrType = mpV[i].getCafeDbrType() # <<<<<<<<<<<<<< @@ -98046,7 +102096,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->cafeDbrType = (__pyx_v_mpV[__pyx_v_i]).getCafeDbrType(); - /* "PyCafe.pyx":5486 + /* "PyCafe.pyx":5691 * mp.dbrDataType = mpV[i].getDbrDataType() * mp.cafeDbrType = mpV[i].getCafeDbrType() * mp.mask = mpV[i].getMask() # <<<<<<<<<<<<<< @@ -98055,7 +102105,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->mask = (__pyx_v_mpV[__pyx_v_i]).getMask(); - /* "PyCafe.pyx":5487 + /* "PyCafe.pyx":5692 * mp.cafeDbrType = mpV[i].getCafeDbrType() * mp.mask = mpV[i].getMask() * mp.maskHasDBE_PROPERTY = mpV[i].maskHasDBE_PROPERTY() # <<<<<<<<<<<<<< @@ -98064,7 +102114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->maskHasDBE_PROPERTY = (__pyx_v_mpV[__pyx_v_i]).maskHasDBE_PROPERTY(); - /* "PyCafe.pyx":5488 + /* "PyCafe.pyx":5693 * mp.mask = mpV[i].getMask() * mp.maskHasDBE_PROPERTY = mpV[i].maskHasDBE_PROPERTY() * mp.maskHasDBE_VALUE = mpV[i].maskHasDBE_VALUE() # <<<<<<<<<<<<<< @@ -98073,7 +102123,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->maskHasDBE_VALUE = (__pyx_v_mpV[__pyx_v_i]).maskHasDBE_VALUE(); - /* "PyCafe.pyx":5489 + /* "PyCafe.pyx":5694 * mp.maskHasDBE_PROPERTY = mpV[i].maskHasDBE_PROPERTY() * mp.maskHasDBE_VALUE = mpV[i].maskHasDBE_VALUE() * mp.maskHasDBE_LOG = mpV[i].maskHasDBE_LOG() # <<<<<<<<<<<<<< @@ -98082,7 +102132,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->maskHasDBE_LOG = (__pyx_v_mpV[__pyx_v_i]).maskHasDBE_LOG(); - /* "PyCafe.pyx":5490 + /* "PyCafe.pyx":5695 * mp.maskHasDBE_VALUE = mpV[i].maskHasDBE_VALUE() * mp.maskHasDBE_LOG = mpV[i].maskHasDBE_LOG() * mp.maskHasDBE_ALARM = mpV[i].maskHasDBE_ALARM() # <<<<<<<<<<<<<< @@ -98091,7 +102141,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ __pyx_v_mp->maskHasDBE_ALARM = (__pyx_v_mpV[__pyx_v_i]).maskHasDBE_ALARM(); - /* "PyCafe.pyx":5491 + /* "PyCafe.pyx":5696 * mp.maskHasDBE_LOG = mpV[i].maskHasDBE_LOG() * mp.maskHasDBE_ALARM = mpV[i].maskHasDBE_ALARM() * break # <<<<<<<<<<<<<< @@ -98100,7 +102150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx */ goto __pyx_L7_break; - /* "PyCafe.pyx":5476 + /* "PyCafe.pyx":5681 * for i in range(0, mpV.size()): * * if mpV[i].getMonitorID() == _monid: # <<<<<<<<<<<<<< @@ -98111,7 +102161,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx } __pyx_L7_break:; - /* "PyCafe.pyx":5493 + /* "PyCafe.pyx":5698 * break * * return mp # <<<<<<<<<<<<<< @@ -98123,7 +102173,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx __pyx_r = ((PyObject *)__pyx_v_mp); goto __pyx_L0; - /* "PyCafe.pyx":5453 + /* "PyCafe.pyx":5658 * ################################################################################## * * def getMonitorPolicyVector(self, handlePV, _monid): # <<<<<<<<<<<<<< @@ -98146,7 +102196,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_330getMonitorPolicyVector(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":5495 +/* "PyCafe.pyx":5700 * return mp * * def groupMonitor(self, ghandleName, object cb=None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -98217,7 +102267,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_333groupMonitor(PyObject *__pyx_v_self } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitor") < 0)) __PYX_ERR(3, 5495, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitor") < 0)) __PYX_ERR(3, 5700, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -98237,24 +102287,24 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_333groupMonitor(PyObject *__pyx_v_self __pyx_v_ghandleName = values[0]; __pyx_v_cb = values[1]; if (values[2]) { - __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5495, __pyx_L3_error) + __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5700, __pyx_L3_error) } else { __pyx_v_dbr = __pyx_k__91; } if (values[3]) { - __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5496, __pyx_L3_error) + __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5701, __pyx_L3_error) } else { __pyx_v_mask = __pyx_k__92; } if (values[4]) { - __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5497, __pyx_L3_error) + __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5702, __pyx_L3_error) } else { __pyx_v_notify_milliseconds = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupMonitor", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5495, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupMonitor", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5700, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupMonitor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -98280,7 +102330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("groupMonitor", 0); - /* "PyCafe.pyx":5498 + /* "PyCafe.pyx":5703 * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, * unsigned short notify_milliseconds=0): * return self.groupMonitorStart(ghandleName, cb, dbr, mask, notify_milliseconds) # <<<<<<<<<<<<<< @@ -98288,13 +102338,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_groupMonitorStart); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_groupMonitorStart); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_notify_milliseconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_notify_milliseconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -98311,7 +102361,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_ghandleName, __pyx_v_cb, __pyx_t_3, __pyx_t_4, __pyx_t_5}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -98322,7 +102372,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_ghandleName, __pyx_v_cb, __pyx_t_3, __pyx_t_4, __pyx_t_5}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -98331,7 +102381,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa } else #endif { - __pyx_t_8 = PyTuple_New(5+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(5+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -98351,7 +102401,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5498, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } @@ -98360,7 +102410,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5495 + /* "PyCafe.pyx":5700 * return mp * * def groupMonitor(self, ghandleName, object cb=None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -98387,7 +102437,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_332groupMonitor(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":5501 +/* "PyCafe.pyx":5706 * * ################################################################################## * def groupMonitorStart(self, ghandleName, object cb=None, # <<<<<<<<<<<<<< @@ -98458,7 +102508,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_335groupMonitorStart(PyObject *__pyx_v } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitorStart") < 0)) __PYX_ERR(3, 5501, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitorStart") < 0)) __PYX_ERR(3, 5706, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -98478,24 +102528,24 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_335groupMonitorStart(PyObject *__pyx_v __pyx_v_ghandleName = values[0]; __pyx_v_cb = values[1]; if (values[2]) { - __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5502, __pyx_L3_error) + __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5707, __pyx_L3_error) } else { __pyx_v_dbr = __pyx_k__93; } if (values[3]) { - __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5503, __pyx_L3_error) + __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5708, __pyx_L3_error) } else { __pyx_v_mask = __pyx_k__94; } if (values[4]) { - __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5504, __pyx_L3_error) + __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5709, __pyx_L3_error) } else { __pyx_v_notify_milliseconds = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupMonitorStart", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5501, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupMonitorStart", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5706, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupMonitorStart", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -98519,7 +102569,6 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ CYTHON_UNUSED PyObject *__pyx_v_handleList = NULL; long __pyx_v_i; PyObject *__pyx_v_sig = NULL; - PyObject *__pyx_v_param = NULL; std::vector __pyx_v_vStatus; int __pyx_v_status; PyObject *__pyx_r = NULL; @@ -98535,12 +102584,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ unsigned int __pyx_t_9; long __pyx_t_10; Py_ssize_t __pyx_t_11; - Py_ssize_t __pyx_t_12; - int __pyx_t_13; - int __pyx_t_14; __Pyx_RefNannySetupContext("groupMonitorStart", 0); - /* "PyCafe.pyx":5506 + /* "PyCafe.pyx":5711 * unsigned short notify_milliseconds=0): * ################################################################################## * cdef str _METHOD = "groupMonitorStart(ghandleName, cb, dbr, mask)" # <<<<<<<<<<<<<< @@ -98550,7 +102596,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __Pyx_INCREF(__pyx_kp_u_groupMonitorStart_ghandleName_cb); __pyx_v__METHOD = __pyx_kp_u_groupMonitorStart_ghandleName_cb; - /* "PyCafe.pyx":5508 + /* "PyCafe.pyx":5713 * cdef str _METHOD = "groupMonitorStart(ghandleName, cb, dbr, mask)" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -98559,7 +102605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":5509 + /* "PyCafe.pyx":5714 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -98580,17 +102626,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5510 + /* "PyCafe.pyx":5715 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5510, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5715, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5509 + /* "PyCafe.pyx":5714 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -98600,7 +102646,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":5511 + /* "PyCafe.pyx":5716 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -98611,21 +102657,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5512 + /* "PyCafe.pyx":5717 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5512, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5512, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5717, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5512, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5717, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5511 + /* "PyCafe.pyx":5716 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -98635,7 +102681,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ goto __pyx_L3; } - /* "PyCafe.pyx":5514 + /* "PyCafe.pyx":5719 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -98643,18 +102689,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5514, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5514, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5514, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5514, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5514, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5719, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5719, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5719, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5516 + /* "PyCafe.pyx":5721 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -98662,11 +102708,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ * if dbr: */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5516, __pyx_L1_error) + __PYX_ERR(3, 5721, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5518 + /* "PyCafe.pyx":5723 * raise _cafeException * * if dbr: # <<<<<<<<<<<<<< @@ -98675,7 +102721,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ if (__pyx_v_dbr) { - /* "PyCafe.pyx":5519 + /* "PyCafe.pyx":5724 * * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -98697,14 +102743,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5520 + /* "PyCafe.pyx":5725 * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: * print( # <<<<<<<<<<<<<< * "***Warning*** from groupMonitorStart for handle(orPV)=", ghandleName) * print( */ - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5520, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_Warning_from_groupMonitorStart); __Pyx_GIVEREF(__pyx_kp_u_Warning_from_groupMonitorStart); @@ -98712,34 +102758,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __Pyx_INCREF(__pyx_v_ghandleName); __Pyx_GIVEREF(__pyx_v_ghandleName); PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_ghandleName); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5520, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5522 + /* "PyCafe.pyx":5727 * print( * "***Warning*** from groupMonitorStart for handle(orPV)=", ghandleName) * print( # <<<<<<<<<<<<<< * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5522, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5524 + /* "PyCafe.pyx":5729 * print( * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") # <<<<<<<<<<<<<< * dbr = DBR_TIME * */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5524, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5525 + /* "PyCafe.pyx":5730 * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") * dbr = DBR_TIME # <<<<<<<<<<<<<< @@ -98748,7 +102794,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_dbr = DBR_TIME; - /* "PyCafe.pyx":5519 + /* "PyCafe.pyx":5724 * * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -98757,7 +102803,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ } - /* "PyCafe.pyx":5518 + /* "PyCafe.pyx":5723 * raise _cafeException * * if dbr: # <<<<<<<<<<<<<< @@ -98766,7 +102812,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ } - /* "PyCafe.pyx":5532 + /* "PyCafe.pyx":5737 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -98781,7 +102827,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ #endif /*try:*/ { - /* "PyCafe.pyx":5533 + /* "PyCafe.pyx":5738 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -98791,7 +102837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":5532 + /* "PyCafe.pyx":5737 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -98810,7 +102856,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ } } - /* "PyCafe.pyx":5536 + /* "PyCafe.pyx":5741 * * cdef MonitorPolicy * mp * mp = self._c_cafe.createMonitorPolicyArray(pvg.getNPV()) # <<<<<<<<<<<<<< @@ -98819,28 +102865,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_mp = __pyx_v_self->_c_cafe->createMonitorPolicyArray(__pyx_v_pvg.getNPV()); - /* "PyCafe.pyx":5538 + /* "PyCafe.pyx":5743 * mp = self._c_cafe.createMonitorPolicyArray(pvg.getNPV()) * * handleList = [] # <<<<<<<<<<<<<< * handleList = self.getHandlesFromWithinGroup(ghandle) * */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5538, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_handleList = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":5539 + /* "PyCafe.pyx":5744 * * handleList = [] * handleList = self.getHandlesFromWithinGroup(ghandle) # <<<<<<<<<<<<<< * - * for i in range(0, pvg.getNPV()): + * #cb_list = [cb] * pvg.getNPV() */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5539, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5539, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -98855,14 +102901,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5539, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5541 - * handleList = self.getHandlesFromWithinGroup(ghandle) + /* "PyCafe.pyx":5748 + * #cb_list = [cb] * pvg.getNPV() * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< * @@ -98873,7 +102919,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { __pyx_v_i = __pyx_t_10; - /* "PyCafe.pyx":5543 + /* "PyCafe.pyx":5750 * for i in range(0, pvg.getNPV()): * * mp[i].setMask(mask) # <<<<<<<<<<<<<< @@ -98882,7 +102928,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ (__pyx_v_mp[__pyx_v_i]).setMask(__pyx_v_mask); - /* "PyCafe.pyx":5544 + /* "PyCafe.pyx":5751 * * mp[i].setMask(mask) * mp[i].setCafeDbrType(dbr) # <<<<<<<<<<<<<< @@ -98891,7 +102937,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ (__pyx_v_mp[__pyx_v_i]).setCafeDbrType(__pyx_v_dbr); - /* "PyCafe.pyx":5545 + /* "PyCafe.pyx":5752 * mp[i].setMask(mask) * mp[i].setCafeDbrType(dbr) * mp[i].setNotifyDeltaMilliSeconds(notify_milliseconds) # <<<<<<<<<<<<<< @@ -98900,7 +102946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ (__pyx_v_mp[__pyx_v_i]).setNotifyDeltaMilliSeconds(__pyx_v_notify_milliseconds); - /* "PyCafe.pyx":5546 + /* "PyCafe.pyx":5753 * mp[i].setCafeDbrType(dbr) * mp[i].setNotifyDeltaMilliSeconds(notify_milliseconds) * mpid = mp[i].getMonitorID() # <<<<<<<<<<<<<< @@ -98909,26 +102955,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_mpid = (__pyx_v_mp[__pyx_v_i]).getMonitorID(); - /* "PyCafe.pyx":5548 + /* "PyCafe.pyx":5755 * mpid = mp[i].getMonitorID() * * if cb: # <<<<<<<<<<<<<< * sig = inspect.signature(cb) * # a=inspect.getargspec(cb) */ - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cb); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5548, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cb); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5755, __pyx_L1_error) if (__pyx_t_2) { - /* "PyCafe.pyx":5549 + /* "PyCafe.pyx":5756 * * if cb: * sig = inspect.signature(cb) # <<<<<<<<<<<<<< * # a=inspect.getargspec(cb) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_inspect); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5549, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_inspect); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_signature); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5549, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_signature); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -98943,222 +102989,44 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ } __pyx_t_5 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_6, __pyx_v_cb) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_cb); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5549, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF_SET(__pyx_v_sig, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5552 + /* "PyCafe.pyx":5759 * # a=inspect.getargspec(cb) * - * mp.setUserArgs(< void * > mpid) # <<<<<<<<<<<<<< - * mp.setNoCyCallbackParameters(len(sig.parameters)) - * mp.setPyCyHandler( cb) + * mp[i].setUserArgs(< void * > mpid) # <<<<<<<<<<<<<< + * mp[i].setNoCyCallbackParameters(len(sig.parameters)) + * mp[i].setPyCyHandler( cb) #cb_list[i]) */ - __pyx_v_mp->setUserArgs(((void *)__pyx_v_mpid)); + (__pyx_v_mp[__pyx_v_i]).setUserArgs(((void *)__pyx_v_mpid)); - /* "PyCafe.pyx":5553 + /* "PyCafe.pyx":5760 * - * mp.setUserArgs(< void * > mpid) - * mp.setNoCyCallbackParameters(len(sig.parameters)) # <<<<<<<<<<<<<< - * mp.setPyCyHandler( cb) + * mp[i].setUserArgs(< void * > mpid) + * mp[i].setNoCyCallbackParameters(len(sig.parameters)) # <<<<<<<<<<<<<< + * mp[i].setPyCyHandler( cb) #cb_list[i]) * */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5553, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_11 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5553, __pyx_L1_error) + __pyx_t_11 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5760, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_mp->setNoCyCallbackParameters(__pyx_t_11); + (__pyx_v_mp[__pyx_v_i]).setNoCyCallbackParameters(__pyx_t_11); - /* "PyCafe.pyx":5554 - * mp.setUserArgs(< void * > mpid) - * mp.setNoCyCallbackParameters(len(sig.parameters)) - * mp.setPyCyHandler( cb) # <<<<<<<<<<<<<< + /* "PyCafe.pyx":5761 + * mp[i].setUserArgs(< void * > mpid) + * mp[i].setNoCyCallbackParameters(len(sig.parameters)) + * mp[i].setPyCyHandler( cb) #cb_list[i]) # <<<<<<<<<<<<<< * - * print('============//1//') + * #print('============//1//') */ - __pyx_v_mp->setPyCyHandler(((void *)__pyx_v_cb)); + (__pyx_v_mp[__pyx_v_i]).setPyCyHandler(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":5556 - * mp.setPyCyHandler( cb) - * - * print('============//1//') # <<<<<<<<<<<<<< - * print('SIGNATURE:') - * print(str(sig)) - */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__97, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5556, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "PyCafe.pyx":5557 - * - * print('============//1//') - * print('SIGNATURE:') # <<<<<<<<<<<<<< - * print(str(sig)) - * for param in sig.parameters.values(): - */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__98, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "PyCafe.pyx":5558 - * print('============//1//') - * print('SIGNATURE:') - * print(str(sig)) # <<<<<<<<<<<<<< - * for param in sig.parameters.values(): - * print('Parameter:', param) - */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_sig); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5558, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5558, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "PyCafe.pyx":5559 - * print('SIGNATURE:') - * print(str(sig)) - * for param in sig.parameters.values(): # <<<<<<<<<<<<<< - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) - */ - __pyx_t_11 = 0; - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - if (unlikely(__pyx_t_5 == Py_None)) { - PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 5559, __pyx_L1_error) - } - __pyx_t_6 = __Pyx_dict_iterator(__pyx_t_5, 0, __pyx_n_s_values, (&__pyx_t_12), (&__pyx_t_13)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_XDECREF(__pyx_t_7); - __pyx_t_7 = __pyx_t_6; - __pyx_t_6 = 0; - while (1) { - __pyx_t_14 = __Pyx_dict_iter_next(__pyx_t_7, __pyx_t_12, &__pyx_t_11, NULL, &__pyx_t_6, NULL, __pyx_t_13); - if (unlikely(__pyx_t_14 == 0)) break; - if (unlikely(__pyx_t_14 == -1)) __PYX_ERR(3, 5559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_6); - __pyx_t_6 = 0; - - /* "PyCafe.pyx":5560 - * print(str(sig)) - * for param in sig.parameters.values(): - * print('Parameter:', param) # <<<<<<<<<<<<<< - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) - */ - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_INCREF(__pyx_kp_u_Parameter); - __Pyx_GIVEREF(__pyx_kp_u_Parameter); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_Parameter); - __Pyx_INCREF(__pyx_v_param); - __Pyx_GIVEREF(__pyx_v_param); - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_param); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "PyCafe.pyx":5561 - * for param in sig.parameters.values(): - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) # <<<<<<<<<<<<<< - * print('len2', len(sig.parameters)) - * print('monitor id', mpid) - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_values); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - } - } - __pyx_t_7 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_12 = PyObject_Length(__pyx_t_7); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_INCREF(__pyx_n_u_len1); - __Pyx_GIVEREF(__pyx_n_u_len1); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_n_u_len1); - __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); - __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "PyCafe.pyx":5562 - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) # <<<<<<<<<<<<<< - * print('monitor id', mpid) - * - */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_12 = PyObject_Length(__pyx_t_7); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5562, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_INCREF(__pyx_n_u_len2); - __Pyx_GIVEREF(__pyx_n_u_len2); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_n_u_len2); - __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); - __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "PyCafe.pyx":5563 - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) - * print('monitor id', mpid) # <<<<<<<<<<<<<< - * - * mpV.push_back(mp[i]) - */ - __pyx_t_7 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5563, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5563, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __Pyx_INCREF(__pyx_kp_u_monitor_id); - __Pyx_GIVEREF(__pyx_kp_u_monitor_id); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_monitor_id); - __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); - __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5563, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "PyCafe.pyx":5548 + /* "PyCafe.pyx":5755 * mpid = mp[i].getMonitorID() * * if cb: # <<<<<<<<<<<<<< @@ -99167,8 +103035,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ } - /* "PyCafe.pyx":5565 - * print('monitor id', mpid) + /* "PyCafe.pyx":5772 + * #print('monitor id', mpid) * * mpV.push_back(mp[i]) # <<<<<<<<<<<<<< * @@ -99178,11 +103046,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_v_mpV.push_back((__pyx_v_mp[__pyx_v_i])); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 5565, __pyx_L1_error) + __PYX_ERR(3, 5772, __pyx_L1_error) } } - /* "PyCafe.pyx":5568 + /* "PyCafe.pyx":5775 * * cdef vector[int] vStatus * vStatus.reserve(pvg.getNPV()) # <<<<<<<<<<<<<< @@ -99191,7 +103059,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_vStatus.reserve(__pyx_v_pvg.getNPV()); - /* "PyCafe.pyx":5570 + /* "PyCafe.pyx":5777 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -99206,7 +103074,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ #endif /*try:*/ { - /* "PyCafe.pyx":5571 + /* "PyCafe.pyx":5778 * * with nogil: * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) # <<<<<<<<<<<<<< @@ -99216,7 +103084,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_v_status = __pyx_v_self->_c_cafe->groupMonitorStart(__pyx_v_ghandle, __pyx_v_vStatus, __pyx_v_mpV); } - /* "PyCafe.pyx":5570 + /* "PyCafe.pyx":5777 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -99229,13 +103097,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif - goto __pyx_L18; + goto __pyx_L16; } - __pyx_L18:; + __pyx_L16:; } } - /* "PyCafe.pyx":5573 + /* "PyCafe.pyx":5780 * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -99245,7 +103113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5574 + /* "PyCafe.pyx":5781 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -99255,7 +103123,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5575 + /* "PyCafe.pyx":5782 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -99264,7 +103132,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5574 + /* "PyCafe.pyx":5781 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -99273,7 +103141,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ } - /* "PyCafe.pyx":5573 + /* "PyCafe.pyx":5780 * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -99282,7 +103150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ */ } - /* "PyCafe.pyx":5577 + /* "PyCafe.pyx":5784 * self._c_cafe.printStatusMessage(status) * * return status, vStatus # <<<<<<<<<<<<<< @@ -99290,23 +103158,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5577, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 5784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6); - __pyx_t_7 = 0; - __pyx_t_6 = 0; - __pyx_r = __pyx_t_5; + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7); __pyx_t_5 = 0; + __pyx_t_7 = 0; + __pyx_r = __pyx_t_6; + __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5501 + /* "PyCafe.pyx":5706 * * ################################################################################## * def groupMonitorStart(self, ghandleName, object cb=None, # <<<<<<<<<<<<<< @@ -99329,13 +103197,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_334groupMonitorStart(struct __pyx_obj_ __Pyx_XDECREF((PyObject *)__pyx_v__cafeException); __Pyx_XDECREF(__pyx_v_handleList); __Pyx_XDECREF(__pyx_v_sig); - __Pyx_XDECREF(__pyx_v_param); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "PyCafe.pyx":5583 +/* "PyCafe.pyx":5790 * ############################################################################ * * def groupMonitorStartWithCBList(self, # <<<<<<<<<<<<<< @@ -99358,7 +103225,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_337groupMonitorStartWithCBList(PyObjec static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ghandleName,&__pyx_n_s_cb,&__pyx_n_s_dbr,&__pyx_n_s_mask_2,&__pyx_n_s_notify_milliseconds,0}; PyObject* values[5] = {0,0,0,0,0}; - /* "PyCafe.pyx":5584 + /* "PyCafe.pyx":5791 * * def groupMonitorStartWithCBList(self, * ghandleName, list cb=None, # <<<<<<<<<<<<<< @@ -99414,7 +103281,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_337groupMonitorStartWithCBList(PyObjec } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitorStartWithCBList") < 0)) __PYX_ERR(3, 5583, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupMonitorStartWithCBList") < 0)) __PYX_ERR(3, 5790, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -99434,33 +103301,33 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_337groupMonitorStartWithCBList(PyObjec __pyx_v_ghandleName = values[0]; __pyx_v_cb = ((PyObject*)values[1]); if (values[2]) { - __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5585, __pyx_L3_error) + __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 5792, __pyx_L3_error) } else { - __pyx_v_dbr = __pyx_k__99; + __pyx_v_dbr = __pyx_k__97; } if (values[3]) { - __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5586, __pyx_L3_error) + __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5793, __pyx_L3_error) } else { - __pyx_v_mask = __pyx_k__100; + __pyx_v_mask = __pyx_k__98; } if (values[4]) { - __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5588, __pyx_L3_error) + __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 5795, __pyx_L3_error) } else { __pyx_v_notify_milliseconds = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupMonitorStartWithCBList", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5583, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupMonitorStartWithCBList", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5790, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupMonitorStartWithCBList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cb), (&PyList_Type), 1, "cb", 1))) __PYX_ERR(3, 5584, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cb), (&PyList_Type), 1, "cb", 1))) __PYX_ERR(3, 5791, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_cb, __pyx_v_dbr, __pyx_v_mask, __pyx_v_notify_milliseconds); - /* "PyCafe.pyx":5583 + /* "PyCafe.pyx":5790 * ############################################################################ * * def groupMonitorStartWithCBList(self, # <<<<<<<<<<<<<< @@ -99488,44 +103355,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct CYTHON_UNUSED PyObject *__pyx_v_handleList = NULL; long __pyx_v_i; PyObject *__pyx_v_sig = NULL; - PyObject *__pyx_v_param = NULL; std::vector __pyx_v_vStatus; int __pyx_v_status; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; + int __pyx_t_1; + int __pyx_t_2; int __pyx_t_3; - int __pyx_t_4; - int __pyx_t_5; - unsigned int __pyx_t_6; + unsigned int __pyx_t_4; + PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; Py_ssize_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; long __pyx_t_11; - Py_ssize_t __pyx_t_12; - int __pyx_t_13; - int __pyx_t_14; __Pyx_RefNannySetupContext("groupMonitorStartWithCBList", 0); - /* "PyCafe.pyx":5590 + /* "PyCafe.pyx":5797 * unsigned short notify_milliseconds=0): * ############################################################################ - * cdef str _METHOD = ("groupMonitorStartWithCBList(ghandleName, cb," + + # <<<<<<<<<<<<<< + * cdef str _METHOD = ("groupMonitorStartWithCBList(ghandleName, cb," + # <<<<<<<<<<<<<< * "dbr, mask, notify_milliseconds)") * */ - __pyx_t_1 = PyNumber_Positive(__pyx_kp_u_dbr_mask_notify_milliseconds); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5590, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyNumber_Add(__pyx_kp_u_groupMonitorStartWithCBList_ghan, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5590, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(3, 5590, __pyx_L1_error) - __pyx_v__METHOD = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; + __Pyx_INCREF(__pyx_kp_u_groupMonitorStartWithCBList_ghan); + __pyx_v__METHOD = __pyx_kp_u_groupMonitorStartWithCBList_ghan; - /* "PyCafe.pyx":5593 + /* "PyCafe.pyx":5800 * "dbr, mask, notify_milliseconds)") * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -99534,38 +103391,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":5594 + /* "PyCafe.pyx":5801 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< * ghandle = ghandleName * elif isinstance(ghandleName, (str)): */ - __pyx_t_4 = PyInt_Check(__pyx_v_ghandleName); - __pyx_t_5 = (__pyx_t_4 != 0); - if (!__pyx_t_5) { + __pyx_t_2 = PyInt_Check(__pyx_v_ghandleName); + __pyx_t_3 = (__pyx_t_2 != 0); + if (!__pyx_t_3) { } else { - __pyx_t_3 = __pyx_t_5; + __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } - __pyx_t_5 = PyLong_Check(__pyx_v_ghandleName); - __pyx_t_4 = (__pyx_t_5 != 0); - __pyx_t_3 = __pyx_t_4; + __pyx_t_3 = PyLong_Check(__pyx_v_ghandleName); + __pyx_t_2 = (__pyx_t_3 != 0); + __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; - __pyx_t_4 = (__pyx_t_3 != 0); - if (__pyx_t_4) { + __pyx_t_2 = (__pyx_t_1 != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5595 + /* "PyCafe.pyx":5802 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5595, __pyx_L1_error) - __pyx_v_ghandle = __pyx_t_6; + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5802, __pyx_L1_error) + __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5594 + /* "PyCafe.pyx":5801 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -99575,32 +103432,32 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct goto __pyx_L3; } - /* "PyCafe.pyx":5596 + /* "PyCafe.pyx":5803 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< * ghandle = self.checkForGroupHandle(ghandleName) * else: */ - __pyx_t_4 = PyUnicode_Check(__pyx_v_ghandleName); - __pyx_t_3 = (__pyx_t_4 != 0); - if (__pyx_t_3) { + __pyx_t_2 = PyUnicode_Check(__pyx_v_ghandleName); + __pyx_t_1 = (__pyx_t_2 != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5597 + /* "PyCafe.pyx":5804 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5597, __pyx_L1_error) - __pyx_t_2 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5597, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5597, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_ghandle = __pyx_t_6; + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5804, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5804, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5804, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5596 + /* "PyCafe.pyx":5803 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -99610,7 +103467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct goto __pyx_L3; } - /* "PyCafe.pyx":5599 + /* "PyCafe.pyx":5806 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -99618,18 +103475,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct * raise _cafeException */ /*else*/ { - __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5599, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5599, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5599, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5599, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5599, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_1); - __pyx_t_1 = 0; + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5806, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5806, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5806, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5806, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5806, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); + __pyx_t_6 = 0; - /* "PyCafe.pyx":5601 + /* "PyCafe.pyx":5808 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -99637,11 +103494,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct * if dbr: */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5601, __pyx_L1_error) + __PYX_ERR(3, 5808, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5603 + /* "PyCafe.pyx":5810 * raise _cafeException * * if dbr: # <<<<<<<<<<<<<< @@ -99650,7 +103507,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ if (__pyx_v_dbr) { - /* "PyCafe.pyx":5604 + /* "PyCafe.pyx":5811 * * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -99663,58 +103520,58 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct case DBR_TIME: case DBR_GR: case DBR_CTRL: - __pyx_t_3 = 0; + __pyx_t_1 = 0; break; default: - __pyx_t_3 = 1; + __pyx_t_1 = 1; break; } - __pyx_t_4 = (__pyx_t_3 != 0); - if (__pyx_t_4) { + __pyx_t_2 = (__pyx_t_1 != 0); + if (__pyx_t_2) { - /* "PyCafe.pyx":5605 + /* "PyCafe.pyx":5812 * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: * print( # <<<<<<<<<<<<<< * "***Warning*** from groupMonitorStartWithCBList for handle(orPV)=", ghandleName) * print( */ - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5605, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_Warning_from_groupMonitorStartW); __Pyx_GIVEREF(__pyx_kp_u_Warning_from_groupMonitorStartW); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Warning_from_groupMonitorStartW); + PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_Warning_from_groupMonitorStartW); __Pyx_INCREF(__pyx_v_ghandleName); __Pyx_GIVEREF(__pyx_v_ghandleName); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_ghandleName); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5605, __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; + PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_ghandleName); + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5607 + /* "PyCafe.pyx":5814 * print( * "***Warning*** from groupMonitorStartWithCBList for handle(orPV)=", ghandleName) * print( # <<<<<<<<<<<<<< * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5607, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5814, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5609 + /* "PyCafe.pyx":5816 * print( * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") # <<<<<<<<<<<<<< * dbr = DBR_TIME * */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5609, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5816, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5610 + /* "PyCafe.pyx":5817 * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") * dbr = DBR_TIME # <<<<<<<<<<<<<< @@ -99723,7 +103580,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_dbr = DBR_TIME; - /* "PyCafe.pyx":5604 + /* "PyCafe.pyx":5811 * * if dbr: * if dbr not in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -99732,7 +103589,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5603 + /* "PyCafe.pyx":5810 * raise _cafeException * * if dbr: # <<<<<<<<<<<<<< @@ -99741,31 +103598,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5612 + /* "PyCafe.pyx":5819 * dbr = DBR_TIME * * if not isinstance(cb, (list)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ * Input cb should be of type and give the list of cb objects") */ - __pyx_t_4 = PyList_Check(__pyx_v_cb); - __pyx_t_3 = ((!(__pyx_t_4 != 0)) != 0); - if (__pyx_t_3) { + __pyx_t_2 = PyList_Check(__pyx_v_cb); + __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5613 + /* "PyCafe.pyx":5820 * * if not isinstance(cb, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ # <<<<<<<<<<<<<< * Input cb should be of type and give the list of cb objects") * */ - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5613, __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(3, 5613, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__99, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __PYX_ERR(3, 5820, __pyx_L1_error) - /* "PyCafe.pyx":5612 + /* "PyCafe.pyx":5819 * dbr = DBR_TIME * * if not isinstance(cb, (list)): # <<<<<<<<<<<<<< @@ -99774,7 +103631,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5622 + /* "PyCafe.pyx":5829 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -99789,7 +103646,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct #endif /*try:*/ { - /* "PyCafe.pyx":5623 + /* "PyCafe.pyx":5830 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -99799,7 +103656,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":5622 + /* "PyCafe.pyx":5829 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -99818,7 +103675,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct } } - /* "PyCafe.pyx":5625 + /* "PyCafe.pyx":5832 * self._c_cafe.groupAttach(ghandle, pvg) * * if (len(cb) != pvg.getNPV()): # <<<<<<<<<<<<<< @@ -99827,23 +103684,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ if (unlikely(__pyx_v_cb == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 5625, __pyx_L1_error) + __PYX_ERR(3, 5832, __pyx_L1_error) } - __pyx_t_7 = PyList_GET_SIZE(__pyx_v_cb); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5625, __pyx_L1_error) - __pyx_t_3 = ((__pyx_t_7 != __pyx_v_pvg.getNPV()) != 0); - if (__pyx_t_3) { + __pyx_t_7 = PyList_GET_SIZE(__pyx_v_cb); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5832, __pyx_L1_error) + __pyx_t_1 = ((__pyx_t_7 != __pyx_v_pvg.getNPV()) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5626 + /* "PyCafe.pyx":5833 * * if (len(cb) != pvg.getNPV()): * print("No of group members is ", pvg.getNPV(), # <<<<<<<<<<<<<< * " while list of callback objects is", len(cb)) * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvg.getNPV()); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5626, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pvg.getNPV()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":5627 + /* "PyCafe.pyx":5834 * if (len(cb) != pvg.getNPV()): * print("No of group members is ", pvg.getNPV(), * " while list of callback objects is", len(cb)) # <<<<<<<<<<<<<< @@ -99852,52 +103709,52 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ if (unlikely(__pyx_v_cb == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 5627, __pyx_L1_error) + __PYX_ERR(3, 5834, __pyx_L1_error) } - __pyx_t_7 = PyList_GET_SIZE(__pyx_v_cb); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5627, __pyx_L1_error) - __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + __pyx_t_7 = PyList_GET_SIZE(__pyx_v_cb); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5834, __pyx_L1_error) + __pyx_t_6 = PyInt_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5834, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":5626 + /* "PyCafe.pyx":5833 * * if (len(cb) != pvg.getNPV()): * print("No of group members is ", pvg.getNPV(), # <<<<<<<<<<<<<< * " while list of callback objects is", len(cb)) * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ */ - __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5626, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_kp_u_No_of_group_members_is); __Pyx_GIVEREF(__pyx_kp_u_No_of_group_members_is); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u_No_of_group_members_is); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5); __Pyx_INCREF(__pyx_kp_u_while_list_of_callback_objects); __Pyx_GIVEREF(__pyx_kp_u_while_list_of_callback_objects); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u_while_list_of_callback_objects); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_1); - __pyx_t_2 = 0; - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5626, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_6); + __pyx_t_5 = 0; + __pyx_t_6 = 0; + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5628 + /* "PyCafe.pyx":5835 * print("No of group members is ", pvg.getNPV(), * " while list of callback objects is", len(cb)) * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ # <<<<<<<<<<<<<< * No of group members doe not match the length of callback object list") * */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5628, __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(3, 5628, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__100, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5835, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_Raise(__pyx_t_6, 0, 0, 0); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __PYX_ERR(3, 5835, __pyx_L1_error) - /* "PyCafe.pyx":5625 + /* "PyCafe.pyx":5832 * self._c_cafe.groupAttach(ghandle, pvg) * * if (len(cb) != pvg.getNPV()): # <<<<<<<<<<<<<< @@ -99906,7 +103763,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5632 + /* "PyCafe.pyx":5839 * * cdef MonitorPolicy * mp * mp = self._c_cafe.createMonitorPolicyArray(pvg.getNPV()) # <<<<<<<<<<<<<< @@ -99915,29 +103772,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_mp = __pyx_v_self->_c_cafe->createMonitorPolicyArray(__pyx_v_pvg.getNPV()); - /* "PyCafe.pyx":5634 + /* "PyCafe.pyx":5841 * mp = self._c_cafe.createMonitorPolicyArray(pvg.getNPV()) * * handleList = [] # <<<<<<<<<<<<<< * handleList = self.getHandlesFromWithinGroup(ghandle) * */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5634, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_handleList = __pyx_t_1; - __pyx_t_1 = 0; + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_v_handleList = __pyx_t_6; + __pyx_t_6 = 0; - /* "PyCafe.pyx":5635 + /* "PyCafe.pyx":5842 * * handleList = [] * handleList = self.getHandlesFromWithinGroup(ghandle) # <<<<<<<<<<<<<< * * for i in range(0, pvg.getNPV()): */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5635, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5635, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); @@ -99948,28 +103805,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __Pyx_DECREF_SET(__pyx_t_8, function); } } - __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_2); + __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_5); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5635, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_1); - __pyx_t_1 = 0; + __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_6); + __pyx_t_6 = 0; - /* "PyCafe.pyx":5637 + /* "PyCafe.pyx":5844 * handleList = self.getHandlesFromWithinGroup(ghandle) * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< * * mp[i].setMask(mask) */ - __pyx_t_6 = __pyx_v_pvg.getNPV(); - __pyx_t_10 = __pyx_t_6; + __pyx_t_4 = __pyx_v_pvg.getNPV(); + __pyx_t_10 = __pyx_t_4; for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; - /* "PyCafe.pyx":5639 + /* "PyCafe.pyx":5846 * for i in range(0, pvg.getNPV()): * * mp[i].setMask(mask) # <<<<<<<<<<<<<< @@ -99978,7 +103835,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ (__pyx_v_mp[__pyx_v_i]).setMask(__pyx_v_mask); - /* "PyCafe.pyx":5640 + /* "PyCafe.pyx":5847 * * mp[i].setMask(mask) * mp[i].setCafeDbrType(dbr) # <<<<<<<<<<<<<< @@ -99987,7 +103844,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ (__pyx_v_mp[__pyx_v_i]).setCafeDbrType(__pyx_v_dbr); - /* "PyCafe.pyx":5641 + /* "PyCafe.pyx":5848 * mp[i].setMask(mask) * mp[i].setCafeDbrType(dbr) * mp[i].setNotifyDeltaMilliSeconds(notify_milliseconds) # <<<<<<<<<<<<<< @@ -99996,7 +103853,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ (__pyx_v_mp[__pyx_v_i]).setNotifyDeltaMilliSeconds(__pyx_v_notify_milliseconds); - /* "PyCafe.pyx":5643 + /* "PyCafe.pyx":5850 * mp[i].setNotifyDeltaMilliSeconds(notify_milliseconds) * * mpid = mp[i].getMonitorID() # <<<<<<<<<<<<<< @@ -100005,7 +103862,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_mpid = (__pyx_v_mp[__pyx_v_i]).getMonitorID(); - /* "PyCafe.pyx":5648 + /* "PyCafe.pyx":5855 * * # For setUserArgs pass the address of the variable. * if cb[i]: # <<<<<<<<<<<<<< @@ -100014,52 +103871,52 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ if (unlikely(__pyx_v_cb == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 5648, __pyx_L1_error) + __PYX_ERR(3, 5855, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5648, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 5648, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (__pyx_t_3) { + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5855, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (__pyx_t_1) { - /* "PyCafe.pyx":5649 + /* "PyCafe.pyx":5856 * # For setUserArgs pass the address of the variable. * if cb[i]: * sig = inspect.signature(cb[i]) # <<<<<<<<<<<<<< * mp[i].setUserArgs(< void * > mpid) # ( ptr_mpid)[0]) * mp[i].setNoCyCallbackParameters(len(sig.parameters)) */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_inspect); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5649, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_inspect); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_signature); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_signature); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(__pyx_v_cb == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 5649, __pyx_L1_error) + __PYX_ERR(3, 5856, __pyx_L1_error) } - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5649, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; - if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); + __Pyx_DECREF_SET(__pyx_t_5, function); } } - __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_8); + __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_XDECREF_SET(__pyx_v_sig, __pyx_t_1); - __pyx_t_1 = 0; + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF_SET(__pyx_v_sig, __pyx_t_6); + __pyx_t_6 = 0; - /* "PyCafe.pyx":5650 + /* "PyCafe.pyx":5857 * if cb[i]: * sig = inspect.signature(cb[i]) * mp[i].setUserArgs(< void * > mpid) # ( ptr_mpid)[0]) # <<<<<<<<<<<<<< @@ -100068,214 +103925,36 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ (__pyx_v_mp[__pyx_v_i]).setUserArgs(((void *)__pyx_v_mpid)); - /* "PyCafe.pyx":5651 + /* "PyCafe.pyx":5858 * sig = inspect.signature(cb[i]) * mp[i].setUserArgs(< void * > mpid) # ( ptr_mpid)[0]) * mp[i].setNoCyCallbackParameters(len(sig.parameters)) # <<<<<<<<<<<<<< * mp[i].setPyCyHandler( cb[i]) * */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5651, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_7 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5858, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (__pyx_v_mp[__pyx_v_i]).setNoCyCallbackParameters(__pyx_t_7); - /* "PyCafe.pyx":5652 + /* "PyCafe.pyx":5859 * mp[i].setUserArgs(< void * > mpid) # ( ptr_mpid)[0]) * mp[i].setNoCyCallbackParameters(len(sig.parameters)) * mp[i].setPyCyHandler( cb[i]) # <<<<<<<<<<<<<< * - * print('============') + * #print('============') */ if (unlikely(__pyx_v_cb == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 5652, __pyx_L1_error) + __PYX_ERR(3, 5859, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5652, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - (__pyx_v_mp[__pyx_v_i]).setPyCyHandler(((void *)__pyx_t_1)); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_cb, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5859, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + (__pyx_v_mp[__pyx_v_i]).setPyCyHandler(((void *)__pyx_t_6)); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5654 - * mp[i].setPyCyHandler( cb[i]) - * - * print('============') # <<<<<<<<<<<<<< - * print('SIGNATURE//2//:') - * print(str(sig)) - */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__104, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5654, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "PyCafe.pyx":5655 - * - * print('============') - * print('SIGNATURE//2//:') # <<<<<<<<<<<<<< - * print(str(sig)) - * for param in sig.parameters.values(): - */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__105, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5655, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "PyCafe.pyx":5656 - * print('============') - * print('SIGNATURE//2//:') - * print(str(sig)) # <<<<<<<<<<<<<< - * for param in sig.parameters.values(): - * print('Parameter:', param) - */ - __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_sig); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5656, __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; - - /* "PyCafe.pyx":5657 - * print('SIGNATURE//2//:') - * print(str(sig)) - * for param in sig.parameters.values(): # <<<<<<<<<<<<<< - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) - */ - __pyx_t_7 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (unlikely(__pyx_t_1 == Py_None)) { - PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 5657, __pyx_L1_error) - } - __pyx_t_8 = __Pyx_dict_iterator(__pyx_t_1, 0, __pyx_n_s_values, (&__pyx_t_12), (&__pyx_t_13)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_XDECREF(__pyx_t_2); - __pyx_t_2 = __pyx_t_8; - __pyx_t_8 = 0; - while (1) { - __pyx_t_14 = __Pyx_dict_iter_next(__pyx_t_2, __pyx_t_12, &__pyx_t_7, NULL, &__pyx_t_8, NULL, __pyx_t_13); - if (unlikely(__pyx_t_14 == 0)) break; - if (unlikely(__pyx_t_14 == -1)) __PYX_ERR(3, 5657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_8); - __pyx_t_8 = 0; - - /* "PyCafe.pyx":5658 - * print(str(sig)) - * for param in sig.parameters.values(): - * print('Parameter:', param) # <<<<<<<<<<<<<< - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) - */ - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_INCREF(__pyx_kp_u_Parameter); - __Pyx_GIVEREF(__pyx_kp_u_Parameter); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u_Parameter); - __Pyx_INCREF(__pyx_v_param); - __Pyx_GIVEREF(__pyx_v_param); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_param); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "PyCafe.pyx":5659 - * for param in sig.parameters.values(): - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) # <<<<<<<<<<<<<< - * print('len2', len(sig.parameters)) - * print('monitorid', mpid) # ( ptr_mpid)[0]) - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_values); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { - __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); - if (likely(__pyx_t_1)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); - __Pyx_INCREF(__pyx_t_1); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_8, function); - } - } - __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_12 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_INCREF(__pyx_n_u_len1); - __Pyx_GIVEREF(__pyx_n_u_len1); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_u_len1); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "PyCafe.pyx":5660 - * print('Parameter:', param) - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) # <<<<<<<<<<<<<< - * print('monitorid', mpid) # ( ptr_mpid)[0]) - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5660, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_12 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 5660, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5660, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5660, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_INCREF(__pyx_n_u_len2); - __Pyx_GIVEREF(__pyx_n_u_len2); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_u_len2); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5660, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "PyCafe.pyx":5661 - * print('len1', len(sig.parameters.values())) - * print('len2', len(sig.parameters)) - * print('monitorid', mpid) # ( ptr_mpid)[0]) # <<<<<<<<<<<<<< - * - * - */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5661, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5661, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_8); - __Pyx_INCREF(__pyx_n_u_monitorid); - __Pyx_GIVEREF(__pyx_n_u_monitorid); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_u_monitorid); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5661, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "PyCafe.pyx":5648 + /* "PyCafe.pyx":5855 * * # For setUserArgs pass the address of the variable. * if cb[i]: # <<<<<<<<<<<<<< @@ -100284,7 +103963,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5664 + /* "PyCafe.pyx":5871 * * * mpV.push_back(mp[i]) # <<<<<<<<<<<<<< @@ -100295,11 +103974,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __pyx_v_mpV.push_back((__pyx_v_mp[__pyx_v_i])); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 5664, __pyx_L1_error) + __PYX_ERR(3, 5871, __pyx_L1_error) } } - /* "PyCafe.pyx":5667 + /* "PyCafe.pyx":5874 * * cdef vector[int] vStatus * vStatus.reserve(pvg.getNPV()) # <<<<<<<<<<<<<< @@ -100308,7 +103987,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_vStatus.reserve(__pyx_v_pvg.getNPV()); - /* "PyCafe.pyx":5669 + /* "PyCafe.pyx":5876 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -100323,7 +104002,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct #endif /*try:*/ { - /* "PyCafe.pyx":5670 + /* "PyCafe.pyx":5877 * * with nogil: * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) # <<<<<<<<<<<<<< @@ -100333,7 +104012,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __pyx_v_status = __pyx_v_self->_c_cafe->groupMonitorStart(__pyx_v_ghandle, __pyx_v_vStatus, __pyx_v_mpV); } - /* "PyCafe.pyx":5669 + /* "PyCafe.pyx":5876 * vStatus.reserve(pvg.getNPV()) * * with nogil: # <<<<<<<<<<<<<< @@ -100346,33 +104025,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif - goto __pyx_L20; + goto __pyx_L18; } - __pyx_L20:; + __pyx_L18:; } } - /* "PyCafe.pyx":5672 + /* "PyCafe.pyx":5879 * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) */ - __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); - if (__pyx_t_3) { + __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5673 + /* "PyCafe.pyx":5880 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * */ - __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); - if (__pyx_t_3) { + __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); + if (__pyx_t_1) { - /* "PyCafe.pyx":5674 + /* "PyCafe.pyx":5881 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -100381,7 +104060,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5673 + /* "PyCafe.pyx":5880 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -100390,7 +104069,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5672 + /* "PyCafe.pyx":5879 * status = self._c_cafe.groupMonitorStart(ghandle, vStatus, mpV) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -100399,7 +104078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct */ } - /* "PyCafe.pyx":5676 + /* "PyCafe.pyx":5883 * self._c_cafe.printStatusMessage(status) * * return status, vStatus # <<<<<<<<<<<<<< @@ -100407,23 +104086,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5676, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_8 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5676, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_5 = __pyx_convert_vector_to_py_int(__pyx_v_vStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 5883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5676, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8); - __pyx_t_2 = 0; + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5); + __pyx_t_6 = 0; + __pyx_t_5 = 0; + __pyx_r = __pyx_t_8; __pyx_t_8 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5583 + /* "PyCafe.pyx":5790 * ############################################################################ * * def groupMonitorStartWithCBList(self, # <<<<<<<<<<<<<< @@ -100435,8 +104114,8 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("PyCafe.CyCafe.groupMonitorStartWithCBList", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -100446,13 +104125,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_336groupMonitorStartWithCBList(struct __Pyx_XDECREF((PyObject *)__pyx_v__cafeException); __Pyx_XDECREF(__pyx_v_handleList); __Pyx_XDECREF(__pyx_v_sig); - __Pyx_XDECREF(__pyx_v_param); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "PyCafe.pyx":5679 +/* "PyCafe.pyx":5886 * * ################################################################################## * def getHandleFromPVWithinGroup(self, str pv, ghandleName): # <<<<<<<<<<<<<< @@ -100491,11 +104169,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_339getHandleFromPVWithinGroup(PyObject case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ghandleName)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("getHandleFromPVWithinGroup", 1, 2, 2, 1); __PYX_ERR(3, 5679, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getHandleFromPVWithinGroup", 1, 2, 2, 1); __PYX_ERR(3, 5886, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getHandleFromPVWithinGroup") < 0)) __PYX_ERR(3, 5679, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getHandleFromPVWithinGroup") < 0)) __PYX_ERR(3, 5886, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -100508,13 +104186,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_339getHandleFromPVWithinGroup(PyObject } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getHandleFromPVWithinGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5679, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getHandleFromPVWithinGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5886, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getHandleFromPVWithinGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv), (&PyUnicode_Type), 1, "pv", 1))) __PYX_ERR(3, 5679, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pv), (&PyUnicode_Type), 1, "pv", 1))) __PYX_ERR(3, 5886, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_pv, __pyx_v_ghandleName); /* function exit code */ @@ -100542,7 +104220,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ unsigned int __pyx_t_8; __Pyx_RefNannySetupContext("getHandleFromPVWithinGroup", 0); - /* "PyCafe.pyx":5680 + /* "PyCafe.pyx":5887 * ################################################################################## * def getHandleFromPVWithinGroup(self, str pv, ghandleName): * cdef str _METHOD = "getHandleFromPVWithinGroup(pv. ghandleName)" # <<<<<<<<<<<<<< @@ -100552,7 +104230,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ __Pyx_INCREF(__pyx_kp_u_getHandleFromPVWithinGroup_pv_gh); __pyx_v__METHOD = __pyx_kp_u_getHandleFromPVWithinGroup_pv_gh; - /* "PyCafe.pyx":5681 + /* "PyCafe.pyx":5888 * def getHandleFromPVWithinGroup(self, str pv, ghandleName): * cdef str _METHOD = "getHandleFromPVWithinGroup(pv. ghandleName)" * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -100573,7 +104251,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5682 + /* "PyCafe.pyx":5889 * cdef str _METHOD = "getHandleFromPVWithinGroup(pv. ghandleName)" * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< @@ -100583,7 +104261,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ __Pyx_INCREF(__pyx_v_ghandleName); __pyx_v_ghandle = __pyx_v_ghandleName; - /* "PyCafe.pyx":5681 + /* "PyCafe.pyx":5888 * def getHandleFromPVWithinGroup(self, str pv, ghandleName): * cdef str _METHOD = "getHandleFromPVWithinGroup(pv. ghandleName)" * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -100593,7 +104271,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ goto __pyx_L3; } - /* "PyCafe.pyx":5683 + /* "PyCafe.pyx":5890 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -100604,20 +104282,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5684 + /* "PyCafe.pyx":5891 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.hh.getGroupHandleFromGroupName(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_v_ghandleName); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(3, 5684, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5684, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_v_ghandleName); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(3, 5891, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getGroupHandleFromGroupName(__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_ghandle = __pyx_t_5; __pyx_t_5 = 0; - /* "PyCafe.pyx":5683 + /* "PyCafe.pyx":5890 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -100627,7 +104305,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ goto __pyx_L3; } - /* "PyCafe.pyx":5686 + /* "PyCafe.pyx":5893 * ghandle = self.hh.getGroupHandleFromGroupName(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -100635,18 +104313,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5686, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5686, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5686, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5686, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5686, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5893, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5893, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5893, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5688 + /* "PyCafe.pyx":5895 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -100654,11 +104332,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5688, __pyx_L1_error) + __PYX_ERR(3, 5895, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5689 + /* "PyCafe.pyx":5896 * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException * return self.hh.getHandleFromPVWithinGroup(pv, ghandle) # <<<<<<<<<<<<<< @@ -100666,15 +104344,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_pv); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(3, 5689, __pyx_L1_error) - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandle); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5689, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getHandleFromPVWithinGroup(__pyx_t_7, __pyx_t_8)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5689, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_pv); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(3, 5896, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandle); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5896, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getHandleFromPVWithinGroup(__pyx_t_7, __pyx_t_8)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5679 + /* "PyCafe.pyx":5886 * * ################################################################################## * def getHandleFromPVWithinGroup(self, str pv, ghandleName): # <<<<<<<<<<<<<< @@ -100699,7 +104377,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_338getHandleFromPVWithinGroup(struct _ return __pyx_r; } -/* "PyCafe.pyx":5693 +/* "PyCafe.pyx":5900 * ################################################################################## * * def getGroupStr(self, ghandleName): # <<<<<<<<<<<<<< @@ -100730,7 +104408,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getGroupStr", 0); - /* "PyCafe.pyx":5694 + /* "PyCafe.pyx":5901 * * def getGroupStr(self, ghandleName): * return self.getGroup(ghandleName, 'str') # <<<<<<<<<<<<<< @@ -100738,7 +104416,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf * def getGroupInt(self, ghandleName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5694, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -100755,7 +104433,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5694, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5901, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -100763,13 +104441,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_str}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5694, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5901, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5694, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -100780,7 +104458,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_n_u_str); __Pyx_GIVEREF(__pyx_n_u_str); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_str); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5694, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -100789,7 +104467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5693 + /* "PyCafe.pyx":5900 * ################################################################################## * * def getGroupStr(self, ghandleName): # <<<<<<<<<<<<<< @@ -100813,7 +104491,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_340getGroupStr(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":5696 +/* "PyCafe.pyx":5903 * return self.getGroup(ghandleName, 'str') * * def getGroupInt(self, ghandleName): # <<<<<<<<<<<<<< @@ -100844,7 +104522,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getGroupInt", 0); - /* "PyCafe.pyx":5697 + /* "PyCafe.pyx":5904 * * def getGroupInt(self, ghandleName): * return self.getGroup(ghandleName, 'int') # <<<<<<<<<<<<<< @@ -100852,7 +104530,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf * def getGroupFloat(self, ghandleName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5697, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -100869,7 +104547,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5697, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5904, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -100877,13 +104555,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_int}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5697, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5904, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5697, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -100894,7 +104572,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_n_u_int); __Pyx_GIVEREF(__pyx_n_u_int); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_int); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5697, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -100903,7 +104581,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5696 + /* "PyCafe.pyx":5903 * return self.getGroup(ghandleName, 'str') * * def getGroupInt(self, ghandleName): # <<<<<<<<<<<<<< @@ -100927,7 +104605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_342getGroupInt(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":5699 +/* "PyCafe.pyx":5906 * return self.getGroup(ghandleName, 'int') * * def getGroupFloat(self, ghandleName): # <<<<<<<<<<<<<< @@ -100958,7 +104636,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("getGroupFloat", 0); - /* "PyCafe.pyx":5700 + /* "PyCafe.pyx":5907 * * def getGroupFloat(self, ghandleName): * return self.getGroup(ghandleName, 'float') # <<<<<<<<<<<<<< @@ -100966,7 +104644,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5700, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; @@ -100983,7 +104661,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5700, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5907, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -100991,13 +104669,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_ghandleName, __pyx_n_u_float}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5700, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5907, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5700, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL; @@ -101008,7 +104686,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_float); __Pyx_GIVEREF(__pyx_n_u_float); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_n_u_float); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5700, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } @@ -101017,7 +104695,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5699 + /* "PyCafe.pyx":5906 * return self.getGroup(ghandleName, 'int') * * def getGroupFloat(self, ghandleName): # <<<<<<<<<<<<<< @@ -101041,7 +104719,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_344getGroupFloat(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":5703 +/* "PyCafe.pyx":5910 * * ################################################################################## * def getGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -101085,7 +104763,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_347getGroup(PyObject *__pyx_v_self, Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getGroup") < 0)) __PYX_ERR(3, 5703, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getGroup") < 0)) __PYX_ERR(3, 5910, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -101101,13 +104779,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_347getGroup(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5703, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5910, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5703, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5910, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_346getGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_dt); /* function exit code */ @@ -101159,7 +104837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C long __pyx_t_19; __Pyx_RefNannySetupContext("getGroup", 0); - /* "PyCafe.pyx":5704 + /* "PyCafe.pyx":5911 * ################################################################################## * def getGroup(self, ghandleName, str dt='native'): * cdef str _METHOD = "getGroup(ghandleName, str dt='native')" # <<<<<<<<<<<<<< @@ -101169,7 +104847,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_kp_u_getGroup_ghandleName_str_dt_nati); __pyx_v__METHOD = __pyx_kp_u_getGroup_ghandleName_str_dt_nati; - /* "PyCafe.pyx":5705 + /* "PyCafe.pyx":5912 * def getGroup(self, ghandleName, str dt='native'): * cdef str _METHOD = "getGroup(ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -101178,7 +104856,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":5706 + /* "PyCafe.pyx":5913 * cdef str _METHOD = "getGroup(ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -101199,17 +104877,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5707 + /* "PyCafe.pyx":5914 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5707, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5914, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5706 + /* "PyCafe.pyx":5913 * cdef str _METHOD = "getGroup(ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -101219,7 +104897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":5708 + /* "PyCafe.pyx":5915 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -101230,21 +104908,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5709 + /* "PyCafe.pyx":5916 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5709, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5709, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5916, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5709, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5916, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5708 + /* "PyCafe.pyx":5915 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -101254,7 +104932,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":5711 + /* "PyCafe.pyx":5918 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -101262,18 +104940,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5711, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5711, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5711, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5711, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5711, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5918, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5918, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5918, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5713 + /* "PyCafe.pyx":5920 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -101281,11 +104959,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5713, __pyx_L1_error) + __PYX_ERR(3, 5920, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5717 + /* "PyCafe.pyx":5924 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -101300,7 +104978,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":5718 + /* "PyCafe.pyx":5925 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -101310,7 +104988,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":5717 + /* "PyCafe.pyx":5924 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -101329,7 +105007,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":5721 + /* "PyCafe.pyx":5928 * * cdef PVDataHolder * pvd * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -101338,7 +105016,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":5722 + /* "PyCafe.pyx":5929 * cdef PVDataHolder * pvd * pvd = pvg.getPVData() * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -101350,7 +105028,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":5723 + /* "PyCafe.pyx":5930 * pvd = pvg.getPVData() * for i in range(0, pvg.getNPV()): * pvd[i].setHasAlarm(False) # <<<<<<<<<<<<<< @@ -101359,7 +105037,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ (__pyx_v_pvd[__pyx_v_i]).setHasAlarm(0); - /* "PyCafe.pyx":5724 + /* "PyCafe.pyx":5931 * for i in range(0, pvg.getNPV()): * pvd[i].setHasAlarm(False) * pvd[i].setHasTS(False) # <<<<<<<<<<<<<< @@ -101369,7 +105047,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C (__pyx_v_pvd[__pyx_v_i]).setHasTS(0); } - /* "PyCafe.pyx":5727 + /* "PyCafe.pyx":5934 * # pvd[i].setRule(False) * * pvg.setPVData(pvd) # <<<<<<<<<<<<<< @@ -101378,7 +105056,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvg.setPVData(__pyx_v_pvd); - /* "PyCafe.pyx":5734 + /* "PyCafe.pyx":5941 * ## * * with nogil: # <<<<<<<<<<<<<< @@ -101393,7 +105071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":5735 + /* "PyCafe.pyx":5942 * * with nogil: * status = self._c_cafe.groupGet(ghandle, pvg) # <<<<<<<<<<<<<< @@ -101403,7 +105081,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_v_status = __pyx_v_self->_c_cafe->groupGet(__pyx_v_ghandle, __pyx_v_pvg); } - /* "PyCafe.pyx":5734 + /* "PyCafe.pyx":5941 * ## * * with nogil: # <<<<<<<<<<<<<< @@ -101422,7 +105100,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":5737 + /* "PyCafe.pyx":5944 * status = self._c_cafe.groupGet(ghandle, pvg) * * if status == ECA_TIMEOUT: # <<<<<<<<<<<<<< @@ -101432,18 +105110,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_status == ECA_TIMEOUT) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5738 + /* "PyCafe.pyx":5945 * * if status == ECA_TIMEOUT: * print("======================================================") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * print("TIMEOUT in getGroup; switching to getCompoundList") */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5738, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5739 + /* "PyCafe.pyx":5946 * if status == ECA_TIMEOUT: * print("======================================================") * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -101452,29 +105130,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5740 + /* "PyCafe.pyx":5947 * print("======================================================") * self._c_cafe.printStatusMessage(status) * print("TIMEOUT in getGroup; switching to getCompoundList") # <<<<<<<<<<<<<< * print("======================================================") * return self.getCompoundList(pvg.getNameAsString(), dt) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__108, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5740, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__103, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5741 + /* "PyCafe.pyx":5948 * self._c_cafe.printStatusMessage(status) * print("TIMEOUT in getGroup; switching to getCompoundList") * print("======================================================") # <<<<<<<<<<<<<< * return self.getCompoundList(pvg.getNameAsString(), dt) * */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5741, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5742 + /* "PyCafe.pyx":5949 * print("TIMEOUT in getGroup; switching to getCompoundList") * print("======================================================") * return self.getCompoundList(pvg.getNameAsString(), dt) # <<<<<<<<<<<<<< @@ -101482,9 +105160,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * if status != ICAFE_NORMAL: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundList); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvg.getNameAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_9 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_pvg.getNameAsString()); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; __pyx_t_11 = 0; @@ -101501,7 +105179,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_v_dt}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -101510,14 +105188,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_9, __pyx_v_dt}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -101528,7 +105206,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_GIVEREF(__pyx_v_dt); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_dt); __pyx_t_9 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_12, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5742, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_12, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } @@ -101537,7 +105215,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5737 + /* "PyCafe.pyx":5944 * status = self._c_cafe.groupGet(ghandle, pvg) * * if status == ECA_TIMEOUT: # <<<<<<<<<<<<<< @@ -101546,7 +105224,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5744 + /* "PyCafe.pyx":5951 * return self.getCompoundList(pvg.getNameAsString(), dt) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -101556,7 +105234,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5745 + /* "PyCafe.pyx":5952 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -101566,7 +105244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5746 + /* "PyCafe.pyx":5953 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -101575,7 +105253,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5745 + /* "PyCafe.pyx":5952 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -101584,7 +105262,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5744 + /* "PyCafe.pyx":5951 * return self.getCompoundList(pvg.getNameAsString(), dt) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -101593,7 +105271,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5752 + /* "PyCafe.pyx":5959 * # pvg.showMaxMax(5,10) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -101602,31 +105280,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":5754 + /* "PyCafe.pyx":5961 * pvd = pvg.getPVData() * * localList = [] # <<<<<<<<<<<<<< * statusList = [] * cdef unsigned int dtn, dtcheck */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5754, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_localList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5755 + /* "PyCafe.pyx":5962 * * localList = [] * statusList = [] # <<<<<<<<<<<<<< * cdef unsigned int dtn, dtcheck * cdef bytes bytesVal */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5755, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_statusList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5759 + /* "PyCafe.pyx":5966 * cdef bytes bytesVal * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -101638,7 +105316,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":5760 + /* "PyCafe.pyx":5967 * * for i in range(0, pvg.getNPV()): * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< @@ -101647,35 +105325,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_dtn = (__pyx_v_pvd[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":5762 + /* "PyCafe.pyx":5969 * dtn = pvd[i].getDataType() * * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * statusList.append(pvd[i].getStatus()) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5762, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5762, __pyx_L1_error) + __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5762, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_13 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5969, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_dtcheck = __pyx_t_13; - /* "PyCafe.pyx":5764 + /* "PyCafe.pyx":5971 * dtcheck = getMatchedDataType(dt, dtn) * * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * * if pvd[i].getNelem() == 1: */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5764, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5764, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5971, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5766 + /* "PyCafe.pyx":5973 * statusList.append(pvd[i].getStatus()) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -101685,7 +105363,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (((__pyx_v_pvd[__pyx_v_i]).getNelem() == 1) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5767 + /* "PyCafe.pyx":5974 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -101695,14 +105373,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":5769 + /* "PyCafe.pyx":5976 * if dtcheck == CAFE_STRING: * * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in pvd[i].getPVName(): */ - __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5769, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); @@ -101710,7 +105388,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "PyCafe.pyx":5770 + /* "PyCafe.pyx":5977 * * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -101719,21 +105397,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":5771 + /* "PyCafe.pyx":5978 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_6 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5771, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5771, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5978, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5772 + /* "PyCafe.pyx":5979 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -101749,7 +105427,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":5773 + /* "PyCafe.pyx":5980 * if '.EGU' in pvd[i].getPVName(): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -101758,14 +105436,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5773, __pyx_L21_error) + __PYX_ERR(3, 5980, __pyx_L21_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5773, __pyx_L21_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5980, __pyx_L21_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5774 + /* "PyCafe.pyx":5981 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -101774,7 +105452,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5772 + /* "PyCafe.pyx":5979 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -101793,7 +105471,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5775 + /* "PyCafe.pyx":5982 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -101808,7 +105486,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L23_except_error; __pyx_L23_except_error:; - /* "PyCafe.pyx":5772 + /* "PyCafe.pyx":5979 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -101828,7 +105506,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L28_try_end:; } - /* "PyCafe.pyx":5771 + /* "PyCafe.pyx":5978 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< @@ -101837,7 +105515,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5777 + /* "PyCafe.pyx":5984 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -101847,7 +105525,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5778 + /* "PyCafe.pyx":5985 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -101863,7 +105541,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":5779 + /* "PyCafe.pyx":5986 * if not encoding: * try: * strVal = (bytesVal).decode('utf_8') # <<<<<<<<<<<<<< @@ -101872,14 +105550,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5779, __pyx_L30_error) + __PYX_ERR(3, 5986, __pyx_L30_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5779, __pyx_L30_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5986, __pyx_L30_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5780 + /* "PyCafe.pyx":5987 * try: * strVal = (bytesVal).decode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -101888,7 +105566,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5778 + /* "PyCafe.pyx":5985 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -101907,7 +105585,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5781 + /* "PyCafe.pyx":5988 * strVal = (bytesVal).decode('utf_8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -101922,7 +105600,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L32_except_error; __pyx_L32_except_error:; - /* "PyCafe.pyx":5778 + /* "PyCafe.pyx":5985 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -101942,7 +105620,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L37_try_end:; } - /* "PyCafe.pyx":5777 + /* "PyCafe.pyx":5984 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -101951,7 +105629,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5783 + /* "PyCafe.pyx":5990 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -101961,7 +105639,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5784 + /* "PyCafe.pyx":5991 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -101977,7 +105655,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":5785 + /* "PyCafe.pyx":5992 * if not encoding: * try: * strVal = (bytesVal).decode('utf_16') # <<<<<<<<<<<<<< @@ -101986,14 +105664,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5785, __pyx_L39_error) + __PYX_ERR(3, 5992, __pyx_L39_error) } - __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5785, __pyx_L39_error) + __pyx_t_6 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5992, __pyx_L39_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5786 + /* "PyCafe.pyx":5993 * try: * strVal = (bytesVal).decode('utf_16') * encoding = True # <<<<<<<<<<<<<< @@ -102002,7 +105680,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5784 + /* "PyCafe.pyx":5991 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102021,7 +105699,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5787 + /* "PyCafe.pyx":5994 * strVal = (bytesVal).decode('utf_16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -102036,7 +105714,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L41_except_error; __pyx_L41_except_error:; - /* "PyCafe.pyx":5784 + /* "PyCafe.pyx":5991 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102056,7 +105734,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L46_try_end:; } - /* "PyCafe.pyx":5783 + /* "PyCafe.pyx":5990 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102065,7 +105743,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5789 + /* "PyCafe.pyx":5996 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102075,19 +105753,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5790 + /* "PyCafe.pyx":5997 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) #pvd[i].getAsString()) */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5790, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5789 + /* "PyCafe.pyx":5996 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102096,17 +105774,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5792 + /* "PyCafe.pyx":5999 * strVal = pvd[i].getAsString() * * localList.append(strVal) #pvd[i].getAsString()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 5792, __pyx_L1_error) } - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5792, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 5999, __pyx_L1_error) } + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5999, __pyx_L1_error) - /* "PyCafe.pyx":5767 + /* "PyCafe.pyx":5974 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -102116,19 +105794,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_SHORT: - /* "PyCafe.pyx":5794 + /* "PyCafe.pyx":6001 * localList.append(strVal) #pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5794, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5794, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6001, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5793 + /* "PyCafe.pyx":6000 * * localList.append(strVal) #pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -102138,19 +105816,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_FLOAT: - /* "PyCafe.pyx":5796 + /* "PyCafe.pyx":6003 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5796, __pyx_L1_error) + __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5796, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6003, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5795 + /* "PyCafe.pyx":6002 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -102160,7 +105838,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_ENUM: - /* "PyCafe.pyx":5800 + /* "PyCafe.pyx":6007 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -102170,19 +105848,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPVWithinGroup((__pyx_v_pvd[__pyx_v_i]).getPVName(), __pyx_v_ghandle)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5801 + /* "PyCafe.pyx":6008 * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5801, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5801, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5800 + /* "PyCafe.pyx":6007 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -102192,7 +105870,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L48; } - /* "PyCafe.pyx":5803 + /* "PyCafe.pyx":6010 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -102200,14 +105878,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5803, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5803, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6010, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_L48:; - /* "PyCafe.pyx":5797 + /* "PyCafe.pyx":6004 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -102217,19 +105895,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_CHAR: - /* "PyCafe.pyx":5806 + /* "PyCafe.pyx":6013 * * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5806, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5806, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5805 + /* "PyCafe.pyx":6012 * localList.append(pvd[i].getAsLong()) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -102239,19 +105917,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_LONG: - /* "PyCafe.pyx":5808 + /* "PyCafe.pyx":6015 * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5808, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5808, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6015, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5807 + /* "PyCafe.pyx":6014 * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -102261,19 +105939,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_DOUBLE: - /* "PyCafe.pyx":5810 + /* "PyCafe.pyx":6017 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(None) # no data */ - __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5810, __pyx_L1_error) + __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5810, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6017, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5809 + /* "PyCafe.pyx":6016 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -102283,18 +105961,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; default: - /* "PyCafe.pyx":5812 + /* "PyCafe.pyx":6019 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(None) # no data # <<<<<<<<<<<<<< * else: * localListInner = [] */ - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, Py_None); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5812, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, Py_None); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6019, __pyx_L1_error) break; } - /* "PyCafe.pyx":5766 + /* "PyCafe.pyx":5973 * statusList.append(pvd[i].getStatus()) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -102304,7 +105982,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L19; } - /* "PyCafe.pyx":5814 + /* "PyCafe.pyx":6021 * localList.append(None) # no data * else: * localListInner = [] # <<<<<<<<<<<<<< @@ -102312,12 +105990,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * for j in range(0, pvd[i].getNelem()): */ /*else*/ { - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5814, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_localListInner, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "PyCafe.pyx":5815 + /* "PyCafe.pyx":6022 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -102327,7 +106005,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":5816 + /* "PyCafe.pyx":6023 * localListInner = [] * if dtcheck == CAFE_STRING: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102339,14 +106017,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5818 + /* "PyCafe.pyx":6025 * for j in range(0, pvd[i].getNelem()): * * bytesVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in pvd[i].getPVName(): */ - __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5818, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __pyx_t_6; __Pyx_INCREF(__pyx_t_5); @@ -102354,7 +106032,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF_SET(__pyx_v_bytesVal, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":5819 + /* "PyCafe.pyx":6026 * * bytesVal = pvd[i].getAsString(j) * encoding = False # <<<<<<<<<<<<<< @@ -102363,21 +106041,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":5820 + /* "PyCafe.pyx":6027 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_5 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5820, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5820, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5821 + /* "PyCafe.pyx":6028 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -102393,7 +106071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":5822 + /* "PyCafe.pyx":6029 * if '.EGU' in pvd[i].getPVName(): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< @@ -102402,14 +106080,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5822, __pyx_L52_error) + __PYX_ERR(3, 6029, __pyx_L52_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5822, __pyx_L52_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6029, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5823 + /* "PyCafe.pyx":6030 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -102418,7 +106096,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5821 + /* "PyCafe.pyx":6028 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -102437,7 +106115,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5824 + /* "PyCafe.pyx":6031 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -102452,7 +106130,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L54_except_error; __pyx_L54_except_error:; - /* "PyCafe.pyx":5821 + /* "PyCafe.pyx":6028 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -102472,7 +106150,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L59_try_end:; } - /* "PyCafe.pyx":5820 + /* "PyCafe.pyx":6027 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< @@ -102481,7 +106159,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5826 + /* "PyCafe.pyx":6033 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102491,7 +106169,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5827 + /* "PyCafe.pyx":6034 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102507,7 +106185,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "PyCafe.pyx":5828 + /* "PyCafe.pyx":6035 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< @@ -102516,14 +106194,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5828, __pyx_L61_error) + __PYX_ERR(3, 6035, __pyx_L61_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5828, __pyx_L61_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6035, __pyx_L61_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5829 + /* "PyCafe.pyx":6036 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -102532,7 +106210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5827 + /* "PyCafe.pyx":6034 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102551,7 +106229,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5830 + /* "PyCafe.pyx":6037 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -102566,7 +106244,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L63_except_error; __pyx_L63_except_error:; - /* "PyCafe.pyx":5827 + /* "PyCafe.pyx":6034 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102586,7 +106264,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L68_try_end:; } - /* "PyCafe.pyx":5826 + /* "PyCafe.pyx":6033 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102595,7 +106273,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5832 + /* "PyCafe.pyx":6039 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102605,7 +106283,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5833 + /* "PyCafe.pyx":6040 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102621,7 +106299,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "PyCafe.pyx":5834 + /* "PyCafe.pyx":6041 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< @@ -102630,14 +106308,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_bytesVal == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode"); - __PYX_ERR(3, 5834, __pyx_L70_error) + __PYX_ERR(3, 6041, __pyx_L70_error) } - __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5834, __pyx_L70_error) + __pyx_t_5 = __Pyx_decode_bytes(__pyx_v_bytesVal, 0, PY_SSIZE_T_MAX, NULL, NULL, __Pyx_PyUnicode_DecodeUTF16); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6041, __pyx_L70_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5835 + /* "PyCafe.pyx":6042 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -102646,7 +106324,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5833 + /* "PyCafe.pyx":6040 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102665,7 +106343,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5836 + /* "PyCafe.pyx":6043 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -102680,7 +106358,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L72_except_error; __pyx_L72_except_error:; - /* "PyCafe.pyx":5833 + /* "PyCafe.pyx":6040 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -102700,7 +106378,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_L77_try_end:; } - /* "PyCafe.pyx":5832 + /* "PyCafe.pyx":6039 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102709,7 +106387,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5838 + /* "PyCafe.pyx":6045 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102719,19 +106397,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5839 + /* "PyCafe.pyx":6046 * pass * if not encoding: * strVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * * localListInner.append(strVal) #pvd[i].getAsString(j)) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5839, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5838 + /* "PyCafe.pyx":6045 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -102740,18 +106418,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":5841 + /* "PyCafe.pyx":6048 * strVal = pvd[i].getAsString(j) * * localListInner.append(strVal) #pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * * elif dtcheck == CAFE_SHORT: */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 5841, __pyx_L1_error) } - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5841, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 6048, __pyx_L1_error) } + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6048, __pyx_L1_error) } - /* "PyCafe.pyx":5815 + /* "PyCafe.pyx":6022 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -102761,7 +106439,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_SHORT: - /* "PyCafe.pyx":5844 + /* "PyCafe.pyx":6051 * * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102773,20 +106451,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5845 + /* "PyCafe.pyx":6052 * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5845, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5845, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6052, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":5843 + /* "PyCafe.pyx":6050 * localListInner.append(strVal) #pvd[i].getAsString(j)) * * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -102796,7 +106474,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_FLOAT: - /* "PyCafe.pyx":5847 + /* "PyCafe.pyx":6054 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102808,20 +106486,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5848 + /* "PyCafe.pyx":6055 * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5848, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5848, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6055, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":5846 + /* "PyCafe.pyx":6053 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -102831,7 +106509,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_ENUM: - /* "PyCafe.pyx":5851 + /* "PyCafe.pyx":6058 * elif dtcheck == CAFE_ENUM: * * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102843,7 +106521,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5853 + /* "PyCafe.pyx":6060 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -102853,19 +106531,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPVWithinGroup((__pyx_v_pvd[__pyx_v_i]).getPVName(), __pyx_v_ghandle)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5854 + /* "PyCafe.pyx":6061 * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): * localListInner.append(pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * else: * localListInner.append(pvd[i].getAsLong(j)) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5854, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5854, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6061, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5853 + /* "PyCafe.pyx":6060 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -102875,7 +106553,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L85; } - /* "PyCafe.pyx":5856 + /* "PyCafe.pyx":6063 * localListInner.append(pvd[i].getAsString(j)) * else: * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< @@ -102883,15 +106561,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5856, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5856, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6063, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_L85:; } - /* "PyCafe.pyx":5849 + /* "PyCafe.pyx":6056 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -102901,7 +106579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_CHAR: - /* "PyCafe.pyx":5859 + /* "PyCafe.pyx":6066 * * elif dtcheck == CAFE_CHAR: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102913,20 +106591,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5861 + /* "PyCafe.pyx":6068 * for j in range(0, pvd[i].getNelem()): * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5861, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5861, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6068, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":5858 + /* "PyCafe.pyx":6065 * localListInner.append(pvd[i].getAsLong(j)) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -102936,7 +106614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_LONG: - /* "PyCafe.pyx":5863 + /* "PyCafe.pyx":6070 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102948,20 +106626,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5864 + /* "PyCafe.pyx":6071 * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5864, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5864, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6071, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":5862 + /* "PyCafe.pyx":6069 * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -102971,7 +106649,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_DOUBLE: - /* "PyCafe.pyx":5866 + /* "PyCafe.pyx":6073 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -102983,20 +106661,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5867 + /* "PyCafe.pyx":6074 * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * else: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5867, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5867, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6074, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":5865 + /* "PyCafe.pyx":6072 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -103006,7 +106684,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C break; default: - /* "PyCafe.pyx":5869 + /* "PyCafe.pyx":6076 * localListInner.append(pvd[i].getAsDouble(j)) * else: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -103018,31 +106696,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) { __pyx_v_j = __pyx_t_19; - /* "PyCafe.pyx":5870 + /* "PyCafe.pyx":6077 * else: * for j in range(0, pvd[i].getNelem()): * localListInner.append(None) # no data # <<<<<<<<<<<<<< * localList.append(localListInner) * */ - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, Py_None); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5870, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localListInner, Py_None); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6077, __pyx_L1_error) } break; } - /* "PyCafe.pyx":5871 + /* "PyCafe.pyx":6078 * for j in range(0, pvd[i].getNelem()): * localListInner.append(None) # no data * localList.append(localListInner) # <<<<<<<<<<<<<< * * return localList, status, statusList */ - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 5871, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6078, __pyx_L1_error) } __pyx_L19:; } - /* "PyCafe.pyx":5873 + /* "PyCafe.pyx":6080 * localList.append(localListInner) * * return localList, status, statusList # <<<<<<<<<<<<<< @@ -103050,9 +106728,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5873, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5873, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -103067,7 +106745,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5703 + /* "PyCafe.pyx":5910 * * ################################################################################## * def getGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -103099,7 +106777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_346getGroup(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":5881 +/* "PyCafe.pyx":6088 * ################################################################################## * * def getGroupCache(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -103143,7 +106821,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_349getGroupCache(PyObject *__pyx_v_sel } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getGroupCache") < 0)) __PYX_ERR(3, 5881, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getGroupCache") < 0)) __PYX_ERR(3, 6088, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -103159,13 +106837,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_349getGroupCache(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getGroupCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5881, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getGroupCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6088, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getGroupCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 5881, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 6088, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_348getGroupCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_dt); /* function exit code */ @@ -103215,7 +106893,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC long __pyx_t_17; __Pyx_RefNannySetupContext("getGroupCache", 0); - /* "PyCafe.pyx":5882 + /* "PyCafe.pyx":6089 * * def getGroupCache(self, ghandleName, str dt='native'): * cdef str _METHOD = "getGroupCache(self, ghandleName, str dt='native')" # <<<<<<<<<<<<<< @@ -103225,7 +106903,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_kp_u_getGroupCache_self_ghandleName_s); __pyx_v__METHOD = __pyx_kp_u_getGroupCache_self_ghandleName_s; - /* "PyCafe.pyx":5883 + /* "PyCafe.pyx":6090 * def getGroupCache(self, ghandleName, str dt='native'): * cdef str _METHOD = "getGroupCache(self, ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -103234,7 +106912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":5884 + /* "PyCafe.pyx":6091 * cdef str _METHOD = "getGroupCache(self, ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -103255,17 +106933,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5885 + /* "PyCafe.pyx":6092 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5885, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6092, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5884 + /* "PyCafe.pyx":6091 * cdef str _METHOD = "getGroupCache(self, ghandleName, str dt='native')" * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -103275,7 +106953,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":5886 + /* "PyCafe.pyx":6093 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -103286,21 +106964,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5887 + /* "PyCafe.pyx":6094 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 5887, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5887, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 6094, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5887, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":5886 + /* "PyCafe.pyx":6093 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -103310,7 +106988,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":5889 + /* "PyCafe.pyx":6096 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -103318,18 +106996,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5889, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 5889, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 5889, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 5889, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5889, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6096, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6096, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6096, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5891 + /* "PyCafe.pyx":6098 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -103337,11 +107015,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 5891, __pyx_L1_error) + __PYX_ERR(3, 6098, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":5895 + /* "PyCafe.pyx":6102 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -103356,7 +107034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":5896 + /* "PyCafe.pyx":6103 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -103366,7 +107044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":5895 + /* "PyCafe.pyx":6102 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -103385,7 +107063,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":5900 + /* "PyCafe.pyx":6107 * cdef PVDataHolder * pvd * * with nogil: # <<<<<<<<<<<<<< @@ -103400,7 +107078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":5901 + /* "PyCafe.pyx":6108 * * with nogil: * status = self._c_cafe.groupGetCache(ghandle, pvg) # <<<<<<<<<<<<<< @@ -103410,7 +107088,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->groupGetCache(__pyx_v_ghandle, __pyx_v_pvg); } - /* "PyCafe.pyx":5900 + /* "PyCafe.pyx":6107 * cdef PVDataHolder * pvd * * with nogil: # <<<<<<<<<<<<<< @@ -103429,7 +107107,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":5903 + /* "PyCafe.pyx":6110 * status = self._c_cafe.groupGetCache(ghandle, pvg) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -103439,7 +107117,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5904 + /* "PyCafe.pyx":6111 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -103449,7 +107127,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5905 + /* "PyCafe.pyx":6112 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -103458,7 +107136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":5904 + /* "PyCafe.pyx":6111 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -103467,7 +107145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5903 + /* "PyCafe.pyx":6110 * status = self._c_cafe.groupGetCache(ghandle, pvg) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -103476,7 +107154,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5910 + /* "PyCafe.pyx":6117 * #raise Exception("EXCEPTION RAISED in PyCafe def getGroup. Status = %d" %status) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -103485,31 +107163,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":5912 + /* "PyCafe.pyx":6119 * pvd = pvg.getPVData() * * localList = [] # <<<<<<<<<<<<<< * statusList = [] * cdef unsigned int dtn, dtcheck */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5912, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_localList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5913 + /* "PyCafe.pyx":6120 * * localList = [] * statusList = [] # <<<<<<<<<<<<<< * cdef unsigned int dtn, dtcheck * cdef bytesVal */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5913, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_statusList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5917 + /* "PyCafe.pyx":6124 * cdef bytesVal * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -103521,7 +107199,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v_i = __pyx_t_8; - /* "PyCafe.pyx":5918 + /* "PyCafe.pyx":6125 * * for i in range(0, pvg.getNPV()): * dtn = pvd[i].getDataType() # <<<<<<<<<<<<<< @@ -103530,35 +107208,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_dtn = (__pyx_v_pvd[__pyx_v_i]).getDataType(); - /* "PyCafe.pyx":5920 + /* "PyCafe.pyx":6127 * dtn = pvd[i].getDataType() * * dtcheck = getMatchedDataType(dt, dtn) # <<<<<<<<<<<<<< * * statusList.append(pvd[i].getStatus()) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5920, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_dtn); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5920, __pyx_L1_error) + __pyx_t_5 = __pyx_f_6PyCafe_getMatchedDataType(__pyx_v_dt, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 5920, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_dtcheck = __pyx_t_9; - /* "PyCafe.pyx":5922 + /* "PyCafe.pyx":6129 * dtcheck = getMatchedDataType(dt, dtn) * * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * * if pvd[i].getNelem() == 1: */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5922, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5922, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5924 + /* "PyCafe.pyx":6131 * statusList.append(pvd[i].getStatus()) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -103568,7 +107246,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = (((__pyx_v_pvd[__pyx_v_i]).getNelem() == 1) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5925 + /* "PyCafe.pyx":6132 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -103578,14 +107256,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":5927 + /* "PyCafe.pyx":6134 * if dtcheck == CAFE_STRING: * * bytesVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in pvd[i].getPVName(): */ - __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5927, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); @@ -103593,7 +107271,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_bytesVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5928 + /* "PyCafe.pyx":6135 * * bytesVal = pvd[i].getAsString() * encoding = False # <<<<<<<<<<<<<< @@ -103602,21 +107280,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":5929 + /* "PyCafe.pyx":6136 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_6 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5929, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 5929, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_6, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6136, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5930 + /* "PyCafe.pyx":6137 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -103632,14 +107310,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "PyCafe.pyx":5931 + /* "PyCafe.pyx":6138 * if '.EGU' in pvd[i].getPVName(): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5931, __pyx_L18_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6138, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { @@ -103653,13 +107331,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC } __pyx_t_6 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_14, __pyx_kp_u_latin_1) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_u_latin_1); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5931, __pyx_L18_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6138, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5932 + /* "PyCafe.pyx":6139 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -103668,7 +107346,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5930 + /* "PyCafe.pyx":6137 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -103685,7 +107363,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5933 + /* "PyCafe.pyx":6140 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -103700,7 +107378,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L20_except_error; __pyx_L20_except_error:; - /* "PyCafe.pyx":5930 + /* "PyCafe.pyx":6137 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -103720,7 +107398,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L25_try_end:; } - /* "PyCafe.pyx":5929 + /* "PyCafe.pyx":6136 * bytesVal = pvd[i].getAsString() * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< @@ -103729,7 +107407,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5935 + /* "PyCafe.pyx":6142 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -103739,7 +107417,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5936 + /* "PyCafe.pyx":6143 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103755,14 +107433,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "PyCafe.pyx":5937 + /* "PyCafe.pyx":6144 * if not encoding: * try: * strVal = (bytesVal).decode('utf_8') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5937, __pyx_L27_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6144, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { @@ -103774,15 +107452,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_DECREF_SET(__pyx_t_5, function); } } - __pyx_t_6 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_14, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_utf_8); + __pyx_t_6 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_14, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5937, __pyx_L27_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6144, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5938 + /* "PyCafe.pyx":6145 * try: * strVal = (bytesVal).decode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -103791,7 +107469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5936 + /* "PyCafe.pyx":6143 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103808,7 +107486,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5939 + /* "PyCafe.pyx":6146 * strVal = (bytesVal).decode('utf_8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -103823,7 +107501,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L29_except_error; __pyx_L29_except_error:; - /* "PyCafe.pyx":5936 + /* "PyCafe.pyx":6143 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103843,7 +107521,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L34_try_end:; } - /* "PyCafe.pyx":5935 + /* "PyCafe.pyx":6142 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -103852,7 +107530,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5941 + /* "PyCafe.pyx":6148 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -103862,7 +107540,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5942 + /* "PyCafe.pyx":6149 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103878,14 +107556,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "PyCafe.pyx":5943 + /* "PyCafe.pyx":6150 * if not encoding: * try: * strVal = (bytesVal).decode('utf_16') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5943, __pyx_L36_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6150, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { @@ -103897,15 +107575,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_DECREF_SET(__pyx_t_5, function); } } - __pyx_t_6 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_14, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_utf_16); + __pyx_t_6 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_14, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5943, __pyx_L36_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6150, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5944 + /* "PyCafe.pyx":6151 * try: * strVal = (bytesVal).decode('utf_16') * encoding = True # <<<<<<<<<<<<<< @@ -103914,7 +107592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5942 + /* "PyCafe.pyx":6149 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103931,7 +107609,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5945 + /* "PyCafe.pyx":6152 * strVal = (bytesVal).decode('utf_16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -103946,7 +107624,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L38_except_error; __pyx_L38_except_error:; - /* "PyCafe.pyx":5942 + /* "PyCafe.pyx":6149 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -103966,7 +107644,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L43_try_end:; } - /* "PyCafe.pyx":5941 + /* "PyCafe.pyx":6148 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -103975,7 +107653,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5947 + /* "PyCafe.pyx":6154 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -103985,19 +107663,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5948 + /* "PyCafe.pyx":6155 * pass * if not encoding: * strVal = pvd[i].getAsString() # <<<<<<<<<<<<<< * * localList.append(strVal) #pvd[i].getAsString()) */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5948, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5947 + /* "PyCafe.pyx":6154 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104006,17 +107684,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5950 + /* "PyCafe.pyx":6157 * strVal = pvd[i].getAsString() * * localList.append(strVal) #pvd[i].getAsString()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 5950, __pyx_L1_error) } - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5950, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 6157, __pyx_L1_error) } + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_strVal); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6157, __pyx_L1_error) - /* "PyCafe.pyx":5925 + /* "PyCafe.pyx":6132 * * if pvd[i].getNelem() == 1: * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -104026,19 +107704,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_SHORT: - /* "PyCafe.pyx":5952 + /* "PyCafe.pyx":6159 * localList.append(strVal) #pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5952, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5952, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5951 + /* "PyCafe.pyx":6158 * * localList.append(strVal) #pvd[i].getAsString()) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -104048,19 +107726,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_FLOAT: - /* "PyCafe.pyx":5954 + /* "PyCafe.pyx":6161 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * # if enum, string taken as native */ - __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5954, __pyx_L1_error) + __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5954, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6161, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5953 + /* "PyCafe.pyx":6160 * elif dtcheck == CAFE_SHORT: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -104070,7 +107748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_ENUM: - /* "PyCafe.pyx":5958 + /* "PyCafe.pyx":6165 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -104080,19 +107758,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_2 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPVWithinGroup((__pyx_v_pvd[__pyx_v_i]).getPVName(), __pyx_v_ghandle)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":5959 + /* "PyCafe.pyx":6166 * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): * localList.append(pvd[i].getAsString()) # <<<<<<<<<<<<<< * else: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5959, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5959, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5958 + /* "PyCafe.pyx":6165 * # if enum, string taken as native * * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -104102,7 +107780,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L45; } - /* "PyCafe.pyx":5961 + /* "PyCafe.pyx":6168 * localList.append(pvd[i].getAsString()) * else: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< @@ -104110,14 +107788,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5961, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5961, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_L45:; - /* "PyCafe.pyx":5955 + /* "PyCafe.pyx":6162 * elif dtcheck == CAFE_FLOAT: * localList.append(pvd[i].getAsDouble()) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -104127,19 +107805,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_CHAR: - /* "PyCafe.pyx":5964 + /* "PyCafe.pyx":6171 * * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5964, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_char(((unsigned char)(__pyx_v_pvd[__pyx_v_i]).getAsChar())); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5964, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6171, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5963 + /* "PyCafe.pyx":6170 * localList.append(pvd[i].getAsLong()) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -104149,19 +107827,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_LONG: - /* "PyCafe.pyx":5966 + /* "PyCafe.pyx":6173 * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) */ - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5966, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5966, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6173, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5965 + /* "PyCafe.pyx":6172 * elif dtcheck == CAFE_CHAR: * localList.append(< unsigned char > pvd[i].getAsChar()) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -104171,19 +107849,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_DOUBLE: - /* "PyCafe.pyx":5968 + /* "PyCafe.pyx":6175 * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: * localList.append(pvd[i].getAsDouble()) # <<<<<<<<<<<<<< * else: * localList.append(None) # no data */ - __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5968, __pyx_L1_error) + __pyx_t_6 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5968, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6175, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":5967 + /* "PyCafe.pyx":6174 * elif dtcheck == CAFE_LONG: * localList.append(pvd[i].getAsLong()) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -104193,18 +107871,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; default: - /* "PyCafe.pyx":5970 + /* "PyCafe.pyx":6177 * localList.append(pvd[i].getAsDouble()) * else: * localList.append(None) # no data # <<<<<<<<<<<<<< * else: * localListInner = [] */ - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, Py_None); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5970, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, Py_None); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6177, __pyx_L1_error) break; } - /* "PyCafe.pyx":5924 + /* "PyCafe.pyx":6131 * statusList.append(pvd[i].getStatus()) * * if pvd[i].getNelem() == 1: # <<<<<<<<<<<<<< @@ -104214,7 +107892,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L16; } - /* "PyCafe.pyx":5972 + /* "PyCafe.pyx":6179 * localList.append(None) # no data * else: * localListInner = [] # <<<<<<<<<<<<<< @@ -104222,12 +107900,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * for j in range(0, pvd[i].getNelem()): */ /*else*/ { - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5972, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_localListInner, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "PyCafe.pyx":5973 + /* "PyCafe.pyx":6180 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -104237,7 +107915,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC switch (__pyx_v_dtcheck) { case CAFE_STRING: - /* "PyCafe.pyx":5974 + /* "PyCafe.pyx":6181 * localListInner = [] * if dtcheck == CAFE_STRING: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104249,14 +107927,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":5976 + /* "PyCafe.pyx":6183 * for j in range(0, pvd[i].getNelem()): * * bytesVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * encoding = False * if '.EGU' in pvd[i].getPVName(): */ - __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5976, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyBytes_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __pyx_t_6; __Pyx_INCREF(__pyx_t_5); @@ -104264,7 +107942,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF_SET(__pyx_v_bytesVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5977 + /* "PyCafe.pyx":6184 * * bytesVal = pvd[i].getAsString(j) * encoding = False # <<<<<<<<<<<<<< @@ -104273,21 +107951,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":5978 + /* "PyCafe.pyx":6185 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< * try: * strVal = (bytesVal).decode('latin-1') */ - __pyx_t_5 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5978, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyStr_FromString((__pyx_v_pvd[__pyx_v_i]).getPVName()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 5978, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_EGU, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5979 + /* "PyCafe.pyx":6186 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -104303,14 +107981,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "PyCafe.pyx":5980 + /* "PyCafe.pyx":6187 * if '.EGU' in pvd[i].getPVName(): * try: * strVal = (bytesVal).decode('latin-1') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5980, __pyx_L49_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6187, __pyx_L49_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -104324,13 +108002,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC } __pyx_t_5 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_14, __pyx_kp_u_latin_1) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_latin_1); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5980, __pyx_L49_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6187, __pyx_L49_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5981 + /* "PyCafe.pyx":6188 * try: * strVal = (bytesVal).decode('latin-1') * encoding = True # <<<<<<<<<<<<<< @@ -104339,7 +108017,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5979 + /* "PyCafe.pyx":6186 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -104356,7 +108034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5982 + /* "PyCafe.pyx":6189 * strVal = (bytesVal).decode('latin-1') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -104371,7 +108049,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L51_except_error; __pyx_L51_except_error:; - /* "PyCafe.pyx":5979 + /* "PyCafe.pyx":6186 * encoding = False * if '.EGU' in pvd[i].getPVName(): * try: # <<<<<<<<<<<<<< @@ -104391,7 +108069,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L56_try_end:; } - /* "PyCafe.pyx":5978 + /* "PyCafe.pyx":6185 * bytesVal = pvd[i].getAsString(j) * encoding = False * if '.EGU' in pvd[i].getPVName(): # <<<<<<<<<<<<<< @@ -104400,7 +108078,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5984 + /* "PyCafe.pyx":6191 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104410,7 +108088,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5985 + /* "PyCafe.pyx":6192 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104426,14 +108104,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "PyCafe.pyx":5986 + /* "PyCafe.pyx":6193 * if not encoding: * try: * strVal = (bytesVal).decode('utf-8') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5986, __pyx_L58_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6193, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -104445,15 +108123,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_5 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_14, __pyx_kp_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_8_2); + __pyx_t_5 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_14, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_8); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5986, __pyx_L58_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6193, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5987 + /* "PyCafe.pyx":6194 * try: * strVal = (bytesVal).decode('utf-8') * encoding = True # <<<<<<<<<<<<<< @@ -104462,7 +108140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5985 + /* "PyCafe.pyx":6192 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104479,7 +108157,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5988 + /* "PyCafe.pyx":6195 * strVal = (bytesVal).decode('utf-8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -104494,7 +108172,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L60_except_error; __pyx_L60_except_error:; - /* "PyCafe.pyx":5985 + /* "PyCafe.pyx":6192 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104514,7 +108192,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L65_try_end:; } - /* "PyCafe.pyx":5984 + /* "PyCafe.pyx":6191 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104523,7 +108201,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5990 + /* "PyCafe.pyx":6197 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104533,7 +108211,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5991 + /* "PyCafe.pyx":6198 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104549,14 +108227,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "PyCafe.pyx":5992 + /* "PyCafe.pyx":6199 * if not encoding: * try: * strVal = (bytesVal).decode('utf-16') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 5992, __pyx_L67_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_bytesVal, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6199, __pyx_L67_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_14 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -104568,15 +108246,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_5 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_14, __pyx_kp_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_16_2); + __pyx_t_5 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_14, __pyx_kp_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_16); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5992, __pyx_L67_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6199, __pyx_L67_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5993 + /* "PyCafe.pyx":6200 * try: * strVal = (bytesVal).decode('utf-16') * encoding = True # <<<<<<<<<<<<<< @@ -104585,7 +108263,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":5991 + /* "PyCafe.pyx":6198 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104602,7 +108280,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5994 + /* "PyCafe.pyx":6201 * strVal = (bytesVal).decode('utf-16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -104617,7 +108295,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L69_except_error; __pyx_L69_except_error:; - /* "PyCafe.pyx":5991 + /* "PyCafe.pyx":6198 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -104637,7 +108315,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_L74_try_end:; } - /* "PyCafe.pyx":5990 + /* "PyCafe.pyx":6197 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104646,7 +108324,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5996 + /* "PyCafe.pyx":6203 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104656,19 +108334,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":5997 + /* "PyCafe.pyx":6204 * pass * if not encoding: * strVal = pvd[i].getAsString(j) # <<<<<<<<<<<<<< * * localListInner.append(strVal) #pvd[i].getAsString(j)) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5997, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_strVal, __pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":5996 + /* "PyCafe.pyx":6203 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -104677,18 +108355,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":5999 + /* "PyCafe.pyx":6206 * strVal = pvd[i].getAsString(j) * * localListInner.append(strVal) #pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): */ - if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 5999, __pyx_L1_error) } - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 5999, __pyx_L1_error) + if (unlikely(!__pyx_v_strVal)) { __Pyx_RaiseUnboundLocalError("strVal"); __PYX_ERR(3, 6206, __pyx_L1_error) } + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_v_strVal); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6206, __pyx_L1_error) } - /* "PyCafe.pyx":5973 + /* "PyCafe.pyx":6180 * else: * localListInner = [] * if dtcheck == CAFE_STRING: # <<<<<<<<<<<<<< @@ -104698,7 +108376,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_SHORT: - /* "PyCafe.pyx":6001 + /* "PyCafe.pyx":6208 * localListInner.append(strVal) #pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104710,20 +108388,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6002 + /* "PyCafe.pyx":6209 * elif dtcheck == CAFE_SHORT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6002, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6002, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6000 + /* "PyCafe.pyx":6207 * * localListInner.append(strVal) #pvd[i].getAsString(j)) * elif dtcheck == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -104733,7 +108411,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_FLOAT: - /* "PyCafe.pyx":6004 + /* "PyCafe.pyx":6211 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104745,20 +108423,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6005 + /* "PyCafe.pyx":6212 * elif dtcheck == CAFE_FLOAT: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_ENUM: * */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6005, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6005, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6003 + /* "PyCafe.pyx":6210 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -104768,7 +108446,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_ENUM: - /* "PyCafe.pyx":6008 + /* "PyCafe.pyx":6215 * elif dtcheck == CAFE_ENUM: * * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104780,7 +108458,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6010 + /* "PyCafe.pyx":6217 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -104790,19 +108468,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_1 = (__pyx_v_self->_c_cafe->isEnum(__pyx_v_self->hh.getHandleFromPVWithinGroup((__pyx_v_pvd[__pyx_v_i]).getPVName(), __pyx_v_ghandle)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6011 + /* "PyCafe.pyx":6218 * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): * localListInner.append(pvd[i].getAsString(j)) # <<<<<<<<<<<<<< * else: * localListInner.append(pvd[i].getAsLong(j)) */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6011, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string((__pyx_v_pvd[__pyx_v_i]).getAsString(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6011, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6010 + /* "PyCafe.pyx":6217 * for j in range(0, pvd[i].getNelem()): * # if enum, string taken as native * if self._c_cafe.isEnum(self.hh.getHandleFromPVWithinGroup(pvd[i].getPVName(), ghandle)): # <<<<<<<<<<<<<< @@ -104812,7 +108490,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC goto __pyx_L82; } - /* "PyCafe.pyx":6013 + /* "PyCafe.pyx":6220 * localListInner.append(pvd[i].getAsString(j)) * else: * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< @@ -104820,15 +108498,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * elif dtcheck == CAFE_CHAR: */ /*else*/ { - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6013, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6013, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_L82:; } - /* "PyCafe.pyx":6006 + /* "PyCafe.pyx":6213 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) * elif dtcheck == CAFE_ENUM: # <<<<<<<<<<<<<< @@ -104838,7 +108516,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_CHAR: - /* "PyCafe.pyx":6016 + /* "PyCafe.pyx":6223 * * elif dtcheck == CAFE_CHAR: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104850,20 +108528,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6018 + /* "PyCafe.pyx":6225 * for j in range(0, pvd[i].getNelem()): * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6018, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6018, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6015 + /* "PyCafe.pyx":6222 * localListInner.append(pvd[i].getAsLong(j)) * * elif dtcheck == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -104873,7 +108551,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_LONG: - /* "PyCafe.pyx":6020 + /* "PyCafe.pyx":6227 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104885,20 +108563,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6021 + /* "PyCafe.pyx":6228 * elif dtcheck == CAFE_LONG: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) # <<<<<<<<<<<<<< * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6021, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getAsLong(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6021, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6228, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6019 + /* "PyCafe.pyx":6226 * # pvd[i].getAsChar(j)) * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_LONG: # <<<<<<<<<<<<<< @@ -104908,7 +108586,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; case CAFE_DOUBLE: - /* "PyCafe.pyx":6023 + /* "PyCafe.pyx":6230 * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104920,20 +108598,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6024 + /* "PyCafe.pyx":6231 * elif dtcheck == CAFE_DOUBLE: * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsDouble(j)) # <<<<<<<<<<<<<< * else: * for j in range(0, pvd[i].getNelem()): */ - __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6024, __pyx_L1_error) + __pyx_t_5 = PyFloat_FromDouble((__pyx_v_pvd[__pyx_v_i]).getAsDouble(__pyx_v_j)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6024, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6022 + /* "PyCafe.pyx":6229 * for j in range(0, pvd[i].getNelem()): * localListInner.append(pvd[i].getAsLong(j)) * elif dtcheck == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -104943,7 +108621,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC break; default: - /* "PyCafe.pyx":6026 + /* "PyCafe.pyx":6233 * localListInner.append(pvd[i].getAsDouble(j)) * else: * for j in range(0, pvd[i].getNelem()): # <<<<<<<<<<<<<< @@ -104955,31 +108633,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC for (__pyx_t_17 = 0; __pyx_t_17 < __pyx_t_16; __pyx_t_17+=1) { __pyx_v_j = __pyx_t_17; - /* "PyCafe.pyx":6027 + /* "PyCafe.pyx":6234 * else: * for j in range(0, pvd[i].getNelem()): * localListInner.append(None) # no data # <<<<<<<<<<<<<< * localList.append(localListInner) * */ - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, Py_None); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6027, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localListInner, Py_None); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6234, __pyx_L1_error) } break; } - /* "PyCafe.pyx":6028 + /* "PyCafe.pyx":6235 * for j in range(0, pvd[i].getNelem()): * localListInner.append(None) # no data * localList.append(localListInner) # <<<<<<<<<<<<<< * * return localList, status, statusList */ - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6028, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_v_localListInner); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(3, 6235, __pyx_L1_error) } __pyx_L16:; } - /* "PyCafe.pyx":6030 + /* "PyCafe.pyx":6237 * localList.append(localListInner) * * return localList, status, statusList # <<<<<<<<<<<<<< @@ -104987,9 +108665,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6030, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6030, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_v_localList); __Pyx_GIVEREF(__pyx_v_localList); @@ -105004,7 +108682,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":5881 + /* "PyCafe.pyx":6088 * ################################################################################## * * def getGroupCache(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -105034,7 +108712,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_348getGroupCache(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":6038 +/* "PyCafe.pyx":6245 * ################################################################################## * * def getPVGroupStr(self, ghandleName): # <<<<<<<<<<<<<< @@ -105064,7 +108742,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_350getPVGroupStr(struct __pyx_obj_6PyC PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVGroupStr", 0); - /* "PyCafe.pyx":6039 + /* "PyCafe.pyx":6246 * * def getPVGroupStr(self, ghandleName): * return self.getPVGroup(ghandleName, dt='str') # <<<<<<<<<<<<<< @@ -105072,17 +108750,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_350getPVGroupStr(struct __pyx_obj_6PyC * def getPVGroupInt(self, ghandleName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6039, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6039, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_ghandleName); __Pyx_GIVEREF(__pyx_v_ghandleName); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_ghandleName); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6039, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 6039, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6039, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_str) < 0) __PYX_ERR(3, 6246, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -105091,7 +108769,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_350getPVGroupStr(struct __pyx_obj_6PyC __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6038 + /* "PyCafe.pyx":6245 * ################################################################################## * * def getPVGroupStr(self, ghandleName): # <<<<<<<<<<<<<< @@ -105115,7 +108793,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_350getPVGroupStr(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":6041 +/* "PyCafe.pyx":6248 * return self.getPVGroup(ghandleName, dt='str') * * def getPVGroupInt(self, ghandleName): # <<<<<<<<<<<<<< @@ -105145,7 +108823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_352getPVGroupInt(struct __pyx_obj_6PyC PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVGroupInt", 0); - /* "PyCafe.pyx":6042 + /* "PyCafe.pyx":6249 * * def getPVGroupInt(self, ghandleName): * return self.getPVGroup(ghandleName, dt='int') # <<<<<<<<<<<<<< @@ -105153,17 +108831,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_352getPVGroupInt(struct __pyx_obj_6PyC * def getPVGroupFloat(self, ghandleName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6042, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6042, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_ghandleName); __Pyx_GIVEREF(__pyx_v_ghandleName); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_ghandleName); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6042, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 6042, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6042, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_int) < 0) __PYX_ERR(3, 6249, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -105172,7 +108850,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_352getPVGroupInt(struct __pyx_obj_6PyC __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6041 + /* "PyCafe.pyx":6248 * return self.getPVGroup(ghandleName, dt='str') * * def getPVGroupInt(self, ghandleName): # <<<<<<<<<<<<<< @@ -105196,7 +108874,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_352getPVGroupInt(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":6044 +/* "PyCafe.pyx":6251 * return self.getPVGroup(ghandleName, dt='int') * * def getPVGroupFloat(self, ghandleName): # <<<<<<<<<<<<<< @@ -105226,7 +108904,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_354getPVGroupFloat(struct __pyx_obj_6P PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getPVGroupFloat", 0); - /* "PyCafe.pyx":6045 + /* "PyCafe.pyx":6252 * * def getPVGroupFloat(self, ghandleName): * return self.getPVGroup(ghandleName, dt='float') # <<<<<<<<<<<<<< @@ -105234,17 +108912,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_354getPVGroupFloat(struct __pyx_obj_6P * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6045, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getPVGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6045, __pyx_L1_error) + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_ghandleName); __Pyx_GIVEREF(__pyx_v_ghandleName); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_ghandleName); - __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6045, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 6045, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6045, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dt, __pyx_n_u_float) < 0) __PYX_ERR(3, 6252, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -105253,7 +108931,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_354getPVGroupFloat(struct __pyx_obj_6P __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6044 + /* "PyCafe.pyx":6251 * return self.getPVGroup(ghandleName, dt='int') * * def getPVGroupFloat(self, ghandleName): # <<<<<<<<<<<<<< @@ -105277,7 +108955,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_354getPVGroupFloat(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":6048 +/* "PyCafe.pyx":6255 * * ################################################################################## * def getPVGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -105321,7 +108999,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_357getPVGroup(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVGroup") < 0)) __PYX_ERR(3, 6048, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVGroup") < 0)) __PYX_ERR(3, 6255, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -105337,13 +109015,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_357getPVGroup(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getPVGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6048, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getPVGroup", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6255, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getPVGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 6048, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 6255, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_356getPVGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_dt); /* function exit code */ @@ -105383,7 +109061,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe int __pyx_t_14; __Pyx_RefNannySetupContext("getPVGroup", 0); - /* "PyCafe.pyx":6049 + /* "PyCafe.pyx":6256 * ################################################################################## * def getPVGroup(self, ghandleName, str dt='native'): * cdef str _METHOD = "getPVGroup(ghandleName, str dt='native')" # <<<<<<<<<<<<<< @@ -105393,7 +109071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_kp_u_getPVGroup_ghandleName_str_dt_na); __pyx_v__METHOD = __pyx_kp_u_getPVGroup_ghandleName_str_dt_na; - /* "PyCafe.pyx":6051 + /* "PyCafe.pyx":6258 * cdef str _METHOD = "getPVGroup(ghandleName, str dt='native')" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -105402,7 +109080,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":6052 + /* "PyCafe.pyx":6259 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -105423,17 +109101,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6053 + /* "PyCafe.pyx":6260 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6053, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6260, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":6052 + /* "PyCafe.pyx":6259 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -105443,7 +109121,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6054 + /* "PyCafe.pyx":6261 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -105454,21 +109132,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6055 + /* "PyCafe.pyx":6262 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * # elif isinstance(ghandleName, (pvgroup)) == 1: * # print ("We have a PV Group ", type(ghandleName) ) */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 6055, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6055, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 6262, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6055, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6262, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":6054 + /* "PyCafe.pyx":6261 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -105478,7 +109156,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6059 + /* "PyCafe.pyx":6266 * # print ("We have a PV Group ", type(ghandleName) ) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -105486,18 +109164,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6059, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6059, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6059, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6059, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6059, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6266, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6266, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6266, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6061 + /* "PyCafe.pyx":6268 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -105505,11 +109183,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6061, __pyx_L1_error) + __PYX_ERR(3, 6268, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6067 + /* "PyCafe.pyx":6274 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -105524,7 +109202,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6068 + /* "PyCafe.pyx":6275 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -105534,7 +109212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":6067 + /* "PyCafe.pyx":6274 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -105553,7 +109231,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe } } - /* "PyCafe.pyx":6070 + /* "PyCafe.pyx":6277 * self._c_cafe.groupAttach(ghandle, pvg) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -105562,7 +109240,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":6081 + /* "PyCafe.pyx":6288 * ''' * * with nogil: # <<<<<<<<<<<<<< @@ -105577,7 +109255,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6082 + /* "PyCafe.pyx":6289 * * with nogil: * status = self._c_cafe.groupGet(ghandle, pvg) # <<<<<<<<<<<<<< @@ -105587,7 +109265,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_v_status = __pyx_v_self->_c_cafe->groupGet(__pyx_v_ghandle, __pyx_v_pvg); } - /* "PyCafe.pyx":6081 + /* "PyCafe.pyx":6288 * ''' * * with nogil: # <<<<<<<<<<<<<< @@ -105606,7 +109284,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe } } - /* "PyCafe.pyx":6084 + /* "PyCafe.pyx":6291 * status = self._c_cafe.groupGet(ghandle, pvg) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -105616,7 +109294,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6085 + /* "PyCafe.pyx":6292 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -105626,24 +109304,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6086 + /* "PyCafe.pyx":6293 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in PyCafe def getPVGroup. Status = %d" % status) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * # do not raise exception */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6086, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_Error_in_PyCafe_def_getPVGroup_S, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6086, __pyx_L1_error) + __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_Error_in_PyCafe_def_getPVGroup_S, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6086, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6087 + /* "PyCafe.pyx":6294 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in PyCafe def getPVGroup. Status = %d" % status) * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -105652,7 +109330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6085 + /* "PyCafe.pyx":6292 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -105661,7 +109339,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6084 + /* "PyCafe.pyx":6291 * status = self._c_cafe.groupGet(ghandle, pvg) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -105670,7 +109348,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6091 + /* "PyCafe.pyx":6298 * #raise Exception("EXCEPTION RAISED in PyCafe def getPVGroup. Status = %d" %status) * * if status == ECA_TIMEOUT: # <<<<<<<<<<<<<< @@ -105680,40 +109358,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_status == ECA_TIMEOUT) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6092 + /* "PyCafe.pyx":6299 * * if status == ECA_TIMEOUT: * print("======================================================") # <<<<<<<<<<<<<< * print("TIMEOUT in getGroup; swithing to getCompoundPVGroup") * print("======================================================") */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6092, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6093 + /* "PyCafe.pyx":6300 * if status == ECA_TIMEOUT: * print("======================================================") * print("TIMEOUT in getGroup; swithing to getCompoundPVGroup") # <<<<<<<<<<<<<< * print("======================================================") * return self.getCompoundPVGroup(ghandle, dt) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__109, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6093, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__104, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6094 + /* "PyCafe.pyx":6301 * print("======================================================") * print("TIMEOUT in getGroup; swithing to getCompoundPVGroup") * print("======================================================") # <<<<<<<<<<<<<< * return self.getCompoundPVGroup(ghandle, dt) * */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6094, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6095 + /* "PyCafe.pyx":6302 * print("TIMEOUT in getGroup; swithing to getCompoundPVGroup") * print("======================================================") * return self.getCompoundPVGroup(ghandle, dt) # <<<<<<<<<<<<<< @@ -105721,9 +109399,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe * pvd = pvg.getPVData() */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundPVGroup); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getCompoundPVGroup); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; @@ -105740,7 +109418,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_v_dt}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -105749,14 +109427,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_t_7, __pyx_v_dt}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -105767,7 +109445,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __Pyx_GIVEREF(__pyx_v_dt); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_dt); __pyx_t_7 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6095, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } @@ -105776,7 +109454,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6091 + /* "PyCafe.pyx":6298 * #raise Exception("EXCEPTION RAISED in PyCafe def getPVGroup. Status = %d" %status) * * if status == ECA_TIMEOUT: # <<<<<<<<<<<<<< @@ -105785,7 +109463,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6097 + /* "PyCafe.pyx":6304 * return self.getCompoundPVGroup(ghandle, dt) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -105794,19 +109472,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":6099 + /* "PyCafe.pyx":6306 * pvd = pvg.getPVData() * * localList = [] # <<<<<<<<<<<<<< * * for i in range(0, pvg.getNPV()): */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6099, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_localList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6101 + /* "PyCafe.pyx":6308 * localList = [] * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -105818,7 +109496,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_v_i = __pyx_t_12; - /* "PyCafe.pyx":6104 + /* "PyCafe.pyx":6311 * #print(pvd[i].getAsString(0), " " , pvd[i].getStatus()) * #print(pvd[i].getEpicsTimeStampAsUInt32().secPastEpoch, " ", pvd[i].getEpicsTimeStampAsUInt32().nsec) * localList.append(PVDataHolderToStruct(pvd[i], dt)) # <<<<<<<<<<<<<< @@ -105827,25 +109505,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_t_13.__pyx_n = 1; __pyx_t_13.dt = __pyx_v_dt; - __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_13)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6104, __pyx_L1_error) + __pyx_t_6 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_13)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6104, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_6); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(3, 6311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } - /* "PyCafe.pyx":6107 + /* "PyCafe.pyx":6314 * cpdef pvgroup pg * * pg = pvgroup() # <<<<<<<<<<<<<< * * pg.pvdata = localList */ - __pyx_t_6 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6107, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pg = ((struct __pyx_obj_6PyCafe_pvgroup *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6109 + /* "PyCafe.pyx":6316 * pg = pvgroup() * * pg.pvdata = localList # <<<<<<<<<<<<<< @@ -105858,7 +109536,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __Pyx_DECREF(__pyx_v_pg->pvdata); __pyx_v_pg->pvdata = __pyx_v_localList; - /* "PyCafe.pyx":6111 + /* "PyCafe.pyx":6318 * pg.pvdata = localList * * pg.npv = pvg.getNPV() # <<<<<<<<<<<<<< @@ -105867,7 +109545,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pg->npv = __pyx_v_pvg.getNPV(); - /* "PyCafe.pyx":6112 + /* "PyCafe.pyx":6319 * * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() # <<<<<<<<<<<<<< @@ -105876,7 +109554,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pg->name = __pyx_v_pvg.getNameAsString(); - /* "PyCafe.pyx":6113 + /* "PyCafe.pyx":6320 * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() * pg.groupStatus = pvg.getStatusGroup() # <<<<<<<<<<<<<< @@ -105885,7 +109563,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pg->groupStatus = __pyx_v_pvg.getStatusGroup(); - /* "PyCafe.pyx":6114 + /* "PyCafe.pyx":6321 * pg.name = pvg.getNameAsString() * pg.groupStatus = pvg.getStatusGroup() * pg.groupHandle = pvg.getGroupHandle() # <<<<<<<<<<<<<< @@ -105894,7 +109572,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe */ __pyx_v_pg->groupHandle = __pyx_v_pvg.getGroupHandle(); - /* "PyCafe.pyx":6118 + /* "PyCafe.pyx":6325 * # pg.showMax(1) * * return pg # localList, status # <<<<<<<<<<<<<< @@ -105906,7 +109584,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe __pyx_r = ((PyObject *)__pyx_v_pg); goto __pyx_L0; - /* "PyCafe.pyx":6048 + /* "PyCafe.pyx":6255 * * ################################################################################## * def getPVGroup(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -105935,7 +109613,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_356getPVGroup(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":6125 +/* "PyCafe.pyx":6332 * ################################################################################## * * def getPVGroupCache(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -105979,7 +109657,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_359getPVGroupCache(PyObject *__pyx_v_s } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVGroupCache") < 0)) __PYX_ERR(3, 6125, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getPVGroupCache") < 0)) __PYX_ERR(3, 6332, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -105995,13 +109673,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_359getPVGroupCache(PyObject *__pyx_v_s } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getPVGroupCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6125, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getPVGroupCache", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6332, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.getPVGroupCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 6125, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dt), (&PyUnicode_Type), 1, "dt", 1))) __PYX_ERR(3, 6332, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_dt); /* function exit code */ @@ -106038,7 +109716,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P int __pyx_t_11; __Pyx_RefNannySetupContext("getPVGroupCache", 0); - /* "PyCafe.pyx":6126 + /* "PyCafe.pyx":6333 * * def getPVGroupCache(self, ghandleName, str dt='native'): * cdef str _METHOD = "getPVGroupCache" # <<<<<<<<<<<<<< @@ -106048,7 +109726,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __Pyx_INCREF(__pyx_n_u_getPVGroupCache); __pyx_v__METHOD = __pyx_n_u_getPVGroupCache; - /* "PyCafe.pyx":6128 + /* "PyCafe.pyx":6335 * cdef str _METHOD = "getPVGroupCache" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -106057,7 +109735,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":6129 + /* "PyCafe.pyx":6336 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -106078,17 +109756,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6130 + /* "PyCafe.pyx":6337 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6130, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6337, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":6129 + /* "PyCafe.pyx":6336 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -106098,7 +109776,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P goto __pyx_L3; } - /* "PyCafe.pyx":6131 + /* "PyCafe.pyx":6338 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -106109,21 +109787,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6132 + /* "PyCafe.pyx":6339 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * # elif isinstance(ghandleName, (pvgroup)) == 1: * # print ("We have a PV Group ", type(ghandleName) ) */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 6132, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6132, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 6339, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6132, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":6131 + /* "PyCafe.pyx":6338 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -106133,7 +109811,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P goto __pyx_L3; } - /* "PyCafe.pyx":6136 + /* "PyCafe.pyx":6343 * # print ("We have a PV Group ", type(ghandleName) ) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -106141,18 +109819,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6136, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6136, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6136, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6136, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6136, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6343, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6138 + /* "PyCafe.pyx":6345 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -106160,11 +109838,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6138, __pyx_L1_error) + __PYX_ERR(3, 6345, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6144 + /* "PyCafe.pyx":6351 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -106179,7 +109857,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":6145 + /* "PyCafe.pyx":6352 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -106189,7 +109867,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":6144 + /* "PyCafe.pyx":6351 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -106208,29 +109886,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P } } - /* "PyCafe.pyx":6146 + /* "PyCafe.pyx":6353 * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) * print("==============" ) # <<<<<<<<<<<<<< * print(_METHOD) * pvg.showMax(1) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6146, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6147 + /* "PyCafe.pyx":6354 * self._c_cafe.groupAttach(ghandle, pvg) * print("==============" ) * print(_METHOD) # <<<<<<<<<<<<<< * pvg.showMax(1) * */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v__METHOD); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6147, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_v__METHOD); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6148 + /* "PyCafe.pyx":6355 * print("==============" ) * print(_METHOD) * pvg.showMax(1) # <<<<<<<<<<<<<< @@ -106239,7 +109917,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pvg.showMax(1); - /* "PyCafe.pyx":6150 + /* "PyCafe.pyx":6357 * pvg.showMax(1) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -106248,7 +109926,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":6152 + /* "PyCafe.pyx":6359 * pvd = pvg.getPVData() * * status = self._c_cafe.groupGetCache(ghandle, pvg) # <<<<<<<<<<<<<< @@ -106257,7 +109935,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_status = __pyx_v_self->_c_cafe->groupGetCache(__pyx_v_ghandle, __pyx_v_pvg); - /* "PyCafe.pyx":6153 + /* "PyCafe.pyx":6360 * * status = self._c_cafe.groupGetCache(ghandle, pvg) * pvg.showMax(1) # <<<<<<<<<<<<<< @@ -106266,29 +109944,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pvg.showMax(1); - /* "PyCafe.pyx":6154 + /* "PyCafe.pyx":6361 * status = self._c_cafe.groupGetCache(ghandle, pvg) * pvg.showMax(1) * print("==============" ) # <<<<<<<<<<<<<< * print(status, pvg.getStatusGroup()) * print("==============" ) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6154, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6155 + /* "PyCafe.pyx":6362 * pvg.showMax(1) * print("==============" ) * print(status, pvg.getStatusGroup()) # <<<<<<<<<<<<<< * print("==============" ) * if status != ICAFE_NORMAL: */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6155, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_pvg.getStatusGroup()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6155, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_pvg.getStatusGroup()); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6155, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); @@ -106296,23 +109974,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5); __pyx_t_6 = 0; __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6155, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6156 + /* "PyCafe.pyx":6363 * print("==============" ) * print(status, pvg.getStatusGroup()) * print("==============" ) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6156, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6157 + /* "PyCafe.pyx":6364 * print(status, pvg.getStatusGroup()) * print("==============" ) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -106322,7 +110000,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6158 + /* "PyCafe.pyx":6365 * print("==============" ) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -106332,24 +110010,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6159 + /* "PyCafe.pyx":6366 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in PyCafe def getPVGroupCache. Status = %d" % status) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * # do not raise exception */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6159, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_Error_in_PyCafe_def_getPVGroupCa, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6159, __pyx_L1_error) + __pyx_t_7 = PyUnicode_Format(__pyx_kp_u_Error_in_PyCafe_def_getPVGroupCa, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6159, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_print, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6160 + /* "PyCafe.pyx":6367 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in PyCafe def getPVGroupCache. Status = %d" % status) * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -106358,7 +110036,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6158 + /* "PyCafe.pyx":6365 * print("==============" ) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -106367,7 +110045,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":6157 + /* "PyCafe.pyx":6364 * print(status, pvg.getStatusGroup()) * print("==============" ) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -106376,7 +110054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":6164 + /* "PyCafe.pyx":6371 * #raise Exception("EXCEPTION RAISED in PyCafe def getPVGroup. Status = %d" %status) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -106385,19 +110063,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":6166 + /* "PyCafe.pyx":6373 * pvd = pvg.getPVData() * * localList = [] # <<<<<<<<<<<<<< * * for i in range(0, pvg.getNPV()): */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6166, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_localList = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6168 + /* "PyCafe.pyx":6375 * localList = [] * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -106409,7 +110087,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":6171 + /* "PyCafe.pyx":6378 * #print(pvd[i].getAsString(0), " " , pvd[i].getStatus()) * #print(pvd[i].getEpicsTimeStampAsUInt32().secPastEpoch, " ", pvd[i].getEpicsTimeStampAsUInt32().nsec) * localList.append(PVDataHolderToStruct(pvd[i], dt)) # <<<<<<<<<<<<<< @@ -106418,25 +110096,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_t_10.__pyx_n = 1; __pyx_t_10.dt = __pyx_v_dt; - __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_10)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6171, __pyx_L1_error) + __pyx_t_5 = ((PyObject *)__pyx_f_6PyCafe_PVDataHolderToStruct((__pyx_v_pvd[__pyx_v_i]), &__pyx_t_10)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_5); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 6171, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_localList, __pyx_t_5); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 6378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - /* "PyCafe.pyx":6174 + /* "PyCafe.pyx":6381 * cpdef pvgroup pg * * pg = pvgroup() # <<<<<<<<<<<<<< * * pg.pvdata = localList */ - __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6174, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6PyCafe_pvgroup)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pg = ((struct __pyx_obj_6PyCafe_pvgroup *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6176 + /* "PyCafe.pyx":6383 * pg = pvgroup() * * pg.pvdata = localList # <<<<<<<<<<<<<< @@ -106449,7 +110127,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __Pyx_DECREF(__pyx_v_pg->pvdata); __pyx_v_pg->pvdata = __pyx_v_localList; - /* "PyCafe.pyx":6178 + /* "PyCafe.pyx":6385 * pg.pvdata = localList * * pg.npv = pvg.getNPV() # <<<<<<<<<<<<<< @@ -106458,7 +110136,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pg->npv = __pyx_v_pvg.getNPV(); - /* "PyCafe.pyx":6179 + /* "PyCafe.pyx":6386 * * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() # <<<<<<<<<<<<<< @@ -106467,7 +110145,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pg->name = __pyx_v_pvg.getNameAsString(); - /* "PyCafe.pyx":6180 + /* "PyCafe.pyx":6387 * pg.npv = pvg.getNPV() * pg.name = pvg.getNameAsString() * pg.groupStatus = pvg.getStatusGroup() # <<<<<<<<<<<<<< @@ -106476,7 +110154,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pg->groupStatus = __pyx_v_pvg.getStatusGroup(); - /* "PyCafe.pyx":6181 + /* "PyCafe.pyx":6388 * pg.name = pvg.getNameAsString() * pg.groupStatus = pvg.getStatusGroup() * pg.groupHandle = pvg.getGroupHandle() # <<<<<<<<<<<<<< @@ -106485,7 +110163,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P */ __pyx_v_pg->groupHandle = __pyx_v_pvg.getGroupHandle(); - /* "PyCafe.pyx":6183 + /* "PyCafe.pyx":6390 * pg.groupHandle = pvg.getGroupHandle() * * return pg # <<<<<<<<<<<<<< @@ -106497,7 +110175,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P __pyx_r = ((PyObject *)__pyx_v_pg); goto __pyx_L0; - /* "PyCafe.pyx":6125 + /* "PyCafe.pyx":6332 * ################################################################################## * * def getPVGroupCache(self, ghandleName, str dt='native'): # <<<<<<<<<<<<<< @@ -106524,7 +110202,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_358getPVGroupCache(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":6190 +/* "PyCafe.pyx":6397 * ################################################################################## * * def PVGroupValuesToList(self, pvgroup pg): # <<<<<<<<<<<<<< @@ -106538,7 +110216,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_361PVGroupValuesToList(PyObject *__pyx PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("PVGroupValuesToList (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pg), __pyx_ptype_6PyCafe_pvgroup, 1, "pg", 0))) __PYX_ERR(3, 6190, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pg), __pyx_ptype_6PyCafe_pvgroup, 1, "pg", 0))) __PYX_ERR(3, 6397, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((struct __pyx_obj_6PyCafe_pvgroup *)__pyx_v_pg)); /* function exit code */ @@ -106569,19 +110247,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s Py_ssize_t __pyx_t_10; __Pyx_RefNannySetupContext("PVGroupValuesToList", 0); - /* "PyCafe.pyx":6191 + /* "PyCafe.pyx":6398 * * def PVGroupValuesToList(self, pvgroup pg): * glist = [] # <<<<<<<<<<<<<< * for i in range(0, pg.npv): * if len(pg.pvdata[i].value) == 1: */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6191, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_glist = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":6192 + /* "PyCafe.pyx":6399 * def PVGroupValuesToList(self, pvgroup pg): * glist = [] * for i in range(0, pg.npv): # <<<<<<<<<<<<<< @@ -106593,7 +110271,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "PyCafe.pyx":6193 + /* "PyCafe.pyx":6400 * glist = [] * for i in range(0, pg.npv): * if len(pg.pvdata[i].value) == 1: # <<<<<<<<<<<<<< @@ -106602,19 +110280,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s */ if (unlikely(__pyx_v_pg->pvdata == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6193, __pyx_L1_error) + __PYX_ERR(3, 6400, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6193, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6193, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6193, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_7 = ((__pyx_t_6 == 1) != 0); if (__pyx_t_7) { - /* "PyCafe.pyx":6194 + /* "PyCafe.pyx":6401 * for i in range(0, pg.npv): * if len(pg.pvdata[i].value) == 1: * glist.append(pg.pvdata[i].value[0]) # <<<<<<<<<<<<<< @@ -106623,20 +110301,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s */ if (unlikely(__pyx_v_pg->pvdata == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6194, __pyx_L1_error) + __PYX_ERR(3, 6401, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6194, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_value_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6194, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_value_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6194, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_glist, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6194, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_glist, __pyx_t_5); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6193 + /* "PyCafe.pyx":6400 * glist = [] * for i in range(0, pg.npv): * if len(pg.pvdata[i].value) == 1: # <<<<<<<<<<<<<< @@ -106646,7 +110324,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s goto __pyx_L5; } - /* "PyCafe.pyx":6196 + /* "PyCafe.pyx":6403 * glist.append(pg.pvdata[i].value[0]) * else: * iL = [] # <<<<<<<<<<<<<< @@ -106654,12 +110332,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s * iL.append(pg.pvdata[i].value[j]) */ /*else*/ { - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6196, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_iL, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":6197 + /* "PyCafe.pyx":6404 * else: * iL = [] * for j in range(0, len(pg.pvdata[i].value)): # <<<<<<<<<<<<<< @@ -106668,20 +110346,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s */ if (unlikely(__pyx_v_pg->pvdata == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6197, __pyx_L1_error) + __PYX_ERR(3, 6404, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6197, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_value_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6197, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_value_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6197, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6404, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_9 = __pyx_t_6; for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { __pyx_v_j = __pyx_t_10; - /* "PyCafe.pyx":6198 + /* "PyCafe.pyx":6405 * iL = [] * for j in range(0, len(pg.pvdata[i].value)): * iL.append(pg.pvdata[i].value[j]) # <<<<<<<<<<<<<< @@ -106690,33 +110368,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s */ if (unlikely(__pyx_v_pg->pvdata == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6198, __pyx_L1_error) + __PYX_ERR(3, 6405, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6198, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_pg->pvdata, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6198, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_j, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6198, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_j, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_iL, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6198, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_iL, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6405, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "PyCafe.pyx":6199 + /* "PyCafe.pyx":6406 * for j in range(0, len(pg.pvdata[i].value)): * iL.append(pg.pvdata[i].value[j]) * glist.append(iL) # <<<<<<<<<<<<<< * return glist * ################################################################################## */ - __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_glist, __pyx_v_iL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6199, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_glist, __pyx_v_iL); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 6406, __pyx_L1_error) } __pyx_L5:; } - /* "PyCafe.pyx":6200 + /* "PyCafe.pyx":6407 * iL.append(pg.pvdata[i].value[j]) * glist.append(iL) * return glist # <<<<<<<<<<<<<< @@ -106728,7 +110406,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s __pyx_r = __pyx_v_glist; goto __pyx_L0; - /* "PyCafe.pyx":6190 + /* "PyCafe.pyx":6397 * ################################################################################## * * def PVGroupValuesToList(self, pvgroup pg): # <<<<<<<<<<<<<< @@ -106752,7 +110430,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_360PVGroupValuesToList(CYTHON_UNUSED s return __pyx_r; } -/* "PyCafe.pyx":6205 +/* "PyCafe.pyx":6412 * ################################################################################## * * def groupMemberList(self, str gname): # <<<<<<<<<<<<<< @@ -106766,7 +110444,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_363groupMemberList(PyObject *__pyx_v_s PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("groupMemberList (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gname), (&PyUnicode_Type), 1, "gname", 1))) __PYX_ERR(3, 6205, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gname), (&PyUnicode_Type), 1, "gname", 1))) __PYX_ERR(3, 6412, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_362groupMemberList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), ((PyObject*)__pyx_v_gname)); /* function exit code */ @@ -106789,7 +110467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("groupMemberList", 0); - /* "PyCafe.pyx":6206 + /* "PyCafe.pyx":6413 * * def groupMemberList(self, str gname): * cdef str _METHOD = "groupMemberList(self, str gname)" # <<<<<<<<<<<<<< @@ -106799,17 +110477,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P __Pyx_INCREF(__pyx_kp_u_groupMemberList_self_str_gname); __pyx_v__METHOD = __pyx_kp_u_groupMemberList_self_str_gname; - /* "PyCafe.pyx":6208 + /* "PyCafe.pyx":6415 * cdef str _METHOD = "groupMemberList(self, str gname)" * cdef vector[string] pvlist * status = self._c_cafe.groupMemberList(gname, pvlist) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_gname); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 6208, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_gname); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(3, 6415, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->groupMemberList(__pyx_t_1, __pyx_v_pvlist); - /* "PyCafe.pyx":6209 + /* "PyCafe.pyx":6416 * cdef vector[string] pvlist * status = self._c_cafe.groupMemberList(gname, pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -106819,7 +110497,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6210 + /* "PyCafe.pyx":6417 * status = self._c_cafe.groupMemberList(gname, pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -106829,7 +110507,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6211 + /* "PyCafe.pyx":6418 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -106838,7 +110516,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6210 + /* "PyCafe.pyx":6417 * status = self._c_cafe.groupMemberList(gname, pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -106847,7 +110525,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":6209 + /* "PyCafe.pyx":6416 * cdef vector[string] pvlist * status = self._c_cafe.groupMemberList(gname, pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -106856,7 +110534,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":6213 + /* "PyCafe.pyx":6420 * self._c_cafe.printStatusMessage(status) * * return pvlist # <<<<<<<<<<<<<< @@ -106864,13 +110542,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvlist); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6213, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_vector_to_py_std_3a__3a_string(__pyx_v_pvlist); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6205 + /* "PyCafe.pyx":6412 * ################################################################################## * * def groupMemberList(self, str gname): # <<<<<<<<<<<<<< @@ -106892,7 +110570,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_362groupMemberList(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":6217 +/* "PyCafe.pyx":6424 * ################################################################################## * * def grouping(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -106931,11 +110609,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_365grouping(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pvlist)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("grouping", 1, 2, 2, 1); __PYX_ERR(3, 6217, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("grouping", 1, 2, 2, 1); __PYX_ERR(3, 6424, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "grouping") < 0)) __PYX_ERR(3, 6217, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "grouping") < 0)) __PYX_ERR(3, 6424, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -106943,18 +110621,18 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_365grouping(PyObject *__pyx_v_self, Py values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6217, __pyx_L3_error) + __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6424, __pyx_L3_error) __pyx_v__pvlist = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("grouping", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6217, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("grouping", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6424, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.grouping", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6217, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6424, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_364grouping(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_gname, __pyx_v__pvlist); /* function exit code */ @@ -106995,7 +110673,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C Py_ssize_t __pyx_t_15; __Pyx_RefNannySetupContext("grouping", 0); - /* "PyCafe.pyx":6218 + /* "PyCafe.pyx":6425 * * def grouping(self, char * gname, list _pvlist): * cdef str _METHOD = "grouping(char * gname, list _pvlist)" # <<<<<<<<<<<<<< @@ -107005,17 +110683,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_kp_u_grouping_char_gname_list__pvlist); __pyx_v__METHOD = __pyx_kp_u_grouping_char_gname_list__pvlist; - /* "PyCafe.pyx":6220 + /* "PyCafe.pyx":6427 * cdef str _METHOD = "grouping(char * gname, list _pvlist)" * * cdef int status = self._c_cafe.groupDefine(gname, _pvlist) # <<<<<<<<<<<<<< * * if status != ICAFE_NORMAL: */ - __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6220, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6427, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->groupDefine(__pyx_v_gname, __pyx_t_1); - /* "PyCafe.pyx":6222 + /* "PyCafe.pyx":6429 * cdef int status = self._c_cafe.groupDefine(gname, _pvlist) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107025,7 +110703,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6223 + /* "PyCafe.pyx":6430 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -107035,7 +110713,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6224 + /* "PyCafe.pyx":6431 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -107044,7 +110722,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6223 + /* "PyCafe.pyx":6430 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -107053,7 +110731,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6222 + /* "PyCafe.pyx":6429 * cdef int status = self._c_cafe.groupDefine(gname, _pvlist) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107062,7 +110740,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6226 + /* "PyCafe.pyx":6433 * self._c_cafe.printStatusMessage(status) * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -107071,7 +110749,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":6227 + /* "PyCafe.pyx":6434 * * cdef unsigned int ghandle = 0 * cdef char * _gname = gname # <<<<<<<<<<<<<< @@ -107080,7 +110758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ __pyx_v__gname = __pyx_v_gname; - /* "PyCafe.pyx":6229 + /* "PyCafe.pyx":6436 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -107096,7 +110774,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { - /* "PyCafe.pyx":6231 + /* "PyCafe.pyx":6438 * try: * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -107111,7 +110789,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":6232 + /* "PyCafe.pyx":6439 * IF PY_EXT_C: * with nogil: * status = self._c_cafe.groupOpen(_gname, ghandle) # <<<<<<<<<<<<<< @@ -107128,12 +110806,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif - __PYX_ERR(3, 6232, __pyx_L12_error) + __PYX_ERR(3, 6439, __pyx_L12_error) } __pyx_v_status = __pyx_t_6; } - /* "PyCafe.pyx":6231 + /* "PyCafe.pyx":6438 * try: * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -107159,7 +110837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":6229 + /* "PyCafe.pyx":6436 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -107173,7 +110851,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C goto __pyx_L10_try_end; __pyx_L5_error:; - /* "PyCafe.pyx":6237 + /* "PyCafe.pyx":6444 * #with nogil: * status = self._c_cafe.groupOpen(_gname, ghandle) * except: # <<<<<<<<<<<<<< @@ -107182,81 +110860,81 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ /*except:*/ { __Pyx_AddTraceback("PyCafe.CyCafe.grouping", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(3, 6237, __pyx_L7_except_error) + if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(3, 6444, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":6239 + /* "PyCafe.pyx":6446 * except: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=ghandle, # <<<<<<<<<<<<<< * _pv_name=_gname, * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), */ - __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6239, __pyx_L7_except_error) + __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_10); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_11) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_11) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6240 + /* "PyCafe.pyx":6447 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), * _error_info=self.cs.info(ECA_ALLOCMEM)) */ - __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6240, __pyx_L7_except_error) + __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6447, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_11) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_11) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6241 + /* "PyCafe.pyx":6448 * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ECA_ALLOCMEM)) * raise _cafeException */ - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(ECA_ALLOCMEM); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6241, __pyx_L7_except_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(ECA_ALLOCMEM); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6448, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_11) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_11) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6241, __pyx_L7_except_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6448, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_11) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_11) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6242 + /* "PyCafe.pyx":6449 * _pv_name=_gname, * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), * _error_info=self.cs.info(ECA_ALLOCMEM)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6242, __pyx_L7_except_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6449, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_11) < 0) __PYX_ERR(3, 6239, __pyx_L7_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_11) < 0) __PYX_ERR(3, 6446, __pyx_L7_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6238 + /* "PyCafe.pyx":6445 * status = self._c_cafe.groupOpen(_gname, ghandle) * except: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, */ - __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6238, __pyx_L7_except_error) + __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6445, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6243 + /* "PyCafe.pyx":6450 * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), * _error_info=self.cs.info(ECA_ALLOCMEM)) * raise _cafeException # <<<<<<<<<<<<<< @@ -107264,7 +110942,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C * if status != ICAFE_NORMAL: */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6243, __pyx_L7_except_error) + __PYX_ERR(3, 6450, __pyx_L7_except_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -107272,7 +110950,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C } __pyx_L7_except_error:; - /* "PyCafe.pyx":6229 + /* "PyCafe.pyx":6436 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -107292,7 +110970,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_L10_try_end:; } - /* "PyCafe.pyx":6245 + /* "PyCafe.pyx":6452 * raise _cafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107302,76 +110980,76 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6247 + /* "PyCafe.pyx":6454 * if status != ICAFE_NORMAL: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=ghandle, # <<<<<<<<<<<<<< * _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6247, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_handle, __pyx_t_8) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_handle, __pyx_t_8) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6248 + /* "PyCafe.pyx":6455 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6248, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_pv_name, __pyx_t_8) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6249 + /* "PyCafe.pyx":6456 * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6249, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_code, __pyx_t_8) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6249, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_text, __pyx_t_8) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6250 + /* "PyCafe.pyx":6457 * _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6250, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 6247, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_t_8) < 0) __PYX_ERR(3, 6454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6246 + /* "PyCafe.pyx":6453 * * if status != ICAFE_NORMAL: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=ghandle, * _pv_name=_gname, */ - __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6246, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6251 + /* "PyCafe.pyx":6458 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -107379,9 +111057,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C * # cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6251, __pyx_L1_error) + __PYX_ERR(3, 6458, __pyx_L1_error) - /* "PyCafe.pyx":6245 + /* "PyCafe.pyx":6452 * raise _cafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107390,7 +111068,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6260 + /* "PyCafe.pyx":6467 * list statusList * * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() # <<<<<<<<<<<<<< @@ -107399,7 +111077,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ __pyx_v_wtfsb = __pyx_v_self->_c_cafe->channelOpenGroupPolicy.getWhenToFlushSendBuffer(); - /* "PyCafe.pyx":6262 + /* "PyCafe.pyx":6469 * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() * * if wtfsb == FLUSH_NOW: # <<<<<<<<<<<<<< @@ -107409,16 +111087,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_wtfsb == FLUSH_NOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6264 + /* "PyCafe.pyx":6471 * if wtfsb == FLUSH_NOW: * * localList, status, statusList = self.getGroup(ghandle) # <<<<<<<<<<<<<< * * if status != ICAFE_NORMAL: */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getGroup); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) { @@ -107433,7 +111111,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_8 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_11, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_7); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6264, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) { @@ -107442,7 +111120,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C if (unlikely(size != 3)) { if (size > 3) __Pyx_RaiseTooManyValuesError(3); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(3, 6264, __pyx_L1_error) + __PYX_ERR(3, 6471, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -107458,17 +111136,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(__pyx_t_11); #else - __pyx_t_9 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_9 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_11 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_11 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); #endif __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else { Py_ssize_t index = -1; - __pyx_t_10 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6264, __pyx_L1_error) + __pyx_t_10 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_12 = Py_TYPE(__pyx_t_10)->tp_iternext; @@ -107478,7 +111156,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_GOTREF(__pyx_t_7); index = 2; __pyx_t_11 = __pyx_t_12(__pyx_t_10); if (unlikely(!__pyx_t_11)) goto __pyx_L18_unpacking_failed; __Pyx_GOTREF(__pyx_t_11); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_10), 3) < 0) __PYX_ERR(3, 6264, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_10), 3) < 0) __PYX_ERR(3, 6471, __pyx_L1_error) __pyx_t_12 = NULL; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L19_unpacking_done; @@ -107486,20 +111164,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_12 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(3, 6264, __pyx_L1_error) + __PYX_ERR(3, 6471, __pyx_L1_error) __pyx_L19_unpacking_done:; } - if (!(likely(PyList_CheckExact(__pyx_t_9))||((__pyx_t_9) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_9)->tp_name), 0))) __PYX_ERR(3, 6264, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6264, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_9))||((__pyx_t_9) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_9)->tp_name), 0))) __PYX_ERR(3, 6471, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (!(likely(PyList_CheckExact(__pyx_t_11))||((__pyx_t_11) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_11)->tp_name), 0))) __PYX_ERR(3, 6264, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_11))||((__pyx_t_11) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_11)->tp_name), 0))) __PYX_ERR(3, 6471, __pyx_L1_error) __pyx_v_localList = ((PyObject*)__pyx_t_9); __pyx_t_9 = 0; __pyx_v_status = __pyx_t_6; __pyx_v_statusList = ((PyObject*)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6266 + /* "PyCafe.pyx":6473 * localList, status, statusList = self.getGroup(ghandle) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107509,7 +111187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6267 + /* "PyCafe.pyx":6474 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -107519,27 +111197,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6268 + /* "PyCafe.pyx":6475 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("") # <<<<<<<<<<<<<< * print("Error in def grouping for group named", _gname) * self._c_cafe.printStatusMessage(status) */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6268, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6269 + /* "PyCafe.pyx":6476 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("") * print("Error in def grouping for group named", _gname) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * print("Analysing statusList[]...") */ - __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6269, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6269, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_Error_in_def_grouping_for_group); __Pyx_GIVEREF(__pyx_kp_u_Error_in_def_grouping_for_group); @@ -107547,12 +111225,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6269, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6270 + /* "PyCafe.pyx":6477 * print("") * print("Error in def grouping for group named", _gname) * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -107561,18 +111239,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6271 + /* "PyCafe.pyx":6478 * print("Error in def grouping for group named", _gname) * self._c_cafe.printStatusMessage(status) * print("Analysing statusList[]...") # <<<<<<<<<<<<<< * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__112, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6271, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6272 + /* "PyCafe.pyx":6479 * self._c_cafe.printStatusMessage(status) * print("Analysing statusList[]...") * for i in range(0, len(statusList)): # <<<<<<<<<<<<<< @@ -107581,14 +111259,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_statusList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 6272, __pyx_L1_error) + __PYX_ERR(3, 6479, __pyx_L1_error) } - __pyx_t_13 = PyList_GET_SIZE(__pyx_v_statusList); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6272, __pyx_L1_error) + __pyx_t_13 = PyList_GET_SIZE(__pyx_v_statusList); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6479, __pyx_L1_error) __pyx_t_14 = __pyx_t_13; for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) { __pyx_v_i = __pyx_t_15; - /* "PyCafe.pyx":6273 + /* "PyCafe.pyx":6480 * print("Analysing statusList[]...") * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107597,20 +111275,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_statusList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6273, __pyx_L1_error) + __PYX_ERR(3, 6480, __pyx_L1_error) } - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6273, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_11 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6273, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_int(ICAFE_NORMAL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_7 = PyObject_RichCompare(__pyx_t_8, __pyx_t_11, Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6273, __pyx_L1_error) + __pyx_t_7 = PyObject_RichCompare(__pyx_t_8, __pyx_t_11, Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6273, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_2) { - /* "PyCafe.pyx":6274 + /* "PyCafe.pyx":6481 * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: * print("PV", _pvlist[i], # <<<<<<<<<<<<<< @@ -107619,54 +111297,54 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v__pvlist == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6274, __pyx_L1_error) + __PYX_ERR(3, 6481, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v__pvlist, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6274, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v__pvlist, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":6275 + /* "PyCafe.pyx":6482 * if statusList[i] != ICAFE_NORMAL: * print("PV", _pvlist[i], * "[", i, "]", " has error: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusList[i]) * print("") */ - __pyx_t_11 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6275, __pyx_L1_error) + __pyx_t_11 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - /* "PyCafe.pyx":6274 + /* "PyCafe.pyx":6481 * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: * print("PV", _pvlist[i], # <<<<<<<<<<<<<< * "[", i, "]", " has error: ") * self._c_cafe.printStatusMessage(statusList[i]) */ - __pyx_t_8 = PyTuple_New(6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6274, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_n_u_PV_4); __Pyx_GIVEREF(__pyx_n_u_PV_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_n_u_PV_4); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7); - __Pyx_INCREF(__pyx_kp_u__113); - __Pyx_GIVEREF(__pyx_kp_u__113); - PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u__113); + __Pyx_INCREF(__pyx_kp_u__108); + __Pyx_GIVEREF(__pyx_kp_u__108); + PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u__108); __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_11); - __Pyx_INCREF(__pyx_kp_u__114); - __Pyx_GIVEREF(__pyx_kp_u__114); - PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u__114); + __Pyx_INCREF(__pyx_kp_u__109); + __Pyx_GIVEREF(__pyx_kp_u__109); + PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u__109); __Pyx_INCREF(__pyx_kp_u_has_error); __Pyx_GIVEREF(__pyx_kp_u_has_error); PyTuple_SET_ITEM(__pyx_t_8, 5, __pyx_kp_u_has_error); __pyx_t_7 = 0; __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6274, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6276 + /* "PyCafe.pyx":6483 * print("PV", _pvlist[i], * "[", i, "]", " has error: ") * self._c_cafe.printStatusMessage(statusList[i]) # <<<<<<<<<<<<<< @@ -107675,26 +111353,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_statusList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6276, __pyx_L1_error) + __PYX_ERR(3, 6483, __pyx_L1_error) } - __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6276, __pyx_L1_error) + __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_statusList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_11); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6276, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_11); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __pyx_v_self->_c_cafe->printStatusMessage(__pyx_t_6); - /* "PyCafe.pyx":6277 + /* "PyCafe.pyx":6484 * "[", i, "]", " has error: ") * self._c_cafe.printStatusMessage(statusList[i]) * print("") # <<<<<<<<<<<<<< * return ghandle * */ - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6277, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6273 + /* "PyCafe.pyx":6480 * print("Analysing statusList[]...") * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107704,7 +111382,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":6267 + /* "PyCafe.pyx":6474 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -107713,7 +111391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6266 + /* "PyCafe.pyx":6473 * localList, status, statusList = self.getGroup(ghandle) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107722,7 +111400,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6262 + /* "PyCafe.pyx":6469 * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() * * if wtfsb == FLUSH_NOW: # <<<<<<<<<<<<<< @@ -107731,7 +111409,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":6278 + /* "PyCafe.pyx":6485 * self._c_cafe.printStatusMessage(statusList[i]) * print("") * return ghandle # <<<<<<<<<<<<<< @@ -107739,13 +111417,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6278, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __pyx_r = __pyx_t_11; __pyx_t_11 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6217 + /* "PyCafe.pyx":6424 * ################################################################################## * * def grouping(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -107774,7 +111452,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_364grouping(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":6282 +/* "PyCafe.pyx":6489 * * ################################################################################## * def groupDefineFromCollection(self, const char * gname, const char * cname, attrib): # <<<<<<<<<<<<<< @@ -107816,17 +111494,17 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_367groupDefineFromCollection(PyObject case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cname)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, 1); __PYX_ERR(3, 6282, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, 1); __PYX_ERR(3, 6489, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_attrib)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, 2); __PYX_ERR(3, 6282, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, 2); __PYX_ERR(3, 6489, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupDefineFromCollection") < 0)) __PYX_ERR(3, 6282, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupDefineFromCollection") < 0)) __PYX_ERR(3, 6489, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; @@ -107835,13 +111513,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_367groupDefineFromCollection(PyObject values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } - __pyx_v_gname = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6282, __pyx_L3_error) - __pyx_v_cname = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_cname) && PyErr_Occurred())) __PYX_ERR(3, 6282, __pyx_L3_error) + __pyx_v_gname = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6489, __pyx_L3_error) + __pyx_v_cname = __Pyx_PyObject_AsString(values[1]); if (unlikely((!__pyx_v_cname) && PyErr_Occurred())) __PYX_ERR(3, 6489, __pyx_L3_error) __pyx_v_attrib = values[2]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6282, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupDefineFromCollection", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6489, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupDefineFromCollection", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -107868,7 +111546,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ std::vector __pyx_t_5; __Pyx_RefNannySetupContext("groupDefineFromCollection", 0); - /* "PyCafe.pyx":6283 + /* "PyCafe.pyx":6490 * ################################################################################## * def groupDefineFromCollection(self, const char * gname, const char * cname, attrib): * cdef str _METHOD = "groupDefineFromCollection" # <<<<<<<<<<<<<< @@ -107878,7 +111556,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __Pyx_INCREF(__pyx_n_u_groupDefineFromCollection); __pyx_v__METHOD = __pyx_n_u_groupDefineFromCollection; - /* "PyCafe.pyx":6285 + /* "PyCafe.pyx":6492 * cdef str _METHOD = "groupDefineFromCollection" * cdef list _attribute_list * if isinstance(attrib, str): # <<<<<<<<<<<<<< @@ -107889,14 +111567,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6286 + /* "PyCafe.pyx":6493 * cdef list _attribute_list * if isinstance(attrib, str): * _attribute_list = [attrib] # <<<<<<<<<<<<<< * elif isinstance(attrib, list): * _attribute_list = attrib */ - __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6286, __pyx_L1_error) + __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_attrib); __Pyx_GIVEREF(__pyx_v_attrib); @@ -107904,7 +111582,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __pyx_v__attribute_list = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":6285 + /* "PyCafe.pyx":6492 * cdef str _METHOD = "groupDefineFromCollection" * cdef list _attribute_list * if isinstance(attrib, str): # <<<<<<<<<<<<<< @@ -107914,7 +111592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":6287 + /* "PyCafe.pyx":6494 * if isinstance(attrib, str): * _attribute_list = [attrib] * elif isinstance(attrib, list): # <<<<<<<<<<<<<< @@ -107925,20 +111603,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6288 + /* "PyCafe.pyx":6495 * _attribute_list = [attrib] * elif isinstance(attrib, list): * _attribute_list = attrib # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyList_CheckExact(__pyx_v_attrib))||((__pyx_v_attrib) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_attrib)->tp_name), 0))) __PYX_ERR(3, 6288, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_attrib))||((__pyx_v_attrib) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_attrib)->tp_name), 0))) __PYX_ERR(3, 6495, __pyx_L1_error) __pyx_t_3 = __pyx_v_attrib; __Pyx_INCREF(__pyx_t_3); __pyx_v__attribute_list = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":6287 + /* "PyCafe.pyx":6494 * if isinstance(attrib, str): * _attribute_list = [attrib] * elif isinstance(attrib, list): # <<<<<<<<<<<<<< @@ -107948,7 +111626,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ goto __pyx_L3; } - /* "PyCafe.pyx":6290 + /* "PyCafe.pyx":6497 * _attribute_list = attrib * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -107956,18 +111634,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ * "else of ")) */ /*else*/ { - __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6290, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6290, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6290, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_kp_u_Third_input_argument_should_be_o) < 0) __PYX_ERR(3, 6290, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6290, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6497, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6497, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_error_info, __pyx_kp_u_Third_input_argument_should_be_o) < 0) __PYX_ERR(3, 6497, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":6293 + /* "PyCafe.pyx":6500 * _error_info=("Third input argument, should be of type " * "else of ")) * raise _cafeException # <<<<<<<<<<<<<< @@ -107975,21 +111653,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6293, __pyx_L1_error) + __PYX_ERR(3, 6500, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6295 + /* "PyCafe.pyx":6502 * raise _cafeException * * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __pyx_t_5 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_v__attribute_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6295, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_v__attribute_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6502, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->groupDefineFromCollection(__pyx_v_gname, __pyx_v_cname, __pyx_t_5); - /* "PyCafe.pyx":6296 + /* "PyCafe.pyx":6503 * * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -107999,7 +111677,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6297 + /* "PyCafe.pyx":6504 * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108009,7 +111687,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6298 + /* "PyCafe.pyx":6505 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -108018,7 +111696,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6297 + /* "PyCafe.pyx":6504 * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108027,7 +111705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ */ } - /* "PyCafe.pyx":6296 + /* "PyCafe.pyx":6503 * * status = self._c_cafe.groupDefineFromCollection(gname, cname, _attribute_list) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108036,7 +111714,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ */ } - /* "PyCafe.pyx":6299 + /* "PyCafe.pyx":6506 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * return status # <<<<<<<<<<<<<< @@ -108044,13 +111722,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6299, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6282 + /* "PyCafe.pyx":6489 * * ################################################################################## * def groupDefineFromCollection(self, const char * gname, const char * cname, attrib): # <<<<<<<<<<<<<< @@ -108075,7 +111753,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_366groupDefineFromCollection(struct __ return __pyx_r; } -/* "PyCafe.pyx":6303 +/* "PyCafe.pyx":6510 * * ################################################################################## * def groupDefine(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -108114,11 +111792,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_369groupDefine(PyObject *__pyx_v_self, case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pvlist)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("groupDefine", 1, 2, 2, 1); __PYX_ERR(3, 6303, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupDefine", 1, 2, 2, 1); __PYX_ERR(3, 6510, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupDefine") < 0)) __PYX_ERR(3, 6303, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupDefine") < 0)) __PYX_ERR(3, 6510, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -108126,18 +111804,18 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_369groupDefine(PyObject *__pyx_v_self, values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6303, __pyx_L3_error) + __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6510, __pyx_L3_error) __pyx_v__pvlist = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupDefine", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6303, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupDefine", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6510, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupDefine", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6303, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6510, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_368groupDefine(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_gname, __pyx_v__pvlist); /* function exit code */ @@ -108158,17 +111836,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("groupDefine", 0); - /* "PyCafe.pyx":6304 + /* "PyCafe.pyx":6511 * ################################################################################## * def groupDefine(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6304, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6511, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->groupDefine(__pyx_v_gname, __pyx_t_1); - /* "PyCafe.pyx":6305 + /* "PyCafe.pyx":6512 * def groupDefine(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108178,7 +111856,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6306 + /* "PyCafe.pyx":6513 * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108188,7 +111866,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6307 + /* "PyCafe.pyx":6514 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -108197,7 +111875,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6306 + /* "PyCafe.pyx":6513 * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108206,7 +111884,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6305 + /* "PyCafe.pyx":6512 * def groupDefine(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108215,7 +111893,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6308 + /* "PyCafe.pyx":6515 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * return status # <<<<<<<<<<<<<< @@ -108223,13 +111901,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6308, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6303 + /* "PyCafe.pyx":6510 * * ################################################################################## * def groupDefine(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -108250,7 +111928,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_368groupDefine(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":6312 +/* "PyCafe.pyx":6519 * * ################################################################################## * def defineGroup(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -108289,11 +111967,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_371defineGroup(PyObject *__pyx_v_self, case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pvlist)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("defineGroup", 1, 2, 2, 1); __PYX_ERR(3, 6312, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("defineGroup", 1, 2, 2, 1); __PYX_ERR(3, 6519, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "defineGroup") < 0)) __PYX_ERR(3, 6312, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "defineGroup") < 0)) __PYX_ERR(3, 6519, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -108301,18 +111979,18 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_371defineGroup(PyObject *__pyx_v_self, values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } - __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6312, __pyx_L3_error) + __pyx_v_gname = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6519, __pyx_L3_error) __pyx_v__pvlist = ((PyObject*)values[1]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("defineGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6312, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("defineGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6519, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.defineGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6312, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__pvlist), (&PyList_Type), 1, "_pvlist", 1))) __PYX_ERR(3, 6519, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_370defineGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_gname, __pyx_v__pvlist); /* function exit code */ @@ -108333,17 +112011,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("defineGroup", 0); - /* "PyCafe.pyx":6313 + /* "PyCafe.pyx":6520 * ################################################################################## * def defineGroup(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6313, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_vector_from_py_char__const___2a_(__pyx_v__pvlist); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6520, __pyx_L1_error) __pyx_v_status = __pyx_v_self->_c_cafe->groupDefine(__pyx_v_gname, __pyx_t_1); - /* "PyCafe.pyx":6314 + /* "PyCafe.pyx":6521 * def defineGroup(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108353,7 +112031,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6315 + /* "PyCafe.pyx":6522 * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108363,7 +112041,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6316 + /* "PyCafe.pyx":6523 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -108372,7 +112050,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6315 + /* "PyCafe.pyx":6522 * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -108381,7 +112059,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6314 + /* "PyCafe.pyx":6521 * def defineGroup(self, char * gname, list _pvlist): * status = self._c_cafe.groupDefine(gname, _pvlist) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108390,7 +112068,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6317 + /* "PyCafe.pyx":6524 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * return status # <<<<<<<<<<<<<< @@ -108398,13 +112076,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6317, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6312 + /* "PyCafe.pyx":6519 * * ################################################################################## * def defineGroup(self, char * gname, list _pvlist): # <<<<<<<<<<<<<< @@ -108425,7 +112103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_370defineGroup(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":6321 +/* "PyCafe.pyx":6528 * * ################################################################################## * def groupOpen(self, char * gname): # <<<<<<<<<<<<<< @@ -108441,7 +112119,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_373groupOpen(PyObject *__pyx_v_self, P __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("groupOpen (wrapper)", 0); assert(__pyx_arg_gname); { - __pyx_v_gname = __Pyx_PyObject_AsWritableString(__pyx_arg_gname); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6321, __pyx_L3_error) + __pyx_v_gname = __Pyx_PyObject_AsWritableString(__pyx_arg_gname); if (unlikely((!__pyx_v_gname) && PyErr_Occurred())) __PYX_ERR(3, 6528, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -108477,7 +112155,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ PyObject *__pyx_t_11 = NULL; __Pyx_RefNannySetupContext("groupOpen", 0); - /* "PyCafe.pyx":6322 + /* "PyCafe.pyx":6529 * ################################################################################## * def groupOpen(self, char * gname): * cdef str _METHOD = "groupOpen(char * gname)" # <<<<<<<<<<<<<< @@ -108487,39 +112165,39 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_kp_u_groupOpen_char_gname); __pyx_v__METHOD = __pyx_kp_u_groupOpen_char_gname; - /* "PyCafe.pyx":6324 + /* "PyCafe.pyx":6531 * cdef str _METHOD = "groupOpen(char * gname)" * * if not isinstance(gname, (str)) : # <<<<<<<<<<<<<< * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument should be for group name") */ - __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_gname); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6324, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v_gname); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyUnicode_Check(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6325 + /* "PyCafe.pyx":6532 * * if not isinstance(gname, (str)) : * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info="First input argument should be for group name") * raise _cafeException */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6325, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6325, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6325, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_c) < 0) __PYX_ERR(3, 6325, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6325, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6532, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6532, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_c) < 0) __PYX_ERR(3, 6532, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":6327 + /* "PyCafe.pyx":6534 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument should be for group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -108527,9 +112205,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ * cdef unsigned int ghandle = 0 */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6327, __pyx_L1_error) + __PYX_ERR(3, 6534, __pyx_L1_error) - /* "PyCafe.pyx":6324 + /* "PyCafe.pyx":6531 * cdef str _METHOD = "groupOpen(char * gname)" * * if not isinstance(gname, (str)) : # <<<<<<<<<<<<<< @@ -108538,7 +112216,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":6329 + /* "PyCafe.pyx":6536 * raise _cafeException * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -108547,7 +112225,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":6330 + /* "PyCafe.pyx":6537 * * cdef unsigned int ghandle = 0 * cdef char * _gname = gname # <<<<<<<<<<<<<< @@ -108556,7 +112234,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ */ __pyx_v__gname = __pyx_v_gname; - /* "PyCafe.pyx":6332 + /* "PyCafe.pyx":6539 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -108572,7 +112250,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "PyCafe.pyx":6334 + /* "PyCafe.pyx":6541 * try: * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -108587,7 +112265,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":6335 + /* "PyCafe.pyx":6542 * IF PY_EXT_C: * with nogil: * status = self._c_cafe.groupOpen(_gname, ghandle) # <<<<<<<<<<<<<< @@ -108604,12 +112282,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif - __PYX_ERR(3, 6335, __pyx_L11_error) + __PYX_ERR(3, 6542, __pyx_L11_error) } __pyx_v_status = __pyx_t_8; } - /* "PyCafe.pyx":6334 + /* "PyCafe.pyx":6541 * try: * IF PY_EXT_C: * with nogil: # <<<<<<<<<<<<<< @@ -108635,7 +112313,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":6332 + /* "PyCafe.pyx":6539 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -108651,7 +112329,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":6341 + /* "PyCafe.pyx":6548 * status = self._c_cafe.groupOpen(_gname, ghandle) * * except: # <<<<<<<<<<<<<< @@ -108660,65 +112338,65 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ */ /*except:*/ { __Pyx_AddTraceback("PyCafe.CyCafe.groupOpen", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_9) < 0) __PYX_ERR(3, 6341, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_1, &__pyx_t_9) < 0) __PYX_ERR(3, 6548, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_9); - /* "PyCafe.pyx":6342 + /* "PyCafe.pyx":6549 * * except: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), _error_info=self.cs.info(ECA_ALLOCMEM)) * raise _cafeException */ - __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6342, __pyx_L6_except_error) + __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_11) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_11) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6342, __pyx_L6_except_error) + __pyx_t_11 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_11) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_11) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6343 + /* "PyCafe.pyx":6550 * except: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), _error_info=self.cs.info(ECA_ALLOCMEM)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(ECA_ALLOCMEM); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6343, __pyx_L6_except_error) + __pyx_t_11 = __Pyx_PyInt_From_unsigned_int(ECA_ALLOCMEM); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6550, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_11) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_11) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6343, __pyx_L6_except_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6550, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_11) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_11) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6343, __pyx_L6_except_error) + __pyx_t_11 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECA_ALLOCMEM)); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6550, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_11) < 0) __PYX_ERR(3, 6342, __pyx_L6_except_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_11) < 0) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6342 + /* "PyCafe.pyx":6549 * * except: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), _error_info=self.cs.info(ECA_ALLOCMEM)) * raise _cafeException */ - __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6342, __pyx_L6_except_error) + __pyx_t_11 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6549, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_11); __pyx_t_11 = 0; - /* "PyCafe.pyx":6344 + /* "PyCafe.pyx":6551 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, * _error_code=ECA_ALLOCMEM, _error_text=self.cs.code(ECA_ALLOCMEM), _error_info=self.cs.info(ECA_ALLOCMEM)) * raise _cafeException # <<<<<<<<<<<<<< @@ -108726,7 +112404,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ * if status != ICAFE_NORMAL: */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6344, __pyx_L6_except_error) + __PYX_ERR(3, 6551, __pyx_L6_except_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -108734,7 +112412,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ } __pyx_L6_except_error:; - /* "PyCafe.pyx":6332 + /* "PyCafe.pyx":6539 * cdef char * _gname = gname * * try: # <<<<<<<<<<<<<< @@ -108754,7 +112432,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ __pyx_L9_try_end:; } - /* "PyCafe.pyx":6346 + /* "PyCafe.pyx":6553 * raise _cafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108764,60 +112442,60 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6347 + /* "PyCafe.pyx":6554 * * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_9 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6347, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_handle, __pyx_t_1) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_handle, __pyx_t_1) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6347, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyStr_FromString(__pyx_v__gname); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_pv_name, __pyx_t_1) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_pv_name, __pyx_t_1) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":6348 + /* "PyCafe.pyx":6555 * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6348, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_code, __pyx_t_1) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_code, __pyx_t_1) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6348, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_text, __pyx_t_1) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_text, __pyx_t_1) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6348, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_t_1) < 0) __PYX_ERR(3, 6347, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_t_1) < 0) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":6347 + /* "PyCafe.pyx":6554 * * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6347, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":6349 + /* "PyCafe.pyx":6556 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=ghandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -108825,9 +112503,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ * return ghandle */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6349, __pyx_L1_error) + __PYX_ERR(3, 6556, __pyx_L1_error) - /* "PyCafe.pyx":6346 + /* "PyCafe.pyx":6553 * raise _cafeException * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -108836,7 +112514,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":6351 + /* "PyCafe.pyx":6558 * raise _cafeException * * return ghandle # <<<<<<<<<<<<<< @@ -108844,13 +112522,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6351, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_ghandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6321 + /* "PyCafe.pyx":6528 * * ################################################################################## * def groupOpen(self, char * gname): # <<<<<<<<<<<<<< @@ -108877,7 +112555,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_372groupOpen(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":6356 +/* "PyCafe.pyx":6563 * ################################################################################## * * def groupClose(self, gHandleName, bint keepGroupName=False): # <<<<<<<<<<<<<< @@ -108920,7 +112598,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_375groupClose(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupClose") < 0)) __PYX_ERR(3, 6356, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "groupClose") < 0)) __PYX_ERR(3, 6563, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -108933,14 +112611,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_375groupClose(PyObject *__pyx_v_self, } __pyx_v_gHandleName = values[0]; if (values[1]) { - __pyx_v_keepGroupName = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_keepGroupName == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6356, __pyx_L3_error) + __pyx_v_keepGroupName = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_keepGroupName == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6563, __pyx_L3_error) } else { __pyx_v_keepGroupName = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("groupClose", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6356, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("groupClose", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6563, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.groupClose", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -108970,7 +112648,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe int __pyx_t_7; __Pyx_RefNannySetupContext("groupClose", 0); - /* "PyCafe.pyx":6357 + /* "PyCafe.pyx":6564 * * def groupClose(self, gHandleName, bint keepGroupName=False): * cdef str _METHOD = "groupClose(gHandleName)" # <<<<<<<<<<<<<< @@ -108980,7 +112658,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __Pyx_INCREF(__pyx_kp_u_groupClose_gHandleName); __pyx_v__METHOD = __pyx_kp_u_groupClose_gHandleName; - /* "PyCafe.pyx":6359 + /* "PyCafe.pyx":6566 * cdef str _METHOD = "groupClose(gHandleName)" * * cdef unsigned int gHandle = 0 # <<<<<<<<<<<<<< @@ -108989,7 +112667,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ __pyx_v_gHandle = 0; - /* "PyCafe.pyx":6360 + /* "PyCafe.pyx":6567 * * cdef unsigned int gHandle = 0 * cdef str _gname = None # <<<<<<<<<<<<<< @@ -108999,7 +112677,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __Pyx_INCREF(Py_None); __pyx_v__gname = ((PyObject*)Py_None); - /* "PyCafe.pyx":6361 + /* "PyCafe.pyx":6568 * cdef unsigned int gHandle = 0 * cdef str _gname = None * status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -109008,7 +112686,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":6363 + /* "PyCafe.pyx":6570 * status = ICAFE_NORMAL * * if isinstance(gHandleName, (int, long)): # <<<<<<<<<<<<<< @@ -109029,17 +112707,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6364 + /* "PyCafe.pyx":6571 * * if isinstance(gHandleName, (int, long)): * gHandle = gHandleName # <<<<<<<<<<<<<< * elif isinstance(gHandleName, (str)): * _gname = gHandleName */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_gHandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6364, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_gHandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6571, __pyx_L1_error) __pyx_v_gHandle = __pyx_t_4; - /* "PyCafe.pyx":6363 + /* "PyCafe.pyx":6570 * status = ICAFE_NORMAL * * if isinstance(gHandleName, (int, long)): # <<<<<<<<<<<<<< @@ -109049,7 +112727,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6365 + /* "PyCafe.pyx":6572 * if isinstance(gHandleName, (int, long)): * gHandle = gHandleName * elif isinstance(gHandleName, (str)): # <<<<<<<<<<<<<< @@ -109060,34 +112738,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6366 + /* "PyCafe.pyx":6573 * gHandle = gHandleName * elif isinstance(gHandleName, (str)): * _gname = gHandleName # <<<<<<<<<<<<<< * gHandle = self.checkForGroupHandle(gHandleName) * else: */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_gHandleName))||((__pyx_v_gHandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_gHandleName)->tp_name), 0))) __PYX_ERR(3, 6366, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_gHandleName))||((__pyx_v_gHandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_gHandleName)->tp_name), 0))) __PYX_ERR(3, 6573, __pyx_L1_error) __pyx_t_5 = __pyx_v_gHandleName; __Pyx_INCREF(__pyx_t_5); __Pyx_DECREF_SET(__pyx_v__gname, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "PyCafe.pyx":6367 + /* "PyCafe.pyx":6574 * elif isinstance(gHandleName, (str)): * _gname = gHandleName * gHandle = self.checkForGroupHandle(gHandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_gHandleName))||((__pyx_v_gHandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_gHandleName)->tp_name), 0))) __PYX_ERR(3, 6367, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_gHandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6367, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_gHandleName))||((__pyx_v_gHandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_gHandleName)->tp_name), 0))) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_gHandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6367, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6574, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_gHandle = __pyx_t_4; - /* "PyCafe.pyx":6365 + /* "PyCafe.pyx":6572 * if isinstance(gHandleName, (int, long)): * gHandle = gHandleName * elif isinstance(gHandleName, (str)): # <<<<<<<<<<<<<< @@ -109097,7 +112775,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6369 + /* "PyCafe.pyx":6576 * gHandle = self.checkForGroupHandle(gHandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -109105,18 +112783,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6369, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6369, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6369, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6369, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6369, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6576, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6576, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_9) < 0) __PYX_ERR(3, 6576, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6371 + /* "PyCafe.pyx":6578 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -109124,11 +112802,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe * if gHandle == 0: */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6371, __pyx_L1_error) + __PYX_ERR(3, 6578, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6373 + /* "PyCafe.pyx":6580 * raise _cafeException * * if gHandle == 0: # <<<<<<<<<<<<<< @@ -109138,7 +112816,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_gHandle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6374 + /* "PyCafe.pyx":6581 * * if gHandle == 0: * status = ECAFE_INVALID_GROUP_HANDLE # <<<<<<<<<<<<<< @@ -109147,7 +112825,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ __pyx_v_status = ECAFE_INVALID_GROUP_HANDLE; - /* "PyCafe.pyx":6376 + /* "PyCafe.pyx":6583 * status = ECAFE_INVALID_GROUP_HANDLE * * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -109157,7 +112835,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6377 + /* "PyCafe.pyx":6584 * * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -109166,7 +112844,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6376 + /* "PyCafe.pyx":6583 * status = ECAFE_INVALID_GROUP_HANDLE * * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -109175,57 +112853,57 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6378 + /* "PyCafe.pyx":6585 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6378, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_gHandle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_gHandle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_v__gname) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_v__gname) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) - /* "PyCafe.pyx":6379 + /* "PyCafe.pyx":6586 * self._c_cafe.printStatusMessage(status) * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6379, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6379, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6379, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 6378, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6378 + /* "PyCafe.pyx":6585 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6378, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6380 + /* "PyCafe.pyx":6587 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -109233,9 +112911,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6380, __pyx_L1_error) + __PYX_ERR(3, 6587, __pyx_L1_error) - /* "PyCafe.pyx":6373 + /* "PyCafe.pyx":6580 * raise _cafeException * * if gHandle == 0: # <<<<<<<<<<<<<< @@ -109244,7 +112922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6383 + /* "PyCafe.pyx":6590 * * * with nogil: # <<<<<<<<<<<<<< @@ -109259,7 +112937,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6384 + /* "PyCafe.pyx":6591 * * with nogil: * status = self._c_cafe.groupCloseKeepName(gHandle, keepGroupName) # <<<<<<<<<<<<<< @@ -109276,12 +112954,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe #ifdef WITH_THREAD __Pyx_PyGILState_Release(__pyx_gilstate_save); #endif - __PYX_ERR(3, 6384, __pyx_L9_error) + __PYX_ERR(3, 6591, __pyx_L9_error) } __pyx_v_status = __pyx_t_7; } - /* "PyCafe.pyx":6383 + /* "PyCafe.pyx":6590 * * * with nogil: # <<<<<<<<<<<<<< @@ -109307,7 +112985,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe } } - /* "PyCafe.pyx":6387 + /* "PyCafe.pyx":6594 * #self.ca_pend_io(1.0) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -109317,57 +112995,57 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6388 + /* "PyCafe.pyx":6595 * * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6388, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_gHandle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_gHandle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_v__gname) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_pv_name, __pyx_v__gname) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) - /* "PyCafe.pyx":6389 + /* "PyCafe.pyx":6596 * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6389, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6389, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6389, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 6388, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6388 + /* "PyCafe.pyx":6595 * * if status != ICAFE_NORMAL: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6388, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6390 + /* "PyCafe.pyx":6597 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=gHandle, _pv_name=_gname, * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -109375,9 +113053,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe * return status */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6390, __pyx_L1_error) + __PYX_ERR(3, 6597, __pyx_L1_error) - /* "PyCafe.pyx":6387 + /* "PyCafe.pyx":6594 * #self.ca_pend_io(1.0) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -109386,7 +113064,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe */ } - /* "PyCafe.pyx":6392 + /* "PyCafe.pyx":6599 * raise _cafeException * * return status # <<<<<<<<<<<<<< @@ -109394,13 +113072,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6392, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6356 + /* "PyCafe.pyx":6563 * ################################################################################## * * def groupClose(self, gHandleName, bint keepGroupName=False): # <<<<<<<<<<<<<< @@ -109425,7 +113103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_374groupClose(struct __pyx_obj_6PyCafe return __pyx_r; } -/* "PyCafe.pyx":6396 +/* "PyCafe.pyx":6603 * * * def isGroup(self, const char * gName): # <<<<<<<<<<<<<< @@ -109441,7 +113119,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_377isGroup(PyObject *__pyx_v_self, PyO __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isGroup (wrapper)", 0); assert(__pyx_arg_gName); { - __pyx_v_gName = __Pyx_PyObject_AsString(__pyx_arg_gName); if (unlikely((!__pyx_v_gName) && PyErr_Occurred())) __PYX_ERR(3, 6396, __pyx_L3_error) + __pyx_v_gName = __Pyx_PyObject_AsString(__pyx_arg_gName); if (unlikely((!__pyx_v_gName) && PyErr_Occurred())) __PYX_ERR(3, 6603, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -109462,7 +113140,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_376isGroup(struct __pyx_obj_6PyCafe_Cy PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("isGroup", 0); - /* "PyCafe.pyx":6397 + /* "PyCafe.pyx":6604 * * def isGroup(self, const char * gName): * return self._c_cafe.isGroup(gName) # <<<<<<<<<<<<<< @@ -109470,13 +113148,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_376isGroup(struct __pyx_obj_6PyCafe_Cy * def isCollection(self, const char * cName): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isGroup(__pyx_v_gName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6397, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isGroup(__pyx_v_gName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6396 + /* "PyCafe.pyx":6603 * * * def isGroup(self, const char * gName): # <<<<<<<<<<<<<< @@ -109497,7 +113175,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_376isGroup(struct __pyx_obj_6PyCafe_Cy return __pyx_r; } -/* "PyCafe.pyx":6399 +/* "PyCafe.pyx":6606 * return self._c_cafe.isGroup(gName) * * def isCollection(self, const char * cName): # <<<<<<<<<<<<<< @@ -109513,7 +113191,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_379isCollection(PyObject *__pyx_v_self __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isCollection (wrapper)", 0); assert(__pyx_arg_cName); { - __pyx_v_cName = __Pyx_PyObject_AsString(__pyx_arg_cName); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 6399, __pyx_L3_error) + __pyx_v_cName = __Pyx_PyObject_AsString(__pyx_arg_cName); if (unlikely((!__pyx_v_cName) && PyErr_Occurred())) __PYX_ERR(3, 6606, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; @@ -109534,7 +113212,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_378isCollection(struct __pyx_obj_6PyCa PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("isCollection", 0); - /* "PyCafe.pyx":6400 + /* "PyCafe.pyx":6607 * * def isCollection(self, const char * cName): * return self._c_cafe.isCollection(cName) # <<<<<<<<<<<<<< @@ -109542,13 +113220,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_378isCollection(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isCollection(__pyx_v_cName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6400, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->_c_cafe->isCollection(__pyx_v_cName)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6399 + /* "PyCafe.pyx":6606 * return self._c_cafe.isGroup(gName) * * def isCollection(self, const char * cName): # <<<<<<<<<<<<<< @@ -109569,7 +113247,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_378isCollection(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":6405 +/* "PyCafe.pyx":6612 * ################################################################################## * @verify_handlepv * def getNoMonitors(self, handlePV): # <<<<<<<<<<<<<< @@ -109598,17 +113276,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_380getNoMonitors(struct __pyx_obj_6PyC PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getNoMonitors", 0); - /* "PyCafe.pyx":6406 + /* "PyCafe.pyx":6613 * @verify_handlepv * def getNoMonitors(self, handlePV): * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * return self.hh.getNmonitor(handle) * ################################################################################## */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6406, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6613, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":6407 + /* "PyCafe.pyx":6614 * def getNoMonitors(self, handlePV): * cdef unsigned int handle = handlePV * return self.hh.getNmonitor(handle) # <<<<<<<<<<<<<< @@ -109616,13 +113294,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_380getNoMonitors(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNmonitor(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6407, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNmonitor(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6405 + /* "PyCafe.pyx":6612 * ################################################################################## * @verify_handlepv * def getNoMonitors(self, handlePV): # <<<<<<<<<<<<<< @@ -109643,7 +113321,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_380getNoMonitors(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":6413 +/* "PyCafe.pyx":6620 * ################################################################################## * @verify_handlepv * def getMonitorIDsInWaiting(self, handlePV): # <<<<<<<<<<<<<< @@ -109672,17 +113350,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_382getMonitorIDsInWaiting(struct __pyx PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getMonitorIDsInWaiting", 0); - /* "PyCafe.pyx":6414 + /* "PyCafe.pyx":6621 * @verify_handlepv * def getMonitorIDsInWaiting(self, handlePV): * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * return self.hh.getMonitorIDsInWaiting(handle) * ############################################################################ */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6414, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6621, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":6415 + /* "PyCafe.pyx":6622 * def getMonitorIDsInWaiting(self, handlePV): * cdef unsigned int handle = handlePV * return self.hh.getMonitorIDsInWaiting(handle) # <<<<<<<<<<<<<< @@ -109690,13 +113368,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_382getMonitorIDsInWaiting(struct __pyx * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_self->hh.getMonitorIDsInWaiting(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6415, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_self->hh.getMonitorIDsInWaiting(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6413 + /* "PyCafe.pyx":6620 * ################################################################################## * @verify_handlepv * def getMonitorIDsInWaiting(self, handlePV): # <<<<<<<<<<<<<< @@ -109717,7 +113395,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_382getMonitorIDsInWaiting(struct __pyx return __pyx_r; } -/* "PyCafe.pyx":6421 +/* "PyCafe.pyx":6628 * ################################################################################## * @verify_handlepv * def getMonitorIDs(self, handlePV): # <<<<<<<<<<<<<< @@ -109746,17 +113424,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_384getMonitorIDs(struct __pyx_obj_6PyC PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("getMonitorIDs", 0); - /* "PyCafe.pyx":6422 + /* "PyCafe.pyx":6629 * @verify_handlepv * def getMonitorIDs(self, handlePV): * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * return self.hh.getMonitorIDs(handle) * ############################################################################ */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6422, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6629, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":6423 + /* "PyCafe.pyx":6630 * def getMonitorIDs(self, handlePV): * cdef unsigned int handle = handlePV * return self.hh.getMonitorIDs(handle) # <<<<<<<<<<<<<< @@ -109764,13 +113442,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_384getMonitorIDs(struct __pyx_obj_6PyC * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_self->hh.getMonitorIDs(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6423, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_vector_to_py_unsigned_int(__pyx_v_self->hh.getMonitorIDs(__pyx_v_handle)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6421 + /* "PyCafe.pyx":6628 * ################################################################################## * @verify_handlepv * def getMonitorIDs(self, handlePV): # <<<<<<<<<<<<<< @@ -109791,7 +113469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_384getMonitorIDs(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":6427 +/* "PyCafe.pyx":6634 * * @verify_handlepv * def updateMonitorPolicyDeltaMS( # <<<<<<<<<<<<<< @@ -109843,7 +113521,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_387updateMonitorPolicyDeltaMS(PyObject } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "updateMonitorPolicyDeltaMS") < 0)) __PYX_ERR(3, 6427, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "updateMonitorPolicyDeltaMS") < 0)) __PYX_ERR(3, 6634, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -109858,19 +113536,19 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_387updateMonitorPolicyDeltaMS(PyObject } __pyx_v_handlePV = values[0]; if (values[1]) { - __pyx_v_monid = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_monid == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6428, __pyx_L3_error) + __pyx_v_monid = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_monid == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6635, __pyx_L3_error) } else { __pyx_v_monid = ((unsigned int)0); } if (values[2]) { - __pyx_v_deltaMS = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_deltaMS == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6428, __pyx_L3_error) + __pyx_v_deltaMS = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_deltaMS == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6635, __pyx_L3_error) } else { __pyx_v_deltaMS = ((unsigned int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("updateMonitorPolicyDeltaMS", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6427, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("updateMonitorPolicyDeltaMS", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6634, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.updateMonitorPolicyDeltaMS", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -109890,17 +113568,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_386updateMonitorPolicyDeltaMS(struct _ unsigned int __pyx_t_1; __Pyx_RefNannySetupContext("updateMonitorPolicyDeltaMS", 0); - /* "PyCafe.pyx":6429 + /* "PyCafe.pyx":6636 * def updateMonitorPolicyDeltaMS( * self, handlePV, unsigned int monid=0, unsigned int deltaMS=0): * cdef unsigned int handle = handlePV # <<<<<<<<<<<<<< * self.hh.updateMonitorPolicyDeltaMS(handle, monid, deltaMS) * */ - __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6429, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6636, __pyx_L1_error) __pyx_v_handle = __pyx_t_1; - /* "PyCafe.pyx":6430 + /* "PyCafe.pyx":6637 * self, handlePV, unsigned int monid=0, unsigned int deltaMS=0): * cdef unsigned int handle = handlePV * self.hh.updateMonitorPolicyDeltaMS(handle, monid, deltaMS) # <<<<<<<<<<<<<< @@ -109909,7 +113587,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_386updateMonitorPolicyDeltaMS(struct _ */ (void)(__pyx_v_self->hh.updateMonitorPolicyDeltaMS(__pyx_v_handle, __pyx_v_monid, __pyx_v_deltaMS)); - /* "PyCafe.pyx":6427 + /* "PyCafe.pyx":6634 * * @verify_handlepv * def updateMonitorPolicyDeltaMS( # <<<<<<<<<<<<<< @@ -109929,7 +113607,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_386updateMonitorPolicyDeltaMS(struct _ return __pyx_r; } -/* "PyCafe.pyx":6435 +/* "PyCafe.pyx":6642 * * ############################################################################ * def monitor( # <<<<<<<<<<<<<< @@ -109952,7 +113630,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_389monitor(PyObject *__pyx_v_self, PyO static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_handlePV,&__pyx_n_s_cb,&__pyx_n_s_dbr,&__pyx_n_s_mask_2,&__pyx_n_s_notify_milliseconds,0}; PyObject* values[5] = {0,0,0,0,0}; - /* "PyCafe.pyx":6436 + /* "PyCafe.pyx":6643 * ############################################################################ * def monitor( * self, handlePV, object cb=None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -110008,7 +113686,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_389monitor(PyObject *__pyx_v_self, PyO } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitor") < 0)) __PYX_ERR(3, 6435, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitor") < 0)) __PYX_ERR(3, 6642, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -110028,24 +113706,24 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_389monitor(PyObject *__pyx_v_self, PyO __pyx_v_handlePV = values[0]; __pyx_v_cb = values[1]; if (values[2]) { - __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6436, __pyx_L3_error) + __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6643, __pyx_L3_error) } else { - __pyx_v_dbr = __pyx_k__115; + __pyx_v_dbr = __pyx_k__110; } if (values[3]) { - __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6437, __pyx_L3_error) + __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6644, __pyx_L3_error) } else { - __pyx_v_mask = __pyx_k__116; + __pyx_v_mask = __pyx_k__111; } if (values[4]) { - __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6438, __pyx_L3_error) + __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6645, __pyx_L3_error) } else { __pyx_v_notify_milliseconds = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("monitor", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6435, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("monitor", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6642, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.monitor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -110053,7 +113731,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_389monitor(PyObject *__pyx_v_self, PyO __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6PyCafe_6CyCafe_388monitor(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_cb, __pyx_v_dbr, __pyx_v_mask, __pyx_v_notify_milliseconds); - /* "PyCafe.pyx":6435 + /* "PyCafe.pyx":6642 * * ############################################################################ * def monitor( # <<<<<<<<<<<<<< @@ -110079,7 +113757,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("monitor", 0); - /* "PyCafe.pyx":6440 + /* "PyCafe.pyx":6647 * unsigned short notify_milliseconds=0): * * return self.monitorStart(handlePV, cb, dbr, mask, notify_milliseconds) # <<<<<<<<<<<<<< @@ -110087,13 +113765,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_monitorStart); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_monitorStart); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_DBR_TYPE(__pyx_v_dbr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_notify_milliseconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_short(__pyx_v_notify_milliseconds); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -110110,7 +113788,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_handlePV, __pyx_v_cb, __pyx_t_3, __pyx_t_4, __pyx_t_5}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -110121,7 +113799,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) { PyObject *__pyx_temp[6] = {__pyx_t_6, __pyx_v_handlePV, __pyx_v_cb, __pyx_t_3, __pyx_t_4, __pyx_t_5}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 5+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -110130,7 +113808,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy } else #endif { - __pyx_t_8 = PyTuple_New(5+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(5+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -110150,7 +113828,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_5 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6440, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } @@ -110159,7 +113837,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6435 + /* "PyCafe.pyx":6642 * * ############################################################################ * def monitor( # <<<<<<<<<<<<<< @@ -110186,7 +113864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_388monitor(struct __pyx_obj_6PyCafe_Cy return __pyx_r; } -/* "PyCafe.pyx":6443 +/* "PyCafe.pyx":6650 * * ############################################################################ * def monitorStart( # <<<<<<<<<<<<<< @@ -110209,7 +113887,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_391monitorStart(PyObject *__pyx_v_self static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_handlePV,&__pyx_n_s_cb,&__pyx_n_s_dbr,&__pyx_n_s_mask_2,&__pyx_n_s_notify_milliseconds,0}; PyObject* values[5] = {0,0,0,0,0}; - /* "PyCafe.pyx":6444 + /* "PyCafe.pyx":6651 * ############################################################################ * def monitorStart( * self, handlePV, cb: object = None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -110265,7 +113943,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_391monitorStart(PyObject *__pyx_v_self } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitorStart") < 0)) __PYX_ERR(3, 6443, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitorStart") < 0)) __PYX_ERR(3, 6650, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -110285,24 +113963,24 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_391monitorStart(PyObject *__pyx_v_self __pyx_v_handlePV = values[0]; __pyx_v_cb = values[1]; if (values[2]) { - __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6444, __pyx_L3_error) + __pyx_v_dbr = ((DBR_TYPE)__Pyx_PyInt_As_DBR_TYPE(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6651, __pyx_L3_error) } else { - __pyx_v_dbr = __pyx_k__117; + __pyx_v_dbr = __pyx_k__112; } if (values[3]) { - __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6445, __pyx_L3_error) + __pyx_v_mask = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_mask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6652, __pyx_L3_error) } else { - __pyx_v_mask = __pyx_k__118; + __pyx_v_mask = __pyx_k__113; } if (values[4]) { - __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6446, __pyx_L3_error) + __pyx_v_notify_milliseconds = __Pyx_PyInt_As_unsigned_short(values[4]); if (unlikely((__pyx_v_notify_milliseconds == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6653, __pyx_L3_error) } else { __pyx_v_notify_milliseconds = ((unsigned short)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("monitorStart", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6443, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("monitorStart", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6650, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.monitorStart", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -110310,7 +113988,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_391monitorStart(PyObject *__pyx_v_self __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_6PyCafe_6CyCafe_390monitorStart(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePV, __pyx_v_cb, __pyx_v_dbr, __pyx_v_mask, __pyx_v_notify_milliseconds); - /* "PyCafe.pyx":6443 + /* "PyCafe.pyx":6650 * * ############################################################################ * def monitorStart( # <<<<<<<<<<<<<< @@ -110345,7 +114023,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa Py_ssize_t __pyx_t_8; __Pyx_RefNannySetupContext("monitorStart", 0); - /* "PyCafe.pyx":6448 + /* "PyCafe.pyx":6655 * unsigned short notify_milliseconds=0): * * _METHOD = "monitorStart(handlePV, object cb=None, \ # <<<<<<<<<<<<<< @@ -110355,7 +114033,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_monitorStart_handlePV_object_cb); __pyx_v__METHOD = __pyx_kp_u_monitorStart_handlePV_object_cb; - /* "PyCafe.pyx":6452 + /* "PyCafe.pyx":6659 * unsigned int mask=DBE_VALUE|DBE_LOG|DBE_ALARM)" * * pv = None # <<<<<<<<<<<<<< @@ -110365,7 +114043,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __Pyx_INCREF(Py_None); __pyx_v_pv = Py_None; - /* "PyCafe.pyx":6453 + /* "PyCafe.pyx":6660 * * pv = None * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -110374,7 +114052,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":6458 + /* "PyCafe.pyx":6665 * # my_callback=callbackHandlerMonitor * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -110383,7 +114061,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":6459 + /* "PyCafe.pyx":6666 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -110404,17 +114082,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6460 + /* "PyCafe.pyx":6667 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * pv = handlePV */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6460, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6667, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6459 + /* "PyCafe.pyx":6666 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -110424,7 +114102,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":6461 + /* "PyCafe.pyx":6668 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -110435,7 +114113,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6462 + /* "PyCafe.pyx":6669 * handle = handlePV * elif isinstance(handlePV, (str)): * pv = handlePV # <<<<<<<<<<<<<< @@ -110445,21 +114123,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_v_handlePV); __Pyx_DECREF_SET(__pyx_v_pv, __pyx_v_handlePV); - /* "PyCafe.pyx":6463 + /* "PyCafe.pyx":6670 * elif isinstance(handlePV, (str)): * pv = handlePV * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6463, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6463, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6463, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6461 + /* "PyCafe.pyx":6668 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -110469,7 +114147,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":6465 + /* "PyCafe.pyx":6672 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -110478,33 +114156,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ /*else*/ { - /* "PyCafe.pyx":6466 + /* "PyCafe.pyx":6673 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info="First input argument, should be of type if handle, \ * else if PV") */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6466, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6466, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6466, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_10) < 0) __PYX_ERR(3, 6466, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6673, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6673, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_10) < 0) __PYX_ERR(3, 6673, __pyx_L1_error) - /* "PyCafe.pyx":6465 + /* "PyCafe.pyx":6672 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6465, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6469 + /* "PyCafe.pyx":6676 * _error_info="First input argument, should be of type if handle, \ * else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -110512,11 +114190,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa * # Does channel Exist? */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6469, __pyx_L1_error) + __PYX_ERR(3, 6676, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6472 + /* "PyCafe.pyx":6679 * * # Does channel Exist? * if not self._c_cafe.isValid(handle): # <<<<<<<<<<<<<< @@ -110526,7 +114204,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_1 = ((!(__pyx_v_self->_c_cafe->isValid(__pyx_v_handle) != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6473 + /* "PyCafe.pyx":6680 * # Does channel Exist? * if not self._c_cafe.isValid(handle): * status = ECAFE_INVALID_HANDLE # <<<<<<<<<<<<<< @@ -110535,7 +114213,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_status = ECAFE_INVALID_HANDLE; - /* "PyCafe.pyx":6474 + /* "PyCafe.pyx":6681 * if not self._c_cafe.isValid(handle): * status = ECAFE_INVALID_HANDLE * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -110545,65 +114223,65 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6476 + /* "PyCafe.pyx":6683 * if self._enable_exceptions: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, _pv_name=pv, # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6476, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_handle, __pyx_t_5) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_v_pv) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_pv_name, __pyx_v_pv) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) - /* "PyCafe.pyx":6477 + /* "PyCafe.pyx":6684 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _handle=handle, _pv_name=pv, * _error_code=status, _error_text=self.cs.code(status), # <<<<<<<<<<<<<< * _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6477, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6477, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6478 + /* "PyCafe.pyx":6685 * _type='CafeError', _source=_METHOD, _handle=handle, _pv_name=pv, * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * return status */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6478, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 6476, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 6683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6475 + /* "PyCafe.pyx":6682 * status = ECAFE_INVALID_HANDLE * if self._enable_exceptions: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _handle=handle, _pv_name=pv, * _error_code=status, _error_text=self.cs.code(status), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6475, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6479 + /* "PyCafe.pyx":6686 * _error_code=status, _error_text=self.cs.code(status), * _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -110611,9 +114289,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6479, __pyx_L1_error) + __PYX_ERR(3, 6686, __pyx_L1_error) - /* "PyCafe.pyx":6474 + /* "PyCafe.pyx":6681 * if not self._c_cafe.isValid(handle): * status = ECAFE_INVALID_HANDLE * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -110622,7 +114300,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6480 + /* "PyCafe.pyx":6687 * _error_info=self.cs.info(status)) * raise _cafeException * return status # <<<<<<<<<<<<<< @@ -110630,13 +114308,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa * cdef MonitorPolicy mp */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6480, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6472 + /* "PyCafe.pyx":6679 * * # Does channel Exist? * if not self._c_cafe.isValid(handle): # <<<<<<<<<<<<<< @@ -110645,7 +114323,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6483 + /* "PyCafe.pyx":6690 * * cdef MonitorPolicy mp * cdef unsigned long mpid = mp.getMonitorID() # <<<<<<<<<<<<<< @@ -110654,7 +114332,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mpid = __pyx_v_mp.getMonitorID(); - /* "PyCafe.pyx":6487 + /* "PyCafe.pyx":6694 * # For setUserArgs pass the address of the variable. * * mp.setMask(mask) # <<<<<<<<<<<<<< @@ -110663,7 +114341,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setMask(__pyx_v_mask); - /* "PyCafe.pyx":6488 + /* "PyCafe.pyx":6695 * * mp.setMask(mask) * mp.setNotifyDeltaMilliSeconds(notify_milliseconds) # <<<<<<<<<<<<<< @@ -110672,7 +114350,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setNotifyDeltaMilliSeconds(__pyx_v_notify_milliseconds); - /* "PyCafe.pyx":6491 + /* "PyCafe.pyx":6698 * * #print ("dbr=", dbr) * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -110681,7 +114359,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":6494 + /* "PyCafe.pyx":6701 * #print ("nativeDataType=", self.channelInfo.getDataType()) * * if dbr in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -110695,7 +114373,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa case DBR_GR: case DBR_CTRL: - /* "PyCafe.pyx":6496 + /* "PyCafe.pyx":6703 * if dbr in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: * # set Native Datatype first * mp.setDataType(self.channelInfo.getDataType()) # <<<<<<<<<<<<<< @@ -110704,7 +114382,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setDataType(__pyx_v_self->channelInfo.getDataType()); - /* "PyCafe.pyx":6497 + /* "PyCafe.pyx":6704 * # set Native Datatype first * mp.setDataType(self.channelInfo.getDataType()) * mp.setCafeDbrType(dbr) # <<<<<<<<<<<<<< @@ -110713,7 +114391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setCafeDbrType(__pyx_v_dbr); - /* "PyCafe.pyx":6494 + /* "PyCafe.pyx":6701 * #print ("nativeDataType=", self.channelInfo.getDataType()) * * if dbr in [DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL]: # <<<<<<<<<<<<<< @@ -110723,14 +114401,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa break; default: - /* "PyCafe.pyx":6501 + /* "PyCafe.pyx":6708 * #print ("def monitorStart ", mp.getDbrDataType()) * else: * print("***Warning*** from monitorStart for handle=", handlePV) # <<<<<<<<<<<<<< * print("dbr base type should be one of \ * DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") */ - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6501, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_kp_u_Warning_from_monitorStart_for_h); __Pyx_GIVEREF(__pyx_kp_u_Warning_from_monitorStart_for_h); @@ -110738,34 +114416,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_v_handlePV); __Pyx_GIVEREF(__pyx_v_handlePV); PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_handlePV); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6501, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6502 + /* "PyCafe.pyx":6709 * else: * print("***Warning*** from monitorStart for handle=", handlePV) * print("dbr base type should be one of \ # <<<<<<<<<<<<<< * DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__119, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6502, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__114, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6504 + /* "PyCafe.pyx":6711 * print("dbr base type should be one of \ * DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") # <<<<<<<<<<<<<< * mp.setDataType(self.channelInfo.getDataType()) * mp.setCafeDbrType(DBR_TIME) */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6504, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6505 + /* "PyCafe.pyx":6712 * DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") * mp.setDataType(self.channelInfo.getDataType()) # <<<<<<<<<<<<<< @@ -110774,7 +114452,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setDataType(__pyx_v_self->channelInfo.getDataType()); - /* "PyCafe.pyx":6506 + /* "PyCafe.pyx":6713 * print("Assuming DBR_TIME") * mp.setDataType(self.channelInfo.getDataType()) * mp.setCafeDbrType(DBR_TIME) # <<<<<<<<<<<<<< @@ -110785,7 +114463,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa break; } - /* "PyCafe.pyx":6510 + /* "PyCafe.pyx":6717 * global hmd * * if cb is not None: # <<<<<<<<<<<<<< @@ -110796,32 +114474,32 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6512 + /* "PyCafe.pyx":6719 * if cb is not None: * #Cement to a global dictionary * hmd[cb] = mpid ##otherwise cb gets ovewritten when casting to an object # <<<<<<<<<<<<<< * * sig = inspect.signature(cb) */ - __pyx_t_6 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6512, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6512, __pyx_L1_error) + __PYX_ERR(3, 6719, __pyx_L1_error) } - if (unlikely(PyDict_SetItem(__pyx_v_6PyCafe_hmd, __pyx_v_cb, __pyx_t_6) < 0)) __PYX_ERR(3, 6512, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_6PyCafe_hmd, __pyx_v_cb, __pyx_t_6) < 0)) __PYX_ERR(3, 6719, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6514 + /* "PyCafe.pyx":6721 * hmd[cb] = mpid ##otherwise cb gets ovewritten when casting to an object * * sig = inspect.signature(cb) # <<<<<<<<<<<<<< * * # The corresponding setPyHandler has to be set!! */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_inspect); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6514, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_inspect); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_signature); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6514, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_signature); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; @@ -110836,13 +114514,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa } __pyx_t_6 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_v_cb) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_cb); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6514, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_sig = __pyx_t_6; __pyx_t_6 = 0; - /* "PyCafe.pyx":6518 + /* "PyCafe.pyx":6725 * # The corresponding setPyHandler has to be set!! * * mp.setUserArgs(< void * > mpid) # <<<<<<<<<<<<<< @@ -110851,20 +114529,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setUserArgs(((void *)__pyx_v_mpid)); - /* "PyCafe.pyx":6519 + /* "PyCafe.pyx":6726 * * mp.setUserArgs(< void * > mpid) * mp.setNoCyCallbackParameters(len(sig.parameters)) # <<<<<<<<<<<<<< * mp.setPyCyHandler( cb) * */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6519, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sig, __pyx_n_s_parameters); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6726, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6519, __pyx_L1_error) + __pyx_t_8 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6726, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_mp.setNoCyCallbackParameters(__pyx_t_8); - /* "PyCafe.pyx":6520 + /* "PyCafe.pyx":6727 * mp.setUserArgs(< void * > mpid) * mp.setNoCyCallbackParameters(len(sig.parameters)) * mp.setPyCyHandler( cb) # <<<<<<<<<<<<<< @@ -110873,7 +114551,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_mp.setPyCyHandler(((void *)__pyx_v_cb)); - /* "PyCafe.pyx":6510 + /* "PyCafe.pyx":6717 * global hmd * * if cb is not None: # <<<<<<<<<<<<<< @@ -110882,7 +114560,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6522 + /* "PyCafe.pyx":6729 * mp.setPyCyHandler( cb) * * with nogil: # <<<<<<<<<<<<<< @@ -110897,7 +114575,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa #endif /*try:*/ { - /* "PyCafe.pyx":6523 + /* "PyCafe.pyx":6730 * * with nogil: * status = self._c_cafe.monitorStart(handle, mp) # <<<<<<<<<<<<<< @@ -110907,7 +114585,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_v_status = __pyx_v_self->_c_cafe->monitorStart(__pyx_v_handle, __pyx_v_mp); } - /* "PyCafe.pyx":6522 + /* "PyCafe.pyx":6729 * mp.setPyCyHandler( cb) * * with nogil: # <<<<<<<<<<<<<< @@ -110926,7 +114604,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa } } - /* "PyCafe.pyx":6527 + /* "PyCafe.pyx":6734 * # Need this to allow a fraction of a second for the callback fn to be called * # if setPyHandler is used * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() # <<<<<<<<<<<<<< @@ -110935,7 +114613,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_wtfsb = __pyx_v_self->_c_cafe->channelOpenGroupPolicy.getWhenToFlushSendBuffer(); - /* "PyCafe.pyx":6528 + /* "PyCafe.pyx":6735 * # if setPyHandler is used * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() * if wtfsb == FLUSH_NOW: # <<<<<<<<<<<<<< @@ -110945,16 +114623,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = ((__pyx_v_wtfsb == FLUSH_NOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6530 + /* "PyCafe.pyx":6737 * if wtfsb == FLUSH_NOW: * # if self.getMonitorWhenToFlushSendBuffer() == FLUSH_NOW: * time.sleep(0.01) # <<<<<<<<<<<<<< * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6530, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6530, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; @@ -110969,12 +114647,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa } __pyx_t_6 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_float_0_01) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_float_0_01); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6530, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6528 + /* "PyCafe.pyx":6735 * # if setPyHandler is used * cdef short wtfsb = self._c_cafe.channelOpenGroupPolicy.getWhenToFlushSendBuffer() * if wtfsb == FLUSH_NOW: # <<<<<<<<<<<<<< @@ -110983,7 +114661,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6531 + /* "PyCafe.pyx":6738 * # if self.getMonitorWhenToFlushSendBuffer() == FLUSH_NOW: * time.sleep(0.01) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -110993,7 +114671,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6532 + /* "PyCafe.pyx":6739 * time.sleep(0.01) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -111003,7 +114681,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6533 + /* "PyCafe.pyx":6740 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -111013,7 +114691,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6534 + /* "PyCafe.pyx":6741 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -111022,7 +114700,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6533 + /* "PyCafe.pyx":6740 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -111032,7 +114710,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa goto __pyx_L15; } - /* "PyCafe.pyx":6536 + /* "PyCafe.pyx":6743 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -111044,7 +114722,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa } __pyx_L15:; - /* "PyCafe.pyx":6532 + /* "PyCafe.pyx":6739 * time.sleep(0.01) * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -111053,7 +114731,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6531 + /* "PyCafe.pyx":6738 * # if self.getMonitorWhenToFlushSendBuffer() == FLUSH_NOW: * time.sleep(0.01) * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -111062,7 +114740,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":6538 + /* "PyCafe.pyx":6745 * self._c_cafe.printStatus(handle, status) * * return mpid # <<<<<<<<<<<<<< @@ -111070,13 +114748,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6538, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_long(__pyx_v_mpid); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6443 + /* "PyCafe.pyx":6650 * * ############################################################################ * def monitorStart( # <<<<<<<<<<<<<< @@ -111103,7 +114781,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_390monitorStart(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":6543 +/* "PyCafe.pyx":6750 * ############################################################################ * * def monitorStop(self, handlePV, mpid=None): # <<<<<<<<<<<<<< @@ -111147,7 +114825,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_393monitorStop(PyObject *__pyx_v_self, } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitorStop") < 0)) __PYX_ERR(3, 6543, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "monitorStop") < 0)) __PYX_ERR(3, 6750, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -111163,7 +114841,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_393monitorStop(PyObject *__pyx_v_self, } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("monitorStop", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6543, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("monitorStop", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6750, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.monitorStop", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -111199,7 +114877,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf PyObject *__pyx_t_10 = NULL; __Pyx_RefNannySetupContext("monitorStop", 0); - /* "PyCafe.pyx":6544 + /* "PyCafe.pyx":6751 * * def monitorStop(self, handlePV, mpid=None): * cdef str _METHOD = "monitorStop(handlePV, mpid=None)" # <<<<<<<<<<<<<< @@ -111209,7 +114887,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_kp_u_monitorStop_handlePV_mpid_None); __pyx_v__METHOD = __pyx_kp_u_monitorStop_handlePV_mpid_None; - /* "PyCafe.pyx":6546 + /* "PyCafe.pyx":6753 * cdef str _METHOD = "monitorStop(handlePV, mpid=None)" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -111218,7 +114896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ __pyx_v_handle = 0; - /* "PyCafe.pyx":6547 + /* "PyCafe.pyx":6754 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -111239,17 +114917,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6548 + /* "PyCafe.pyx":6755 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6548, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6755, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6547 + /* "PyCafe.pyx":6754 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -111259,7 +114937,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf goto __pyx_L3; } - /* "PyCafe.pyx":6549 + /* "PyCafe.pyx":6756 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -111270,21 +114948,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6550 + /* "PyCafe.pyx":6757 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6550, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6550, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6757, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6550, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6757, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6549 + /* "PyCafe.pyx":6756 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -111294,7 +114972,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf goto __pyx_L3; } - /* "PyCafe.pyx":6552 + /* "PyCafe.pyx":6759 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -111303,33 +114981,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ /*else*/ { - /* "PyCafe.pyx":6553 + /* "PyCafe.pyx":6760 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info="First input argument, should be of type if handle, \ * else if PV") */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6553, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6553, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6553, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_3) < 0) __PYX_ERR(3, 6553, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6760, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6760, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_3) < 0) __PYX_ERR(3, 6760, __pyx_L1_error) - /* "PyCafe.pyx":6552 + /* "PyCafe.pyx":6759 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6552, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6556 + /* "PyCafe.pyx":6763 * _error_info="First input argument, should be of type if handle, \ * else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -111337,31 +115015,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf * cdef int status */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6556, __pyx_L1_error) + __PYX_ERR(3, 6763, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6563 + /* "PyCafe.pyx":6770 * global hmd * * if mpid: # <<<<<<<<<<<<<< * mpid_no_coercion = mpid * if isinstance(mpid, (int, long)): */ - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_mpid); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6563, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_mpid); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6770, __pyx_L1_error) if (__pyx_t_1) { - /* "PyCafe.pyx":6564 + /* "PyCafe.pyx":6771 * * if mpid: * mpid_no_coercion = mpid # <<<<<<<<<<<<<< * if isinstance(mpid, (int, long)): * mpid_no_coercion = mpid */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_mpid); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6564, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_mpid); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6771, __pyx_L1_error) __pyx_v_mpid_no_coercion = __pyx_t_4; - /* "PyCafe.pyx":6565 + /* "PyCafe.pyx":6772 * if mpid: * mpid_no_coercion = mpid * if isinstance(mpid, (int, long)): # <<<<<<<<<<<<<< @@ -111382,17 +115060,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6566 + /* "PyCafe.pyx":6773 * mpid_no_coercion = mpid * if isinstance(mpid, (int, long)): * mpid_no_coercion = mpid # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.monitorStopWithID(handle, mpid_no_coercion) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_mpid); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6566, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_mpid); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6773, __pyx_L1_error) __pyx_v_mpid_no_coercion = __pyx_t_4; - /* "PyCafe.pyx":6567 + /* "PyCafe.pyx":6774 * if isinstance(mpid, (int, long)): * mpid_no_coercion = mpid * with nogil: # <<<<<<<<<<<<<< @@ -111407,7 +115085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf #endif /*try:*/ { - /* "PyCafe.pyx":6568 + /* "PyCafe.pyx":6775 * mpid_no_coercion = mpid * with nogil: * status = self._c_cafe.monitorStopWithID(handle, mpid_no_coercion) # <<<<<<<<<<<<<< @@ -111417,7 +115095,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_v_status = __pyx_v_self->_c_cafe->monitorStopWithID(__pyx_v_handle, __pyx_v_mpid_no_coercion); } - /* "PyCafe.pyx":6567 + /* "PyCafe.pyx":6774 * if isinstance(mpid, (int, long)): * mpid_no_coercion = mpid * with nogil: # <<<<<<<<<<<<<< @@ -111436,16 +115114,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } } - /* "PyCafe.pyx":6569 + /* "PyCafe.pyx":6776 * with nogil: * status = self._c_cafe.monitorStopWithID(handle, mpid_no_coercion) * time.sleep(0.001) # <<<<<<<<<<<<<< * l = None * if mpid not in list(hmd.values()): */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_time); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6569, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_time); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_sleep); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6569, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_sleep); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; @@ -111460,12 +115138,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_t_6 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_5, __pyx_float_0_001) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_float_0_001); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6569, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6570 + /* "PyCafe.pyx":6777 * status = self._c_cafe.monitorStopWithID(handle, mpid_no_coercion) * time.sleep(0.001) * l = None # <<<<<<<<<<<<<< @@ -111475,7 +115153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __Pyx_INCREF(Py_None); __pyx_v_l = Py_None; - /* "PyCafe.pyx":6571 + /* "PyCafe.pyx":6778 * time.sleep(0.001) * l = None * if mpid not in list(hmd.values()): # <<<<<<<<<<<<<< @@ -111484,21 +115162,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 6571, __pyx_L1_error) + __PYX_ERR(3, 6778, __pyx_L1_error) } - __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6571, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6571, __pyx_L1_error) + __pyx_t_7 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_mpid, __pyx_t_7, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6571, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_mpid, __pyx_t_7, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6778, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { goto __pyx_L13; } - /* "PyCafe.pyx":6574 + /* "PyCafe.pyx":6781 * pass #happens when is direct mode in table widget * else: * l = list(hmd.keys())[list(hmd.values()).index(mpid)] # <<<<<<<<<<<<<< @@ -111508,23 +115186,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf /*else*/ { if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys"); - __PYX_ERR(3, 6574, __pyx_L1_error) + __PYX_ERR(3, 6781, __pyx_L1_error) } - __pyx_t_7 = __Pyx_PyDict_Keys(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyDict_Keys(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = PySequence_List(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_6 = PySequence_List(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 6574, __pyx_L1_error) + __PYX_ERR(3, 6781, __pyx_L1_error) } - __pyx_t_5 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_8 = PySequence_List(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_8 = PySequence_List(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; @@ -111539,10 +115217,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_t_7 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_8, __pyx_v_mpid) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_mpid); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6574, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6574, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -111551,7 +115229,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_L13:; - /* "PyCafe.pyx":6575 + /* "PyCafe.pyx":6782 * else: * l = list(hmd.keys())[list(hmd.values()).index(mpid)] * if l is not None: # <<<<<<<<<<<<<< @@ -111562,7 +115240,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6576 + /* "PyCafe.pyx":6783 * l = list(hmd.keys())[list(hmd.values()).index(mpid)] * if l is not None: * del hmd[l] # <<<<<<<<<<<<<< @@ -111571,11 +115249,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6576, __pyx_L1_error) + __PYX_ERR(3, 6783, __pyx_L1_error) } - if (unlikely(PyDict_DelItem(__pyx_v_6PyCafe_hmd, __pyx_v_l) < 0)) __PYX_ERR(3, 6576, __pyx_L1_error) + if (unlikely(PyDict_DelItem(__pyx_v_6PyCafe_hmd, __pyx_v_l) < 0)) __PYX_ERR(3, 6783, __pyx_L1_error) - /* "PyCafe.pyx":6575 + /* "PyCafe.pyx":6782 * else: * l = list(hmd.keys())[list(hmd.values()).index(mpid)] * if l is not None: # <<<<<<<<<<<<<< @@ -111584,7 +115262,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6565 + /* "PyCafe.pyx":6772 * if mpid: * mpid_no_coercion = mpid * if isinstance(mpid, (int, long)): # <<<<<<<<<<<<<< @@ -111594,7 +115272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf goto __pyx_L7; } - /* "PyCafe.pyx":6578 + /* "PyCafe.pyx":6785 * del hmd[l] * else: * raise Exception("EXCEPTION RAISED IN PyCafe def monitorStop. \n \ # <<<<<<<<<<<<<< @@ -111602,15 +115280,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf * else: */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__120, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6578, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__115, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 6578, __pyx_L1_error) + __PYX_ERR(3, 6785, __pyx_L1_error) } __pyx_L7:; - /* "PyCafe.pyx":6563 + /* "PyCafe.pyx":6770 * global hmd * * if mpid: # <<<<<<<<<<<<<< @@ -111620,7 +115298,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf goto __pyx_L6; } - /* "PyCafe.pyx":6581 + /* "PyCafe.pyx":6788 * monitorPolicy ID (mpid) should be of type ") * else: * mids = self.hh.getMonitorIDs(handle) # <<<<<<<<<<<<<< @@ -111630,7 +115308,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf /*else*/ { __pyx_v_mids = __pyx_v_self->hh.getMonitorIDs(__pyx_v_handle); - /* "PyCafe.pyx":6582 + /* "PyCafe.pyx":6789 * else: * mids = self.hh.getMonitorIDs(handle) * with nogil: # <<<<<<<<<<<<<< @@ -111645,7 +115323,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf #endif /*try:*/ { - /* "PyCafe.pyx":6583 + /* "PyCafe.pyx":6790 * mids = self.hh.getMonitorIDs(handle) * with nogil: * status = self._c_cafe.monitorStop(handle) # <<<<<<<<<<<<<< @@ -111655,7 +115333,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_v_status = __pyx_v_self->_c_cafe->monitorStop(__pyx_v_handle); } - /* "PyCafe.pyx":6582 + /* "PyCafe.pyx":6789 * else: * mids = self.hh.getMonitorIDs(handle) * with nogil: # <<<<<<<<<<<<<< @@ -111674,16 +115352,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } } - /* "PyCafe.pyx":6584 + /* "PyCafe.pyx":6791 * with nogil: * status = self._c_cafe.monitorStop(handle) * time.sleep(0.001) # <<<<<<<<<<<<<< * * for monid in mids: */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6584, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_time); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6584, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_sleep); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; @@ -111698,12 +115376,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_t_5 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_float_0_001) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_float_0_001); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6584, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":6586 + /* "PyCafe.pyx":6793 * time.sleep(0.001) * * for monid in mids: # <<<<<<<<<<<<<< @@ -111717,31 +115395,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf ++__pyx_t_9; __pyx_v_monid = __pyx_t_4; - /* "PyCafe.pyx":6587 + /* "PyCafe.pyx":6794 * * for monid in mids: * if monid not in list(hmd.values()): # <<<<<<<<<<<<<< * continue * l = list(hmd.keys())[list(hmd.values()).index(monid)] */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_monid); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6587, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_monid); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 6587, __pyx_L1_error) + __PYX_ERR(3, 6794, __pyx_L1_error) } - __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6587, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6587, __pyx_L1_error) + __pyx_t_7 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_5, __pyx_t_7, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6587, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_5, __pyx_t_7, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(3, 6794, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6588 + /* "PyCafe.pyx":6795 * for monid in mids: * if monid not in list(hmd.values()): * continue # <<<<<<<<<<<<<< @@ -111750,7 +115428,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ goto __pyx_L18_continue; - /* "PyCafe.pyx":6587 + /* "PyCafe.pyx":6794 * * for monid in mids: * if monid not in list(hmd.values()): # <<<<<<<<<<<<<< @@ -111759,7 +115437,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6589 + /* "PyCafe.pyx":6796 * if monid not in list(hmd.values()): * continue * l = list(hmd.keys())[list(hmd.values()).index(monid)] # <<<<<<<<<<<<<< @@ -111768,26 +115446,26 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "keys"); - __PYX_ERR(3, 6589, __pyx_L1_error) + __PYX_ERR(3, 6796, __pyx_L1_error) } - __pyx_t_7 = __Pyx_PyDict_Keys(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyDict_Keys(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_5 = PySequence_List(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_5 = PySequence_List(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values"); - __PYX_ERR(3, 6589, __pyx_L1_error) + __PYX_ERR(3, 6796, __pyx_L1_error) } - __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_Values(__pyx_v_6PyCafe_hmd); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_8 = PySequence_List(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_index); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_monid); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_unsigned_int(__pyx_v_monid); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -111802,17 +115480,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_7 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6589, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6589, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF_SET(__pyx_v_l, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6590 + /* "PyCafe.pyx":6797 * continue * l = list(hmd.keys())[list(hmd.values()).index(monid)] * if l is not None: # <<<<<<<<<<<<<< @@ -111823,7 +115501,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6591 + /* "PyCafe.pyx":6798 * l = list(hmd.keys())[list(hmd.values()).index(monid)] * if l is not None: * del hmd[l] # <<<<<<<<<<<<<< @@ -111832,11 +115510,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 6591, __pyx_L1_error) + __PYX_ERR(3, 6798, __pyx_L1_error) } - if (unlikely(PyDict_DelItem(__pyx_v_6PyCafe_hmd, __pyx_v_l) < 0)) __PYX_ERR(3, 6591, __pyx_L1_error) + if (unlikely(PyDict_DelItem(__pyx_v_6PyCafe_hmd, __pyx_v_l) < 0)) __PYX_ERR(3, 6798, __pyx_L1_error) - /* "PyCafe.pyx":6590 + /* "PyCafe.pyx":6797 * continue * l = list(hmd.keys())[list(hmd.values()).index(monid)] * if l is not None: # <<<<<<<<<<<<<< @@ -111845,7 +115523,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6586 + /* "PyCafe.pyx":6793 * time.sleep(0.001) * * for monid in mids: # <<<<<<<<<<<<<< @@ -111857,7 +115535,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_L6:; - /* "PyCafe.pyx":6593 + /* "PyCafe.pyx":6800 * del hmd[l] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -111867,7 +115545,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6594 + /* "PyCafe.pyx":6801 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -111877,7 +115555,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6595 + /* "PyCafe.pyx":6802 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -111887,7 +115565,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf __pyx_t_2 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6596 + /* "PyCafe.pyx":6803 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -111896,7 +115574,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6595 + /* "PyCafe.pyx":6802 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -111906,7 +115584,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf goto __pyx_L24; } - /* "PyCafe.pyx":6598 + /* "PyCafe.pyx":6805 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -111918,7 +115596,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf } __pyx_L24:; - /* "PyCafe.pyx":6594 + /* "PyCafe.pyx":6801 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -111927,7 +115605,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6593 + /* "PyCafe.pyx":6800 * del hmd[l] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -111936,7 +115614,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":6600 + /* "PyCafe.pyx":6807 * self._c_cafe.printStatus(handle, status) * * return status # <<<<<<<<<<<<<< @@ -111944,13 +115622,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6600, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6543 + /* "PyCafe.pyx":6750 * ############################################################################ * * def monitorStop(self, handlePV, mpid=None): # <<<<<<<<<<<<<< @@ -111978,7 +115656,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_392monitorStop(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":6603 +/* "PyCafe.pyx":6810 * * ############################################################################ * def monitorStopAll(self): # <<<<<<<<<<<<<< @@ -112012,7 +115690,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("monitorStopAll", 0); - /* "PyCafe.pyx":6605 + /* "PyCafe.pyx":6812 * def monitorStopAll(self): * * cdef str _METHOD = "monitorStopAll()" # <<<<<<<<<<<<<< @@ -112022,7 +115700,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py __Pyx_INCREF(__pyx_kp_u_monitorStopAll); __pyx_v__METHOD = __pyx_kp_u_monitorStopAll; - /* "PyCafe.pyx":6609 + /* "PyCafe.pyx":6816 * * * with nogil: # <<<<<<<<<<<<<< @@ -112037,7 +115715,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py #endif /*try:*/ { - /* "PyCafe.pyx":6610 + /* "PyCafe.pyx":6817 * * with nogil: * status = self._c_cafe.monitorStopAll() # <<<<<<<<<<<<<< @@ -112047,7 +115725,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py __pyx_v_status = __pyx_v_self->_c_cafe->monitorStopAll(); } - /* "PyCafe.pyx":6609 + /* "PyCafe.pyx":6816 * * * with nogil: # <<<<<<<<<<<<<< @@ -112066,16 +115744,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py } } - /* "PyCafe.pyx":6613 + /* "PyCafe.pyx":6820 * * # give plenty of time for monitors to stop! * time.sleep(0.2) # <<<<<<<<<<<<<< * * hmd.clear() */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6613, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_time); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6613, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_sleep); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; @@ -112090,12 +115768,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py } __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_float_0_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_float_0_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6613, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":6615 + /* "PyCafe.pyx":6822 * time.sleep(0.2) * * hmd.clear() # <<<<<<<<<<<<<< @@ -112104,11 +115782,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py */ if (unlikely(__pyx_v_6PyCafe_hmd == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "clear"); - __PYX_ERR(3, 6615, __pyx_L1_error) + __PYX_ERR(3, 6822, __pyx_L1_error) } - __pyx_t_4 = __Pyx_PyDict_Clear(__pyx_v_6PyCafe_hmd); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(3, 6615, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_Clear(__pyx_v_6PyCafe_hmd); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(3, 6822, __pyx_L1_error) - /* "PyCafe.pyx":6617 + /* "PyCafe.pyx":6824 * hmd.clear() * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -112118,7 +115796,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py __pyx_t_5 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":6618 + /* "PyCafe.pyx":6825 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -112128,7 +115806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":6619 + /* "PyCafe.pyx":6826 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -112137,7 +115815,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":6618 + /* "PyCafe.pyx":6825 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -112146,16 +115824,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":6622 + /* "PyCafe.pyx":6829 * raise Exception( * "EXCEPTION RAISED in PyCafe def monitorStopAll. Status = {0}" * .format(status)) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6622, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6622, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -112170,25 +115848,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py __pyx_t_1 = (__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_1)) __PYX_ERR(3, 6622, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":6620 + /* "PyCafe.pyx":6827 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def monitorStopAll. Status = {0}" * .format(status)) */ - __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6620, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 6620, __pyx_L1_error) + __PYX_ERR(3, 6827, __pyx_L1_error) - /* "PyCafe.pyx":6617 + /* "PyCafe.pyx":6824 * hmd.clear() * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -112197,7 +115875,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py */ } - /* "PyCafe.pyx":6624 + /* "PyCafe.pyx":6831 * .format(status)) * * return status # <<<<<<<<<<<<<< @@ -112205,13 +115883,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6624, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6603 + /* "PyCafe.pyx":6810 * * ############################################################################ * def monitorStopAll(self): # <<<<<<<<<<<<<< @@ -112236,7 +115914,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_394monitorStopAll(struct __pyx_obj_6Py return __pyx_r; } -/* "PyCafe.pyx":6629 +/* "PyCafe.pyx":6836 * ############################################################################## * * def set(self, handlePV, valSet): # <<<<<<<<<<<<<< @@ -112275,11 +115953,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_397set(PyObject *__pyx_v_self, PyObjec case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valSet)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(3, 6629, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(3, 6836, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(3, 6629, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(3, 6836, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -112292,7 +115970,7 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_397set(PyObject *__pyx_v_self, PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6629, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6836, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.set", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -112397,7 +116075,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_RefNannySetupContext("set", 0); __Pyx_INCREF(__pyx_v_valSet); - /* "PyCafe.pyx":6630 + /* "PyCafe.pyx":6837 * * def set(self, handlePV, valSet): * cdef str _METHOD = "set(handlePV, valSet)" # <<<<<<<<<<<<<< @@ -112407,7 +116085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_kp_u_set_handlePV_valSet); __pyx_v__METHOD = __pyx_kp_u_set_handlePV_valSet; - /* "PyCafe.pyx":6632 + /* "PyCafe.pyx":6839 * cdef str _METHOD = "set(handlePV, valSet)" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -112416,7 +116094,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_handle = 0; - /* "PyCafe.pyx":6634 + /* "PyCafe.pyx":6841 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -112437,17 +116115,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6635 + /* "PyCafe.pyx":6842 * * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6635, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6842, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6634 + /* "PyCafe.pyx":6841 * cdef unsigned int handle = 0 * * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -112457,7 +116135,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6636 + /* "PyCafe.pyx":6843 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -112468,21 +116146,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6637 + /* "PyCafe.pyx":6844 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6637, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6637, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 6844, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6637, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":6636 + /* "PyCafe.pyx":6843 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -112492,7 +116170,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L3; } - /* "PyCafe.pyx":6639 + /* "PyCafe.pyx":6846 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -112501,33 +116179,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ /*else*/ { - /* "PyCafe.pyx":6640 + /* "PyCafe.pyx":6847 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info="First input argument, should be of type if handle, \ * else if PV") */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6640, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6640, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6640, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_3) < 0) __PYX_ERR(3, 6640, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 6847, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 6847, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_3) < 0) __PYX_ERR(3, 6847, __pyx_L1_error) - /* "PyCafe.pyx":6639 + /* "PyCafe.pyx":6846 * handle = self.checkForHandle(handlePV) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if handle, \ */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6639, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6643 + /* "PyCafe.pyx":6850 * _error_info="First input argument, should be of type if handle, \ * else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -112535,11 +116213,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 6643, __pyx_L1_error) + __PYX_ERR(3, 6850, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":6648 + /* "PyCafe.pyx":6855 * # CHECK FOR ALL DATA TYPES! * * cdef unsigned short valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -112548,7 +116226,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":6649 + /* "PyCafe.pyx":6856 * * cdef unsigned short valType = CAFE_STRING * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -112557,7 +116235,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":6666 + /* "PyCafe.pyx":6873 * cdef vector[string] vecS * * cdef unsigned int nLA = 0 # <<<<<<<<<<<<<< @@ -112566,29 +116244,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_nLA = 0; - /* "PyCafe.pyx":6668 + /* "PyCafe.pyx":6875 * cdef unsigned int nLA = 0 * * cdef tuple ctypesString = (ctypes.c_wchar, ctypes.c_char_p, ctypes.c_wchar_p) # <<<<<<<<<<<<<< * cdef tuple ctypesUChar = (ctypes.c_char, ctypes.c_ubyte, ctypes.c_bool, ctypes.c_uint8, ) * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6668, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_wchar); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6668, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_wchar); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6668, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_char_p); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6668, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_char_p); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6668, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_wchar_p); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6668, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_wchar_p); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6668, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); @@ -112602,34 +116280,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesString = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6669 + /* "PyCafe.pyx":6876 * * cdef tuple ctypesString = (ctypes.c_wchar, ctypes.c_char_p, ctypes.c_wchar_p) * cdef tuple ctypesUChar = (ctypes.c_char, ctypes.c_ubyte, ctypes.c_bool, ctypes.c_uint8, ) # <<<<<<<<<<<<<< * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6669, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_char); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6669, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_char); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6669, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ubyte); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6669, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ubyte); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6669, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_bool); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6669, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_bool); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6669, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6669, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6669, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); @@ -112646,34 +116324,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesUChar = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6670 + /* "PyCafe.pyx":6877 * cdef tuple ctypesString = (ctypes.c_wchar, ctypes.c_char_p, ctypes.c_wchar_p) * cdef tuple ctypesUChar = (ctypes.c_char, ctypes.c_ubyte, ctypes.c_bool, ctypes.c_uint8, ) * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) # <<<<<<<<<<<<<< * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_short); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_short); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_byte); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_byte); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6670, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); @@ -112690,24 +116368,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesShort = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6671 + /* "PyCafe.pyx":6878 * cdef tuple ctypesUChar = (ctypes.c_char, ctypes.c_ubyte, ctypes.c_bool, ctypes.c_uint8, ) * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) # <<<<<<<<<<<<<< * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, * ctypes.c_long, ctypes.c_size_t) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6671, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6671, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint16); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6671, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ushort); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6671, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ushort); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6671, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); @@ -112718,50 +116396,50 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesUShort = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6672 + /* "PyCafe.pyx":6879 * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, # <<<<<<<<<<<<<< * ctypes.c_long, ctypes.c_size_t) * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6672, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6672, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6672, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6672, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int32); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6673 + /* "PyCafe.pyx":6880 * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, * ctypes.c_long, ctypes.c_size_t) # <<<<<<<<<<<<<< * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6673, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_long); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6673, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_long); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6673, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_size_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6673, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_size_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6672 + /* "PyCafe.pyx":6879 * cdef tuple ctypesShort = (ctypes.c_int16, ctypes.c_int8, ctypes.c_short, ctypes.c_byte) * cdef tuple ctypesUShort = (ctypes.c_uint16, ctypes.c_ushort) * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, # <<<<<<<<<<<<<< * ctypes.c_long, ctypes.c_size_t) * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, */ - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6672, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); @@ -112778,101 +116456,101 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesInt = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6674 + /* "PyCafe.pyx":6881 * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, * ctypes.c_long, ctypes.c_size_t) * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, # <<<<<<<<<<<<<< * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, * ctypes.c_longlong, ctypes.c_ssize_t, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6674, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6674, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6674, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint32); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6674, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint32); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6674, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int64); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6674, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_int64); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6674, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint64); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6674, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_uint64); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6675 + /* "PyCafe.pyx":6882 * ctypes.c_long, ctypes.c_size_t) * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, # <<<<<<<<<<<<<< * ctypes.c_longlong, ctypes.c_ssize_t, * ctypes.c_void_p, ctypes.c_voidp) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6675, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ulong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6675, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ulong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6675, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ulonglong); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6675, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ulonglong); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6675, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_longdouble); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 6675, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_longdouble); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 6882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6676 + /* "PyCafe.pyx":6883 * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, * ctypes.c_longlong, ctypes.c_ssize_t, # <<<<<<<<<<<<<< * ctypes.c_void_p, ctypes.c_voidp) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6676, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_longlong); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6676, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_longlong); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6676, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ssize_t); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6676, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_ssize_t); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6677 + /* "PyCafe.pyx":6884 * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, * ctypes.c_longlong, ctypes.c_ssize_t, * ctypes.c_void_p, ctypes.c_voidp) # <<<<<<<<<<<<<< * * # ctypes.c_char, ctypes.c_float, ctypes.c_double are separate */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6677, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_void_p); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6677, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_void_p); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6677, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_voidp); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6677, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_voidp); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6674 + /* "PyCafe.pyx":6881 * cdef tuple ctypesInt = (ctypes.c_int, ctypes.c_int32, * ctypes.c_long, ctypes.c_size_t) * cdef tuple ctypesLongLong = (ctypes.c_uint, ctypes.c_uint32, ctypes.c_int64, ctypes.c_uint64, # <<<<<<<<<<<<<< * ctypes.c_ulong, ctypes.c_ulonglong, ctypes.c_longdouble, * ctypes.c_longlong, ctypes.c_ssize_t, */ - __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6674, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_9); @@ -112910,24 +116588,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ctypesLongLong = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6681 + /* "PyCafe.pyx":6888 * # ctypes.c_char, ctypes.c_float, ctypes.c_double are separate * * cdef tuple dtypesString = (np.str_, np.unicode_) # <<<<<<<<<<<<<< * cdef tuple dtypesUChar = (np.ubyte, np.bool8, np.bool_, np.uint8) * cdef tuple dtypesShort = (np.byte, np.short, np.int8, np.int16) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6681, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_str_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6681, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_str_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6681, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_unicode_2); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6681, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_unicode_2); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6681, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_16); @@ -112938,34 +116616,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesString = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6682 + /* "PyCafe.pyx":6889 * * cdef tuple dtypesString = (np.str_, np.unicode_) * cdef tuple dtypesUChar = (np.ubyte, np.bool8, np.bool_, np.uint8) # <<<<<<<<<<<<<< * cdef tuple dtypesShort = (np.byte, np.short, np.int8, np.int16) * cdef tuple dtypesUShort = (np.uint16, np.ushort) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6682, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ubyte); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6682, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ubyte); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6682, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_bool8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6682, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_bool8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6682, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_bool_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6682, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_bool_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6682, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint8); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6682, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint8); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6682, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_15); @@ -112982,34 +116660,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesUChar = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6683 + /* "PyCafe.pyx":6890 * cdef tuple dtypesString = (np.str_, np.unicode_) * cdef tuple dtypesUChar = (np.ubyte, np.bool8, np.bool_, np.uint8) * cdef tuple dtypesShort = (np.byte, np.short, np.int8, np.int16) # <<<<<<<<<<<<<< * cdef tuple dtypesUShort = (np.uint16, np.ushort) * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_byte); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_byte); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_short); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_short); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int8); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int16); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int16); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6683, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_13); @@ -113026,24 +116704,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesShort = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6684 + /* "PyCafe.pyx":6891 * cdef tuple dtypesUChar = (np.ubyte, np.bool8, np.bool_, np.uint8) * cdef tuple dtypesShort = (np.byte, np.short, np.int8, np.int16) * cdef tuple dtypesUShort = (np.uint16, np.ushort) # <<<<<<<<<<<<<< * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) * cdef tuple dtypesLongLong = (np.uint, np.uintc, np.uint32, np.int64, np.uint64, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6684, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint16); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6684, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint16); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6684, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ushort); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6684, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ushort); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6684, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_15); @@ -113054,34 +116732,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesUShort = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6685 + /* "PyCafe.pyx":6892 * cdef tuple dtypesShort = (np.byte, np.short, np.int8, np.int16) * cdef tuple dtypesUShort = (np.uint16, np.ushort) * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) # <<<<<<<<<<<<<< * cdef tuple dtypesLongLong = (np.uint, np.uintc, np.uint32, np.int64, np.uint64, * np.ulonglong, np.longlong, np.intp, np.uintp) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6685, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6685, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6685, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_intc); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6685, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_intc); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6685, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int32); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6685, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int32); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6685, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintp); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6685, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintp); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6685, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_16); @@ -113098,75 +116776,75 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesInt = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6686 + /* "PyCafe.pyx":6893 * cdef tuple dtypesUShort = (np.uint16, np.ushort) * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) * cdef tuple dtypesLongLong = (np.uint, np.uintc, np.uint32, np.int64, np.uint64, # <<<<<<<<<<<<<< * np.ulonglong, np.longlong, np.intp, np.uintp) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintc); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintc); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint32); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint32); if (unlikely(!__pyx_t_15)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int64); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_int64); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint64); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uint64); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6687 + /* "PyCafe.pyx":6894 * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) * cdef tuple dtypesLongLong = (np.uint, np.uintc, np.uint32, np.int64, np.uint64, * np.ulonglong, np.longlong, np.intp, np.uintp) # <<<<<<<<<<<<<< * * cdef tuple dtypesFloat = (np.single, np.float16, np.float32) */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6687, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ulonglong); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6687, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ulonglong); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6687, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_longlong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6687, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_longlong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6687, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_intp); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6687, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_intp); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6687, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintp); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6687, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_uintp); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6686 + /* "PyCafe.pyx":6893 * cdef tuple dtypesUShort = (np.uint16, np.ushort) * cdef tuple dtypesInt = (np.int_, np.intc, np.int32, np.uintp) * cdef tuple dtypesLongLong = (np.uint, np.uintc, np.uint32, np.int64, np.uint64, # <<<<<<<<<<<<<< * np.ulonglong, np.longlong, np.intp, np.uintp) * */ - __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6686, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(9); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_13); @@ -113198,29 +116876,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesLongLong = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6689 + /* "PyCafe.pyx":6896 * np.ulonglong, np.longlong, np.intp, np.uintp) * * cdef tuple dtypesFloat = (np.single, np.float16, np.float32) # <<<<<<<<<<<<<< * cdef tuple dtypesDouble = (np.double, np.float_, np.float64) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6689, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_single); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6689, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_single); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6689, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float16); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6689, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float16); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6689, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float32); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6689, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float32); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6689, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_8); @@ -113234,29 +116912,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesFloat = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6690 + /* "PyCafe.pyx":6897 * * cdef tuple dtypesFloat = (np.single, np.float16, np.float32) * cdef tuple dtypesDouble = (np.double, np.float_, np.float64) # <<<<<<<<<<<<<< * * # List: Major[0] Minor[1] Patch[2] 'final'[3] 0 [4] */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6690, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_double); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6690, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_double); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6690, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6690, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6690, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6690, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float64); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6690, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_10); @@ -113270,7 +116948,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_dtypesDouble = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6695 + /* "PyCafe.pyx":6902 * # print "type= // ", type(valSet) * * cdef bint isGoodType = False # <<<<<<<<<<<<<< @@ -113279,7 +116957,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 0; - /* "PyCafe.pyx":6696 + /* "PyCafe.pyx":6903 * * cdef bint isGoodType = False * cdef bint isBytesType = False # <<<<<<<<<<<<<< @@ -113288,23 +116966,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isBytesType = 0; - /* "PyCafe.pyx":6718 + /* "PyCafe.pyx":6925 * # print(type(valSet)) * # print (valSet.__class__) * cdef str classType = (valSet.__class__).__name__ # <<<<<<<<<<<<<< * cdef str substringmv = "_memoryviewslice" * */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6718, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6718, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (!(likely(PyUnicode_CheckExact(__pyx_t_8))||((__pyx_t_8) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_8)->tp_name), 0))) __PYX_ERR(3, 6718, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_t_8))||((__pyx_t_8) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_8)->tp_name), 0))) __PYX_ERR(3, 6925, __pyx_L1_error) __pyx_v_classType = ((PyObject*)__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6719 + /* "PyCafe.pyx":6926 * # print (valSet.__class__) * cdef str classType = (valSet.__class__).__name__ * cdef str substringmv = "_memoryviewslice" # <<<<<<<<<<<<<< @@ -113314,38 +116992,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_n_u_memoryviewslice_2); __pyx_v_substringmv = __pyx_n_u_memoryviewslice_2; - /* "PyCafe.pyx":6727 + /* "PyCafe.pyx":6934 * # print('OK for memoryview') * * if _python_version > (2,6): # <<<<<<<<<<<<<< * #if ((_python_version[0] > 2) or (_python_version[0] == 2 and _python_version[1] > 6)): * */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_python_version); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6727, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_python_version); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = PyObject_RichCompare(__pyx_t_8, __pyx_tuple__121, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6727, __pyx_L1_error) + __pyx_t_6 = PyObject_RichCompare(__pyx_t_8, __pyx_tuple__116, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6934, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6727, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6934, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { - /* "PyCafe.pyx":6730 + /* "PyCafe.pyx":6937 * #if ((_python_version[0] > 2) or (_python_version[0] == 2 and _python_version[1] > 6)): * * if isinstance(valSet, (list, array.array, np.ndarray, cython.view.memoryview, memoryview, ctypes.Array)): # <<<<<<<<<<<<<< * isGoodType = True * else: */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6730, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6730, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6730, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_memoryview); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6730, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6730, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_2 = PyList_Check(__pyx_v_valSet); @@ -113393,7 +117071,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6731 + /* "PyCafe.pyx":6938 * * if isinstance(valSet, (list, array.array, np.ndarray, cython.view.memoryview, memoryview, ctypes.Array)): * isGoodType = True # <<<<<<<<<<<<<< @@ -113402,7 +117080,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 1; - /* "PyCafe.pyx":6730 + /* "PyCafe.pyx":6937 * #if ((_python_version[0] > 2) or (_python_version[0] == 2 and _python_version[1] > 6)): * * if isinstance(valSet, (list, array.array, np.ndarray, cython.view.memoryview, memoryview, ctypes.Array)): # <<<<<<<<<<<<<< @@ -113411,7 +117089,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6727 + /* "PyCafe.pyx":6934 * # print('OK for memoryview') * * if _python_version > (2,6): # <<<<<<<<<<<<<< @@ -113421,7 +117099,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L6; } - /* "PyCafe.pyx":6733 + /* "PyCafe.pyx":6940 * isGoodType = True * else: * if isinstance(valSet, (list, array.array, np.ndarray, ctypes.Array)): # <<<<<<<<<<<<<< @@ -113429,14 +117107,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6733, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6733, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_ndarray); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6733, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6733, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_1 = PyList_Check(__pyx_v_valSet); @@ -113469,7 +117147,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6734 + /* "PyCafe.pyx":6941 * else: * if isinstance(valSet, (list, array.array, np.ndarray, ctypes.Array)): * isGoodType = True # <<<<<<<<<<<<<< @@ -113478,7 +117156,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 1; - /* "PyCafe.pyx":6733 + /* "PyCafe.pyx":6940 * isGoodType = True * else: * if isinstance(valSet, (list, array.array, np.ndarray, ctypes.Array)): # <<<<<<<<<<<<<< @@ -113489,7 +117167,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L6:; - /* "PyCafe.pyx":6736 + /* "PyCafe.pyx":6943 * isGoodType = True * * if (isGoodType == False): # <<<<<<<<<<<<<< @@ -113499,7 +117177,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_1 = ((__pyx_v_isGoodType == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6737 + /* "PyCafe.pyx":6944 * * if (isGoodType == False): * if (substringmv in classType): # <<<<<<<<<<<<<< @@ -113508,13 +117186,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ if (unlikely(__pyx_v_classType == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); - __PYX_ERR(3, 6737, __pyx_L1_error) + __PYX_ERR(3, 6944, __pyx_L1_error) } - __pyx_t_1 = (__Pyx_PyUnicode_ContainsTF(__pyx_v_substringmv, __pyx_v_classType, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6737, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PyUnicode_ContainsTF(__pyx_v_substringmv, __pyx_v_classType, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6944, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6738 + /* "PyCafe.pyx":6945 * if (isGoodType == False): * if (substringmv in classType): * isGoodType = True # <<<<<<<<<<<<<< @@ -113523,7 +117201,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 1; - /* "PyCafe.pyx":6737 + /* "PyCafe.pyx":6944 * * if (isGoodType == False): * if (substringmv in classType): # <<<<<<<<<<<<<< @@ -113532,7 +117210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6736 + /* "PyCafe.pyx":6943 * isGoodType = True * * if (isGoodType == False): # <<<<<<<<<<<<<< @@ -113541,38 +117219,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6742 + /* "PyCafe.pyx":6949 * # This is to cater for ctypes.c_buffer which is an instance of ctypes.Array * # where the element of the array is of type bytes - there need to match to cafe.setString * if isinstance(valSet, ctypes.Array): # <<<<<<<<<<<<<< * if isinstance(valSet[0], bytes): * isGoodType = False */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6742, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6742, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_Array); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6742, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6949, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":6743 + /* "PyCafe.pyx":6950 * # where the element of the array is of type bytes - there need to match to cafe.setString * if isinstance(valSet, ctypes.Array): * if isinstance(valSet[0], bytes): # <<<<<<<<<<<<<< * isGoodType = False * isBytesType = True */ - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6743, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_1 = PyBytes_Check(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6744 + /* "PyCafe.pyx":6951 * if isinstance(valSet, ctypes.Array): * if isinstance(valSet[0], bytes): * isGoodType = False # <<<<<<<<<<<<<< @@ -113581,7 +117259,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 0; - /* "PyCafe.pyx":6745 + /* "PyCafe.pyx":6952 * if isinstance(valSet[0], bytes): * isGoodType = False * isBytesType = True # <<<<<<<<<<<<<< @@ -113590,7 +117268,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isBytesType = 1; - /* "PyCafe.pyx":6743 + /* "PyCafe.pyx":6950 * # where the element of the array is of type bytes - there need to match to cafe.setString * if isinstance(valSet, ctypes.Array): * if isinstance(valSet[0], bytes): # <<<<<<<<<<<<<< @@ -113599,7 +117277,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6742 + /* "PyCafe.pyx":6949 * # This is to cater for ctypes.c_buffer which is an instance of ctypes.Array * # where the element of the array is of type bytes - there need to match to cafe.setString * if isinstance(valSet, ctypes.Array): # <<<<<<<<<<<<<< @@ -113608,7 +117286,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6759 + /* "PyCafe.pyx":6966 * #print("isBytesType ", isBytesType) * * self._c_cafe.getChannelInfo(handle, self.channelInfo) # <<<<<<<<<<<<<< @@ -113617,22 +117295,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ (void)(__pyx_v_self->_c_cafe->getChannelInfo(__pyx_v_handle, __pyx_v_self->channelInfo)); - /* "PyCafe.pyx":6760 + /* "PyCafe.pyx":6967 * * self._c_cafe.getChannelInfo(handle, self.channelInfo) * class_name = str(self.channelInfo.getClassNameAsString()) # <<<<<<<<<<<<<< * data_type = self.channelInfo.getDataType() * */ - __pyx_t_10 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->channelInfo.getClassNameAsString()); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6760, __pyx_L1_error) + __pyx_t_10 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->channelInfo.getClassNameAsString()); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6760, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_class_name = __pyx_t_6; __pyx_t_6 = 0; - /* "PyCafe.pyx":6761 + /* "PyCafe.pyx":6968 * self._c_cafe.getChannelInfo(handle, self.channelInfo) * class_name = str(self.channelInfo.getClassNameAsString()) * data_type = self.channelInfo.getDataType() # <<<<<<<<<<<<<< @@ -113641,7 +117319,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_data_type = __pyx_v_self->channelInfo.getDataType(); - /* "PyCafe.pyx":6763 + /* "PyCafe.pyx":6970 * data_type = self.channelInfo.getDataType() * * if class_name in ['waveform'] and data_type in [DBR_CHAR]: # <<<<<<<<<<<<<< @@ -113650,7 +117328,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __Pyx_INCREF(__pyx_v_class_name); __pyx_t_6 = __pyx_v_class_name; - __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_waveform, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6763, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_6, __pyx_n_u_waveform, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(3, 6970, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (__pyx_t_3) { @@ -113664,7 +117342,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L24_bool_binop_done:; if (__pyx_t_2) { - /* "PyCafe.pyx":6764 + /* "PyCafe.pyx":6971 * * if class_name in ['waveform'] and data_type in [DBR_CHAR]: * if isinstance(valSet, (str, bytes)): # <<<<<<<<<<<<<< @@ -113685,7 +117363,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6765 + /* "PyCafe.pyx":6972 * if class_name in ['waveform'] and data_type in [DBR_CHAR]: * if isinstance(valSet, (str, bytes)): * isGoodType = True # <<<<<<<<<<<<<< @@ -113694,7 +117372,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 1; - /* "PyCafe.pyx":6764 + /* "PyCafe.pyx":6971 * * if class_name in ['waveform'] and data_type in [DBR_CHAR]: * if isinstance(valSet, (str, bytes)): # <<<<<<<<<<<<<< @@ -113704,7 +117382,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L26; } - /* "PyCafe.pyx":6766 + /* "PyCafe.pyx":6973 * if isinstance(valSet, (str, bytes)): * isGoodType = True * elif isinstance(valSet, list): # <<<<<<<<<<<<<< @@ -113715,25 +117393,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6767 + /* "PyCafe.pyx":6974 * isGoodType = True * elif isinstance(valSet, list): * if len(valSet) == 1: # <<<<<<<<<<<<<< * if isinstance(valSet[0], (str, bytes)): * isGoodType = True */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6767, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6974, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_18 == 1) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6768 + /* "PyCafe.pyx":6975 * elif isinstance(valSet, list): * if len(valSet) == 1: * if isinstance(valSet[0], (str, bytes)): # <<<<<<<<<<<<<< * isGoodType = True * valSet = valSet[0] */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6768, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyUnicode_Check(__pyx_t_6); __pyx_t_1 = (__pyx_t_3 != 0); @@ -113750,7 +117428,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6769 + /* "PyCafe.pyx":6976 * if len(valSet) == 1: * if isinstance(valSet[0], (str, bytes)): * isGoodType = True # <<<<<<<<<<<<<< @@ -113759,19 +117437,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_isGoodType = 1; - /* "PyCafe.pyx":6770 + /* "PyCafe.pyx":6977 * if isinstance(valSet[0], (str, bytes)): * isGoodType = True * valSet = valSet[0] # <<<<<<<<<<<<<< * * if isGoodType: */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6770, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_valSet, __pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":6768 + /* "PyCafe.pyx":6975 * elif isinstance(valSet, list): * if len(valSet) == 1: * if isinstance(valSet[0], (str, bytes)): # <<<<<<<<<<<<<< @@ -113780,7 +117458,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6767 + /* "PyCafe.pyx":6974 * isGoodType = True * elif isinstance(valSet, list): * if len(valSet) == 1: # <<<<<<<<<<<<<< @@ -113789,7 +117467,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6766 + /* "PyCafe.pyx":6973 * if isinstance(valSet, (str, bytes)): * isGoodType = True * elif isinstance(valSet, list): # <<<<<<<<<<<<<< @@ -113799,7 +117477,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L26:; - /* "PyCafe.pyx":6763 + /* "PyCafe.pyx":6970 * data_type = self.channelInfo.getDataType() * * if class_name in ['waveform'] and data_type in [DBR_CHAR]: # <<<<<<<<<<<<<< @@ -113808,7 +117486,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6772 + /* "PyCafe.pyx":6979 * valSet = valSet[0] * * if isGoodType: # <<<<<<<<<<<<<< @@ -113818,17 +117496,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_v_isGoodType != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6776 + /* "PyCafe.pyx":6983 * #print('set method', type(valSet[0])) * * nLA = len(valSet) # <<<<<<<<<<<<<< * * # Just check on first element if array.array etc.. */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6776, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6983, __pyx_L1_error) __pyx_v_nLA = __pyx_t_18; - /* "PyCafe.pyx":6779 + /* "PyCafe.pyx":6986 * * # Just check on first element if array.array etc.. * if not isinstance(valSet, (list)): # <<<<<<<<<<<<<< @@ -113839,7 +117517,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6781 + /* "PyCafe.pyx":6988 * if not isinstance(valSet, (list)): * # if isinstance(valSet, (array.array, np.ndarray, cython.view.memoryview, memoryview)): * nLA = 1 # <<<<<<<<<<<<<< @@ -113848,7 +117526,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_nLA = 1; - /* "PyCafe.pyx":6779 + /* "PyCafe.pyx":6986 * * # Just check on first element if array.array etc.. * if not isinstance(valSet, (list)): # <<<<<<<<<<<<<< @@ -113857,7 +117535,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6783 + /* "PyCafe.pyx":6990 * nLA = 1 * * for i in range(0, nLA): # <<<<<<<<<<<<<< @@ -113869,14 +117547,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe for (__pyx_t_18 = 0; __pyx_t_18 < __pyx_t_19; __pyx_t_18+=1) { __pyx_v_i = __pyx_t_18; - /* "PyCafe.pyx":6785 + /* "PyCafe.pyx":6992 * for i in range(0, nLA): * * if isinstance(valSet[i], (str, bytes)): # <<<<<<<<<<<<<< * valType = CAFE_STRING * break */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6785, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = PyUnicode_Check(__pyx_t_6); __pyx_t_1 = (__pyx_t_3 != 0); @@ -113893,7 +117571,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6786 + /* "PyCafe.pyx":6993 * * if isinstance(valSet[i], (str, bytes)): * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -113902,7 +117580,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":6787 + /* "PyCafe.pyx":6994 * if isinstance(valSet[i], (str, bytes)): * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -113911,7 +117589,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ goto __pyx_L36_break; - /* "PyCafe.pyx":6785 + /* "PyCafe.pyx":6992 * for i in range(0, nLA): * * if isinstance(valSet[i], (str, bytes)): # <<<<<<<<<<<<<< @@ -113921,21 +117599,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6788 + /* "PyCafe.pyx":6995 * valType = CAFE_STRING * break * elif isinstance(valSet[i], dtypesString): # <<<<<<<<<<<<<< * valType = CAFE_STRING * break */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6788, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesString); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6788, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesString); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6995, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6789 + /* "PyCafe.pyx":6996 * break * elif isinstance(valSet[i], dtypesString): * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -113944,7 +117622,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":6790 + /* "PyCafe.pyx":6997 * elif isinstance(valSet[i], dtypesString): * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -113953,7 +117631,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ goto __pyx_L36_break; - /* "PyCafe.pyx":6788 + /* "PyCafe.pyx":6995 * valType = CAFE_STRING * break * elif isinstance(valSet[i], dtypesString): # <<<<<<<<<<<<<< @@ -113963,21 +117641,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6791 + /* "PyCafe.pyx":6998 * valType = CAFE_STRING * break * elif isinstance(valSet[i], (float)): # <<<<<<<<<<<<<< * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesDouble)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6791, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyFloat_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6792 + /* "PyCafe.pyx":6999 * break * elif isinstance(valSet[i], (float)): * valType = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -113986,7 +117664,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_DOUBLE; - /* "PyCafe.pyx":6791 + /* "PyCafe.pyx":6998 * valType = CAFE_STRING * break * elif isinstance(valSet[i], (float)): # <<<<<<<<<<<<<< @@ -113996,21 +117674,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6793 + /* "PyCafe.pyx":7000 * elif isinstance(valSet[i], (float)): * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesDouble)): # <<<<<<<<<<<<<< * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesFloat)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6793, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesDouble); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6793, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesDouble); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7000, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6794 + /* "PyCafe.pyx":7001 * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesDouble)): * valType = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -114019,7 +117697,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_DOUBLE; - /* "PyCafe.pyx":6793 + /* "PyCafe.pyx":7000 * elif isinstance(valSet[i], (float)): * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesDouble)): # <<<<<<<<<<<<<< @@ -114029,21 +117707,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6795 + /* "PyCafe.pyx":7002 * elif isinstance(valSet[i], (dtypesDouble)): * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesFloat)): # <<<<<<<<<<<<<< * valType = CAFE_FLOAT * elif isinstance(valSet[i], (long, int)): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6795, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_2 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesFloat); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6795, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_t_6, __pyx_v_dtypesFloat); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7002, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6796 + /* "PyCafe.pyx":7003 * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesFloat)): * valType = CAFE_FLOAT # <<<<<<<<<<<<<< @@ -114052,7 +117730,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_FLOAT; - /* "PyCafe.pyx":6795 + /* "PyCafe.pyx":7002 * elif isinstance(valSet[i], (dtypesDouble)): * valType = CAFE_DOUBLE * elif isinstance(valSet[i], (dtypesFloat)): # <<<<<<<<<<<<<< @@ -114062,14 +117740,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6797 + /* "PyCafe.pyx":7004 * elif isinstance(valSet[i], (dtypesFloat)): * valType = CAFE_FLOAT * elif isinstance(valSet[i], (long, int)): # <<<<<<<<<<<<<< * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6797, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyLong_Check(__pyx_t_6); __pyx_t_1 = (__pyx_t_2 != 0); @@ -114086,7 +117764,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6798 + /* "PyCafe.pyx":7005 * valType = CAFE_FLOAT * elif isinstance(valSet[i], (long, int)): * valType = CAFE_LONG # <<<<<<<<<<<<<< @@ -114095,7 +117773,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_LONG; - /* "PyCafe.pyx":6797 + /* "PyCafe.pyx":7004 * elif isinstance(valSet[i], (dtypesFloat)): * valType = CAFE_FLOAT * elif isinstance(valSet[i], (long, int)): # <<<<<<<<<<<<<< @@ -114105,27 +117783,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6799 + /* "PyCafe.pyx":7006 * elif isinstance(valSet[i], (long, int)): * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): # <<<<<<<<<<<<<< * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesShort): */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6799, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = PyNumber_Add(__pyx_v_dtypesInt, __pyx_v_dtypesLongLong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6799, __pyx_L1_error) + __pyx_t_10 = PyNumber_Add(__pyx_v_dtypesInt, __pyx_v_dtypesLongLong); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_8 = PyNumber_Add(__pyx_t_10, __pyx_v_dtypesUChar); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6799, __pyx_L1_error) + __pyx_t_8 = PyNumber_Add(__pyx_t_10, __pyx_v_dtypesUChar); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_2 = PyObject_IsInstance(__pyx_t_6, __pyx_t_8); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6799, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_t_6, __pyx_t_8); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6800 + /* "PyCafe.pyx":7007 * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): * valType = CAFE_LONG # <<<<<<<<<<<<<< @@ -114134,7 +117812,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_LONG; - /* "PyCafe.pyx":6799 + /* "PyCafe.pyx":7006 * elif isinstance(valSet[i], (long, int)): * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): # <<<<<<<<<<<<<< @@ -114144,21 +117822,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6801 + /* "PyCafe.pyx":7008 * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesShort): # <<<<<<<<<<<<<< * valType = CAFE_SHORT * elif isinstance(valSet[i], dtypesUShort): */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6801, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_3 = PyObject_IsInstance(__pyx_t_8, __pyx_v_dtypesShort); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6801, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_t_8, __pyx_v_dtypesShort); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6802 + /* "PyCafe.pyx":7009 * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesShort): * valType = CAFE_SHORT # <<<<<<<<<<<<<< @@ -114167,7 +117845,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_SHORT; - /* "PyCafe.pyx":6801 + /* "PyCafe.pyx":7008 * elif isinstance(valSet[i], dtypesInt+dtypesLongLong+dtypesUChar): * valType = CAFE_LONG * elif isinstance(valSet[i], dtypesShort): # <<<<<<<<<<<<<< @@ -114177,21 +117855,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6803 + /* "PyCafe.pyx":7010 * elif isinstance(valSet[i], dtypesShort): * valType = CAFE_SHORT * elif isinstance(valSet[i], dtypesUShort): # <<<<<<<<<<<<<< * valType = CAFE_USHORT * else: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6803, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_2 = PyObject_IsInstance(__pyx_t_8, __pyx_v_dtypesUShort); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6803, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_t_8, __pyx_v_dtypesUShort); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7010, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6804 + /* "PyCafe.pyx":7011 * valType = CAFE_SHORT * elif isinstance(valSet[i], dtypesUShort): * valType = CAFE_USHORT # <<<<<<<<<<<<<< @@ -114200,7 +117878,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_USHORT; - /* "PyCafe.pyx":6803 + /* "PyCafe.pyx":7010 * elif isinstance(valSet[i], dtypesShort): * valType = CAFE_SHORT * elif isinstance(valSet[i], dtypesUShort): # <<<<<<<<<<<<<< @@ -114210,7 +117888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L37; } - /* "PyCafe.pyx":6807 + /* "PyCafe.pyx":7014 * else: * * print("PyCafe.pyx: We do not cater for type ", # <<<<<<<<<<<<<< @@ -114219,24 +117897,24 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ /*else*/ { - /* "PyCafe.pyx":6808 + /* "PyCafe.pyx":7015 * * print("PyCafe.pyx: We do not cater for type ", * type(valSet[i]), " and thus assume a string") # <<<<<<<<<<<<<< * valType = CAFE_STRING * break */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6808, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - /* "PyCafe.pyx":6807 + /* "PyCafe.pyx":7014 * else: * * print("PyCafe.pyx: We do not cater for type ", # <<<<<<<<<<<<<< * type(valSet[i]), " and thus assume a string") * valType = CAFE_STRING */ - __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6807, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_INCREF(__pyx_kp_u_PyCafe_pyx_We_do_not_cater_for_t); __Pyx_GIVEREF(__pyx_kp_u_PyCafe_pyx_We_do_not_cater_for_t); @@ -114248,12 +117926,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_GIVEREF(__pyx_kp_u_and_thus_assume_a_string); PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u_and_thus_assume_a_string); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6807, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6809 + /* "PyCafe.pyx":7016 * print("PyCafe.pyx: We do not cater for type ", * type(valSet[i]), " and thus assume a string") * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -114262,7 +117940,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":6810 + /* "PyCafe.pyx":7017 * type(valSet[i]), " and thus assume a string") * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -114275,7 +117953,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L36_break:; - /* "PyCafe.pyx":6816 + /* "PyCafe.pyx":7023 * # valSet to vector since * # coercion from Python not allowed without the GIL * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -114285,48 +117963,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe switch (__pyx_v_valType) { case CAFE_DOUBLE: - /* "PyCafe.pyx":6818 + /* "PyCafe.pyx":7025 * if valType == CAFE_DOUBLE: * * vecD.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecD.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6818, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7025, __pyx_L1_error) __pyx_v_vecD.reserve(__pyx_t_18); - /* "PyCafe.pyx":6819 + /* "PyCafe.pyx":7026 * * vecD.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecD.push_back(valSet[i]) * with nogil: */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6819, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7026, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6820 + /* "PyCafe.pyx":7027 * vecD.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecD.push_back(valSet[i]) # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setVDouble(handle, vecD) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6820, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_22 = __pyx_PyFloat_AsDouble(__pyx_t_8); if (unlikely((__pyx_t_22 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 6820, __pyx_L1_error) + __pyx_t_22 = __pyx_PyFloat_AsDouble(__pyx_t_8); if (unlikely((__pyx_t_22 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecD.push_back(__pyx_t_22); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6820, __pyx_L1_error) + __PYX_ERR(3, 7027, __pyx_L1_error) } } - /* "PyCafe.pyx":6821 + /* "PyCafe.pyx":7028 * for i in range(0, len(valSet)): * vecD.push_back(valSet[i]) * with nogil: # <<<<<<<<<<<<<< @@ -114341,7 +118019,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6822 + /* "PyCafe.pyx":7029 * vecD.push_back(valSet[i]) * with nogil: * status = self._c_cafe.setVDouble(handle, vecD) # <<<<<<<<<<<<<< @@ -114351,7 +118029,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVDouble(__pyx_v_handle, __pyx_v_vecD); } - /* "PyCafe.pyx":6821 + /* "PyCafe.pyx":7028 * for i in range(0, len(valSet)): * vecD.push_back(valSet[i]) * with nogil: # <<<<<<<<<<<<<< @@ -114370,7 +118048,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6816 + /* "PyCafe.pyx":7023 * # valSet to vector since * # coercion from Python not allowed without the GIL * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -114380,48 +118058,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_FLOAT: - /* "PyCafe.pyx":6826 + /* "PyCafe.pyx":7033 * elif valType == CAFE_FLOAT: * * vecF.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecF.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6826, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7033, __pyx_L1_error) __pyx_v_vecF.reserve(__pyx_t_18); - /* "PyCafe.pyx":6827 + /* "PyCafe.pyx":7034 * * vecF.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecF.push_back(valSet[i]) * with nogil: */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6827, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7034, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6828 + /* "PyCafe.pyx":7035 * vecF.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecF.push_back(valSet[i]) # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setVFloat(handle, vecF) */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6828, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_t_8); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 6828, __pyx_L1_error) + __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_t_8); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 7035, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecF.push_back(__pyx_t_23); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6828, __pyx_L1_error) + __PYX_ERR(3, 7035, __pyx_L1_error) } } - /* "PyCafe.pyx":6829 + /* "PyCafe.pyx":7036 * for i in range(0, len(valSet)): * vecF.push_back(valSet[i]) * with nogil: # <<<<<<<<<<<<<< @@ -114436,7 +118114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6830 + /* "PyCafe.pyx":7037 * vecF.push_back(valSet[i]) * with nogil: * status = self._c_cafe.setVFloat(handle, vecF) # <<<<<<<<<<<<<< @@ -114446,7 +118124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVFloat(__pyx_v_handle, __pyx_v_vecF); } - /* "PyCafe.pyx":6829 + /* "PyCafe.pyx":7036 * for i in range(0, len(valSet)): * vecF.push_back(valSet[i]) * with nogil: # <<<<<<<<<<<<<< @@ -114465,7 +118143,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6824 + /* "PyCafe.pyx":7031 * status = self._c_cafe.setVDouble(handle, vecD) * * elif valType == CAFE_FLOAT: # <<<<<<<<<<<<<< @@ -114475,48 +118153,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_LONG: - /* "PyCafe.pyx":6834 + /* "PyCafe.pyx":7041 * elif valType == CAFE_LONG: * * vecI.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecI.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6834, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7041, __pyx_L1_error) __pyx_v_vecI.reserve(__pyx_t_18); - /* "PyCafe.pyx":6835 + /* "PyCafe.pyx":7042 * * vecI.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecI.push_back(valSet[i]) * */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6835, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7042, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6836 + /* "PyCafe.pyx":7043 * vecI.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecI.push_back(valSet[i]) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6836, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_24 = __Pyx_PyInt_As_dbr_long_t(__pyx_t_8); if (unlikely((__pyx_t_24 == ((dbr_long_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 6836, __pyx_L1_error) + __pyx_t_24 = __Pyx_PyInt_As_dbr_long_t(__pyx_t_8); if (unlikely((__pyx_t_24 == ((dbr_long_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 7043, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecI.push_back(__pyx_t_24); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6836, __pyx_L1_error) + __PYX_ERR(3, 7043, __pyx_L1_error) } } - /* "PyCafe.pyx":6838 + /* "PyCafe.pyx":7045 * vecI.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114531,7 +118209,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6839 + /* "PyCafe.pyx":7046 * * with nogil: * status = self._c_cafe.setVLong(handle, vecI) # <<<<<<<<<<<<<< @@ -114541,7 +118219,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVLong(__pyx_v_handle, __pyx_v_vecI); } - /* "PyCafe.pyx":6838 + /* "PyCafe.pyx":7045 * vecI.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114560,7 +118238,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6832 + /* "PyCafe.pyx":7039 * status = self._c_cafe.setVFloat(handle, vecF) * * elif valType == CAFE_LONG: # <<<<<<<<<<<<<< @@ -114570,48 +118248,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_SHORT: - /* "PyCafe.pyx":6843 + /* "PyCafe.pyx":7050 * elif valType == CAFE_SHORT: * * vecShort.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecShort.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6843, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7050, __pyx_L1_error) __pyx_v_vecShort.reserve(__pyx_t_18); - /* "PyCafe.pyx":6844 + /* "PyCafe.pyx":7051 * * vecShort.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecShort.push_back(valSet[i]) * */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6844, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7051, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6845 + /* "PyCafe.pyx":7052 * vecShort.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecShort.push_back(valSet[i]) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6845, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_25 = __Pyx_PyInt_As_short(__pyx_t_8); if (unlikely((__pyx_t_25 == (short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6845, __pyx_L1_error) + __pyx_t_25 = __Pyx_PyInt_As_short(__pyx_t_8); if (unlikely((__pyx_t_25 == (short)-1) && PyErr_Occurred())) __PYX_ERR(3, 7052, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecShort.push_back(__pyx_t_25); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6845, __pyx_L1_error) + __PYX_ERR(3, 7052, __pyx_L1_error) } } - /* "PyCafe.pyx":6847 + /* "PyCafe.pyx":7054 * vecShort.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114626,7 +118304,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6848 + /* "PyCafe.pyx":7055 * * with nogil: * status = self._c_cafe.setVShort(handle, vecShort) # <<<<<<<<<<<<<< @@ -114636,7 +118314,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVShort(__pyx_v_handle, __pyx_v_vecShort); } - /* "PyCafe.pyx":6847 + /* "PyCafe.pyx":7054 * vecShort.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114655,7 +118333,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6841 + /* "PyCafe.pyx":7048 * status = self._c_cafe.setVLong(handle, vecI) * * elif valType == CAFE_SHORT: # <<<<<<<<<<<<<< @@ -114665,48 +118343,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_USHORT: - /* "PyCafe.pyx":6852 + /* "PyCafe.pyx":7059 * elif valType == CAFE_USHORT: * * vecUShort.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecUShort.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6852, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7059, __pyx_L1_error) __pyx_v_vecUShort.reserve(__pyx_t_18); - /* "PyCafe.pyx":6853 + /* "PyCafe.pyx":7060 * * vecUShort.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecUShort.push_back(valSet[i]) * */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6853, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7060, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6854 + /* "PyCafe.pyx":7061 * vecUShort.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecUShort.push_back(valSet[i]) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6854, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_26 = __Pyx_PyInt_As_unsigned_short(__pyx_t_8); if (unlikely((__pyx_t_26 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6854, __pyx_L1_error) + __pyx_t_26 = __Pyx_PyInt_As_unsigned_short(__pyx_t_8); if (unlikely((__pyx_t_26 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 7061, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecUShort.push_back(__pyx_t_26); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6854, __pyx_L1_error) + __PYX_ERR(3, 7061, __pyx_L1_error) } } - /* "PyCafe.pyx":6856 + /* "PyCafe.pyx":7063 * vecUShort.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114721,7 +118399,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6857 + /* "PyCafe.pyx":7064 * * with nogil: * status = self._c_cafe.setVUShort(handle, vecUShort) # <<<<<<<<<<<<<< @@ -114731,7 +118409,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVUShort(__pyx_v_handle, __pyx_v_vecUShort); } - /* "PyCafe.pyx":6856 + /* "PyCafe.pyx":7063 * vecUShort.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114750,7 +118428,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6850 + /* "PyCafe.pyx":7057 * status = self._c_cafe.setVShort(handle, vecShort) * * elif valType == CAFE_USHORT: # <<<<<<<<<<<<<< @@ -114760,48 +118438,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_CHAR: - /* "PyCafe.pyx":6861 + /* "PyCafe.pyx":7068 * elif valType == CAFE_CHAR: * * vecChar.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * vecChar.push_back(valSet[i]) */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6861, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7068, __pyx_L1_error) __pyx_v_vecChar.reserve(__pyx_t_18); - /* "PyCafe.pyx":6862 + /* "PyCafe.pyx":7069 * * vecChar.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * vecChar.push_back(valSet[i]) * */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6862, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7069, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6863 + /* "PyCafe.pyx":7070 * vecChar.reserve(len(valSet)) * for i in range(0, len(valSet)): * vecChar.push_back(valSet[i]) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6863, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_27 = __Pyx_PyInt_As_dbr_char_t(__pyx_t_8); if (unlikely((__pyx_t_27 == ((dbr_char_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 6863, __pyx_L1_error) + __pyx_t_27 = __Pyx_PyInt_As_dbr_char_t(__pyx_t_8); if (unlikely((__pyx_t_27 == ((dbr_char_t)-1)) && PyErr_Occurred())) __PYX_ERR(3, 7070, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecChar.push_back(__pyx_t_27); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6863, __pyx_L1_error) + __PYX_ERR(3, 7070, __pyx_L1_error) } } - /* "PyCafe.pyx":6865 + /* "PyCafe.pyx":7072 * vecChar.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114816,7 +118494,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6866 + /* "PyCafe.pyx":7073 * * with nogil: * status = self._c_cafe.setVChar(handle, vecChar) # <<<<<<<<<<<<<< @@ -114826,7 +118504,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVChar(__pyx_v_handle, __pyx_v_vecChar); } - /* "PyCafe.pyx":6865 + /* "PyCafe.pyx":7072 * vecChar.push_back(valSet[i]) * * with nogil: # <<<<<<<<<<<<<< @@ -114845,7 +118523,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6859 + /* "PyCafe.pyx":7066 * status = self._c_cafe.setVUShort(handle, vecUShort) * * elif valType == CAFE_CHAR: # <<<<<<<<<<<<<< @@ -114855,52 +118533,52 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe break; case CAFE_STRING: - /* "PyCafe.pyx":6870 + /* "PyCafe.pyx":7077 * elif valType == CAFE_STRING: * * vecS.reserve(len(valSet)) # <<<<<<<<<<<<<< * for i in range(0, len(valSet)): * if isinstance(valSet[i], str): */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6870, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7077, __pyx_L1_error) __pyx_v_vecS.reserve(__pyx_t_18); - /* "PyCafe.pyx":6871 + /* "PyCafe.pyx":7078 * * vecS.reserve(len(valSet)) * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< * if isinstance(valSet[i], str): * #valSet[i] = (valSet[i]).encode('utf_8') */ - __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 6871, __pyx_L1_error) + __pyx_t_18 = PyObject_Length(__pyx_v_valSet); if (unlikely(__pyx_t_18 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7078, __pyx_L1_error) __pyx_t_20 = __pyx_t_18; for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) { __pyx_v_i = __pyx_t_21; - /* "PyCafe.pyx":6872 + /* "PyCafe.pyx":7079 * vecS.reserve(len(valSet)) * for i in range(0, len(valSet)): * if isinstance(valSet[i], str): # <<<<<<<<<<<<<< * #valSet[i] = (valSet[i]).encode('utf_8') * temp = (valSet[i]).encode('utf_8') */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6872, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_3 = PyUnicode_Check(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6874 + /* "PyCafe.pyx":7081 * if isinstance(valSet[i], str): * #valSet[i] = (valSet[i]).encode('utf_8') * temp = (valSet[i]).encode('utf_8') # <<<<<<<<<<<<<< * elif isinstance(valSet[i], (bytes, bytearray)): * encoding = False */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6874, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_encode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6874, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_encode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -114913,15 +118591,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_10, function); } } - __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_8); + __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6874, __pyx_L1_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6872 + /* "PyCafe.pyx":7079 * vecS.reserve(len(valSet)) * for i in range(0, len(valSet)): * if isinstance(valSet[i], str): # <<<<<<<<<<<<<< @@ -114931,14 +118609,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L74; } - /* "PyCafe.pyx":6875 + /* "PyCafe.pyx":7082 * #valSet[i] = (valSet[i]).encode('utf_8') * temp = (valSet[i]).encode('utf_8') * elif isinstance(valSet[i], (bytes, bytearray)): # <<<<<<<<<<<<<< * encoding = False * if not encoding: */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6875, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_3 = PyBytes_Check(__pyx_t_8); __pyx_t_1 = (__pyx_t_3 != 0); @@ -114955,7 +118633,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6876 + /* "PyCafe.pyx":7083 * temp = (valSet[i]).encode('utf_8') * elif isinstance(valSet[i], (bytes, bytearray)): * encoding = False # <<<<<<<<<<<<<< @@ -114964,7 +118642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":6877 + /* "PyCafe.pyx":7084 * elif isinstance(valSet[i], (bytes, bytearray)): * encoding = False * if not encoding: # <<<<<<<<<<<<<< @@ -114974,7 +118652,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6878 + /* "PyCafe.pyx":7085 * encoding = False * if not encoding: * try: # <<<<<<<<<<<<<< @@ -114990,16 +118668,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_30); /*try:*/ { - /* "PyCafe.pyx":6879 + /* "PyCafe.pyx":7086 * if not encoding: * try: * temp = (valSet[i]).decode('utf_8') # <<<<<<<<<<<<<< * encoding = True * print('utf-8') */ - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6879, __pyx_L78_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7086, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6879, __pyx_L78_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7086, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; @@ -115012,15 +118690,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8); + __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6879, __pyx_L78_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7086, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6880 + /* "PyCafe.pyx":7087 * try: * temp = (valSet[i]).decode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -115029,25 +118707,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6881 + /* "PyCafe.pyx":7088 * temp = (valSet[i]).decode('utf_8') * encoding = True * print('utf-8') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_8')) * except UnicodeDecodeError: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6881, __pyx_L78_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__117, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7088, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6882 + /* "PyCafe.pyx":7089 * encoding = True * print('utf-8') * vecS.push_back(temp.encode('utf_8')) # <<<<<<<<<<<<<< * except UnicodeDecodeError: * pass */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6882, __pyx_L78_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7089, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -115059,21 +118737,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8); + __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6882, __pyx_L78_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7089, __pyx_L78_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6882, __pyx_L78_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7089, __pyx_L78_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecS.push_back(__pyx_t_31); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6882, __pyx_L78_error) + __PYX_ERR(3, 7089, __pyx_L78_error) } - /* "PyCafe.pyx":6878 + /* "PyCafe.pyx":7085 * encoding = False * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115099,7 +118777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6883 + /* "PyCafe.pyx":7090 * print('utf-8') * vecS.push_back(temp.encode('utf_8')) * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -115114,7 +118792,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L80_except_error; __pyx_L80_except_error:; - /* "PyCafe.pyx":6878 + /* "PyCafe.pyx":7085 * encoding = False * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115134,7 +118812,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L85_try_end:; } - /* "PyCafe.pyx":6877 + /* "PyCafe.pyx":7084 * elif isinstance(valSet[i], (bytes, bytearray)): * encoding = False * if not encoding: # <<<<<<<<<<<<<< @@ -115143,7 +118821,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6885 + /* "PyCafe.pyx":7092 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -115153,7 +118831,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6886 + /* "PyCafe.pyx":7093 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115169,16 +118847,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_28); /*try:*/ { - /* "PyCafe.pyx":6887 + /* "PyCafe.pyx":7094 * if not encoding: * try: * temp = (valSet[i]).decode('utf_16') # <<<<<<<<<<<<<< * encoding = True * print('utf-16') */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6887, __pyx_L87_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7094, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_decode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6887, __pyx_L87_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_decode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7094, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -115191,15 +118869,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_10, function); } } - __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_16); + __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6887, __pyx_L87_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7094, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6888 + /* "PyCafe.pyx":7095 * try: * temp = (valSet[i]).decode('utf_16') * encoding = True # <<<<<<<<<<<<<< @@ -115208,25 +118886,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6889 + /* "PyCafe.pyx":7096 * temp = (valSet[i]).decode('utf_16') * encoding = True * print('utf-16') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_16').decode('utf_16')) * except UnicodeDecodeError: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6889, __pyx_L87_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__118, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7096, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6890 + /* "PyCafe.pyx":7097 * encoding = True * print('utf-16') * vecS.push_back(temp.encode('utf_16').decode('utf_16')) # <<<<<<<<<<<<<< * except UnicodeDecodeError: * pass */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L87_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7097, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -115238,12 +118916,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16); + __pyx_t_10 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6890, __pyx_L87_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7097, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6890, __pyx_L87_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7097, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; @@ -115256,21 +118934,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16); + __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_10, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6890, __pyx_L87_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7097, __pyx_L87_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6890, __pyx_L87_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7097, __pyx_L87_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecS.push_back(((std::string)__pyx_t_31)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6890, __pyx_L87_error) + __PYX_ERR(3, 7097, __pyx_L87_error) } - /* "PyCafe.pyx":6886 + /* "PyCafe.pyx":7093 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115296,7 +118974,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6891 + /* "PyCafe.pyx":7098 * print('utf-16') * vecS.push_back(temp.encode('utf_16').decode('utf_16')) * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -115311,7 +118989,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L89_except_error; __pyx_L89_except_error:; - /* "PyCafe.pyx":6886 + /* "PyCafe.pyx":7093 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115331,7 +119009,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L94_try_end:; } - /* "PyCafe.pyx":6885 + /* "PyCafe.pyx":7092 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -115340,7 +119018,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6893 + /* "PyCafe.pyx":7100 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -115350,7 +119028,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6894 + /* "PyCafe.pyx":7101 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115366,16 +119044,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_30); /*try:*/ { - /* "PyCafe.pyx":6895 + /* "PyCafe.pyx":7102 * if not encoding: * try: * temp = (valSet[i]).decode('utf_32') # <<<<<<<<<<<<<< * encoding = True * print('utf-32') */ - __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6895, __pyx_L96_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7102, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_decode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6895, __pyx_L96_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_decode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7102, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -115390,13 +119068,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_32) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_32); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6895, __pyx_L96_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7102, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6896 + /* "PyCafe.pyx":7103 * try: * temp = (valSet[i]).decode('utf_32') * encoding = True # <<<<<<<<<<<<<< @@ -115405,25 +119083,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6897 + /* "PyCafe.pyx":7104 * temp = (valSet[i]).decode('utf_32') * encoding = True * print('utf-32') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_32')) * except UnicodeDecodeError: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__124, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6897, __pyx_L96_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__119, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7104, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6898 + /* "PyCafe.pyx":7105 * encoding = True * print('utf-32') * vecS.push_back(temp.encode('utf_32')) # <<<<<<<<<<<<<< * except UnicodeDecodeError: * pass */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6898, __pyx_L96_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_encode); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7105, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) { @@ -115437,19 +119115,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_8 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_10, __pyx_t_6, __pyx_n_u_utf_32) : __Pyx_PyObject_CallOneArg(__pyx_t_10, __pyx_n_u_utf_32); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6898, __pyx_L96_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7105, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6898, __pyx_L96_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7105, __pyx_L96_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; try { __pyx_v_vecS.push_back(__pyx_t_31); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6898, __pyx_L96_error) + __PYX_ERR(3, 7105, __pyx_L96_error) } - /* "PyCafe.pyx":6894 + /* "PyCafe.pyx":7101 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115475,7 +119153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6899 + /* "PyCafe.pyx":7106 * print('utf-32') * vecS.push_back(temp.encode('utf_32')) * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -115490,7 +119168,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L98_except_error; __pyx_L98_except_error:; - /* "PyCafe.pyx":6894 + /* "PyCafe.pyx":7101 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -115510,7 +119188,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L103_try_end:; } - /* "PyCafe.pyx":6893 + /* "PyCafe.pyx":7100 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -115519,7 +119197,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6875 + /* "PyCafe.pyx":7082 * #valSet[i] = (valSet[i]).encode('utf_8') * temp = (valSet[i]).encode('utf_8') * elif isinstance(valSet[i], (bytes, bytearray)): # <<<<<<<<<<<<<< @@ -115529,7 +119207,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L74; } - /* "PyCafe.pyx":6902 + /* "PyCafe.pyx":7109 * pass * else: * print('utf-none', type(valSet[i])) # <<<<<<<<<<<<<< @@ -115537,9 +119215,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * vecS.push_back( temp) */ /*else*/ { - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6902, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6902, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_utf_none); __Pyx_GIVEREF(__pyx_kp_u_utf_none); @@ -115548,42 +119226,42 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_t_8))); PyTuple_SET_ITEM(__pyx_t_10, 1, ((PyObject *)Py_TYPE(__pyx_t_8))); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6902, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_10, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6903 + /* "PyCafe.pyx":7110 * else: * print('utf-none', type(valSet[i])) * temp = valSet[i] # <<<<<<<<<<<<<< * vecS.push_back( temp) * */ - __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6903, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":6904 + /* "PyCafe.pyx":7111 * print('utf-none', type(valSet[i])) * temp = valSet[i] * vecS.push_back( temp) # <<<<<<<<<<<<<< * * with nogil: */ - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_v_temp); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6904, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_v_temp); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7111, __pyx_L1_error) try { __pyx_v_vecS.push_back(((std::string)__pyx_t_31)); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 6904, __pyx_L1_error) + __PYX_ERR(3, 7111, __pyx_L1_error) } } __pyx_L74:; } - /* "PyCafe.pyx":6906 + /* "PyCafe.pyx":7113 * vecS.push_back( temp) * * with nogil: # <<<<<<<<<<<<<< @@ -115598,7 +119276,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6907 + /* "PyCafe.pyx":7114 * * with nogil: * status = self._c_cafe.setVString(handle, vecS) # <<<<<<<<<<<<<< @@ -115608,7 +119286,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setVString(__pyx_v_handle, __pyx_v_vecS); } - /* "PyCafe.pyx":6906 + /* "PyCafe.pyx":7113 * vecS.push_back( temp) * * with nogil: # <<<<<<<<<<<<<< @@ -115627,7 +119305,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6868 + /* "PyCafe.pyx":7075 * status = self._c_cafe.setVChar(handle, vecChar) * * elif valType == CAFE_STRING: # <<<<<<<<<<<<<< @@ -115638,7 +119316,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe default: break; } - /* "PyCafe.pyx":6772 + /* "PyCafe.pyx":6979 * valSet = valSet[0] * * if isGoodType: # <<<<<<<<<<<<<< @@ -115648,7 +119326,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6909 + /* "PyCafe.pyx":7116 * status = self._c_cafe.setVString(handle, vecS) * * elif isBytesType: # <<<<<<<<<<<<<< @@ -115658,20 +119336,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_v_isBytesType != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6911 + /* "PyCafe.pyx":7118 * elif isBytesType: * #print("isBytesType") * valSetS = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setString(handle, valSetS) */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6911, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6911, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_valSetS = ((std::string)__pyx_t_31); - /* "PyCafe.pyx":6912 + /* "PyCafe.pyx":7119 * #print("isBytesType") * valSetS = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115686,7 +119364,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6913 + /* "PyCafe.pyx":7120 * valSetS = valSet.value * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -115696,7 +119374,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":6912 + /* "PyCafe.pyx":7119 * #print("isBytesType") * valSetS = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115715,7 +119393,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6909 + /* "PyCafe.pyx":7116 * status = self._c_cafe.setVString(handle, vecS) * * elif isBytesType: # <<<<<<<<<<<<<< @@ -115725,33 +119403,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6914 + /* "PyCafe.pyx":7121 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (ctypes.c_char)): # <<<<<<<<<<<<<< * #print("is ctypes.c_char") * # print(valSet.value) */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6914, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_c_char); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6914, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_c_char); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6914, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6918 + /* "PyCafe.pyx":7125 * # print(valSet.value) * # print(valSet.value.decode()) * valSetS = valSet.value.decode() # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setString(handle, valSetS) */ - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 6918, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6918, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; @@ -115766,14 +119444,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6918, __pyx_L1_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6918, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = __pyx_t_31; - /* "PyCafe.pyx":6919 + /* "PyCafe.pyx":7126 * # print(valSet.value.decode()) * valSetS = valSet.value.decode() * with nogil: # <<<<<<<<<<<<<< @@ -115788,7 +119466,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6920 + /* "PyCafe.pyx":7127 * valSetS = valSet.value.decode() * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -115798,7 +119476,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":6919 + /* "PyCafe.pyx":7126 * # print(valSet.value.decode()) * valSetS = valSet.value.decode() * with nogil: # <<<<<<<<<<<<<< @@ -115817,7 +119495,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6914 + /* "PyCafe.pyx":7121 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (ctypes.c_char)): # <<<<<<<<<<<<<< @@ -115827,37 +119505,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6921 + /* "PyCafe.pyx":7128 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (ctypes.c_float)): # <<<<<<<<<<<<<< * valSetF = valSet.value * with nogil: */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6921, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_c_float); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6921, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_c_float); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_6); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6921, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_6); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6922 + /* "PyCafe.pyx":7129 * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (ctypes.c_float)): * valSetF = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setFloat(handle, valSetF) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6922, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_t_6); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 6922, __pyx_L1_error) + __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_t_6); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 7129, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_valSetF = ((float)__pyx_t_23); - /* "PyCafe.pyx":6923 + /* "PyCafe.pyx":7130 * elif isinstance(valSet, (ctypes.c_float)): * valSetF = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115872,7 +119550,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6924 + /* "PyCafe.pyx":7131 * valSetF = valSet.value * with nogil: * status = self._c_cafe.setFloat(handle, valSetF) # <<<<<<<<<<<<<< @@ -115882,7 +119560,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setFloat(__pyx_v_handle, __pyx_v_valSetF); } - /* "PyCafe.pyx":6923 + /* "PyCafe.pyx":7130 * elif isinstance(valSet, (ctypes.c_float)): * valSetF = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115901,7 +119579,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6921 + /* "PyCafe.pyx":7128 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (ctypes.c_float)): # <<<<<<<<<<<<<< @@ -115911,37 +119589,37 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6925 + /* "PyCafe.pyx":7132 * with nogil: * status = self._c_cafe.setFloat(handle, valSetF) * elif isinstance(valSet, (ctypes.c_double)): # <<<<<<<<<<<<<< * valSetD = valSet.value * with nogil: */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6925, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ctypes); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_double); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6925, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_c_double); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6925, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_t_10); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6926 + /* "PyCafe.pyx":7133 * status = self._c_cafe.setFloat(handle, valSetF) * elif isinstance(valSet, (ctypes.c_double)): * valSetD = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6926, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_22 = __pyx_PyFloat_AsDouble(__pyx_t_10); if (unlikely((__pyx_t_22 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 6926, __pyx_L1_error) + __pyx_t_22 = __pyx_PyFloat_AsDouble(__pyx_t_10); if (unlikely((__pyx_t_22 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetD = ((double)__pyx_t_22); - /* "PyCafe.pyx":6927 + /* "PyCafe.pyx":7134 * elif isinstance(valSet, (ctypes.c_double)): * valSetD = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115956,7 +119634,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6928 + /* "PyCafe.pyx":7135 * valSetD = valSet.value * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) # <<<<<<<<<<<<<< @@ -115966,7 +119644,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setDouble(__pyx_v_handle, __pyx_v_valSetD); } - /* "PyCafe.pyx":6927 + /* "PyCafe.pyx":7134 * elif isinstance(valSet, (ctypes.c_double)): * valSetD = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -115985,7 +119663,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6925 + /* "PyCafe.pyx":7132 * with nogil: * status = self._c_cafe.setFloat(handle, valSetF) * elif isinstance(valSet, (ctypes.c_double)): # <<<<<<<<<<<<<< @@ -115995,31 +119673,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6929 + /* "PyCafe.pyx":7136 * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) * elif isinstance(valSet, ctypesInt): # <<<<<<<<<<<<<< * # print("ctypesInt") * valSetI = valSet.value */ - __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesInt); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6929, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesInt); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7136, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6931 + /* "PyCafe.pyx":7138 * elif isinstance(valSet, ctypesInt): * # print("ctypesInt") * valSetI = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setLong(handle, valSetI) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6931, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_17 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_17 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6931, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_int(__pyx_t_10); if (unlikely((__pyx_t_17 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetI = ((int)__pyx_t_17); - /* "PyCafe.pyx":6932 + /* "PyCafe.pyx":7139 * # print("ctypesInt") * valSetI = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116034,7 +119712,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6933 + /* "PyCafe.pyx":7140 * valSetI = valSet.value * with nogil: * status = self._c_cafe.setLong(handle, valSetI) # <<<<<<<<<<<<<< @@ -116044,7 +119722,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setLong(__pyx_v_handle, __pyx_v_valSetI); } - /* "PyCafe.pyx":6932 + /* "PyCafe.pyx":7139 * # print("ctypesInt") * valSetI = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116063,7 +119741,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6929 + /* "PyCafe.pyx":7136 * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) * elif isinstance(valSet, ctypesInt): # <<<<<<<<<<<<<< @@ -116073,31 +119751,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6934 + /* "PyCafe.pyx":7141 * with nogil: * status = self._c_cafe.setLong(handle, valSetI) * elif isinstance(valSet, ctypesLongLong): # <<<<<<<<<<<<<< * # print("ctypesLongLong") * valSetLL = valSet.value */ - __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesLongLong); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6934, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesLongLong); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7141, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6936 + /* "PyCafe.pyx":7143 * elif isinstance(valSet, ctypesLongLong): * # print("ctypesLongLong") * valSetLL = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setLong(handle, valSetLL) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6936, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_32 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_10); if (unlikely((__pyx_t_32 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(3, 6936, __pyx_L1_error) + __pyx_t_32 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_10); if (unlikely((__pyx_t_32 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(3, 7143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetLL = ((PY_LONG_LONG)__pyx_t_32); - /* "PyCafe.pyx":6937 + /* "PyCafe.pyx":7144 * # print("ctypesLongLong") * valSetLL = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116112,7 +119790,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6938 + /* "PyCafe.pyx":7145 * valSetLL = valSet.value * with nogil: * status = self._c_cafe.setLong(handle, valSetLL) # <<<<<<<<<<<<<< @@ -116122,7 +119800,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setLong(__pyx_v_handle, __pyx_v_valSetLL); } - /* "PyCafe.pyx":6937 + /* "PyCafe.pyx":7144 * # print("ctypesLongLong") * valSetLL = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116141,7 +119819,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6934 + /* "PyCafe.pyx":7141 * with nogil: * status = self._c_cafe.setLong(handle, valSetI) * elif isinstance(valSet, ctypesLongLong): # <<<<<<<<<<<<<< @@ -116151,31 +119829,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6939 + /* "PyCafe.pyx":7146 * with nogil: * status = self._c_cafe.setLong(handle, valSetLL) * elif isinstance(valSet, ctypesShort): # <<<<<<<<<<<<<< * #print("ctypesShort") * valSetShort = valSet.value */ - __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesShort); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6939, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesShort); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7146, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6941 + /* "PyCafe.pyx":7148 * elif isinstance(valSet, ctypesShort): * #print("ctypesShort") * valSetShort = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setShort(handle, valSetShort) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6941, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_25 = __Pyx_PyInt_As_short(__pyx_t_10); if (unlikely((__pyx_t_25 == (short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6941, __pyx_L1_error) + __pyx_t_25 = __Pyx_PyInt_As_short(__pyx_t_10); if (unlikely((__pyx_t_25 == (short)-1) && PyErr_Occurred())) __PYX_ERR(3, 7148, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetShort = ((short)__pyx_t_25); - /* "PyCafe.pyx":6942 + /* "PyCafe.pyx":7149 * #print("ctypesShort") * valSetShort = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116190,7 +119868,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6943 + /* "PyCafe.pyx":7150 * valSetShort = valSet.value * with nogil: * status = self._c_cafe.setShort(handle, valSetShort) # <<<<<<<<<<<<<< @@ -116200,7 +119878,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setShort(__pyx_v_handle, __pyx_v_valSetShort); } - /* "PyCafe.pyx":6942 + /* "PyCafe.pyx":7149 * #print("ctypesShort") * valSetShort = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116219,7 +119897,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6939 + /* "PyCafe.pyx":7146 * with nogil: * status = self._c_cafe.setLong(handle, valSetLL) * elif isinstance(valSet, ctypesShort): # <<<<<<<<<<<<<< @@ -116229,31 +119907,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6944 + /* "PyCafe.pyx":7151 * with nogil: * status = self._c_cafe.setShort(handle, valSetShort) * elif isinstance(valSet, ctypesUShort): # <<<<<<<<<<<<<< * #print("ctypesUShort") * valSetUShort = valSet.value */ - __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesUShort); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6944, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesUShort); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7151, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6946 + /* "PyCafe.pyx":7153 * elif isinstance(valSet, ctypesUShort): * #print("ctypesUShort") * valSetUShort = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setUShort(handle, valSetUShort) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6946, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_26 = __Pyx_PyInt_As_unsigned_short(__pyx_t_10); if (unlikely((__pyx_t_26 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 6946, __pyx_L1_error) + __pyx_t_26 = __Pyx_PyInt_As_unsigned_short(__pyx_t_10); if (unlikely((__pyx_t_26 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(3, 7153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetUShort = ((unsigned short)__pyx_t_26); - /* "PyCafe.pyx":6947 + /* "PyCafe.pyx":7154 * #print("ctypesUShort") * valSetUShort = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116268,7 +119946,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6948 + /* "PyCafe.pyx":7155 * valSetUShort = valSet.value * with nogil: * status = self._c_cafe.setUShort(handle, valSetUShort) # <<<<<<<<<<<<<< @@ -116278,7 +119956,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setUShort(__pyx_v_handle, __pyx_v_valSetUShort); } - /* "PyCafe.pyx":6947 + /* "PyCafe.pyx":7154 * #print("ctypesUShort") * valSetUShort = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116297,7 +119975,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6944 + /* "PyCafe.pyx":7151 * with nogil: * status = self._c_cafe.setShort(handle, valSetShort) * elif isinstance(valSet, ctypesUShort): # <<<<<<<<<<<<<< @@ -116307,31 +119985,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6949 + /* "PyCafe.pyx":7156 * with nogil: * status = self._c_cafe.setUShort(handle, valSetUShort) * elif isinstance(valSet, (ctypesString)): # <<<<<<<<<<<<<< * #print("ctypesString") * valSetS = valSet.value */ - __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesString); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 6949, __pyx_L1_error) + __pyx_t_2 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesString); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 7156, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6951 + /* "PyCafe.pyx":7158 * elif isinstance(valSet, (ctypesString)): * #print("ctypesString") * valSetS = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setString(handle, valSetS) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6951, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6951, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = ((std::string)__pyx_t_31); - /* "PyCafe.pyx":6952 + /* "PyCafe.pyx":7159 * #print("ctypesString") * valSetS = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116346,7 +120024,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6953 + /* "PyCafe.pyx":7160 * valSetS = valSet.value * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -116356,7 +120034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":6952 + /* "PyCafe.pyx":7159 * #print("ctypesString") * valSetS = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116375,7 +120053,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6949 + /* "PyCafe.pyx":7156 * with nogil: * status = self._c_cafe.setUShort(handle, valSetUShort) * elif isinstance(valSet, (ctypesString)): # <<<<<<<<<<<<<< @@ -116385,31 +120063,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6954 + /* "PyCafe.pyx":7161 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, ctypesUChar): # <<<<<<<<<<<<<< * #print("ctypesUChar") * valSetUChar = valSet.value */ - __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesUChar); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 6954, __pyx_L1_error) + __pyx_t_3 = PyObject_IsInstance(__pyx_v_valSet, __pyx_v_ctypesUChar); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 7161, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6956 + /* "PyCafe.pyx":7163 * elif isinstance(valSet, ctypesUChar): * #print("ctypesUChar") * valSetUChar = valSet.value # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setChar(handle, valSetUChar) */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6956, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_value_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_33 = __Pyx_PyInt_As_unsigned_char(__pyx_t_10); if (unlikely((__pyx_t_33 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(3, 6956, __pyx_L1_error) + __pyx_t_33 = __Pyx_PyInt_As_unsigned_char(__pyx_t_10); if (unlikely((__pyx_t_33 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(3, 7163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetUChar = ((unsigned char)__pyx_t_33); - /* "PyCafe.pyx":6957 + /* "PyCafe.pyx":7164 * #print("ctypesUChar") * valSetUChar = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116424,7 +120102,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6958 + /* "PyCafe.pyx":7165 * valSetUChar = valSet.value * with nogil: * status = self._c_cafe.setChar(handle, valSetUChar) # <<<<<<<<<<<<<< @@ -116434,7 +120112,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setChar(__pyx_v_handle, __pyx_v_valSetUChar); } - /* "PyCafe.pyx":6957 + /* "PyCafe.pyx":7164 * #print("ctypesUChar") * valSetUChar = valSet.value * with nogil: # <<<<<<<<<<<<<< @@ -116453,7 +120131,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6954 + /* "PyCafe.pyx":7161 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, ctypesUChar): # <<<<<<<<<<<<<< @@ -116463,7 +120141,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6959 + /* "PyCafe.pyx":7166 * with nogil: * status = self._c_cafe.setChar(handle, valSetUChar) * elif isinstance(valSet, (float)): # <<<<<<<<<<<<<< @@ -116474,17 +120152,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6961 + /* "PyCafe.pyx":7168 * elif isinstance(valSet, (float)): * #print("float type") * valSetD = valSet # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) */ - __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_v_valSet); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 6961, __pyx_L1_error) + __pyx_t_23 = __pyx_PyFloat_AsFloat(__pyx_v_valSet); if (unlikely((__pyx_t_23 == (float)-1) && PyErr_Occurred())) __PYX_ERR(3, 7168, __pyx_L1_error) __pyx_v_valSetD = ((float)__pyx_t_23); - /* "PyCafe.pyx":6962 + /* "PyCafe.pyx":7169 * #print("float type") * valSetD = valSet * with nogil: # <<<<<<<<<<<<<< @@ -116499,7 +120177,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6963 + /* "PyCafe.pyx":7170 * valSetD = valSet * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) # <<<<<<<<<<<<<< @@ -116509,7 +120187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setDouble(__pyx_v_handle, __pyx_v_valSetD); } - /* "PyCafe.pyx":6962 + /* "PyCafe.pyx":7169 * #print("float type") * valSetD = valSet * with nogil: # <<<<<<<<<<<<<< @@ -116528,7 +120206,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6959 + /* "PyCafe.pyx":7166 * with nogil: * status = self._c_cafe.setChar(handle, valSetUChar) * elif isinstance(valSet, (float)): # <<<<<<<<<<<<<< @@ -116538,7 +120216,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6964 + /* "PyCafe.pyx":7171 * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) * elif isinstance(valSet, (int, long)): # <<<<<<<<<<<<<< @@ -116559,17 +120237,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6966 + /* "PyCafe.pyx":7173 * elif isinstance(valSet, (int, long)): * #print("int/long type") * valSetI = valSet # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setLong(handle, valSetI) */ - __pyx_t_17 = __Pyx_PyInt_As_int(__pyx_v_valSet); if (unlikely((__pyx_t_17 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 6966, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_int(__pyx_v_valSet); if (unlikely((__pyx_t_17 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7173, __pyx_L1_error) __pyx_v_valSetI = ((int)__pyx_t_17); - /* "PyCafe.pyx":6967 + /* "PyCafe.pyx":7174 * #print("int/long type") * valSetI = valSet * with nogil: # <<<<<<<<<<<<<< @@ -116584,7 +120262,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6968 + /* "PyCafe.pyx":7175 * valSetI = valSet * with nogil: * status = self._c_cafe.setLong(handle, valSetI) # <<<<<<<<<<<<<< @@ -116594,7 +120272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setLong(__pyx_v_handle, __pyx_v_valSetI); } - /* "PyCafe.pyx":6967 + /* "PyCafe.pyx":7174 * #print("int/long type") * valSetI = valSet * with nogil: # <<<<<<<<<<<<<< @@ -116613,7 +120291,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6964 + /* "PyCafe.pyx":7171 * with nogil: * status = self._c_cafe.setDouble(handle, valSetD) * elif isinstance(valSet, (int, long)): # <<<<<<<<<<<<<< @@ -116623,7 +120301,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6969 + /* "PyCafe.pyx":7176 * with nogil: * status = self._c_cafe.setLong(handle, valSetI) * elif isinstance(valSet, (str)): # <<<<<<<<<<<<<< @@ -116634,7 +120312,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6971 + /* "PyCafe.pyx":7178 * elif isinstance(valSet, (str)): * #print("str type", valSet) * encoding = False # <<<<<<<<<<<<<< @@ -116643,7 +120321,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":6972 + /* "PyCafe.pyx":7179 * #print("str type", valSet) * encoding = False * try: # <<<<<<<<<<<<<< @@ -116659,14 +120337,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_28); /*try:*/ { - /* "PyCafe.pyx":6973 + /* "PyCafe.pyx":7180 * encoding = False * try: * valSetS = valSet.encode('utf_8') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6973, __pyx_L145_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7180, __pyx_L145_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -116678,16 +120356,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8); + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6973, __pyx_L145_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7180, __pyx_L145_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6973, __pyx_L145_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7180, __pyx_L145_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = __pyx_t_31; - /* "PyCafe.pyx":6974 + /* "PyCafe.pyx":7181 * try: * valSetS = valSet.encode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -116696,7 +120374,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6972 + /* "PyCafe.pyx":7179 * #print("str type", valSet) * encoding = False * try: # <<<<<<<<<<<<<< @@ -116722,7 +120400,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":6975 + /* "PyCafe.pyx":7182 * valSetS = valSet.encode('utf_8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -116737,7 +120415,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L147_except_error; __pyx_L147_except_error:; - /* "PyCafe.pyx":6972 + /* "PyCafe.pyx":7179 * #print("str type", valSet) * encoding = False * try: # <<<<<<<<<<<<<< @@ -116757,7 +120435,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L150_try_end:; } - /* "PyCafe.pyx":6977 + /* "PyCafe.pyx":7184 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -116767,7 +120445,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":6978 + /* "PyCafe.pyx":7185 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -116783,14 +120461,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_30); /*try:*/ { - /* "PyCafe.pyx":6979 + /* "PyCafe.pyx":7186 * if not encoding: * try: * valSetS = valSet.encode('utf_16') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6979, __pyx_L152_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7186, __pyx_L152_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -116802,16 +120480,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16); + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6979, __pyx_L152_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7186, __pyx_L152_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6979, __pyx_L152_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7186, __pyx_L152_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = __pyx_t_31; - /* "PyCafe.pyx":6980 + /* "PyCafe.pyx":7187 * try: * valSetS = valSet.encode('utf_16') * encoding = True # <<<<<<<<<<<<<< @@ -116820,7 +120498,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6978 + /* "PyCafe.pyx":7185 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -116846,7 +120524,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":6981 + /* "PyCafe.pyx":7188 * valSetS = valSet.encode('utf_16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -116861,7 +120539,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L154_except_error; __pyx_L154_except_error:; - /* "PyCafe.pyx":6978 + /* "PyCafe.pyx":7185 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -116881,7 +120559,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L157_try_end:; } - /* "PyCafe.pyx":6977 + /* "PyCafe.pyx":7184 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -116890,7 +120568,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":6984 + /* "PyCafe.pyx":7191 * pass * * with nogil: # <<<<<<<<<<<<<< @@ -116905,7 +120583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":6985 + /* "PyCafe.pyx":7192 * * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -116915,7 +120593,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":6984 + /* "PyCafe.pyx":7191 * pass * * with nogil: # <<<<<<<<<<<<<< @@ -116934,7 +120612,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6969 + /* "PyCafe.pyx":7176 * with nogil: * status = self._c_cafe.setLong(handle, valSetI) * elif isinstance(valSet, (str)): # <<<<<<<<<<<<<< @@ -116944,7 +120622,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":6986 + /* "PyCafe.pyx":7193 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (bytes, bytearray)): # <<<<<<<<<<<<<< @@ -116965,7 +120643,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6988 + /* "PyCafe.pyx":7195 * elif isinstance(valSet, (bytes, bytearray)): * #print("bytes,bytearray") * encoding = False # <<<<<<<<<<<<<< @@ -116974,7 +120652,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 0; - /* "PyCafe.pyx":6989 + /* "PyCafe.pyx":7196 * #print("bytes,bytearray") * encoding = False * try: # <<<<<<<<<<<<<< @@ -116990,14 +120668,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_28); /*try:*/ { - /* "PyCafe.pyx":6990 + /* "PyCafe.pyx":7197 * encoding = False * try: * valSetS = valSet.decode('utf_8') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6990, __pyx_L163_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7197, __pyx_L163_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -117009,16 +120687,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8); + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_8_2); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6990, __pyx_L163_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7197, __pyx_L163_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6990, __pyx_L163_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7197, __pyx_L163_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = __pyx_t_31; - /* "PyCafe.pyx":6991 + /* "PyCafe.pyx":7198 * try: * valSetS = valSet.decode('utf_8') * encoding = True # <<<<<<<<<<<<<< @@ -117027,7 +120705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6989 + /* "PyCafe.pyx":7196 * #print("bytes,bytearray") * encoding = False * try: # <<<<<<<<<<<<<< @@ -117053,7 +120731,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":6992 + /* "PyCafe.pyx":7199 * valSetS = valSet.decode('utf_8') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -117068,7 +120746,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L165_except_error; __pyx_L165_except_error:; - /* "PyCafe.pyx":6989 + /* "PyCafe.pyx":7196 * #print("bytes,bytearray") * encoding = False * try: # <<<<<<<<<<<<<< @@ -117088,7 +120766,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L168_try_end:; } - /* "PyCafe.pyx":6994 + /* "PyCafe.pyx":7201 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -117098,7 +120776,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":6995 + /* "PyCafe.pyx":7202 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -117114,14 +120792,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XGOTREF(__pyx_t_30); /*try:*/ { - /* "PyCafe.pyx":6996 + /* "PyCafe.pyx":7203 * if not encoding: * try: * valSetS = valSet.decode('utf_16') # <<<<<<<<<<<<<< * encoding = True * except UnicodeDecodeError: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 6996, __pyx_L170_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_decode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7203, __pyx_L170_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -117133,16 +120811,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_16) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16); + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_n_u_utf_16_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_n_u_utf_16_2); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 6996, __pyx_L170_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7203, __pyx_L170_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 6996, __pyx_L170_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7203, __pyx_L170_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = ((std::string)__pyx_t_31); - /* "PyCafe.pyx":6997 + /* "PyCafe.pyx":7204 * try: * valSetS = valSet.decode('utf_16') * encoding = True # <<<<<<<<<<<<<< @@ -117151,7 +120829,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_encoding = 1; - /* "PyCafe.pyx":6995 + /* "PyCafe.pyx":7202 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -117177,7 +120855,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":6998 + /* "PyCafe.pyx":7205 * valSetS = valSet.decode('utf_16') * encoding = True * except UnicodeDecodeError: # <<<<<<<<<<<<<< @@ -117187,19 +120865,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_17 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); if (__pyx_t_17) { __Pyx_AddTraceback("PyCafe.CyCafe.set", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(3, 6998, __pyx_L172_except_error) + if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(3, 7205, __pyx_L172_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_8); - /* "PyCafe.pyx":6999 + /* "PyCafe.pyx":7206 * encoding = True * except UnicodeDecodeError: * print('decode utf_16 error') # <<<<<<<<<<<<<< * pass * except UnicodeEncodeError as ex: */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__125, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 6999, __pyx_L172_except_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__120, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7206, __pyx_L172_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -117208,7 +120886,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L171_exception_handled; } - /* "PyCafe.pyx":7001 + /* "PyCafe.pyx":7208 * print('decode utf_16 error') * pass * except UnicodeEncodeError as ex: # <<<<<<<<<<<<<< @@ -117218,7 +120896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_17 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeEncodeError); if (__pyx_t_17) { __Pyx_AddTraceback("PyCafe.CyCafe.set", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_10) < 0) __PYX_ERR(3, 7001, __pyx_L172_except_error) + if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_10) < 0) __PYX_ERR(3, 7208, __pyx_L172_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_10); @@ -117226,14 +120904,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_ex = __pyx_t_6; /*try:*/ { - /* "PyCafe.pyx":7002 + /* "PyCafe.pyx":7209 * pass * except UnicodeEncodeError as ex: * print('encode utf_16 error', ex) # <<<<<<<<<<<<<< * pass * if not encoding: */ - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7002, __pyx_L183_error) + __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7209, __pyx_L183_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_kp_u_encode_utf_16_error); __Pyx_GIVEREF(__pyx_kp_u_encode_utf_16_error); @@ -117241,13 +120919,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_ex); - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 7002, __pyx_L183_error) + __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_7, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 7209, __pyx_L183_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } - /* "PyCafe.pyx":7001 + /* "PyCafe.pyx":7208 * print('decode utf_16 error') * pass * except UnicodeEncodeError as ex: # <<<<<<<<<<<<<< @@ -117311,7 +120989,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L172_except_error; __pyx_L172_except_error:; - /* "PyCafe.pyx":6995 + /* "PyCafe.pyx":7202 * pass * if not encoding: * try: # <<<<<<<<<<<<<< @@ -117331,7 +121009,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_L175_try_end:; } - /* "PyCafe.pyx":6994 + /* "PyCafe.pyx":7201 * except UnicodeDecodeError: * pass * if not encoding: # <<<<<<<<<<<<<< @@ -117340,7 +121018,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":7004 + /* "PyCafe.pyx":7211 * print('encode utf_16 error', ex) * pass * if not encoding: # <<<<<<<<<<<<<< @@ -117350,28 +121028,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_2 = ((!(__pyx_v_encoding != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7005 + /* "PyCafe.pyx":7212 * pass * if not encoding: * print('no encoding done') # <<<<<<<<<<<<<< * valSetS = valSet * with nogil: */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7005, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__121, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":7006 + /* "PyCafe.pyx":7213 * if not encoding: * print('no encoding done') * valSetS = valSet # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setString(handle, valSetS) */ - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_v_valSet); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7006, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_v_valSet); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7213, __pyx_L1_error) __pyx_v_valSetS = ((std::string)__pyx_t_31); - /* "PyCafe.pyx":7004 + /* "PyCafe.pyx":7211 * print('encode utf_16 error', ex) * pass * if not encoding: # <<<<<<<<<<<<<< @@ -117380,7 +121058,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":7007 + /* "PyCafe.pyx":7214 * print('no encoding done') * valSetS = valSet * with nogil: # <<<<<<<<<<<<<< @@ -117395,7 +121073,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":7008 + /* "PyCafe.pyx":7215 * valSetS = valSet * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -117405,7 +121083,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":7007 + /* "PyCafe.pyx":7214 * print('no encoding done') * valSetS = valSet * with nogil: # <<<<<<<<<<<<<< @@ -117424,7 +121102,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":6986 + /* "PyCafe.pyx":7193 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (bytes, bytearray)): # <<<<<<<<<<<<<< @@ -117434,7 +121112,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":7009 + /* "PyCafe.pyx":7216 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (unicode)): # <<<<<<<<<<<<<< @@ -117445,14 +121123,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7011 + /* "PyCafe.pyx":7218 * elif isinstance(valSet, (unicode)): * #print("unicode") * valSetS = valSet.encode('utf-8') # <<<<<<<<<<<<<< * with nogil: * status = self._c_cafe.setString(handle, valSetS) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7011, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_valSet, __pyx_n_s_encode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -117464,16 +121142,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __Pyx_DECREF_SET(__pyx_t_6, function); } } - __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_kp_u_utf_8_2) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_8_2); + __pyx_t_10 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_kp_u_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_kp_u_utf_8); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7011, __pyx_L1_error) + if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7011, __pyx_L1_error) + __pyx_t_31 = __pyx_convert_string_from_py_std__in_string(__pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_valSetS = __pyx_t_31; - /* "PyCafe.pyx":7012 + /* "PyCafe.pyx":7219 * #print("unicode") * valSetS = valSet.encode('utf-8') * with nogil: # <<<<<<<<<<<<<< @@ -117488,7 +121166,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe #endif /*try:*/ { - /* "PyCafe.pyx":7013 + /* "PyCafe.pyx":7220 * valSetS = valSet.encode('utf-8') * with nogil: * status = self._c_cafe.setString(handle, valSetS) # <<<<<<<<<<<<<< @@ -117498,7 +121176,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_v_status = __pyx_v_self->_c_cafe->setString(__pyx_v_handle, __pyx_v_valSetS); } - /* "PyCafe.pyx":7012 + /* "PyCafe.pyx":7219 * #print("unicode") * valSetS = valSet.encode('utf-8') * with nogil: # <<<<<<<<<<<<<< @@ -117517,7 +121195,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } } - /* "PyCafe.pyx":7009 + /* "PyCafe.pyx":7216 * with nogil: * status = self._c_cafe.setString(handle, valSetS) * elif isinstance(valSet, (unicode)): # <<<<<<<<<<<<<< @@ -117527,7 +121205,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L33; } - /* "PyCafe.pyx":7015 + /* "PyCafe.pyx":7222 * status = self._c_cafe.setString(handle, valSetS) * else: * print("PyCafe def set WARNING: DATA TYPE NOT SUPPORTED") # <<<<<<<<<<<<<< @@ -117535,22 +121213,22 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * or not) should be of of type , or ") */ /*else*/ { - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__127, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7015, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":7016 + /* "PyCafe.pyx":7223 * else: * print("PyCafe def set WARNING: DATA TYPE NOT SUPPORTED") * print("Input data (whether within a 'list','array.array','cython.view.memoryview','memoryview' \n\ # <<<<<<<<<<<<<< * or not) should be of of type , or ") * type(valSet) */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__128, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7016, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":7018 + /* "PyCafe.pyx":7225 * print("Input data (whether within a 'list','array.array','cython.view.memoryview','memoryview' \n\ * or not) should be of of type , or ") * type(valSet) # <<<<<<<<<<<<<< @@ -117561,7 +121239,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L33:; - /* "PyCafe.pyx":7020 + /* "PyCafe.pyx":7227 * type(valSet) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -117571,7 +121249,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7021 + /* "PyCafe.pyx":7228 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -117581,7 +121259,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7022 + /* "PyCafe.pyx":7229 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -117591,7 +121269,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7023 + /* "PyCafe.pyx":7230 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -117600,7 +121278,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7022 + /* "PyCafe.pyx":7229 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * if handle == 0: # <<<<<<<<<<<<<< @@ -117610,7 +121288,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe goto __pyx_L198; } - /* "PyCafe.pyx":7025 + /* "PyCafe.pyx":7232 * self._c_cafe.printStatusMessage(status) * else: * self._c_cafe.printStatus(handle, status) # <<<<<<<<<<<<<< @@ -117622,7 +121300,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe } __pyx_L198:; - /* "PyCafe.pyx":7021 + /* "PyCafe.pyx":7228 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -117631,7 +121309,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":7026 + /* "PyCafe.pyx":7233 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -117641,60 +121319,60 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe __pyx_t_3 = (__pyx_v_self->_enable_exceptions != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7027 + /* "PyCafe.pyx":7234 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=handle, _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7027, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_unsigned_int(__pyx_v_handle); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_handle, __pyx_t_6) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7027, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyStr_FromString(__pyx_v_self->_c_cafe->getPVFromHandle(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_pv_name, __pyx_t_6) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7028 + /* "PyCafe.pyx":7235 * if self._enable_exceptions: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=handle, _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7028, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_code, __pyx_t_6) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7028, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_text, __pyx_t_6) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7028, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(__pyx_v_status)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 7027, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_t_6) < 0) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7027 + /* "PyCafe.pyx":7234 * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=handle, _pv_name=self._c_cafe.getPVFromHandle(handle), # <<<<<<<<<<<<<< * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7027, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7029 + /* "PyCafe.pyx":7236 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, _handle=handle, _pv_name=self._c_cafe.getPVFromHandle(handle), * _error_code=status, _error_text=self.cs.code(status), _error_info=self.cs.info(status)) * raise _cafeException # <<<<<<<<<<<<<< @@ -117702,9 +121380,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * return status */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7029, __pyx_L1_error) + __PYX_ERR(3, 7236, __pyx_L1_error) - /* "PyCafe.pyx":7026 + /* "PyCafe.pyx":7233 * else: * self._c_cafe.printStatus(handle, status) * if self._enable_exceptions: # <<<<<<<<<<<<<< @@ -117713,7 +121391,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":7020 + /* "PyCafe.pyx":7227 * type(valSet) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -117722,7 +121400,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe */ } - /* "PyCafe.pyx":7031 + /* "PyCafe.pyx":7238 * raise _cafeException * * return status # <<<<<<<<<<<<<< @@ -117730,13 +121408,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe * # END def set(self, handlePV, valSet): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7031, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":6629 + /* "PyCafe.pyx":6836 * ############################################################################## * * def set(self, handlePV, valSet): # <<<<<<<<<<<<<< @@ -117790,7 +121468,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_396set(struct __pyx_obj_6PyCafe_CyCafe return __pyx_r; } -/* "PyCafe.pyx":7038 +/* "PyCafe.pyx":7245 * ############################################################################ * * def setScalarList(self, list handleList, list valList): # <<<<<<<<<<<<<< @@ -117829,11 +121507,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_399setScalarList(PyObject *__pyx_v_sel case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valList)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setScalarList", 1, 2, 2, 1); __PYX_ERR(3, 7038, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setScalarList", 1, 2, 2, 1); __PYX_ERR(3, 7245, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setScalarList") < 0)) __PYX_ERR(3, 7038, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setScalarList") < 0)) __PYX_ERR(3, 7245, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -117846,14 +121524,14 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_399setScalarList(PyObject *__pyx_v_sel } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setScalarList", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7038, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setScalarList", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7245, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setScalarList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 7038, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valList), (&PyList_Type), 1, "valList", 1))) __PYX_ERR(3, 7038, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handleList), (&PyList_Type), 1, "handleList", 1))) __PYX_ERR(3, 7245, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valList), (&PyList_Type), 1, "valList", 1))) __PYX_ERR(3, 7245, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_398setScalarList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_valList); /* function exit code */ @@ -117896,7 +121574,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __Pyx_RefNannySetupContext("setScalarList", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":7039 + /* "PyCafe.pyx":7246 * * def setScalarList(self, list handleList, list valList): * cdef str _METHOD = "setScalarList" # <<<<<<<<<<<<<< @@ -117906,7 +121584,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __Pyx_INCREF(__pyx_n_u_setScalarList); __pyx_v__METHOD = __pyx_n_u_setScalarList; - /* "PyCafe.pyx":7042 + /* "PyCafe.pyx":7249 * * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -117915,29 +121593,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7042, __pyx_L1_error) + __PYX_ERR(3, 7249, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7042, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyUnicode_Check(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7043 + /* "PyCafe.pyx":7250 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \n\ */ - __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7043, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, __pyx_v_handleList, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(3, 7043, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(3, 7250, __pyx_L1_error) __Pyx_DECREF_SET(__pyx_v_handleList, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "PyCafe.pyx":7042 + /* "PyCafe.pyx":7249 * * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -117947,7 +121625,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC goto __pyx_L3; } - /* "PyCafe.pyx":7044 + /* "PyCafe.pyx":7251 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -117956,9 +121634,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7044, __pyx_L1_error) + __PYX_ERR(3, 7251, __pyx_L1_error) } - __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7044, __pyx_L1_error) + __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_Check(__pyx_t_1); __pyx_t_4 = (__pyx_t_2 != 0); @@ -117975,20 +121653,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7045 + /* "PyCafe.pyx":7252 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type \ * if handles or if PVs") */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__129, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7045, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__124, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7252, __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(3, 7045, __pyx_L1_error) + __PYX_ERR(3, 7252, __pyx_L1_error) - /* "PyCafe.pyx":7044 + /* "PyCafe.pyx":7251 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -117998,7 +121676,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC } __pyx_L3:; - /* "PyCafe.pyx":7049 + /* "PyCafe.pyx":7256 * if handles or if PVs") * * if len(handleList) != len(valList): # <<<<<<<<<<<<<< @@ -118007,18 +121685,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7049, __pyx_L1_error) + __PYX_ERR(3, 7256, __pyx_L1_error) } - __pyx_t_5 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7049, __pyx_L1_error) + __pyx_t_5 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7256, __pyx_L1_error) if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7049, __pyx_L1_error) + __PYX_ERR(3, 7256, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_valList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7049, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_valList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7256, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_5 != __pyx_t_6) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7051 + /* "PyCafe.pyx":7258 * if len(handleList) != len(valList): * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \ * Length of handle list ", len(handleList), " does not match \ # <<<<<<<<<<<<<< @@ -118027,13 +121705,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7051, __pyx_L1_error) + __PYX_ERR(3, 7258, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7051, __pyx_L1_error) - __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7051, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7258, __pyx_L1_error) + __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - /* "PyCafe.pyx":7052 + /* "PyCafe.pyx":7259 * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \ * Length of handle list ", len(handleList), " does not match \ * the length of data list ", len(valList)) # <<<<<<<<<<<<<< @@ -118042,20 +121720,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7052, __pyx_L1_error) + __PYX_ERR(3, 7259, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_valList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7052, __pyx_L1_error) - __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7052, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_valList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7259, __pyx_L1_error) + __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":7050 + /* "PyCafe.pyx":7257 * * if len(handleList) != len(valList): * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \ # <<<<<<<<<<<<<< * Length of handle list ", len(handleList), " does not match \ * the length of data list ", len(valList)) */ - __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7050, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_INCREF(__pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_2); __Pyx_GIVEREF(__pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_2); @@ -118069,14 +121747,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_7); __pyx_t_1 = 0; __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7050, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7257, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(3, 7050, __pyx_L1_error) + __PYX_ERR(3, 7257, __pyx_L1_error) - /* "PyCafe.pyx":7049 + /* "PyCafe.pyx":7256 * if handles or if PVs") * * if len(handleList) != len(valList): # <<<<<<<<<<<<<< @@ -118085,19 +121763,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":7054 + /* "PyCafe.pyx":7261 * the length of data list ", len(valList)) * * nelemPrevious = [] # <<<<<<<<<<<<<< * * # Better with PVDataHolder */ - __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7054, __pyx_L1_error) + __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_nelemPrevious = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":7057 + /* "PyCafe.pyx":7264 * * # Better with PVDataHolder * cdef unsigned int nelemTotal = 0 # <<<<<<<<<<<<<< @@ -118106,7 +121784,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ __pyx_v_nelemTotal = 0; - /* "PyCafe.pyx":7058 + /* "PyCafe.pyx":7265 * # Better with PVDataHolder * cdef unsigned int nelemTotal = 0 * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -118115,14 +121793,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7058, __pyx_L1_error) + __PYX_ERR(3, 7265, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7058, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7265, __pyx_L1_error) __pyx_t_5 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_5; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7060 + /* "PyCafe.pyx":7267 * for i in range(0, len(handleList)): * # nelemTotal+=self.hh.getNelemNative(handleList[i]) * nelemPrevious.append(self.hh.getNelemClient(handleList[i])) # <<<<<<<<<<<<<< @@ -118131,19 +121809,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7060, __pyx_L1_error) + __PYX_ERR(3, 7267, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7060, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7060, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemClient(__pyx_t_10)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7060, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.getNelemClient(__pyx_t_10)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_7); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 7060, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_nelemPrevious, __pyx_t_7); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 7267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":7066 + /* "PyCafe.pyx":7273 * # do this to avoid compiler warning messages * cdef vector[unsigned int] v * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -118152,14 +121830,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7066, __pyx_L1_error) + __PYX_ERR(3, 7273, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7066, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7273, __pyx_L1_error) __pyx_t_5 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_5; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7067 + /* "PyCafe.pyx":7274 * cdef vector[unsigned int] v * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< @@ -118168,21 +121846,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7067, __pyx_L1_error) + __PYX_ERR(3, 7274, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7067, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7067, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; try { __pyx_v_v.push_back(__pyx_t_10); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7067, __pyx_L1_error) + __PYX_ERR(3, 7274, __pyx_L1_error) } } - /* "PyCafe.pyx":7071 + /* "PyCafe.pyx":7278 * # Create temporary group from handleList * # Does group exist? * cdef PVDataHolder * pvd = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -118191,7 +121869,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ __pyx_v_pvd = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":7076 + /* "PyCafe.pyx":7283 * # len(handleList) * sizeof(PVDataHolder) + nelemTotal*size_cdu) * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -118203,7 +121881,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_13; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafe.pyx":7079 + /* "PyCafe.pyx":7286 * # pvd[i].val =malloc(sizeof(CAFE_DATATYPE_UNION)) * #pvd[i]= PVDataHolder(1); * pvd[i].setNelem(1) # <<<<<<<<<<<<<< @@ -118213,7 +121891,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC (void)((__pyx_v_pvd[__pyx_v_i]).setNelem(1)); } - /* "PyCafe.pyx":7083 + /* "PyCafe.pyx":7290 * #cdef unsigned short valType = CAFE_STRING * * for i in range(0, v.size()): #len(handleList)): # <<<<<<<<<<<<<< @@ -118225,7 +121903,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_13; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "PyCafe.pyx":7084 + /* "PyCafe.pyx":7291 * * for i in range(0, v.size()): #len(handleList)): * if isinstance(valList[i], (str)): # <<<<<<<<<<<<<< @@ -118234,16 +121912,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7084, __pyx_L1_error) + __PYX_ERR(3, 7291, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7084, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = PyUnicode_Check(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7085 + /* "PyCafe.pyx":7292 * for i in range(0, v.size()): #len(handleList)): * if isinstance(valList[i], (str)): * pvd[i].setString(valList[i]) # <<<<<<<<<<<<<< @@ -118252,15 +121930,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7085, __pyx_L1_error) + __PYX_ERR(3, 7292, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7085, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_t_7); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7085, __pyx_L1_error) + __pyx_t_14 = __pyx_convert_string_from_py_std__in_string(__pyx_t_7); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; (void)((__pyx_v_pvd[__pyx_v_i]).setString(__pyx_t_14)); - /* "PyCafe.pyx":7084 + /* "PyCafe.pyx":7291 * * for i in range(0, v.size()): #len(handleList)): * if isinstance(valList[i], (str)): # <<<<<<<<<<<<<< @@ -118270,7 +121948,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC goto __pyx_L15; } - /* "PyCafe.pyx":7086 + /* "PyCafe.pyx":7293 * if isinstance(valList[i], (str)): * pvd[i].setString(valList[i]) * elif isinstance(valList[i], (float)): # <<<<<<<<<<<<<< @@ -118279,16 +121957,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7086, __pyx_L1_error) + __PYX_ERR(3, 7293, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7086, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = PyFloat_Check(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7087 + /* "PyCafe.pyx":7294 * pvd[i].setString(valList[i]) * elif isinstance(valList[i], (float)): * pvd[i].setDouble(valList[i]) # <<<<<<<<<<<<<< @@ -118297,15 +121975,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7087, __pyx_L1_error) + __PYX_ERR(3, 7294, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7087, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_15 = __pyx_PyFloat_AsDouble(__pyx_t_7); if (unlikely((__pyx_t_15 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7087, __pyx_L1_error) + __pyx_t_15 = __pyx_PyFloat_AsDouble(__pyx_t_7); if (unlikely((__pyx_t_15 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; (void)((__pyx_v_pvd[__pyx_v_i]).setDouble(__pyx_t_15)); - /* "PyCafe.pyx":7086 + /* "PyCafe.pyx":7293 * if isinstance(valList[i], (str)): * pvd[i].setString(valList[i]) * elif isinstance(valList[i], (float)): # <<<<<<<<<<<<<< @@ -118315,7 +121993,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC goto __pyx_L15; } - /* "PyCafe.pyx":7088 + /* "PyCafe.pyx":7295 * elif isinstance(valList[i], (float)): * pvd[i].setDouble(valList[i]) * elif isinstance(valList[i], (long, int)): # <<<<<<<<<<<<<< @@ -118324,9 +122002,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7088, __pyx_L1_error) + __PYX_ERR(3, 7295, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7088, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = PyLong_Check(__pyx_t_7); __pyx_t_4 = (__pyx_t_3 != 0); @@ -118343,7 +122021,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7089 + /* "PyCafe.pyx":7296 * pvd[i].setDouble(valList[i]) * elif isinstance(valList[i], (long, int)): * pvd[i].setInt(valList[i]) # <<<<<<<<<<<<<< @@ -118352,15 +122030,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_valList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7089, __pyx_L1_error) + __PYX_ERR(3, 7296, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7089, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_valList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_16 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_16 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7089, __pyx_L1_error) + __pyx_t_16 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_16 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7296, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; (void)((__pyx_v_pvd[__pyx_v_i]).setInt(__pyx_t_16)); - /* "PyCafe.pyx":7088 + /* "PyCafe.pyx":7295 * elif isinstance(valList[i], (float)): * pvd[i].setDouble(valList[i]) * elif isinstance(valList[i], (long, int)): # <<<<<<<<<<<<<< @@ -118370,7 +122048,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC goto __pyx_L15; } - /* "PyCafe.pyx":7091 + /* "PyCafe.pyx":7298 * pvd[i].setInt(valList[i]) * else: * print("This line in PyCafe def setScalarList should never appear!") # <<<<<<<<<<<<<< @@ -118378,14 +122056,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC * cdef int status = ICAFE_NORMAL */ /*else*/ { - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__130, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7091, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__125, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_L15:; } - /* "PyCafe.pyx":7093 + /* "PyCafe.pyx":7300 * print("This line in PyCafe def setScalarList should never appear!") * * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -118394,7 +122072,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":7094 + /* "PyCafe.pyx":7301 * * cdef int status = ICAFE_NORMAL * with nogil: # <<<<<<<<<<<<<< @@ -118409,7 +122087,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC #endif /*try:*/ { - /* "PyCafe.pyx":7095 + /* "PyCafe.pyx":7302 * cdef int status = ICAFE_NORMAL * with nogil: * status = self._c_cafe.setPVArray(v, pvd) # <<<<<<<<<<<<<< @@ -118419,7 +122097,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_v_status = __pyx_v_self->_c_cafe->setPVArray(__pyx_v_v, __pyx_v_pvd); } - /* "PyCafe.pyx":7094 + /* "PyCafe.pyx":7301 * * cdef int status = ICAFE_NORMAL * with nogil: # <<<<<<<<<<<<<< @@ -118438,7 +122116,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":7097 + /* "PyCafe.pyx":7304 * status = self._c_cafe.setPVArray(v, pvd) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -118447,30 +122125,30 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7097, __pyx_L1_error) + __PYX_ERR(3, 7304, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7097, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7304, __pyx_L1_error) __pyx_t_5 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_5; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7098 + /* "PyCafe.pyx":7305 * * for i in range(0, len(handleList)): * if (nelemPrevious[i] != 1): # <<<<<<<<<<<<<< * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) */ - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_nelemPrevious, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7098, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_nelemPrevious, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_PyInt_NeObjC(__pyx_t_7, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7098, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_NeObjC(__pyx_t_7, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 7098, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(3, 7305, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_3) { - /* "PyCafe.pyx":7100 + /* "PyCafe.pyx":7307 * if (nelemPrevious[i] != 1): * self._c_cafe.setNelemToPrevious( * handleList[i], nelemPrevious[i]) # <<<<<<<<<<<<<< @@ -118479,18 +122157,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7100, __pyx_L1_error) + __PYX_ERR(3, 7307, __pyx_L1_error) } - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7100, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_8); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7100, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_8); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_nelemPrevious, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7100, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_nelemPrevious, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_8); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7100, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_8); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":7099 + /* "PyCafe.pyx":7306 * for i in range(0, len(handleList)): * if (nelemPrevious[i] != 1): * self._c_cafe.setNelemToPrevious( # <<<<<<<<<<<<<< @@ -118499,7 +122177,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ (void)(__pyx_v_self->_c_cafe->setNelemToPrevious(__pyx_t_10, __pyx_t_17)); - /* "PyCafe.pyx":7098 + /* "PyCafe.pyx":7305 * * for i in range(0, len(handleList)): * if (nelemPrevious[i] != 1): # <<<<<<<<<<<<<< @@ -118509,19 +122187,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC } } - /* "PyCafe.pyx":7103 + /* "PyCafe.pyx":7310 * * # return status for individual channels * statusList = [] # <<<<<<<<<<<<<< * * if status != ICAFE_NORMAL: */ - __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7103, __pyx_L1_error) + __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_v_statusList = ((PyObject*)__pyx_t_8); __pyx_t_8 = 0; - /* "PyCafe.pyx":7105 + /* "PyCafe.pyx":7312 * statusList = [] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -118531,7 +122209,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7106 + /* "PyCafe.pyx":7313 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -118541,7 +122219,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7107 + /* "PyCafe.pyx":7314 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -118550,7 +122228,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7106 + /* "PyCafe.pyx":7313 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -118559,7 +122237,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":7105 + /* "PyCafe.pyx":7312 * statusList = [] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -118568,7 +122246,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":7109 + /* "PyCafe.pyx":7316 * self._c_cafe.printStatusMessage(status) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< @@ -118577,14 +122255,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7109, __pyx_L1_error) + __PYX_ERR(3, 7316, __pyx_L1_error) } - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7109, __pyx_L1_error) + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_handleList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7316, __pyx_L1_error) __pyx_t_5 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_5; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7110 + /* "PyCafe.pyx":7317 * * for i in range(0, len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -118594,7 +122272,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_3 = (((__pyx_v_pvd[__pyx_v_i]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7111 + /* "PyCafe.pyx":7318 * for i in range(0, len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< @@ -118603,12 +122281,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7111, __pyx_L1_error) + __PYX_ERR(3, 7318, __pyx_L1_error) } - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7111, __pyx_L1_error) + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 7318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - /* "PyCafe.pyx":7112 + /* "PyCafe.pyx":7319 * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< @@ -118617,23 +122295,23 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ if (unlikely(__pyx_v_handleList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7112, __pyx_L1_error) + __PYX_ERR(3, 7319, __pyx_L1_error) } - __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7112, __pyx_L1_error) + __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_handleList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7112, __pyx_L1_error) + __pyx_t_17 = __Pyx_PyInt_As_unsigned_int(__pyx_t_7); if (unlikely((__pyx_t_17 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7112, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_17)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "PyCafe.pyx":7111 + /* "PyCafe.pyx":7318 * for i in range(0, len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) */ - __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7111, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_kp_u_Handle); __Pyx_GIVEREF(__pyx_kp_u_Handle); @@ -118647,21 +122325,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_7); __pyx_t_8 = 0; __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7111, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":7113 + /* "PyCafe.pyx":7320 * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * print("") */ - __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7113, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7113, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -118669,12 +122347,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7113, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":7114 + /* "PyCafe.pyx":7321 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) # <<<<<<<<<<<<<< @@ -118683,18 +122361,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ __pyx_v_self->_c_cafe->printStatusMessage((__pyx_v_pvd[__pyx_v_i]).getStatus()); - /* "PyCafe.pyx":7115 + /* "PyCafe.pyx":7322 * print("with error status=", pvd[i].getStatus()) * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * print("") # <<<<<<<<<<<<<< * statusList.append(pvd[i].getStatus()) * */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7115, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "PyCafe.pyx":7110 + /* "PyCafe.pyx":7317 * * for i in range(0, len(handleList)): * if (pvd[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -118703,20 +122381,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC */ } - /* "PyCafe.pyx":7116 + /* "PyCafe.pyx":7323 * self._c_cafe.printStatusMessage(pvd[i].getStatus()) * print("") * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * * # free(pvd) */ - __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7116, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_7); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 7116, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_7); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(3, 7323, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } - /* "PyCafe.pyx":7120 + /* "PyCafe.pyx":7327 * # free(pvd) * * return status, statusList # <<<<<<<<<<<<<< @@ -118724,9 +122402,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7120, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 7327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7120, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7); @@ -118738,7 +122416,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC __pyx_t_1 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7038 + /* "PyCafe.pyx":7245 * ############################################################################ * * def setScalarList(self, list handleList, list valList): # <<<<<<<<<<<<<< @@ -118765,7 +122443,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_398setScalarList(struct __pyx_obj_6PyC return __pyx_r; } -/* "PyCafe.pyx":7125 +/* "PyCafe.pyx":7332 * * ################################################################################## * def setCompoundList(self, handleList, list vectorList): # <<<<<<<<<<<<<< @@ -118804,11 +122482,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_401setCompoundList(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vectorList)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setCompoundList", 1, 2, 2, 1); __PYX_ERR(3, 7125, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setCompoundList", 1, 2, 2, 1); __PYX_ERR(3, 7332, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCompoundList") < 0)) __PYX_ERR(3, 7125, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setCompoundList") < 0)) __PYX_ERR(3, 7332, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -118821,13 +122499,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_401setCompoundList(PyObject *__pyx_v_s } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setCompoundList", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7125, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setCompoundList", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7332, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setCompoundList", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vectorList), (&PyList_Type), 1, "vectorList", 1))) __PYX_ERR(3, 7125, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vectorList), (&PyList_Type), 1, "vectorList", 1))) __PYX_ERR(3, 7332, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_400setCompoundList(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handleList, __pyx_v_vectorList); /* function exit code */ @@ -118872,7 +122550,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __Pyx_RefNannySetupContext("setCompoundList", 0); __Pyx_INCREF(__pyx_v_handleList); - /* "PyCafe.pyx":7127 + /* "PyCafe.pyx":7334 * def setCompoundList(self, handleList, list vectorList): * * cdef str _METHOD = "setCompoundList(handleList, list vectorList)" # <<<<<<<<<<<<<< @@ -118882,7 +122560,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __Pyx_INCREF(__pyx_kp_u_setCompoundList_handleList_list); __pyx_v__METHOD = __pyx_kp_u_setCompoundList_handleList_list; - /* "PyCafe.pyx":7129 + /* "PyCafe.pyx":7336 * cdef str _METHOD = "setCompoundList(handleList, list vectorList)" * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -118893,14 +122571,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7130 + /* "PyCafe.pyx":7337 * * if isinstance(handleList, (str)): * handleList = self.getHandlesFromWithinGroup(handleList) # <<<<<<<<<<<<<< * else: * if not isinstance(handleList, (list)): */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7130, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getHandlesFromWithinGroup); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -118914,13 +122592,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_handleList) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_handleList); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7130, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":7129 + /* "PyCafe.pyx":7336 * cdef str _METHOD = "setCompoundList(handleList, list vectorList)" * * if isinstance(handleList, (str)): # <<<<<<<<<<<<<< @@ -118930,7 +122608,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L3; } - /* "PyCafe.pyx":7132 + /* "PyCafe.pyx":7339 * handleList = self.getHandlesFromWithinGroup(handleList) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -118942,20 +122620,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7133 + /* "PyCafe.pyx":7340 * else: * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__131, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7133, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 7133, __pyx_L1_error) + __PYX_ERR(3, 7340, __pyx_L1_error) - /* "PyCafe.pyx":7132 + /* "PyCafe.pyx":7339 * handleList = self.getHandlesFromWithinGroup(handleList) * else: * if not isinstance(handleList, (list)): # <<<<<<<<<<<<<< @@ -118964,34 +122642,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7136 + /* "PyCafe.pyx":7343 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7136, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyUnicode_Check(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7137 + /* "PyCafe.pyx":7344 * * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) # <<<<<<<<<<<<<< * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ */ - if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 7137, __pyx_L1_error) - __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7137, __pyx_L1_error) + if (!(likely(PyList_CheckExact(__pyx_v_handleList))||((__pyx_v_handleList) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_handleList)->tp_name), 0))) __PYX_ERR(3, 7344, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandleList(__pyx_v_self, ((PyObject*)__pyx_v_handleList), 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF_SET(__pyx_v_handleList, __pyx_t_3); __pyx_t_3 = 0; - /* "PyCafe.pyx":7136 + /* "PyCafe.pyx":7343 * First input argument, should be of handles or PVs") * * if isinstance(handleList[0], (str)): # <<<<<<<<<<<<<< @@ -119001,14 +122679,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L5; } - /* "PyCafe.pyx":7138 + /* "PyCafe.pyx":7345 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ * First input argument, should be a 'list' of of type if handles or if PVs") */ - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7138, __pyx_L1_error) + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_handleList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = PyInt_Check(__pyx_t_3); __pyx_t_6 = (__pyx_t_1 != 0); @@ -119025,20 +122703,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7139 + /* "PyCafe.pyx":7346 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7139, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__127, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(3, 7139, __pyx_L1_error) + __PYX_ERR(3, 7346, __pyx_L1_error) - /* "PyCafe.pyx":7138 + /* "PyCafe.pyx":7345 * if isinstance(handleList[0], (str)): * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): # <<<<<<<<<<<<<< @@ -119048,48 +122726,48 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } __pyx_L5:; - /* "PyCafe.pyx":7142 + /* "PyCafe.pyx":7349 * First input argument, should be a 'list' of of type if handles or if PVs") * * if len(handleList) != len(vectorList): # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \ * Length of handle list ", len(handleList), " does not match the length of data list ", len(vectorList)) */ - __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7142, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7349, __pyx_L1_error) if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7142, __pyx_L1_error) + __PYX_ERR(3, 7349, __pyx_L1_error) } - __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7142, __pyx_L1_error) + __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7349, __pyx_L1_error) __pyx_t_1 = ((__pyx_t_7 != __pyx_t_8) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7144 + /* "PyCafe.pyx":7351 * if len(handleList) != len(vectorList): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \ * Length of handle list ", len(handleList), " does not match the length of data list ", len(vectorList)) # <<<<<<<<<<<<<< * * # do this to avoid compiler warning messages */ - __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7144, __pyx_L1_error) - __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7144, __pyx_L1_error) + __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7351, __pyx_L1_error) + __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7144, __pyx_L1_error) + __PYX_ERR(3, 7351, __pyx_L1_error) } - __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7144, __pyx_L1_error) - __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7144, __pyx_L1_error) + __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7351, __pyx_L1_error) + __pyx_t_4 = PyInt_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":7143 + /* "PyCafe.pyx":7350 * * if len(handleList) != len(vectorList): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \ # <<<<<<<<<<<<<< * Length of handle list ", len(handleList), " does not match the length of data list ", len(vectorList)) * */ - __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7143, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_5); __Pyx_GIVEREF(__pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_5); @@ -119103,14 +122781,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7143, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 7143, __pyx_L1_error) + __PYX_ERR(3, 7350, __pyx_L1_error) - /* "PyCafe.pyx":7142 + /* "PyCafe.pyx":7349 * First input argument, should be a 'list' of of type if handles or if PVs") * * if len(handleList) != len(vectorList): # <<<<<<<<<<<<<< @@ -119121,38 +122799,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } __pyx_L3:; - /* "PyCafe.pyx":7150 + /* "PyCafe.pyx":7357 * cdef int i * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * v.push_back(handleList[i]) * */ - __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7150, __pyx_L1_error) + __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7357, __pyx_L1_error) __pyx_t_7 = __pyx_t_8; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_7; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7151 + /* "PyCafe.pyx":7358 * * for i in range(0, len(handleList)): * v.push_back(handleList[i]) # <<<<<<<<<<<<<< * * # Create temporary group from handleList */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7151, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7151, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7358, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_v.push_back(__pyx_t_10); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7151, __pyx_L1_error) + __PYX_ERR(3, 7358, __pyx_L1_error) } } - /* "PyCafe.pyx":7155 + /* "PyCafe.pyx":7362 * # Create temporary group from handleList * # Does group exist? * cdef PVDataHolder * pvdata = self._c_cafe.getPVData(v) # <<<<<<<<<<<<<< @@ -119161,7 +122839,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_pvdata = __pyx_v_self->_c_cafe->getPVData(__pyx_v_v); - /* "PyCafe.pyx":7157 + /* "PyCafe.pyx":7364 * cdef PVDataHolder * pvdata = self._c_cafe.getPVData(v) * * for i in range(0, len(vectorList)): # <<<<<<<<<<<<<< @@ -119170,14 +122848,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7157, __pyx_L1_error) + __PYX_ERR(3, 7364, __pyx_L1_error) } - __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7157, __pyx_L1_error) + __pyx_t_8 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7364, __pyx_L1_error) __pyx_t_7 = __pyx_t_8; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_7; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7160 + /* "PyCafe.pyx":7367 * * # if not list * if isinstance(vectorList[i], (str)): # <<<<<<<<<<<<<< @@ -119186,16 +122864,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7160, __pyx_L1_error) + __PYX_ERR(3, 7367, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7160, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_1 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7161 + /* "PyCafe.pyx":7368 * # if not list * if isinstance(vectorList[i], (str)): * pvdata[i].setString(vectorList[i]) # <<<<<<<<<<<<<< @@ -119204,15 +122882,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7161, __pyx_L1_error) + __PYX_ERR(3, 7368, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7161, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7161, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setString(__pyx_t_11)); - /* "PyCafe.pyx":7160 + /* "PyCafe.pyx":7367 * * # if not list * if isinstance(vectorList[i], (str)): # <<<<<<<<<<<<<< @@ -119222,7 +122900,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L13; } - /* "PyCafe.pyx":7163 + /* "PyCafe.pyx":7370 * pvdata[i].setString(vectorList[i]) * * elif isinstance(vectorList[i], (float)): # <<<<<<<<<<<<<< @@ -119231,16 +122909,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7163, __pyx_L1_error) + __PYX_ERR(3, 7370, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7163, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = PyFloat_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7164 + /* "PyCafe.pyx":7371 * * elif isinstance(vectorList[i], (float)): * pvdata[i].setDouble(vectorList[i]) # <<<<<<<<<<<<<< @@ -119249,15 +122927,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7164, __pyx_L1_error) + __PYX_ERR(3, 7371, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7164, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_12 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7164, __pyx_L1_error) + __pyx_t_12 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_12 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setDouble(__pyx_t_12)); - /* "PyCafe.pyx":7163 + /* "PyCafe.pyx":7370 * pvdata[i].setString(vectorList[i]) * * elif isinstance(vectorList[i], (float)): # <<<<<<<<<<<<<< @@ -119267,7 +122945,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L13; } - /* "PyCafe.pyx":7166 + /* "PyCafe.pyx":7373 * pvdata[i].setDouble(vectorList[i]) * * elif isinstance(vectorList[i], (long, int)): # <<<<<<<<<<<<<< @@ -119276,9 +122954,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7166, __pyx_L1_error) + __PYX_ERR(3, 7373, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7166, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = PyLong_Check(__pyx_t_4); __pyx_t_6 = (__pyx_t_2 != 0); @@ -119295,7 +122973,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7167 + /* "PyCafe.pyx":7374 * * elif isinstance(vectorList[i], (long, int)): * pvdata[i].setInt(vectorList[i]) # <<<<<<<<<<<<<< @@ -119304,15 +122982,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7167, __pyx_L1_error) + __PYX_ERR(3, 7374, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7167, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7167, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_t_4); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setInt(__pyx_t_13)); - /* "PyCafe.pyx":7166 + /* "PyCafe.pyx":7373 * pvdata[i].setDouble(vectorList[i]) * * elif isinstance(vectorList[i], (long, int)): # <<<<<<<<<<<<<< @@ -119322,7 +123000,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L13; } - /* "PyCafe.pyx":7169 + /* "PyCafe.pyx":7376 * pvdata[i].setInt(vectorList[i]) * * elif isinstance(vectorList[i], (list)): # <<<<<<<<<<<<<< @@ -119331,16 +123009,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7169, __pyx_L1_error) + __PYX_ERR(3, 7376, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7169, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = PyList_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7172 + /* "PyCafe.pyx":7379 * * # if list * valType = CAFE_INVALID_DATATYPE # <<<<<<<<<<<<<< @@ -119349,7 +123027,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_valType = CAFE_INVALID_DATATYPE; - /* "PyCafe.pyx":7173 + /* "PyCafe.pyx":7380 * # if list * valType = CAFE_INVALID_DATATYPE * pvdata[i].setNelem(len(vectorList[i])) # <<<<<<<<<<<<<< @@ -119358,15 +123036,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7173, __pyx_L1_error) + __PYX_ERR(3, 7380, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7173, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_14 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7173, __pyx_L1_error) + __pyx_t_14 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7380, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setNelem(__pyx_t_14)); - /* "PyCafe.pyx":7176 + /* "PyCafe.pyx":7383 * # for k in range(0, len(vectorList[i])): * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 # <<<<<<<<<<<<<< @@ -119376,7 +123054,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P for (__pyx_t_15 = 0; __pyx_t_15 < 1; __pyx_t_15+=1) { __pyx_v_k = __pyx_t_15; - /* "PyCafe.pyx":7177 + /* "PyCafe.pyx":7384 * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): # <<<<<<<<<<<<<< @@ -119385,11 +123063,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7177, __pyx_L1_error) + __PYX_ERR(3, 7384, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7177, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7177, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = PyUnicode_Check(__pyx_t_5); @@ -119397,7 +123075,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7178 + /* "PyCafe.pyx":7385 * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -119406,7 +123084,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":7179 + /* "PyCafe.pyx":7386 * if isinstance(vectorList[i][k], (str)): * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -119415,7 +123093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ goto __pyx_L17_break; - /* "PyCafe.pyx":7177 + /* "PyCafe.pyx":7384 * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): # <<<<<<<<<<<<<< @@ -119425,7 +123103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L18; } - /* "PyCafe.pyx":7180 + /* "PyCafe.pyx":7387 * valType = CAFE_STRING * break * elif isinstance(vectorList[i][k], (float)): # <<<<<<<<<<<<<< @@ -119434,11 +123112,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7180, __pyx_L1_error) + __PYX_ERR(3, 7387, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7180, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7180, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = PyFloat_Check(__pyx_t_4); @@ -119446,7 +123124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7181 + /* "PyCafe.pyx":7388 * break * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -119455,7 +123133,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_valType = CAFE_DOUBLE; - /* "PyCafe.pyx":7180 + /* "PyCafe.pyx":7387 * valType = CAFE_STRING * break * elif isinstance(vectorList[i][k], (float)): # <<<<<<<<<<<<<< @@ -119465,7 +123143,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L18; } - /* "PyCafe.pyx":7182 + /* "PyCafe.pyx":7389 * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): # <<<<<<<<<<<<<< @@ -119474,11 +123152,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7182, __pyx_L1_error) + __PYX_ERR(3, 7389, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7182, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7182, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = PyLong_Check(__pyx_t_5); @@ -119496,7 +123174,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7183 + /* "PyCafe.pyx":7390 * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -119506,7 +123184,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_valType != CAFE_DOUBLE) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7184 + /* "PyCafe.pyx":7391 * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: * valType = CAFE_LONG # <<<<<<<<<<<<<< @@ -119515,7 +123193,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_valType = CAFE_LONG; - /* "PyCafe.pyx":7183 + /* "PyCafe.pyx":7390 * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -119525,7 +123203,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L21; } - /* "PyCafe.pyx":7186 + /* "PyCafe.pyx":7393 * valType = CAFE_LONG * else: * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -119535,7 +123213,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P /*else*/ { __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":7187 + /* "PyCafe.pyx":7394 * else: * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -119546,7 +123224,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } __pyx_L21:; - /* "PyCafe.pyx":7182 + /* "PyCafe.pyx":7389 * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): # <<<<<<<<<<<<<< @@ -119558,7 +123236,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } __pyx_L17_break:; - /* "PyCafe.pyx":7190 + /* "PyCafe.pyx":7397 * * # check dt of first element * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -119568,7 +123246,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P switch (__pyx_v_valType) { case CAFE_DOUBLE: - /* "PyCafe.pyx":7191 + /* "PyCafe.pyx":7398 * # check dt of first element * if valType == CAFE_DOUBLE: * pvdata[i].setVDouble(vectorList[i]) # <<<<<<<<<<<<<< @@ -119577,15 +123255,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7191, __pyx_L1_error) + __PYX_ERR(3, 7398, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7191, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_16 = __pyx_convert_vector_from_py_double(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7191, __pyx_L1_error) + __pyx_t_16 = __pyx_convert_vector_from_py_double(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVDouble(__pyx_t_16)); - /* "PyCafe.pyx":7190 + /* "PyCafe.pyx":7397 * * # check dt of first element * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -119595,7 +123273,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P break; case CAFE_LONG: - /* "PyCafe.pyx":7193 + /* "PyCafe.pyx":7400 * pvdata[i].setVDouble(vectorList[i]) * elif valType == CAFE_LONG: * pvdata[i].setVInt(vectorList[i]) # <<<<<<<<<<<<<< @@ -119604,15 +123282,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7193, __pyx_L1_error) + __PYX_ERR(3, 7400, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7193, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_17 = __pyx_convert_vector_from_py_int(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7193, __pyx_L1_error) + __pyx_t_17 = __pyx_convert_vector_from_py_int(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVInt(__pyx_t_17)); - /* "PyCafe.pyx":7192 + /* "PyCafe.pyx":7399 * if valType == CAFE_DOUBLE: * pvdata[i].setVDouble(vectorList[i]) * elif valType == CAFE_LONG: # <<<<<<<<<<<<<< @@ -119622,7 +123300,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P break; case CAFE_STRING: - /* "PyCafe.pyx":7195 + /* "PyCafe.pyx":7402 * pvdata[i].setVInt(vectorList[i]) * elif valType == CAFE_STRING: * pvdata[i].setVString(vectorList[i]) # <<<<<<<<<<<<<< @@ -119631,15 +123309,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7195, __pyx_L1_error) + __PYX_ERR(3, 7402, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7195, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_18 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7195, __pyx_L1_error) + __pyx_t_18 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7402, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVString(__pyx_t_18)); - /* "PyCafe.pyx":7194 + /* "PyCafe.pyx":7401 * elif valType == CAFE_LONG: * pvdata[i].setVInt(vectorList[i]) * elif valType == CAFE_STRING: # <<<<<<<<<<<<<< @@ -119650,7 +123328,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P default: break; } - /* "PyCafe.pyx":7169 + /* "PyCafe.pyx":7376 * pvdata[i].setInt(vectorList[i]) * * elif isinstance(vectorList[i], (list)): # <<<<<<<<<<<<<< @@ -119660,7 +123338,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P goto __pyx_L13; } - /* "PyCafe.pyx":7198 + /* "PyCafe.pyx":7405 * * else: * print("This line in PyCafe def setCompoundList should never appear!") # <<<<<<<<<<<<<< @@ -119668,27 +123346,27 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P * Unknown data input; should be one of of type , , , ") */ /*else*/ { - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__133, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7198, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__128, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7199 + /* "PyCafe.pyx":7406 * else: * print("This line in PyCafe def setCompoundList should never appear!") * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * Unknown data input; should be one of of type , , , ") * */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7199, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__129, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 7199, __pyx_L1_error) + __PYX_ERR(3, 7406, __pyx_L1_error) } __pyx_L13:; } - /* "PyCafe.pyx":7204 + /* "PyCafe.pyx":7411 * # endForLoop * * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -119697,7 +123375,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":7205 + /* "PyCafe.pyx":7412 * * cdef int status = ICAFE_NORMAL * with nogil: # <<<<<<<<<<<<<< @@ -119712,7 +123390,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":7206 + /* "PyCafe.pyx":7413 * cdef int status = ICAFE_NORMAL * with nogil: * status = self._c_cafe.setPVArray(v, pvdata) # <<<<<<<<<<<<<< @@ -119722,7 +123400,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->setPVArray(__pyx_v_v, __pyx_v_pvdata); } - /* "PyCafe.pyx":7205 + /* "PyCafe.pyx":7412 * * cdef int status = ICAFE_NORMAL * with nogil: # <<<<<<<<<<<<<< @@ -119741,19 +123419,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P } } - /* "PyCafe.pyx":7209 + /* "PyCafe.pyx":7416 * * # return status for individual channels * statusList = [] # <<<<<<<<<<<<<< * * if status != ICAFE_NORMAL: */ - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7209, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_statusList = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7211 + /* "PyCafe.pyx":7418 * statusList = [] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -119763,7 +123441,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7212 + /* "PyCafe.pyx":7419 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -119773,7 +123451,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7213 + /* "PyCafe.pyx":7420 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -119782,7 +123460,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7212 + /* "PyCafe.pyx":7419 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -119791,7 +123469,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7211 + /* "PyCafe.pyx":7418 * statusList = [] * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -119800,19 +123478,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7215 + /* "PyCafe.pyx":7422 * self._c_cafe.printStatusMessage(status) * * for i in range(0, len(handleList)): # <<<<<<<<<<<<<< * if (pvdata[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", */ - __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7215, __pyx_L1_error) + __pyx_t_8 = PyObject_Length(__pyx_v_handleList); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7422, __pyx_L1_error) __pyx_t_7 = __pyx_t_8; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_7; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7216 + /* "PyCafe.pyx":7423 * * for i in range(0, len(handleList)): * if (pvdata[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -119822,38 +123500,38 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_2 = (((__pyx_v_pvdata[__pyx_v_i]).getStatus() != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7217 + /* "PyCafe.pyx":7424 * for i in range(0, len(handleList)): * if (pvdata[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvdata[i].getStatus()) */ - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7217, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - /* "PyCafe.pyx":7218 + /* "PyCafe.pyx":7425 * if (pvdata[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) # <<<<<<<<<<<<<< * print("with error status=", pvdata[i].getStatus()) * self._c_cafe.printStatusMessage(pvdata[i].getStatus()) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7218, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handleList, __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7218, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_10 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7425, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_10)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7218, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyStr_FromString(__pyx_v_self->hh.getPVFromHandle(__pyx_t_10)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "PyCafe.pyx":7217 + /* "PyCafe.pyx":7424 * for i in range(0, len(handleList)): * if (pvdata[i].getStatus() != ICAFE_NORMAL): * print("Handle=", handleList[i], "PV=", # <<<<<<<<<<<<<< * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvdata[i].getStatus()) */ - __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7217, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_Handle); __Pyx_GIVEREF(__pyx_kp_u_Handle); @@ -119867,21 +123545,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_4); __pyx_t_5 = 0; __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7217, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7424, __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; - /* "PyCafe.pyx":7219 + /* "PyCafe.pyx":7426 * print("Handle=", handleList[i], "PV=", * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvdata[i].getStatus()) # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(pvdata[i].getStatus()) * print("") */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvdata[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7219, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvdata[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7219, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_kp_u_with_error_status); __Pyx_GIVEREF(__pyx_kp_u_with_error_status); @@ -119889,12 +123567,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7219, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7426, __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; - /* "PyCafe.pyx":7220 + /* "PyCafe.pyx":7427 * self.hh.getPVFromHandle(handleList[i])) * print("with error status=", pvdata[i].getStatus()) * self._c_cafe.printStatusMessage(pvdata[i].getStatus()) # <<<<<<<<<<<<<< @@ -119903,18 +123581,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage((__pyx_v_pvdata[__pyx_v_i]).getStatus()); - /* "PyCafe.pyx":7221 + /* "PyCafe.pyx":7428 * print("with error status=", pvdata[i].getStatus()) * self._c_cafe.printStatusMessage(pvdata[i].getStatus()) * print("") # <<<<<<<<<<<<<< * #raise Exception("EXCEPTION RAISED in PyCafe def setCompoundList. Status = %d" %status) * statusList.append(pvdata[i].getStatus()) */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7221, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7216 + /* "PyCafe.pyx":7423 * * for i in range(0, len(handleList)): * if (pvdata[i].getStatus() != ICAFE_NORMAL): # <<<<<<<<<<<<<< @@ -119923,20 +123601,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7223 + /* "PyCafe.pyx":7430 * print("") * #raise Exception("EXCEPTION RAISED in PyCafe def setCompoundList. Status = %d" %status) * statusList.append(pvdata[i].getStatus()) # <<<<<<<<<<<<<< * * return status, statusList */ - __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvdata[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7223, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_pvdata[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_19 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_4); if (unlikely(__pyx_t_19 == ((int)-1))) __PYX_ERR(3, 7223, __pyx_L1_error) + __pyx_t_19 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_4); if (unlikely(__pyx_t_19 == ((int)-1))) __PYX_ERR(3, 7430, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } - /* "PyCafe.pyx":7225 + /* "PyCafe.pyx":7432 * statusList.append(pvdata[i].getStatus()) * * return status, statusList # <<<<<<<<<<<<<< @@ -119944,9 +123622,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7225, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7225, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); @@ -119958,7 +123636,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P __pyx_t_3 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7125 + /* "PyCafe.pyx":7332 * * ################################################################################## * def setCompoundList(self, handleList, list vectorList): # <<<<<<<<<<<<<< @@ -119984,7 +123662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_400setCompoundList(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":7230 +/* "PyCafe.pyx":7437 * * ################################################################################## * def setGroup(self, ghandleName, list vectorList): # <<<<<<<<<<<<<< @@ -120023,11 +123701,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_403setGroup(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_vectorList)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setGroup", 1, 2, 2, 1); __PYX_ERR(3, 7230, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGroup", 1, 2, 2, 1); __PYX_ERR(3, 7437, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGroup") < 0)) __PYX_ERR(3, 7230, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setGroup") < 0)) __PYX_ERR(3, 7437, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -120040,13 +123718,13 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_403setGroup(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7230, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7437, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vectorList), (&PyList_Type), 1, "vectorList", 1))) __PYX_ERR(3, 7230, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_vectorList), (&PyList_Type), 1, "vectorList", 1))) __PYX_ERR(3, 7437, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_402setGroup(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_ghandleName, __pyx_v_vectorList); /* function exit code */ @@ -120094,7 +123772,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C int __pyx_t_20; __Pyx_RefNannySetupContext("setGroup", 0); - /* "PyCafe.pyx":7232 + /* "PyCafe.pyx":7439 * def setGroup(self, ghandleName, list vectorList): * * cdef str _METHOD = "setGroup(self, ghandleName, list vectorList)" # <<<<<<<<<<<<<< @@ -120104,7 +123782,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_kp_u_setGroup_self_ghandleName_list_v); __pyx_v__METHOD = __pyx_kp_u_setGroup_self_ghandleName_list_v; - /* "PyCafe.pyx":7234 + /* "PyCafe.pyx":7441 * cdef str _METHOD = "setGroup(self, ghandleName, list vectorList)" * * cdef unsigned int ghandle = 0 # <<<<<<<<<<<<<< @@ -120113,7 +123791,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_ghandle = 0; - /* "PyCafe.pyx":7235 + /* "PyCafe.pyx":7442 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -120134,17 +123812,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7236 + /* "PyCafe.pyx":7443 * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName # <<<<<<<<<<<<<< * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7236, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_ghandleName); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7443, __pyx_L1_error) __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":7235 + /* "PyCafe.pyx":7442 * * cdef unsigned int ghandle = 0 * if isinstance(ghandleName, (int, long)): # <<<<<<<<<<<<<< @@ -120154,7 +123832,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":7237 + /* "PyCafe.pyx":7444 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -120165,21 +123843,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7238 + /* "PyCafe.pyx":7445 * ghandle = ghandleName * elif isinstance(ghandleName, (str)): * ghandle = self.checkForGroupHandle(ghandleName) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 7238, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7238, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_ghandleName))||((__pyx_v_ghandleName) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_ghandleName)->tp_name), 0))) __PYX_ERR(3, 7445, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForGroupHandle(__pyx_v_self, ((PyObject*)__pyx_v_ghandleName), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7238, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7445, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ghandle = __pyx_t_4; - /* "PyCafe.pyx":7237 + /* "PyCafe.pyx":7444 * if isinstance(ghandleName, (int, long)): * ghandle = ghandleName * elif isinstance(ghandleName, (str)): # <<<<<<<<<<<<<< @@ -120189,7 +123867,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":7240 + /* "PyCafe.pyx":7447 * ghandle = self.checkForGroupHandle(ghandleName) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -120197,18 +123875,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C * raise _cafeException */ /*else*/ { - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7240, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7240, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7240, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_11) < 0) __PYX_ERR(3, 7240, __pyx_L1_error) - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7240, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7447, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7447, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_11) < 0) __PYX_ERR(3, 7447, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7242 + /* "PyCafe.pyx":7449 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument should be of type if group handle, else if group name") * raise _cafeException # <<<<<<<<<<<<<< @@ -120216,11 +123894,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C * cdef PVGroup pvg */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7242, __pyx_L1_error) + __PYX_ERR(3, 7449, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7246 + /* "PyCafe.pyx":7453 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -120235,7 +123913,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":7247 + /* "PyCafe.pyx":7454 * * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) # <<<<<<<<<<<<<< @@ -120245,7 +123923,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C (void)(__pyx_v_self->_c_cafe->groupAttach(__pyx_v_ghandle, __pyx_v_pvg)); } - /* "PyCafe.pyx":7246 + /* "PyCafe.pyx":7453 * cdef PVGroup pvg * * with nogil: # <<<<<<<<<<<<<< @@ -120264,7 +123942,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":7251 + /* "PyCafe.pyx":7458 * #print ("len V", len(vectorList), " npv=", pvg.getNPV()) * * cdef PVDataHolder * pvdata = pvg.getPVData() # <<<<<<<<<<<<<< @@ -120273,7 +123951,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvdata = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":7253 + /* "PyCafe.pyx":7460 * cdef PVDataHolder * pvdata = pvg.getPVData() * * for i in range(0, len(vectorList)): # <<<<<<<<<<<<<< @@ -120282,14 +123960,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7253, __pyx_L1_error) + __PYX_ERR(3, 7460, __pyx_L1_error) } - __pyx_t_7 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7253, __pyx_L1_error) + __pyx_t_7 = PyList_GET_SIZE(__pyx_v_vectorList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7460, __pyx_L1_error) __pyx_t_8 = __pyx_t_7; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; - /* "PyCafe.pyx":7256 + /* "PyCafe.pyx":7463 * * # if not list * if isinstance(vectorList[i], (str)): # <<<<<<<<<<<<<< @@ -120298,16 +123976,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7256, __pyx_L1_error) + __PYX_ERR(3, 7463, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7256, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_1 = PyUnicode_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7257 + /* "PyCafe.pyx":7464 * # if not list * if isinstance(vectorList[i], (str)): * pvdata[i].setString(vectorList[i]) # <<<<<<<<<<<<<< @@ -120316,15 +123994,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7257, __pyx_L1_error) + __PYX_ERR(3, 7464, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7257, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_10 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7257, __pyx_L1_error) + __pyx_t_10 = __pyx_convert_string_from_py_std__in_string(__pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setString(__pyx_t_10)); - /* "PyCafe.pyx":7256 + /* "PyCafe.pyx":7463 * * # if not list * if isinstance(vectorList[i], (str)): # <<<<<<<<<<<<<< @@ -120334,7 +124012,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L11; } - /* "PyCafe.pyx":7259 + /* "PyCafe.pyx":7466 * pvdata[i].setString(vectorList[i]) * * elif isinstance(vectorList[i], (float)): # <<<<<<<<<<<<<< @@ -120343,16 +124021,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7259, __pyx_L1_error) + __PYX_ERR(3, 7466, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7259, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyFloat_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7260 + /* "PyCafe.pyx":7467 * * elif isinstance(vectorList[i], (float)): * pvdata[i].setDouble(vectorList[i]) # <<<<<<<<<<<<<< @@ -120361,15 +124039,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7260, __pyx_L1_error) + __PYX_ERR(3, 7467, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7260, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_t_6); if (unlikely((__pyx_t_11 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7260, __pyx_L1_error) + __pyx_t_11 = __pyx_PyFloat_AsDouble(__pyx_t_6); if (unlikely((__pyx_t_11 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setDouble(__pyx_t_11)); - /* "PyCafe.pyx":7259 + /* "PyCafe.pyx":7466 * pvdata[i].setString(vectorList[i]) * * elif isinstance(vectorList[i], (float)): # <<<<<<<<<<<<<< @@ -120379,7 +124057,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L11; } - /* "PyCafe.pyx":7262 + /* "PyCafe.pyx":7469 * pvdata[i].setDouble(vectorList[i]) * * elif isinstance(vectorList[i], (long, int)): # <<<<<<<<<<<<<< @@ -120388,9 +124066,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7262, __pyx_L1_error) + __PYX_ERR(3, 7469, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7262, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyLong_Check(__pyx_t_6); __pyx_t_3 = (__pyx_t_2 != 0); @@ -120407,7 +124085,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7263 + /* "PyCafe.pyx":7470 * * elif isinstance(vectorList[i], (long, int)): * pvdata[i].setInt(vectorList[i]) # <<<<<<<<<<<<<< @@ -120416,15 +124094,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7263, __pyx_L1_error) + __PYX_ERR(3, 7470, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7263, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7263, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_t_6); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7470, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setInt(__pyx_t_12)); - /* "PyCafe.pyx":7262 + /* "PyCafe.pyx":7469 * pvdata[i].setDouble(vectorList[i]) * * elif isinstance(vectorList[i], (long, int)): # <<<<<<<<<<<<<< @@ -120434,7 +124112,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L11; } - /* "PyCafe.pyx":7265 + /* "PyCafe.pyx":7472 * pvdata[i].setInt(vectorList[i]) * * elif isinstance(vectorList[i], (list)): # <<<<<<<<<<<<<< @@ -120443,16 +124121,16 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7265, __pyx_L1_error) + __PYX_ERR(3, 7472, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7265, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = PyList_Check(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7268 + /* "PyCafe.pyx":7475 * * # if list * valType = CAFE_INVALID_DATATYPE # <<<<<<<<<<<<<< @@ -120461,7 +124139,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_valType = CAFE_INVALID_DATATYPE; - /* "PyCafe.pyx":7269 + /* "PyCafe.pyx":7476 * # if list * valType = CAFE_INVALID_DATATYPE * pvdata[i].setNelem(len(vectorList[i])) # <<<<<<<<<<<<<< @@ -120470,15 +124148,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7269, __pyx_L1_error) + __PYX_ERR(3, 7476, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7269, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_13 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7269, __pyx_L1_error) + __pyx_t_13 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7476, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setNelem(__pyx_t_13)); - /* "PyCafe.pyx":7272 + /* "PyCafe.pyx":7479 * # for k in range(0, len(vectorList[i])): * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 # <<<<<<<<<<<<<< @@ -120488,7 +124166,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_14 = 0; __pyx_t_14 < 1; __pyx_t_14+=1) { __pyx_v_k = __pyx_t_14; - /* "PyCafe.pyx":7273 + /* "PyCafe.pyx":7480 * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): # <<<<<<<<<<<<<< @@ -120497,11 +124175,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7273, __pyx_L1_error) + __PYX_ERR(3, 7480, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7273, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7273, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = PyUnicode_Check(__pyx_t_5); @@ -120509,7 +124187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7274 + /* "PyCafe.pyx":7481 * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -120518,7 +124196,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":7275 + /* "PyCafe.pyx":7482 * if isinstance(vectorList[i][k], (str)): * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -120527,7 +124205,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ goto __pyx_L15_break; - /* "PyCafe.pyx":7273 + /* "PyCafe.pyx":7480 * # Just check on first element * for k in range(0, 1): # can expand this to all elemnts or reduce to 1 * if isinstance(vectorList[i][k], (str)): # <<<<<<<<<<<<<< @@ -120537,7 +124215,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L16; } - /* "PyCafe.pyx":7276 + /* "PyCafe.pyx":7483 * valType = CAFE_STRING * break * elif isinstance(vectorList[i][k], (float)): # <<<<<<<<<<<<<< @@ -120546,11 +124224,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7276, __pyx_L1_error) + __PYX_ERR(3, 7483, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7276, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7276, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = PyFloat_Check(__pyx_t_6); @@ -120558,7 +124236,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7277 + /* "PyCafe.pyx":7484 * break * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE # <<<<<<<<<<<<<< @@ -120567,7 +124245,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_valType = CAFE_DOUBLE; - /* "PyCafe.pyx":7276 + /* "PyCafe.pyx":7483 * valType = CAFE_STRING * break * elif isinstance(vectorList[i][k], (float)): # <<<<<<<<<<<<<< @@ -120577,7 +124255,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L16; } - /* "PyCafe.pyx":7278 + /* "PyCafe.pyx":7485 * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): # <<<<<<<<<<<<<< @@ -120586,11 +124264,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7278, __pyx_L1_error) + __PYX_ERR(3, 7485, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7278, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7278, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_k, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = PyLong_Check(__pyx_t_5); @@ -120608,7 +124286,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7279 + /* "PyCafe.pyx":7486 * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -120618,7 +124296,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_valType != CAFE_DOUBLE) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7280 + /* "PyCafe.pyx":7487 * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: * valType = CAFE_LONG # <<<<<<<<<<<<<< @@ -120627,7 +124305,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_valType = CAFE_LONG; - /* "PyCafe.pyx":7279 + /* "PyCafe.pyx":7486 * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): * if valType != CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -120637,7 +124315,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L19; } - /* "PyCafe.pyx":7282 + /* "PyCafe.pyx":7489 * valType = CAFE_LONG * else: * valType = CAFE_STRING # <<<<<<<<<<<<<< @@ -120647,7 +124325,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C /*else*/ { __pyx_v_valType = CAFE_STRING; - /* "PyCafe.pyx":7283 + /* "PyCafe.pyx":7490 * else: * valType = CAFE_STRING * break # <<<<<<<<<<<<<< @@ -120658,7 +124336,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C } __pyx_L19:; - /* "PyCafe.pyx":7278 + /* "PyCafe.pyx":7485 * elif isinstance(vectorList[i][k], (float)): * valType = CAFE_DOUBLE * elif isinstance(vectorList[i][k], (long, int)): # <<<<<<<<<<<<<< @@ -120670,7 +124348,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C } __pyx_L15_break:; - /* "PyCafe.pyx":7286 + /* "PyCafe.pyx":7493 * * # check dt of first element * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -120680,7 +124358,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C switch (__pyx_v_valType) { case CAFE_DOUBLE: - /* "PyCafe.pyx":7287 + /* "PyCafe.pyx":7494 * # check dt of first element * if valType == CAFE_DOUBLE: * pvdata[i].setVDouble(vectorList[i]) # <<<<<<<<<<<<<< @@ -120689,15 +124367,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7287, __pyx_L1_error) + __PYX_ERR(3, 7494, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7287, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_15 = __pyx_convert_vector_from_py_double(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7287, __pyx_L1_error) + __pyx_t_15 = __pyx_convert_vector_from_py_double(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7494, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVDouble(__pyx_t_15)); - /* "PyCafe.pyx":7286 + /* "PyCafe.pyx":7493 * * # check dt of first element * if valType == CAFE_DOUBLE: # <<<<<<<<<<<<<< @@ -120707,7 +124385,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_LONG: - /* "PyCafe.pyx":7289 + /* "PyCafe.pyx":7496 * pvdata[i].setVDouble(vectorList[i]) * elif valType == CAFE_LONG: * pvdata[i].setVInt(vectorList[i]) # <<<<<<<<<<<<<< @@ -120716,15 +124394,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7289, __pyx_L1_error) + __PYX_ERR(3, 7496, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7289, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_16 = __pyx_convert_vector_from_py_int(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7289, __pyx_L1_error) + __pyx_t_16 = __pyx_convert_vector_from_py_int(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7496, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVInt(__pyx_t_16)); - /* "PyCafe.pyx":7288 + /* "PyCafe.pyx":7495 * if valType == CAFE_DOUBLE: * pvdata[i].setVDouble(vectorList[i]) * elif valType == CAFE_LONG: # <<<<<<<<<<<<<< @@ -120734,7 +124412,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C break; case CAFE_STRING: - /* "PyCafe.pyx":7291 + /* "PyCafe.pyx":7498 * pvdata[i].setVInt(vectorList[i]) * elif valType == CAFE_STRING: * pvdata[i].setVString(vectorList[i]) # <<<<<<<<<<<<<< @@ -120743,15 +124421,15 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7291, __pyx_L1_error) + __PYX_ERR(3, 7498, __pyx_L1_error) } - __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7291, __pyx_L1_error) + __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_17 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7291, __pyx_L1_error) + __pyx_t_17 = __pyx_convert_vector_from_py_std_3a__3a_string(__pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7498, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; (void)((__pyx_v_pvdata[__pyx_v_i]).setVString(__pyx_t_17)); - /* "PyCafe.pyx":7290 + /* "PyCafe.pyx":7497 * elif valType == CAFE_LONG: * pvdata[i].setVInt(vectorList[i]) * elif valType == CAFE_STRING: # <<<<<<<<<<<<<< @@ -120762,7 +124440,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C default: break; } - /* "PyCafe.pyx":7265 + /* "PyCafe.pyx":7472 * pvdata[i].setInt(vectorList[i]) * * elif isinstance(vectorList[i], (list)): # <<<<<<<<<<<<<< @@ -120772,7 +124450,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L11; } - /* "PyCafe.pyx":7295 + /* "PyCafe.pyx":7502 * else: * * print("PyCafe def setGroup: Unusual data type for element", # <<<<<<<<<<<<<< @@ -120781,66 +124459,66 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ /*else*/ { - /* "PyCafe.pyx":7296 + /* "PyCafe.pyx":7503 * * print("PyCafe def setGroup: Unusual data type for element", * i, " : ", type(vectorList[i])) # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def setGroup. \n\ * Unknown data input; should be one of of type , , , ") */ - __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7296, __pyx_L1_error) + __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__pyx_v_vectorList == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7296, __pyx_L1_error) + __PYX_ERR(3, 7503, __pyx_L1_error) } - __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7296, __pyx_L1_error) + __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_vectorList, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7295 + /* "PyCafe.pyx":7502 * else: * * print("PyCafe def setGroup: Unusual data type for element", # <<<<<<<<<<<<<< * i, " : ", type(vectorList[i])) * raise Exception("EXCEPTION RAISED IN PyCafe def setGroup. \n\ */ - __pyx_t_18 = PyTuple_New(4); if (unlikely(!__pyx_t_18)) __PYX_ERR(3, 7295, __pyx_L1_error) + __pyx_t_18 = PyTuple_New(4); if (unlikely(!__pyx_t_18)) __PYX_ERR(3, 7502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_INCREF(__pyx_kp_u_PyCafe_def_setGroup_Unusual_data); __Pyx_GIVEREF(__pyx_kp_u_PyCafe_def_setGroup_Unusual_data); PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_kp_u_PyCafe_def_setGroup_Unusual_data); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_18, 1, __pyx_t_5); - __Pyx_INCREF(__pyx_kp_u__135); - __Pyx_GIVEREF(__pyx_kp_u__135); - PyTuple_SET_ITEM(__pyx_t_18, 2, __pyx_kp_u__135); + __Pyx_INCREF(__pyx_kp_u__130); + __Pyx_GIVEREF(__pyx_kp_u__130); + PyTuple_SET_ITEM(__pyx_t_18, 2, __pyx_kp_u__130); __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_t_6))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_t_6))); PyTuple_SET_ITEM(__pyx_t_18, 3, ((PyObject *)Py_TYPE(__pyx_t_6))); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_18, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7295, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_print, __pyx_t_18, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7297 + /* "PyCafe.pyx":7504 * print("PyCafe def setGroup: Unusual data type for element", * i, " : ", type(vectorList[i])) * raise Exception("EXCEPTION RAISED IN PyCafe def setGroup. \n\ # <<<<<<<<<<<<<< * Unknown data input; should be one of of type , , , ") * */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__136, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7297, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__131, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7297, __pyx_L1_error) + __PYX_ERR(3, 7504, __pyx_L1_error) } __pyx_L11:; } - /* "PyCafe.pyx":7302 + /* "PyCafe.pyx":7509 * # endForLoop * * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -120849,19 +124527,19 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":7303 + /* "PyCafe.pyx":7510 * * cdef int status = ICAFE_NORMAL * statusList = [] # <<<<<<<<<<<<<< * pvg.setPVData(pvdata) * */ - __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7303, __pyx_L1_error) + __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_statusList = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7304 + /* "PyCafe.pyx":7511 * cdef int status = ICAFE_NORMAL * statusList = [] * pvg.setPVData(pvdata) # <<<<<<<<<<<<<< @@ -120870,7 +124548,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvg.setPVData(__pyx_v_pvdata); - /* "PyCafe.pyx":7306 + /* "PyCafe.pyx":7513 * pvg.setPVData(pvdata) * * with nogil: # <<<<<<<<<<<<<< @@ -120885,7 +124563,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C #endif /*try:*/ { - /* "PyCafe.pyx":7307 + /* "PyCafe.pyx":7514 * * with nogil: * status = self._c_cafe.groupSet(ghandle, pvg) # <<<<<<<<<<<<<< @@ -120895,7 +124573,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_v_status = __pyx_v_self->_c_cafe->groupSet(__pyx_v_ghandle, __pyx_v_pvg); } - /* "PyCafe.pyx":7306 + /* "PyCafe.pyx":7513 * pvg.setPVData(pvdata) * * with nogil: # <<<<<<<<<<<<<< @@ -120914,7 +124592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C } } - /* "PyCafe.pyx":7311 + /* "PyCafe.pyx":7518 * cdef PVDataHolder * pvd * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -120924,7 +124602,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7312 + /* "PyCafe.pyx":7519 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -120934,7 +124612,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_2 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7313 + /* "PyCafe.pyx":7520 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -120943,7 +124621,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7312 + /* "PyCafe.pyx":7519 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -120952,7 +124630,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":7317 + /* "PyCafe.pyx":7524 * #raise Exception("EXCEPTION RAISED in PyCafe def setGroup. Status = %d" %status) * * pvd = pvg.getPVData() # <<<<<<<<<<<<<< @@ -120961,7 +124639,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C */ __pyx_v_pvd = __pyx_v_pvg.getPVData(); - /* "PyCafe.pyx":7319 + /* "PyCafe.pyx":7526 * pvd = pvg.getPVData() * * for i in range(0, pvg.getNPV()): # <<<<<<<<<<<<<< @@ -120973,20 +124651,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_19; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7320 + /* "PyCafe.pyx":7527 * * for i in range(0, pvg.getNPV()): * statusList.append(pvd[i].getStatus()) # <<<<<<<<<<<<<< * else: * statusList.append(status) */ - __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7320, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int((__pyx_v_pvd[__pyx_v_i]).getStatus()); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_20 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_6); if (unlikely(__pyx_t_20 == ((int)-1))) __PYX_ERR(3, 7320, __pyx_L1_error) + __pyx_t_20 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_6); if (unlikely(__pyx_t_20 == ((int)-1))) __PYX_ERR(3, 7527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } - /* "PyCafe.pyx":7311 + /* "PyCafe.pyx":7518 * cdef PVDataHolder * pvd * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -120996,7 +124674,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C goto __pyx_L23; } - /* "PyCafe.pyx":7322 + /* "PyCafe.pyx":7529 * statusList.append(pvd[i].getStatus()) * else: * statusList.append(status) # <<<<<<<<<<<<<< @@ -121004,14 +124682,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C * return status, statusList */ /*else*/ { - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7322, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_20 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_6); if (unlikely(__pyx_t_20 == ((int)-1))) __PYX_ERR(3, 7322, __pyx_L1_error) + __pyx_t_20 = __Pyx_PyList_Append(__pyx_v_statusList, __pyx_t_6); if (unlikely(__pyx_t_20 == ((int)-1))) __PYX_ERR(3, 7529, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_L23:; - /* "PyCafe.pyx":7324 + /* "PyCafe.pyx":7531 * statusList.append(status) * * return status, statusList # <<<<<<<<<<<<<< @@ -121019,9 +124697,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7324, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_18 = PyTuple_New(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(3, 7324, __pyx_L1_error) + __pyx_t_18 = PyTuple_New(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(3, 7531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_6); @@ -121033,7 +124711,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C __pyx_t_18 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7230 + /* "PyCafe.pyx":7437 * * ################################################################################## * def setGroup(self, ghandleName, list vectorList): # <<<<<<<<<<<<<< @@ -121059,7 +124737,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_402setGroup(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":7332 +/* "PyCafe.pyx":7539 * ################################################################################## * * def gameSetAndMatch(self, list handlePVSet, list valSet, handlePVAction, valAction, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -121116,47 +124794,47 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_405gameSetAndMatch(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valSet)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 1); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 1); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVAction)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 2); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 2); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valAction)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 3); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 3); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVMatch)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 4); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 4); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 5); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 5); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 6); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 6); __PYX_ERR(3, 7539, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_printFlag)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 7); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, 7); __PYX_ERR(3, 7539, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gameSetAndMatch") < 0)) __PYX_ERR(3, 7332, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "gameSetAndMatch") < 0)) __PYX_ERR(3, 7539, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 8) { goto __pyx_L5_argtuple_error; @@ -121175,21 +124853,21 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_405gameSetAndMatch(PyObject *__pyx_v_s __pyx_v_handlePVAction = values[2]; __pyx_v_valAction = values[3]; __pyx_v_handlePVMatch = ((PyObject*)values[4]); - __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7332, __pyx_L3_error) - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7332, __pyx_L3_error) - __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[7]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7332, __pyx_L3_error) + __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7539, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7539, __pyx_L3_error) + __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[7]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7539, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7332, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("gameSetAndMatch", 1, 8, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7539, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.gameSetAndMatch", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVSet), (&PyList_Type), 1, "handlePVSet", 1))) __PYX_ERR(3, 7332, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7332, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7332, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVSet), (&PyList_Type), 1, "handlePVSet", 1))) __PYX_ERR(3, 7539, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7539, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7539, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePVSet, __pyx_v_valSet, __pyx_v_handlePVAction, __pyx_v_valAction, __pyx_v_handlePVMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); /* function exit code */ @@ -121230,7 +124908,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __Pyx_INCREF(__pyx_v_handlePVAction); __Pyx_INCREF(__pyx_v_valAction); - /* "PyCafe.pyx":7333 + /* "PyCafe.pyx":7540 * * def gameSetAndMatch(self, list handlePVSet, list valSet, handlePVAction, valAction, list handlePVMatch, double tolerance, double timeout, bint printFlag): * cdef str _METHOD = "gameSetAndMatch(list handlePVSet, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag)" # <<<<<<<<<<<<<< @@ -121240,7 +124918,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __Pyx_INCREF(__pyx_kp_u_gameSetAndMatch_list_handlePVSet); __pyx_v__METHOD = __pyx_kp_u_gameSetAndMatch_list_handlePVSet; - /* "PyCafe.pyx":7336 + /* "PyCafe.pyx":7543 * * * if (len(handlePVSet) != len(valSet)): # <<<<<<<<<<<<<< @@ -121249,31 +124927,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7336, __pyx_L1_error) + __PYX_ERR(3, 7543, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7336, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7543, __pyx_L1_error) if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7336, __pyx_L1_error) + __PYX_ERR(3, 7543, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7336, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7543, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_1 != __pyx_t_2) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7337 + /* "PyCafe.pyx":7544 * * if (len(handlePVSet) != len(valSet)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__137, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7337, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7544, __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(3, 7337, __pyx_L1_error) + __PYX_ERR(3, 7544, __pyx_L1_error) - /* "PyCafe.pyx":7336 + /* "PyCafe.pyx":7543 * * * if (len(handlePVSet) != len(valSet)): # <<<<<<<<<<<<<< @@ -121282,7 +124960,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7340 + /* "PyCafe.pyx":7547 * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * * if (len(handlePVSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -121291,31 +124969,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7340, __pyx_L1_error) + __PYX_ERR(3, 7547, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7340, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7547, __pyx_L1_error) if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7340, __pyx_L1_error) + __PYX_ERR(3, 7547, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7340, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7547, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 != __pyx_t_1) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7341 + /* "PyCafe.pyx":7548 * * if (len(handlePVSet) != len(handlePVMatch)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__138, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7341, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__133, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7548, __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(3, 7341, __pyx_L1_error) + __PYX_ERR(3, 7548, __pyx_L1_error) - /* "PyCafe.pyx":7340 + /* "PyCafe.pyx":7547 * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * * if (len(handlePVSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -121324,7 +125002,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7344 + /* "PyCafe.pyx":7551 * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * * if not isinstance(handlePVAction, (list)): # <<<<<<<<<<<<<< @@ -121335,7 +125013,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7345 + /* "PyCafe.pyx":7552 * * if not isinstance(handlePVAction, (list)): * tmp = handlePVAction # <<<<<<<<<<<<<< @@ -121345,28 +125023,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __Pyx_INCREF(__pyx_v_handlePVAction); __pyx_v_tmp = __pyx_v_handlePVAction; - /* "PyCafe.pyx":7346 + /* "PyCafe.pyx":7553 * if not isinstance(handlePVAction, (list)): * tmp = handlePVAction * handlePVAction = [] # <<<<<<<<<<<<<< * handlePVAction.append(tmp) * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7346, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_handlePVAction, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7347 + /* "PyCafe.pyx":7554 * tmp = handlePVAction * handlePVAction = [] * handlePVAction.append(tmp) # <<<<<<<<<<<<<< * * if not isinstance(valAction, (list)): */ - __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_handlePVAction, __pyx_v_tmp); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 7347, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_handlePVAction, __pyx_v_tmp); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 7554, __pyx_L1_error) - /* "PyCafe.pyx":7344 + /* "PyCafe.pyx":7551 * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * * if not isinstance(handlePVAction, (list)): # <<<<<<<<<<<<<< @@ -121375,7 +125053,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7349 + /* "PyCafe.pyx":7556 * handlePVAction.append(tmp) * * if not isinstance(valAction, (list)): # <<<<<<<<<<<<<< @@ -121386,7 +125064,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_3 = ((!(__pyx_t_5 != 0)) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7350 + /* "PyCafe.pyx":7557 * * if not isinstance(valAction, (list)): * tmp = valAction # <<<<<<<<<<<<<< @@ -121396,28 +125074,28 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __Pyx_INCREF(__pyx_v_valAction); __Pyx_XDECREF_SET(__pyx_v_tmp, __pyx_v_valAction); - /* "PyCafe.pyx":7351 + /* "PyCafe.pyx":7558 * if not isinstance(valAction, (list)): * tmp = valAction * valAction = [] # <<<<<<<<<<<<<< * valAction.append(tmp) * */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7351, __pyx_L1_error) + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF_SET(__pyx_v_valAction, __pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7352 + /* "PyCafe.pyx":7559 * tmp = valAction * valAction = [] * valAction.append(tmp) # <<<<<<<<<<<<<< * * cdef vector[unsigned int] handleSet */ - __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_valAction, __pyx_v_tmp); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 7352, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_valAction, __pyx_v_tmp); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 7559, __pyx_L1_error) - /* "PyCafe.pyx":7349 + /* "PyCafe.pyx":7556 * handlePVAction.append(tmp) * * if not isinstance(valAction, (list)): # <<<<<<<<<<<<<< @@ -121426,7 +125104,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7355 + /* "PyCafe.pyx":7562 * * cdef vector[unsigned int] handleSet * handleSet.reserve(len(handlePVSet)) # <<<<<<<<<<<<<< @@ -121435,12 +125113,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7355, __pyx_L1_error) + __PYX_ERR(3, 7562, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7355, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7562, __pyx_L1_error) __pyx_v_handleSet.reserve(__pyx_t_1); - /* "PyCafe.pyx":7358 + /* "PyCafe.pyx":7565 * * cdef vector[unsigned int] handleMatch * handleMatch.reserve(len(handlePVMatch)) # <<<<<<<<<<<<<< @@ -121449,12 +125127,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7358, __pyx_L1_error) + __PYX_ERR(3, 7565, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7358, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7565, __pyx_L1_error) __pyx_v_handleMatch.reserve(__pyx_t_1); - /* "PyCafe.pyx":7361 + /* "PyCafe.pyx":7568 * * cdef vector[double] valSetV * valSetV.reserve(len(valSet)) # <<<<<<<<<<<<<< @@ -121463,32 +125141,32 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7361, __pyx_L1_error) + __PYX_ERR(3, 7568, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7361, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7568, __pyx_L1_error) __pyx_v_valSetV.reserve(__pyx_t_1); - /* "PyCafe.pyx":7364 + /* "PyCafe.pyx":7571 * * cdef vector[unsigned int] handleAction * handleAction.reserve(len(handlePVAction)) # <<<<<<<<<<<<<< * * cdef vector[string] valActionV */ - __pyx_t_1 = PyObject_Length(__pyx_v_handlePVAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7364, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_handlePVAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7571, __pyx_L1_error) __pyx_v_handleAction.reserve(__pyx_t_1); - /* "PyCafe.pyx":7367 + /* "PyCafe.pyx":7574 * * cdef vector[string] valActionV * valActionV.reserve(len(valAction)) # <<<<<<<<<<<<<< * * for i in range(0, len(handlePVSet)): */ - __pyx_t_1 = PyObject_Length(__pyx_v_valAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7367, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_valAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7574, __pyx_L1_error) __pyx_v_valActionV.reserve(__pyx_t_1); - /* "PyCafe.pyx":7369 + /* "PyCafe.pyx":7576 * valActionV.reserve(len(valAction)) * * for i in range(0, len(handlePVSet)): # <<<<<<<<<<<<<< @@ -121497,14 +125175,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7369, __pyx_L1_error) + __PYX_ERR(3, 7576, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7369, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7576, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_2; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7370 + /* "PyCafe.pyx":7577 * * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): # <<<<<<<<<<<<<< @@ -121513,9 +125191,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7370, __pyx_L1_error) + __PYX_ERR(3, 7577, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7370, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyInt_Check(__pyx_t_4); __pyx_t_8 = (__pyx_t_5 != 0); @@ -121532,7 +125210,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = (__pyx_t_3 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7371 + /* "PyCafe.pyx":7578 * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) # <<<<<<<<<<<<<< @@ -121541,20 +125219,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7371, __pyx_L1_error) + __PYX_ERR(3, 7578, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7371, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7371, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7578, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleSet.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7371, __pyx_L1_error) + __PYX_ERR(3, 7578, __pyx_L1_error) } - /* "PyCafe.pyx":7370 + /* "PyCafe.pyx":7577 * * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): # <<<<<<<<<<<<<< @@ -121564,7 +125242,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L9; } - /* "PyCafe.pyx":7372 + /* "PyCafe.pyx":7579 * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): # <<<<<<<<<<<<<< @@ -121573,35 +125251,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7372, __pyx_L1_error) + __PYX_ERR(3, 7579, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7372, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_5 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7373 + /* "PyCafe.pyx":7580 * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): * handleSet.push_back(self.checkForHandle(handlePVSet)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7373, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7373, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7580, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7373, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7580, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleSet.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7373, __pyx_L1_error) + __PYX_ERR(3, 7580, __pyx_L1_error) } - /* "PyCafe.pyx":7372 + /* "PyCafe.pyx":7579 * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): # <<<<<<<<<<<<<< @@ -121611,7 +125289,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L9; } - /* "PyCafe.pyx":7375 + /* "PyCafe.pyx":7582 * handleSet.push_back(self.checkForHandle(handlePVSet)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -121619,18 +125297,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7375, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7375, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7375, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_ThandlePVSet_list_member_should) < 0) __PYX_ERR(3, 7375, __pyx_L1_error) - __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7375, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7582, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7582, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_ThandlePVSet_list_member_should) < 0) __PYX_ERR(3, 7582, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":7377 + /* "PyCafe.pyx":7584 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="ThandlePVSet list member should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -121638,12 +125316,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * for i in range(0, len(handlePVMatch)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7377, __pyx_L1_error) + __PYX_ERR(3, 7584, __pyx_L1_error) } __pyx_L9:; } - /* "PyCafe.pyx":7379 + /* "PyCafe.pyx":7586 * raise _cafeException * * for i in range(0, len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -121652,14 +125330,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7379, __pyx_L1_error) + __PYX_ERR(3, 7586, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7379, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7586, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_2; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7380 + /* "PyCafe.pyx":7587 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -121668,9 +125346,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7380, __pyx_L1_error) + __PYX_ERR(3, 7587, __pyx_L1_error) } - __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7380, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_5 = PyInt_Check(__pyx_t_10); __pyx_t_8 = (__pyx_t_5 != 0); @@ -121687,7 +125365,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = (__pyx_t_3 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7381 + /* "PyCafe.pyx":7588 * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) # <<<<<<<<<<<<<< @@ -121696,20 +125374,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7381, __pyx_L1_error) + __PYX_ERR(3, 7588, __pyx_L1_error) } - __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7381, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7381, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7588, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7381, __pyx_L1_error) + __PYX_ERR(3, 7588, __pyx_L1_error) } - /* "PyCafe.pyx":7380 + /* "PyCafe.pyx":7587 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -121719,7 +125397,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L14; } - /* "PyCafe.pyx":7382 + /* "PyCafe.pyx":7589 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -121728,35 +125406,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7382, __pyx_L1_error) + __PYX_ERR(3, 7589, __pyx_L1_error) } - __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7382, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_5 = PyUnicode_Check(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_3 = (__pyx_t_5 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7383 + /* "PyCafe.pyx":7590 * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): * handleMatch.push_back(self.checkForHandle(handlePVMatch)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7383, __pyx_L1_error) - __pyx_t_10 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7383, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7590, __pyx_L1_error) + __pyx_t_10 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7383, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7590, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7383, __pyx_L1_error) + __PYX_ERR(3, 7590, __pyx_L1_error) } - /* "PyCafe.pyx":7382 + /* "PyCafe.pyx":7589 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -121766,7 +125444,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L14; } - /* "PyCafe.pyx":7385 + /* "PyCafe.pyx":7592 * handleMatch.push_back(self.checkForHandle(handlePVMatch)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -121774,18 +125452,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_10 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7385, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7385, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7385, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_kp_u_handleMatch_list_member_should_b) < 0) __PYX_ERR(3, 7385, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7385, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7592, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7592, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_error_info, __pyx_kp_u_handleMatch_list_member_should_b) < 0) __PYX_ERR(3, 7592, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7387 + /* "PyCafe.pyx":7594 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="handleMatch list member should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -121793,31 +125471,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * for i in range(0, len(handlePVAction)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7387, __pyx_L1_error) + __PYX_ERR(3, 7594, __pyx_L1_error) } __pyx_L14:; } - /* "PyCafe.pyx":7389 + /* "PyCafe.pyx":7596 * raise _cafeException * * for i in range(0, len(handlePVAction)): # <<<<<<<<<<<<<< * if isinstance(handlePVAction[i], (int, long)): * handleAction.push_back(handlePVAction[i]) */ - __pyx_t_1 = PyObject_Length(__pyx_v_handlePVAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7389, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_handlePVAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7596, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_2; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7390 + /* "PyCafe.pyx":7597 * * for i in range(0, len(handlePVAction)): * if isinstance(handlePVAction[i], (int, long)): # <<<<<<<<<<<<<< * handleAction.push_back(handlePVAction[i]) * elif isinstance(handlePVAction[i], (str)): */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7390, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyInt_Check(__pyx_t_4); __pyx_t_8 = (__pyx_t_5 != 0); @@ -121834,25 +125512,25 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = (__pyx_t_3 != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7391 + /* "PyCafe.pyx":7598 * for i in range(0, len(handlePVAction)): * if isinstance(handlePVAction[i], (int, long)): * handleAction.push_back(handlePVAction[i]) # <<<<<<<<<<<<<< * elif isinstance(handlePVAction[i], (str)): * handleAction.push_back(self.checkForHandle(handlePVAction)) */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7391, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7391, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7598, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleAction.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7391, __pyx_L1_error) + __PYX_ERR(3, 7598, __pyx_L1_error) } - /* "PyCafe.pyx":7390 + /* "PyCafe.pyx":7597 * * for i in range(0, len(handlePVAction)): * if isinstance(handlePVAction[i], (int, long)): # <<<<<<<<<<<<<< @@ -121862,40 +125540,40 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L19; } - /* "PyCafe.pyx":7392 + /* "PyCafe.pyx":7599 * if isinstance(handlePVAction[i], (int, long)): * handleAction.push_back(handlePVAction[i]) * elif isinstance(handlePVAction[i], (str)): # <<<<<<<<<<<<<< * handleAction.push_back(self.checkForHandle(handlePVAction)) * else: */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7392, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_handlePVAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_5 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7393 + /* "PyCafe.pyx":7600 * handleAction.push_back(handlePVAction[i]) * elif isinstance(handlePVAction[i], (str)): * handleAction.push_back(self.checkForHandle(handlePVAction)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVAction))||((__pyx_v_handlePVAction) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVAction)->tp_name), 0))) __PYX_ERR(3, 7393, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVAction), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7393, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVAction))||((__pyx_v_handlePVAction) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVAction)->tp_name), 0))) __PYX_ERR(3, 7600, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVAction), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7393, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7600, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleAction.push_back(__pyx_t_9); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7393, __pyx_L1_error) + __PYX_ERR(3, 7600, __pyx_L1_error) } - /* "PyCafe.pyx":7392 + /* "PyCafe.pyx":7599 * if isinstance(handlePVAction[i], (int, long)): * handleAction.push_back(handlePVAction[i]) * elif isinstance(handlePVAction[i], (str)): # <<<<<<<<<<<<<< @@ -121905,7 +125583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L19; } - /* "PyCafe.pyx":7395 + /* "PyCafe.pyx":7602 * handleAction.push_back(self.checkForHandle(handlePVAction)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -121913,18 +125591,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7395, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7395, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7395, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_handlePVAction_list_member_shoul) < 0) __PYX_ERR(3, 7395, __pyx_L1_error) - __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7395, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7602, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7602, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_handlePVAction_list_member_shoul) < 0) __PYX_ERR(3, 7602, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_10); __pyx_t_10 = 0; - /* "PyCafe.pyx":7397 + /* "PyCafe.pyx":7604 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="handlePVAction list member should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -121932,59 +125610,59 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * for i in range(0, len(valAction)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7397, __pyx_L1_error) + __PYX_ERR(3, 7604, __pyx_L1_error) } __pyx_L19:; } - /* "PyCafe.pyx":7399 + /* "PyCafe.pyx":7606 * raise _cafeException * * for i in range(0, len(valAction)): # <<<<<<<<<<<<<< * if not isinstance(valAction[i], (str)): * valActionV.push_back(str(valAction[i])) */ - __pyx_t_1 = PyObject_Length(__pyx_v_valAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7399, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_valAction); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7606, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_2; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7400 + /* "PyCafe.pyx":7607 * * for i in range(0, len(valAction)): * if not isinstance(valAction[i], (str)): # <<<<<<<<<<<<<< * valActionV.push_back(str(valAction[i])) * else: */ - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7400, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_3 = PyUnicode_Check(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_5 = ((!(__pyx_t_3 != 0)) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7401 + /* "PyCafe.pyx":7608 * for i in range(0, len(valAction)): * if not isinstance(valAction[i], (str)): * valActionV.push_back(str(valAction[i])) # <<<<<<<<<<<<<< * else: * valActionV.push_back(valAction[i]) */ - __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7401, __pyx_L1_error) + __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7401, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7401, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7608, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_valActionV.push_back(__pyx_t_11); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7401, __pyx_L1_error) + __PYX_ERR(3, 7608, __pyx_L1_error) } - /* "PyCafe.pyx":7400 + /* "PyCafe.pyx":7607 * * for i in range(0, len(valAction)): * if not isinstance(valAction[i], (str)): # <<<<<<<<<<<<<< @@ -121994,7 +125672,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P goto __pyx_L24; } - /* "PyCafe.pyx":7403 + /* "PyCafe.pyx":7610 * valActionV.push_back(str(valAction[i])) * else: * valActionV.push_back(valAction[i]) # <<<<<<<<<<<<<< @@ -122002,21 +125680,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * for i in range(0, len(valSet)): */ /*else*/ { - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7403, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_valAction, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7403, __pyx_L1_error) + __pyx_t_11 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 7610, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_valActionV.push_back(__pyx_t_11); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7403, __pyx_L1_error) + __PYX_ERR(3, 7610, __pyx_L1_error) } } __pyx_L24:; } - /* "PyCafe.pyx":7405 + /* "PyCafe.pyx":7612 * valActionV.push_back(valAction[i]) * * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< @@ -122025,14 +125703,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7405, __pyx_L1_error) + __PYX_ERR(3, 7612, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7405, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7612, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_2; __pyx_t_7+=1) { __pyx_v_i = __pyx_t_7; - /* "PyCafe.pyx":7406 + /* "PyCafe.pyx":7613 * * for i in range(0, len(valSet)): * valSetV.push_back(valSet[i]) # <<<<<<<<<<<<<< @@ -122041,21 +125719,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7406, __pyx_L1_error) + __PYX_ERR(3, 7613, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7406, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_12 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_12 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7406, __pyx_L1_error) + __pyx_t_12 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_12 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7613, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_valSetV.push_back(__pyx_t_12); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7406, __pyx_L1_error) + __PYX_ERR(3, 7613, __pyx_L1_error) } } - /* "PyCafe.pyx":7410 + /* "PyCafe.pyx":7617 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -122070,7 +125748,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":7411 + /* "PyCafe.pyx":7618 * * with nogil: * status = self._c_cafe.gameSetAndMatch( # <<<<<<<<<<<<<< @@ -122080,7 +125758,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->gameSetAndMatch(__pyx_v_handleSet, __pyx_v_valSetV, __pyx_v_handleAction, __pyx_v_valActionV, __pyx_v_handleMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); } - /* "PyCafe.pyx":7410 + /* "PyCafe.pyx":7617 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -122099,7 +125777,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P } } - /* "PyCafe.pyx":7414 + /* "PyCafe.pyx":7621 * handleSet, valSetV, handleAction, valActionV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -122109,7 +125787,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7415 + /* "PyCafe.pyx":7622 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -122119,7 +125797,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P __pyx_t_5 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_5) { - /* "PyCafe.pyx":7416 + /* "PyCafe.pyx":7623 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -122128,7 +125806,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7415 + /* "PyCafe.pyx":7622 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -122137,34 +125815,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7418 + /* "PyCafe.pyx":7625 * self._c_cafe.printStatusMessage(status) * raise Exception( * "EXCEPTION RAISED in PyCafe def gameSetAndMatch. Status = %d" % status) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7418, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_4, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7418, __pyx_L1_error) + __pyx_t_10 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g_4, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 7625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7417 + /* "PyCafe.pyx":7624 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def gameSetAndMatch. Status = %d" % status) * */ - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7417, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 7417, __pyx_L1_error) + __PYX_ERR(3, 7624, __pyx_L1_error) - /* "PyCafe.pyx":7414 + /* "PyCafe.pyx":7621 * handleSet, valSetV, handleAction, valActionV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -122173,7 +125851,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7420 + /* "PyCafe.pyx":7627 * "EXCEPTION RAISED in PyCafe def gameSetAndMatch. Status = %d" % status) * * return status # <<<<<<<<<<<<<< @@ -122181,13 +125859,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7420, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7332 + /* "PyCafe.pyx":7539 * ################################################################################## * * def gameSetAndMatch(self, list handlePVSet, list valSet, handlePVAction, valAction, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -122214,7 +125892,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_404gameSetAndMatch(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":7425 +/* "PyCafe.pyx":7632 * ################################################################################## * * def setAndMatchMany(self, list handlePVSet, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -122265,35 +125943,35 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_407setAndMatchMany(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valSet)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 1); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 1); __PYX_ERR(3, 7632, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVMatch)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 2); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 2); __PYX_ERR(3, 7632, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 3); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 3); __PYX_ERR(3, 7632, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 4); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 4); __PYX_ERR(3, 7632, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_printFlag)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 5); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, 5); __PYX_ERR(3, 7632, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setAndMatchMany") < 0)) __PYX_ERR(3, 7425, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setAndMatchMany") < 0)) __PYX_ERR(3, 7632, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 6) { goto __pyx_L5_argtuple_error; @@ -122308,21 +125986,21 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_407setAndMatchMany(PyObject *__pyx_v_s __pyx_v_handlePVSet = ((PyObject*)values[0]); __pyx_v_valSet = ((PyObject*)values[1]); __pyx_v_handlePVMatch = ((PyObject*)values[2]); - __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7425, __pyx_L3_error) - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7425, __pyx_L3_error) - __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7425, __pyx_L3_error) + __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7632, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7632, __pyx_L3_error) + __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7632, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7425, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatchMany", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7632, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setAndMatchMany", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVSet), (&PyList_Type), 1, "handlePVSet", 1))) __PYX_ERR(3, 7425, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7425, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7425, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVSet), (&PyList_Type), 1, "handlePVSet", 1))) __PYX_ERR(3, 7632, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7632, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7632, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_handlePVSet, __pyx_v_valSet, __pyx_v_handlePVMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); /* function exit code */ @@ -122356,7 +126034,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P double __pyx_t_10; __Pyx_RefNannySetupContext("setAndMatchMany", 0); - /* "PyCafe.pyx":7426 + /* "PyCafe.pyx":7633 * * def setAndMatchMany(self, list handlePVSet, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): * cdef str _METHOD = "setAndMatchMany(list handlePVSet, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag)" # <<<<<<<<<<<<<< @@ -122366,7 +126044,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __Pyx_INCREF(__pyx_kp_u_setAndMatchMany_list_handlePVSet); __pyx_v__METHOD = __pyx_kp_u_setAndMatchMany_list_handlePVSet; - /* "PyCafe.pyx":7429 + /* "PyCafe.pyx":7636 * * * if (len(handlePVSet) != len(valSet)): # <<<<<<<<<<<<<< @@ -122375,31 +126053,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7429, __pyx_L1_error) + __PYX_ERR(3, 7636, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7429, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7636, __pyx_L1_error) if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7429, __pyx_L1_error) + __PYX_ERR(3, 7636, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7429, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7636, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_1 != __pyx_t_2) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7430 + /* "PyCafe.pyx":7637 * * if (len(handlePVSet) != len(valSet)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__137, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7430, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7637, __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(3, 7430, __pyx_L1_error) + __PYX_ERR(3, 7637, __pyx_L1_error) - /* "PyCafe.pyx":7429 + /* "PyCafe.pyx":7636 * * * if (len(handlePVSet) != len(valSet)): # <<<<<<<<<<<<<< @@ -122408,7 +126086,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7433 + /* "PyCafe.pyx":7640 * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * * if (len(handlePVSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -122417,31 +126095,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7433, __pyx_L1_error) + __PYX_ERR(3, 7640, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7433, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7640, __pyx_L1_error) if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7433, __pyx_L1_error) + __PYX_ERR(3, 7640, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7433, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7640, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 != __pyx_t_1) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7434 + /* "PyCafe.pyx":7641 * * if (len(handlePVSet) != len(handlePVMatch)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__138, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7434, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__133, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7641, __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(3, 7434, __pyx_L1_error) + __PYX_ERR(3, 7641, __pyx_L1_error) - /* "PyCafe.pyx":7433 + /* "PyCafe.pyx":7640 * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * * if (len(handlePVSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -122450,7 +126128,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7438 + /* "PyCafe.pyx":7645 * * cdef vector[unsigned int] handleSet * handleSet.reserve(len(handlePVSet)) # <<<<<<<<<<<<<< @@ -122459,12 +126137,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7438, __pyx_L1_error) + __PYX_ERR(3, 7645, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7438, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7645, __pyx_L1_error) __pyx_v_handleSet.reserve(__pyx_t_1); - /* "PyCafe.pyx":7441 + /* "PyCafe.pyx":7648 * * cdef vector[unsigned int] handleMatch * handleMatch.reserve(len(handlePVMatch)) # <<<<<<<<<<<<<< @@ -122473,12 +126151,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7441, __pyx_L1_error) + __PYX_ERR(3, 7648, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7441, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7648, __pyx_L1_error) __pyx_v_handleMatch.reserve(__pyx_t_1); - /* "PyCafe.pyx":7444 + /* "PyCafe.pyx":7651 * * cdef vector[double] valSetV * valSetV.reserve(len(valSet)) # <<<<<<<<<<<<<< @@ -122487,12 +126165,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7444, __pyx_L1_error) + __PYX_ERR(3, 7651, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7444, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7651, __pyx_L1_error) __pyx_v_valSetV.reserve(__pyx_t_1); - /* "PyCafe.pyx":7446 + /* "PyCafe.pyx":7653 * valSetV.reserve(len(valSet)) * * for i in range(0, len(handlePVSet)): # <<<<<<<<<<<<<< @@ -122501,14 +126179,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7446, __pyx_L1_error) + __PYX_ERR(3, 7653, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7446, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7653, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_2; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":7447 + /* "PyCafe.pyx":7654 * * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): # <<<<<<<<<<<<<< @@ -122517,9 +126195,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7447, __pyx_L1_error) + __PYX_ERR(3, 7654, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7447, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = PyInt_Check(__pyx_t_4); __pyx_t_7 = (__pyx_t_6 != 0); @@ -122536,7 +126214,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __pyx_t_6 = (__pyx_t_3 != 0); if (__pyx_t_6) { - /* "PyCafe.pyx":7448 + /* "PyCafe.pyx":7655 * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) # <<<<<<<<<<<<<< @@ -122545,20 +126223,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7448, __pyx_L1_error) + __PYX_ERR(3, 7655, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7448, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7448, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7655, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleSet.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7448, __pyx_L1_error) + __PYX_ERR(3, 7655, __pyx_L1_error) } - /* "PyCafe.pyx":7447 + /* "PyCafe.pyx":7654 * * for i in range(0, len(handlePVSet)): * if isinstance(handlePVSet[i], (int, long)): # <<<<<<<<<<<<<< @@ -122568,7 +126246,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P goto __pyx_L7; } - /* "PyCafe.pyx":7449 + /* "PyCafe.pyx":7656 * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): # <<<<<<<<<<<<<< @@ -122577,35 +126255,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7449, __pyx_L1_error) + __PYX_ERR(3, 7656, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7449, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_6 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7450 + /* "PyCafe.pyx":7657 * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): * handleSet.push_back(self.checkForHandle(handlePVSet)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7450, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7450, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7657, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7450, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7657, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleSet.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7450, __pyx_L1_error) + __PYX_ERR(3, 7657, __pyx_L1_error) } - /* "PyCafe.pyx":7449 + /* "PyCafe.pyx":7656 * if isinstance(handlePVSet[i], (int, long)): * handleSet.push_back(handlePVSet[i]) * elif isinstance(handlePVSet[i], (str)): # <<<<<<<<<<<<<< @@ -122615,7 +126293,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P goto __pyx_L7; } - /* "PyCafe.pyx":7452 + /* "PyCafe.pyx":7659 * handleSet.push_back(self.checkForHandle(handlePVSet)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -122623,18 +126301,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7452, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7452, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7452, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_ThandlePVSet_list_member_should) < 0) __PYX_ERR(3, 7452, __pyx_L1_error) - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7452, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7659, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7659, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_ThandlePVSet_list_member_should) < 0) __PYX_ERR(3, 7659, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":7454 + /* "PyCafe.pyx":7661 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="ThandlePVSet list member should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -122642,12 +126320,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P * for i in range(0, len(handlePVMatch)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7454, __pyx_L1_error) + __PYX_ERR(3, 7661, __pyx_L1_error) } __pyx_L7:; } - /* "PyCafe.pyx":7456 + /* "PyCafe.pyx":7663 * raise _cafeException * * for i in range(0, len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -122656,14 +126334,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7456, __pyx_L1_error) + __PYX_ERR(3, 7663, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7456, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7663, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_2; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":7457 + /* "PyCafe.pyx":7664 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -122672,9 +126350,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7457, __pyx_L1_error) + __PYX_ERR(3, 7664, __pyx_L1_error) } - __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7457, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = PyInt_Check(__pyx_t_9); __pyx_t_7 = (__pyx_t_6 != 0); @@ -122691,7 +126369,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __pyx_t_6 = (__pyx_t_3 != 0); if (__pyx_t_6) { - /* "PyCafe.pyx":7458 + /* "PyCafe.pyx":7665 * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) # <<<<<<<<<<<<<< @@ -122700,20 +126378,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7458, __pyx_L1_error) + __PYX_ERR(3, 7665, __pyx_L1_error) } - __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7458, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7458, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7665, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7458, __pyx_L1_error) + __PYX_ERR(3, 7665, __pyx_L1_error) } - /* "PyCafe.pyx":7457 + /* "PyCafe.pyx":7664 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -122723,7 +126401,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P goto __pyx_L12; } - /* "PyCafe.pyx":7459 + /* "PyCafe.pyx":7666 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -122732,35 +126410,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7459, __pyx_L1_error) + __PYX_ERR(3, 7666, __pyx_L1_error) } - __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7459, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_6 = PyUnicode_Check(__pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_3 = (__pyx_t_6 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7460 + /* "PyCafe.pyx":7667 * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): * handleMatch.push_back(self.checkForHandle(handlePVMatch)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7460, __pyx_L1_error) - __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7460, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7667, __pyx_L1_error) + __pyx_t_9 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7460, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7667, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7460, __pyx_L1_error) + __PYX_ERR(3, 7667, __pyx_L1_error) } - /* "PyCafe.pyx":7459 + /* "PyCafe.pyx":7666 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -122770,7 +126448,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P goto __pyx_L12; } - /* "PyCafe.pyx":7462 + /* "PyCafe.pyx":7669 * handleMatch.push_back(self.checkForHandle(handlePVMatch)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -122778,18 +126456,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P * raise _cafeException */ /*else*/ { - __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7462, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7462, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7462, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_kp_u_handleMatch_list_member_should_b) < 0) __PYX_ERR(3, 7462, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7462, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7669, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7669, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_9, __pyx_n_s_error_info, __pyx_kp_u_handleMatch_list_member_should_b) < 0) __PYX_ERR(3, 7669, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7464 + /* "PyCafe.pyx":7671 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="handleMatch list member should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -122797,12 +126475,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P * for i in range(0, len(valSet)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7464, __pyx_L1_error) + __PYX_ERR(3, 7671, __pyx_L1_error) } __pyx_L12:; } - /* "PyCafe.pyx":7466 + /* "PyCafe.pyx":7673 * raise _cafeException * * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< @@ -122811,14 +126489,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7466, __pyx_L1_error) + __PYX_ERR(3, 7673, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7466, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7673, __pyx_L1_error) __pyx_t_2 = __pyx_t_1; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_2; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":7467 + /* "PyCafe.pyx":7674 * * for i in range(0, len(valSet)): * valSetV.push_back(valSet[i]) # <<<<<<<<<<<<<< @@ -122827,21 +126505,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7467, __pyx_L1_error) + __PYX_ERR(3, 7674, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7467, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7674, __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(3, 7467, __pyx_L1_error) + __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_4); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7674, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_valSetV.push_back(__pyx_t_10); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7467, __pyx_L1_error) + __PYX_ERR(3, 7674, __pyx_L1_error) } } - /* "PyCafe.pyx":7471 + /* "PyCafe.pyx":7678 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -122856,7 +126534,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P #endif /*try:*/ { - /* "PyCafe.pyx":7472 + /* "PyCafe.pyx":7679 * * with nogil: * status = self._c_cafe.setAndMatchMany( # <<<<<<<<<<<<<< @@ -122866,7 +126544,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __pyx_v_status = __pyx_v_self->_c_cafe->setAndMatchMany(__pyx_v_handleSet, __pyx_v_valSetV, __pyx_v_handleMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); } - /* "PyCafe.pyx":7471 + /* "PyCafe.pyx":7678 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -122885,7 +126563,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P } } - /* "PyCafe.pyx":7475 + /* "PyCafe.pyx":7682 * handleSet, valSetV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -122895,7 +126573,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7476 + /* "PyCafe.pyx":7683 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -122905,7 +126583,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7477 + /* "PyCafe.pyx":7684 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -122914,7 +126592,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7476 + /* "PyCafe.pyx":7683 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -122923,34 +126601,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7479 + /* "PyCafe.pyx":7686 * self._c_cafe.printStatusMessage(status) * raise Exception( * "EXCEPTION RAISED in PyCafe def setAndMatchMany. Status = %d" % status) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7479, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7479, __pyx_L1_error) + __pyx_t_9 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "PyCafe.pyx":7478 + /* "PyCafe.pyx":7685 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def setAndMatchMany. Status = %d" % status) * */ - __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7478, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(3, 7478, __pyx_L1_error) + __PYX_ERR(3, 7685, __pyx_L1_error) - /* "PyCafe.pyx":7475 + /* "PyCafe.pyx":7682 * handleSet, valSetV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -122959,7 +126637,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P */ } - /* "PyCafe.pyx":7481 + /* "PyCafe.pyx":7688 * "EXCEPTION RAISED in PyCafe def setAndMatchMany. Status = %d" % status) * * return status # <<<<<<<<<<<<<< @@ -122967,13 +126645,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7481, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7425 + /* "PyCafe.pyx":7632 * ################################################################################## * * def setAndMatchMany(self, list handlePVSet, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -122997,7 +126675,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_406setAndMatchMany(struct __pyx_obj_6P return __pyx_r; } -/* "PyCafe.pyx":7486 +/* "PyCafe.pyx":7693 * ############################################################################ * * def setAndMatch(self, handlePVSet, double valSet, handlePVMatch, # <<<<<<<<<<<<<< @@ -123048,35 +126726,35 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_409setAndMatch(PyObject *__pyx_v_self, case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_valSet)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 1); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 1); __PYX_ERR(3, 7693, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVMatch)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 2); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 2); __PYX_ERR(3, 7693, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 3); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 3); __PYX_ERR(3, 7693, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 4); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 4); __PYX_ERR(3, 7693, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_printFlag)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 5); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, 5); __PYX_ERR(3, 7693, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setAndMatch") < 0)) __PYX_ERR(3, 7486, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setAndMatch") < 0)) __PYX_ERR(3, 7693, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 6) { goto __pyx_L5_argtuple_error; @@ -123089,15 +126767,15 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_409setAndMatch(PyObject *__pyx_v_self, values[5] = PyTuple_GET_ITEM(__pyx_args, 5); } __pyx_v_handlePVSet = values[0]; - __pyx_v_valSet = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_valSet == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7486, __pyx_L3_error) + __pyx_v_valSet = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_valSet == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7693, __pyx_L3_error) __pyx_v_handlePVMatch = values[2]; - __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7487, __pyx_L3_error) - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7487, __pyx_L3_error) - __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7487, __pyx_L3_error) + __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7694, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7694, __pyx_L3_error) + __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7694, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7486, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setAndMatch", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7693, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setAndMatch", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -123126,7 +126804,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("setAndMatch", 0); - /* "PyCafe.pyx":7488 + /* "PyCafe.pyx":7695 * def setAndMatch(self, handlePVSet, double valSet, handlePVMatch, * double tolerance, double timeout, bint printFlag): * cdef str _METHOD = ("setAndMatch(handlePVSet, double valSet," # <<<<<<<<<<<<<< @@ -123136,7 +126814,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __Pyx_INCREF(__pyx_kp_u_setAndMatch_handlePVSet_double_v); __pyx_v__METHOD = __pyx_kp_u_setAndMatch_handlePVSet_double_v; - /* "PyCafe.pyx":7492 + /* "PyCafe.pyx":7699 * "double timeout, bint printFlag)") * * cdef unsigned int handleSet = 0 # <<<<<<<<<<<<<< @@ -123145,7 +126823,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ __pyx_v_handleSet = 0; - /* "PyCafe.pyx":7493 + /* "PyCafe.pyx":7700 * * cdef unsigned int handleSet = 0 * if isinstance(handlePVSet, (int, long)): # <<<<<<<<<<<<<< @@ -123166,17 +126844,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7494 + /* "PyCafe.pyx":7701 * cdef unsigned int handleSet = 0 * if isinstance(handlePVSet, (int, long)): * handleSet = handlePVSet # <<<<<<<<<<<<<< * elif isinstance(handlePVSet, (str)): * handleSet = self.checkForHandle(handlePVSet) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVSet); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7494, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVSet); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7701, __pyx_L1_error) __pyx_v_handleSet = __pyx_t_4; - /* "PyCafe.pyx":7493 + /* "PyCafe.pyx":7700 * * cdef unsigned int handleSet = 0 * if isinstance(handlePVSet, (int, long)): # <<<<<<<<<<<<<< @@ -123186,7 +126864,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf goto __pyx_L3; } - /* "PyCafe.pyx":7495 + /* "PyCafe.pyx":7702 * if isinstance(handlePVSet, (int, long)): * handleSet = handlePVSet * elif isinstance(handlePVSet, (str)): # <<<<<<<<<<<<<< @@ -123197,21 +126875,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7496 + /* "PyCafe.pyx":7703 * handleSet = handlePVSet * elif isinstance(handlePVSet, (str)): * handleSet = self.checkForHandle(handlePVSet) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7496, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7496, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVSet))||((__pyx_v_handlePVSet) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVSet)->tp_name), 0))) __PYX_ERR(3, 7703, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVSet), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7496, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7703, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handleSet = __pyx_t_4; - /* "PyCafe.pyx":7495 + /* "PyCafe.pyx":7702 * if isinstance(handlePVSet, (int, long)): * handleSet = handlePVSet * elif isinstance(handlePVSet, (str)): # <<<<<<<<<<<<<< @@ -123221,7 +126899,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf goto __pyx_L3; } - /* "PyCafe.pyx":7498 + /* "PyCafe.pyx":7705 * handleSet = self.checkForHandle(handlePVSet) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -123230,33 +126908,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ /*else*/ { - /* "PyCafe.pyx":7499 + /* "PyCafe.pyx":7706 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info=("First input argument, should be of type if handle," + * "else if PV")) */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7499, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7499, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7499, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_6) < 0) __PYX_ERR(3, 7499, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7706, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7706, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o_6) < 0) __PYX_ERR(3, 7706, __pyx_L1_error) - /* "PyCafe.pyx":7498 + /* "PyCafe.pyx":7705 * handleSet = self.checkForHandle(handlePVSet) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info=("First input argument, should be of type if handle," + */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7498, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7502 + /* "PyCafe.pyx":7709 * _error_info=("First input argument, should be of type if handle," + * "else if PV")) * raise _cafeException # <<<<<<<<<<<<<< @@ -123264,11 +126942,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf * cdef unsigned int handleMatch = 0 */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7502, __pyx_L1_error) + __PYX_ERR(3, 7709, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7504 + /* "PyCafe.pyx":7711 * raise _cafeException * * cdef unsigned int handleMatch = 0 # <<<<<<<<<<<<<< @@ -123277,7 +126955,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ __pyx_v_handleMatch = 0; - /* "PyCafe.pyx":7505 + /* "PyCafe.pyx":7712 * * cdef unsigned int handleMatch = 0 * if isinstance(handlePVMatch, (int, long)): # <<<<<<<<<<<<<< @@ -123298,17 +126976,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7506 + /* "PyCafe.pyx":7713 * cdef unsigned int handleMatch = 0 * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch # <<<<<<<<<<<<<< * elif isinstance(handlePVMatch, (str)): * handleMatch = self.checkForHandle(handlePVMatch) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVMatch); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7506, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVMatch); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7713, __pyx_L1_error) __pyx_v_handleMatch = __pyx_t_4; - /* "PyCafe.pyx":7505 + /* "PyCafe.pyx":7712 * * cdef unsigned int handleMatch = 0 * if isinstance(handlePVMatch, (int, long)): # <<<<<<<<<<<<<< @@ -123318,7 +126996,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf goto __pyx_L6; } - /* "PyCafe.pyx":7507 + /* "PyCafe.pyx":7714 * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): # <<<<<<<<<<<<<< @@ -123329,21 +127007,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7508 + /* "PyCafe.pyx":7715 * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): * handleMatch = self.checkForHandle(handlePVMatch) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7508, __pyx_L1_error) - __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7508, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7715, __pyx_L1_error) + __pyx_t_6 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7508, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_6); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7715, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_handleMatch = __pyx_t_4; - /* "PyCafe.pyx":7507 + /* "PyCafe.pyx":7714 * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): # <<<<<<<<<<<<<< @@ -123353,7 +127031,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf goto __pyx_L6; } - /* "PyCafe.pyx":7510 + /* "PyCafe.pyx":7717 * handleMatch = self.checkForHandle(handlePVMatch) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< @@ -123362,33 +127040,33 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ /*else*/ { - /* "PyCafe.pyx":7511 + /* "PyCafe.pyx":7718 * else: * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_info=("Third input argument, should be of type if handle," + * "else if PV")) */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7511, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7718, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7511, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7511, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_kp_u_Third_input_argument_should_be_o_2) < 0) __PYX_ERR(3, 7511, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7718, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7718, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_kp_u_Third_input_argument_should_be_o_2) < 0) __PYX_ERR(3, 7718, __pyx_L1_error) - /* "PyCafe.pyx":7510 + /* "PyCafe.pyx":7717 * handleMatch = self.checkForHandle(handlePVMatch) * else: * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_info=("Third input argument, should be of type if handle," + */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7510, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7514 + /* "PyCafe.pyx":7721 * _error_info=("Third input argument, should be of type if handle," + * "else if PV")) * raise _cafeException # <<<<<<<<<<<<<< @@ -123396,11 +127074,11 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf * cdef int status */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7514, __pyx_L1_error) + __PYX_ERR(3, 7721, __pyx_L1_error) } __pyx_L6:; - /* "PyCafe.pyx":7518 + /* "PyCafe.pyx":7725 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -123415,7 +127093,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf #endif /*try:*/ { - /* "PyCafe.pyx":7519 + /* "PyCafe.pyx":7726 * * with nogil: * status = self._c_cafe.setAndMatch( # <<<<<<<<<<<<<< @@ -123425,7 +127103,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_v_status = __pyx_v_self->_c_cafe->setAndMatch(__pyx_v_handleSet, __pyx_v_valSet, __pyx_v_handleMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); } - /* "PyCafe.pyx":7518 + /* "PyCafe.pyx":7725 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -123444,7 +127122,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf } } - /* "PyCafe.pyx":7522 + /* "PyCafe.pyx":7729 * handleSet, valSet, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -123454,7 +127132,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7523 + /* "PyCafe.pyx":7730 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -123464,7 +127142,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7524 + /* "PyCafe.pyx":7731 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -123473,7 +127151,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7523 + /* "PyCafe.pyx":7730 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -123482,34 +127160,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":7526 + /* "PyCafe.pyx":7733 * self._c_cafe.printStatusMessage(status) * raise Exception( * "EXCEPTION RAISED in PyCafe def setAndMatch. Status = %d" % status) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7526, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7526, __pyx_L1_error) + __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7525 + /* "PyCafe.pyx":7732 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def setAndMatch. Status = %d" % status) * */ - __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7525, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __PYX_ERR(3, 7525, __pyx_L1_error) + __PYX_ERR(3, 7732, __pyx_L1_error) - /* "PyCafe.pyx":7522 + /* "PyCafe.pyx":7729 * handleSet, valSet, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -123518,7 +127196,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf */ } - /* "PyCafe.pyx":7528 + /* "PyCafe.pyx":7735 * "EXCEPTION RAISED in PyCafe def setAndMatch. Status = %d" % status) * * return status # <<<<<<<<<<<<<< @@ -123526,13 +127204,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7528, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7486 + /* "PyCafe.pyx":7693 * ############################################################################ * * def setAndMatch(self, handlePVSet, double valSet, handlePVMatch, # <<<<<<<<<<<<<< @@ -123556,7 +127234,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_408setAndMatch(struct __pyx_obj_6PyCaf return __pyx_r; } -/* "PyCafe.pyx":7533 +/* "PyCafe.pyx":7740 * ################################################################################## * * def matchMany(self, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -123604,29 +127282,29 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_411matchMany(PyObject *__pyx_v_self, P case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVMatch)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 1); __PYX_ERR(3, 7533, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 1); __PYX_ERR(3, 7740, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 2); __PYX_ERR(3, 7533, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 2); __PYX_ERR(3, 7740, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 3); __PYX_ERR(3, 7533, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 3); __PYX_ERR(3, 7740, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_printFlag)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 4); __PYX_ERR(3, 7533, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, 4); __PYX_ERR(3, 7740, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "matchMany") < 0)) __PYX_ERR(3, 7533, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "matchMany") < 0)) __PYX_ERR(3, 7740, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; @@ -123639,20 +127317,20 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_411matchMany(PyObject *__pyx_v_self, P } __pyx_v_valSet = ((PyObject*)values[0]); __pyx_v_handlePVMatch = ((PyObject*)values[1]); - __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7533, __pyx_L3_error) - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7533, __pyx_L3_error) - __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7533, __pyx_L3_error) + __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7740, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7740, __pyx_L3_error) + __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7740, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7533, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("matchMany", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7740, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.matchMany", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7533, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7533, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_valSet), (&PyList_Type), 1, "valSet", 1))) __PYX_ERR(3, 7740, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handlePVMatch), (&PyList_Type), 1, "handlePVMatch", 1))) __PYX_ERR(3, 7740, __pyx_L1_error) __pyx_r = __pyx_pf_6PyCafe_6CyCafe_410matchMany(((struct __pyx_obj_6PyCafe_CyCafe *)__pyx_v_self), __pyx_v_valSet, __pyx_v_handlePVMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); /* function exit code */ @@ -123685,7 +127363,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ double __pyx_t_10; __Pyx_RefNannySetupContext("matchMany", 0); - /* "PyCafe.pyx":7535 + /* "PyCafe.pyx":7742 * def matchMany(self, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): * * cdef str _METHOD = "matchMany(list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag)" # <<<<<<<<<<<<<< @@ -123695,7 +127373,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ __Pyx_INCREF(__pyx_kp_u_matchMany_list_valSet_list_handl); __pyx_v__METHOD = __pyx_kp_u_matchMany_list_valSet_list_handl; - /* "PyCafe.pyx":7538 + /* "PyCafe.pyx":7745 * * * if (len(valSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -123704,31 +127382,31 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7538, __pyx_L1_error) + __PYX_ERR(3, 7745, __pyx_L1_error) } - __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7538, __pyx_L1_error) + __pyx_t_1 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7745, __pyx_L1_error) if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7538, __pyx_L1_error) + __PYX_ERR(3, 7745, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7538, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7745, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_1 != __pyx_t_2) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7539 + /* "PyCafe.pyx":7746 * * if (len(valSet) != len(handlePVMatch)): * raise Exception("EXCEPTION RAISED IN PyCafe def matchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * */ - __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__139, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7539, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7746, __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(3, 7539, __pyx_L1_error) + __PYX_ERR(3, 7746, __pyx_L1_error) - /* "PyCafe.pyx":7538 + /* "PyCafe.pyx":7745 * * * if (len(valSet) != len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -123737,7 +127415,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":7543 + /* "PyCafe.pyx":7750 * * cdef vector[unsigned int] handleMatch * handleMatch.reserve(len(handlePVMatch)) # <<<<<<<<<<<<<< @@ -123746,12 +127424,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7543, __pyx_L1_error) + __PYX_ERR(3, 7750, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7543, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7750, __pyx_L1_error) __pyx_v_handleMatch.reserve(__pyx_t_2); - /* "PyCafe.pyx":7546 + /* "PyCafe.pyx":7753 * * cdef vector[double] valSetV * valSetV.reserve(len(valSet)) # <<<<<<<<<<<<<< @@ -123760,12 +127438,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7546, __pyx_L1_error) + __PYX_ERR(3, 7753, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7546, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7753, __pyx_L1_error) __pyx_v_valSetV.reserve(__pyx_t_2); - /* "PyCafe.pyx":7548 + /* "PyCafe.pyx":7755 * valSetV.reserve(len(valSet)) * * for i in range(0, len(handlePVMatch)): # <<<<<<<<<<<<<< @@ -123774,14 +127452,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7548, __pyx_L1_error) + __PYX_ERR(3, 7755, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7548, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_handlePVMatch); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7755, __pyx_L1_error) __pyx_t_1 = __pyx_t_2; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_1; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":7549 + /* "PyCafe.pyx":7756 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -123790,9 +127468,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7549, __pyx_L1_error) + __PYX_ERR(3, 7756, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7549, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = PyInt_Check(__pyx_t_4); __pyx_t_7 = (__pyx_t_6 != 0); @@ -123809,7 +127487,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ __pyx_t_6 = (__pyx_t_3 != 0); if (__pyx_t_6) { - /* "PyCafe.pyx":7550 + /* "PyCafe.pyx":7757 * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) # <<<<<<<<<<<<<< @@ -123818,20 +127496,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7550, __pyx_L1_error) + __PYX_ERR(3, 7757, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7550, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7550, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7757, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7550, __pyx_L1_error) + __PYX_ERR(3, 7757, __pyx_L1_error) } - /* "PyCafe.pyx":7549 + /* "PyCafe.pyx":7756 * * for i in range(0, len(handlePVMatch)): * if isinstance(handlePVMatch[i], (int, long)): # <<<<<<<<<<<<<< @@ -123841,7 +127519,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ goto __pyx_L6; } - /* "PyCafe.pyx":7551 + /* "PyCafe.pyx":7758 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -123850,35 +127528,35 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_handlePVMatch == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7551, __pyx_L1_error) + __PYX_ERR(3, 7758, __pyx_L1_error) } - __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7551, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_handlePVMatch, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = PyUnicode_Check(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_6 != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7552 + /* "PyCafe.pyx":7759 * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): * handleMatch.push_back(self.checkForHandle(handlePVMatch)) # <<<<<<<<<<<<<< * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7552, __pyx_L1_error) - __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7552, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7759, __pyx_L1_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7552, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_8 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7759, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; try { __pyx_v_handleMatch.push_back(__pyx_t_8); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7552, __pyx_L1_error) + __PYX_ERR(3, 7759, __pyx_L1_error) } - /* "PyCafe.pyx":7551 + /* "PyCafe.pyx":7758 * if isinstance(handlePVMatch[i], (int, long)): * handleMatch.push_back(handlePVMatch[i]) * elif isinstance(handlePVMatch[i], (str)): # <<<<<<<<<<<<<< @@ -123888,7 +127566,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ goto __pyx_L6; } - /* "PyCafe.pyx":7554 + /* "PyCafe.pyx":7761 * handleMatch.push_back(self.checkForHandle(handlePVMatch)) * else: * _cafeException = CafeException(_type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< @@ -123896,18 +127574,18 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ * raise _cafeException */ /*else*/ { - __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7554, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7554, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7554, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o) < 0) __PYX_ERR(3, 7554, __pyx_L1_error) - __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7554, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7761, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7761, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error_info, __pyx_kp_u_First_input_argument_should_be_o) < 0) __PYX_ERR(3, 7761, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":7556 + /* "PyCafe.pyx":7763 * _cafeException = CafeException(_type='CafeError', _source=_METHOD, * _error_info="First input argument, should be of type if handle, else if PV") * raise _cafeException # <<<<<<<<<<<<<< @@ -123915,12 +127593,12 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ * for i in range(0, len(valSet)): */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7556, __pyx_L1_error) + __PYX_ERR(3, 7763, __pyx_L1_error) } __pyx_L6:; } - /* "PyCafe.pyx":7558 + /* "PyCafe.pyx":7765 * raise _cafeException * * for i in range(0, len(valSet)): # <<<<<<<<<<<<<< @@ -123929,14 +127607,14 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); - __PYX_ERR(3, 7558, __pyx_L1_error) + __PYX_ERR(3, 7765, __pyx_L1_error) } - __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7558, __pyx_L1_error) + __pyx_t_2 = PyList_GET_SIZE(__pyx_v_valSet); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 7765, __pyx_L1_error) __pyx_t_1 = __pyx_t_2; for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_1; __pyx_t_5+=1) { __pyx_v_i = __pyx_t_5; - /* "PyCafe.pyx":7559 + /* "PyCafe.pyx":7766 * * for i in range(0, len(valSet)): * valSetV.push_back(valSet[i]) # <<<<<<<<<<<<<< @@ -123945,21 +127623,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ if (unlikely(__pyx_v_valSet == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(3, 7559, __pyx_L1_error) + __PYX_ERR(3, 7766, __pyx_L1_error) } - __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7559, __pyx_L1_error) + __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_valSet, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_9); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7559, __pyx_L1_error) + __pyx_t_10 = __pyx_PyFloat_AsDouble(__pyx_t_9); if (unlikely((__pyx_t_10 == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; try { __pyx_v_valSetV.push_back(__pyx_t_10); } catch(...) { __Pyx_CppExn2PyErr(); - __PYX_ERR(3, 7559, __pyx_L1_error) + __PYX_ERR(3, 7766, __pyx_L1_error) } } - /* "PyCafe.pyx":7563 + /* "PyCafe.pyx":7770 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -123974,7 +127652,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":7564 + /* "PyCafe.pyx":7771 * * with nogil: * status = self._c_cafe.matchMany( # <<<<<<<<<<<<<< @@ -123984,7 +127662,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ __pyx_v_status = __pyx_v_self->_c_cafe->matchMany(__pyx_v_valSetV, __pyx_v_handleMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); } - /* "PyCafe.pyx":7563 + /* "PyCafe.pyx":7770 * cdef int status * * with nogil: # <<<<<<<<<<<<<< @@ -124003,7 +127681,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":7567 + /* "PyCafe.pyx":7774 * valSetV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -124013,7 +127691,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7568 + /* "PyCafe.pyx":7775 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124023,7 +127701,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ __pyx_t_3 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_3) { - /* "PyCafe.pyx":7569 + /* "PyCafe.pyx":7776 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -124032,7 +127710,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7568 + /* "PyCafe.pyx":7775 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124041,34 +127719,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":7571 + /* "PyCafe.pyx":7778 * self._c_cafe.printStatusMessage(status) * raise Exception( * "EXCEPTION RAISED in PyCafe def matchMany. Status = %d" % status) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7571, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m_2, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7571, __pyx_L1_error) + __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m_2, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "PyCafe.pyx":7570 + /* "PyCafe.pyx":7777 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def matchMany. Status = %d" % status) * */ - __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7570, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(3, 7570, __pyx_L1_error) + __PYX_ERR(3, 7777, __pyx_L1_error) - /* "PyCafe.pyx":7567 + /* "PyCafe.pyx":7774 * valSetV, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -124077,7 +127755,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ */ } - /* "PyCafe.pyx":7573 + /* "PyCafe.pyx":7780 * "EXCEPTION RAISED in PyCafe def matchMany. Status = %d" % status) * * return status # <<<<<<<<<<<<<< @@ -124085,13 +127763,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7573, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_r = __pyx_t_9; __pyx_t_9 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7533 + /* "PyCafe.pyx":7740 * ################################################################################## * * def matchMany(self, list valSet, list handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -124115,7 +127793,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_410matchMany(struct __pyx_obj_6PyCafe_ return __pyx_r; } -/* "PyCafe.pyx":7578 +/* "PyCafe.pyx":7785 * ############################################################################ * * def match(self, double valSet, handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -124163,29 +127841,29 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_413match(PyObject *__pyx_v_self, PyObj case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handlePVMatch)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 1); __PYX_ERR(3, 7578, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 1); __PYX_ERR(3, 7785, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tolerance)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 2); __PYX_ERR(3, 7578, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 2); __PYX_ERR(3, 7785, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 3); __PYX_ERR(3, 7578, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 3); __PYX_ERR(3, 7785, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_printFlag)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 4); __PYX_ERR(3, 7578, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, 4); __PYX_ERR(3, 7785, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "match") < 0)) __PYX_ERR(3, 7578, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "match") < 0)) __PYX_ERR(3, 7785, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 5) { goto __pyx_L5_argtuple_error; @@ -124196,15 +127874,15 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_413match(PyObject *__pyx_v_self, PyObj values[3] = PyTuple_GET_ITEM(__pyx_args, 3); values[4] = PyTuple_GET_ITEM(__pyx_args, 4); } - __pyx_v_valSet = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_valSet == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7578, __pyx_L3_error) + __pyx_v_valSet = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_valSet == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7785, __pyx_L3_error) __pyx_v_handlePVMatch = values[1]; - __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7578, __pyx_L3_error) - __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7578, __pyx_L3_error) - __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7578, __pyx_L3_error) + __pyx_v_tolerance = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_tolerance == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7785, __pyx_L3_error) + __pyx_v_timeout = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_timeout == (double)-1) && PyErr_Occurred())) __PYX_ERR(3, 7785, __pyx_L3_error) + __pyx_v_printFlag = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_printFlag == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7785, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7578, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("match", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7785, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.match", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -124234,7 +127912,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("match", 0); - /* "PyCafe.pyx":7580 + /* "PyCafe.pyx":7787 * def match(self, double valSet, handlePVMatch, double tolerance, double timeout, bint printFlag): * * cdef str _METHOD = ("match(double valSet, handlePVMatch, double tolerance, double timeout, bint printFlag)") # <<<<<<<<<<<<<< @@ -124244,7 +127922,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_kp_u_match_double_valSet_handlePVMatc); __pyx_v__METHOD = __pyx_kp_u_match_double_valSet_handlePVMatc; - /* "PyCafe.pyx":7582 + /* "PyCafe.pyx":7789 * cdef str _METHOD = ("match(double valSet, handlePVMatch, double tolerance, double timeout, bint printFlag)") * * cdef unsigned int handleMatch = 0 # <<<<<<<<<<<<<< @@ -124253,7 +127931,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_handleMatch = 0; - /* "PyCafe.pyx":7584 + /* "PyCafe.pyx":7791 * cdef unsigned int handleMatch = 0 * * if isinstance(handlePVMatch, (int, long)): # <<<<<<<<<<<<<< @@ -124274,17 +127952,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7585 + /* "PyCafe.pyx":7792 * * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch # <<<<<<<<<<<<<< * elif isinstance(handlePVMatch, (str)): * handleMatch = self.checkForHandle(handlePVMatch) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVMatch); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7585, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePVMatch); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7792, __pyx_L1_error) __pyx_v_handleMatch = __pyx_t_4; - /* "PyCafe.pyx":7584 + /* "PyCafe.pyx":7791 * cdef unsigned int handleMatch = 0 * * if isinstance(handlePVMatch, (int, long)): # <<<<<<<<<<<<<< @@ -124294,7 +127972,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":7586 + /* "PyCafe.pyx":7793 * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): # <<<<<<<<<<<<<< @@ -124305,21 +127983,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7587 + /* "PyCafe.pyx":7794 * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): * handleMatch = self.checkForHandle(handlePVMatch) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7587, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7587, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePVMatch))||((__pyx_v_handlePVMatch) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePVMatch)->tp_name), 0))) __PYX_ERR(3, 7794, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePVMatch), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7587, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7794, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handleMatch = __pyx_t_4; - /* "PyCafe.pyx":7586 + /* "PyCafe.pyx":7793 * if isinstance(handlePVMatch, (int, long)): * handleMatch = handlePVMatch * elif isinstance(handlePVMatch, (str)): # <<<<<<<<<<<<<< @@ -124329,7 +128007,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa goto __pyx_L3; } - /* "PyCafe.pyx":7589 + /* "PyCafe.pyx":7796 * handleMatch = self.checkForHandle(handlePVMatch) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -124337,10 +128015,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7590 + /* "PyCafe.pyx":7797 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -124362,7 +128040,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -124370,13 +128048,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -124390,29 +128068,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7589 + /* "PyCafe.pyx":7796 * handleMatch = self.checkForHandle(handlePVMatch) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7589, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7589, __pyx_L1_error) + __PYX_ERR(3, 7796, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7594 + /* "PyCafe.pyx":7801 * "if handle, else if PV"))) * * cdef int status = ICAFE_NORMAL # <<<<<<<<<<<<<< @@ -124421,7 +128099,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_status = ICAFE_NORMAL; - /* "PyCafe.pyx":7597 + /* "PyCafe.pyx":7804 * * * with nogil: # <<<<<<<<<<<<<< @@ -124436,7 +128114,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa #endif /*try:*/ { - /* "PyCafe.pyx":7598 + /* "PyCafe.pyx":7805 * * with nogil: * status = self._c_cafe.match( # <<<<<<<<<<<<<< @@ -124446,7 +128124,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_v_status = __pyx_v_self->_c_cafe->match(__pyx_v_valSet, __pyx_v_handleMatch, __pyx_v_tolerance, __pyx_v_timeout, __pyx_v_printFlag); } - /* "PyCafe.pyx":7597 + /* "PyCafe.pyx":7804 * * * with nogil: # <<<<<<<<<<<<<< @@ -124465,7 +128143,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa } } - /* "PyCafe.pyx":7601 + /* "PyCafe.pyx":7808 * valSet, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -124475,7 +128153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = ((__pyx_v_status != ICAFE_NORMAL) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7602 + /* "PyCafe.pyx":7809 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124485,7 +128163,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7603 + /* "PyCafe.pyx":7810 * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) # <<<<<<<<<<<<<< @@ -124494,7 +128172,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa */ __pyx_v_self->_c_cafe->printStatusMessage(__pyx_v_status); - /* "PyCafe.pyx":7602 + /* "PyCafe.pyx":7809 * * if status != ICAFE_NORMAL: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124503,34 +128181,34 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa */ } - /* "PyCafe.pyx":7605 + /* "PyCafe.pyx":7812 * self._c_cafe.printStatusMessage(status) * raise Exception( * "EXCEPTION RAISED in PyCafe def match. Status = %d" % status) # <<<<<<<<<<<<<< * * return status */ - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7605, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7605, __pyx_L1_error) + __pyx_t_5 = PyUnicode_Format(__pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_m_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7604 + /* "PyCafe.pyx":7811 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(status) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def match. Status = %d" % status) * */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7604, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7604, __pyx_L1_error) + __PYX_ERR(3, 7811, __pyx_L1_error) - /* "PyCafe.pyx":7601 + /* "PyCafe.pyx":7808 * valSet, handleMatch, tolerance, timeout, printFlag) * * if status != ICAFE_NORMAL: # <<<<<<<<<<<<<< @@ -124539,7 +128217,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa */ } - /* "PyCafe.pyx":7607 + /* "PyCafe.pyx":7814 * "EXCEPTION RAISED in PyCafe def match. Status = %d" % status) * * return status # <<<<<<<<<<<<<< @@ -124547,13 +128225,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa * return 1 */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7607, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_status); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7609 + /* "PyCafe.pyx":7816 * return status * * return 1 # <<<<<<<<<<<<<< @@ -124565,7 +128243,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa __pyx_r = __pyx_int_1; goto __pyx_L0; - /* "PyCafe.pyx":7578 + /* "PyCafe.pyx":7785 * ############################################################################ * * def match(self, double valSet, handlePVMatch, double tolerance, double timeout, bint printFlag): # <<<<<<<<<<<<<< @@ -124590,7 +128268,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_412match(struct __pyx_obj_6PyCafe_CyCa return __pyx_r; } -/* "PyCafe.pyx":7614 +/* "PyCafe.pyx":7821 * ############################################################################ * * def setNelemCtrl(self, handlePV, unsigned int nelem): # <<<<<<<<<<<<<< @@ -124629,11 +128307,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_415setNelemCtrl(PyObject *__pyx_v_self case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nelem_2)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setNelemCtrl", 1, 2, 2, 1); __PYX_ERR(3, 7614, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelemCtrl", 1, 2, 2, 1); __PYX_ERR(3, 7821, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelemCtrl") < 0)) __PYX_ERR(3, 7614, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelemCtrl") < 0)) __PYX_ERR(3, 7821, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -124642,11 +128320,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_415setNelemCtrl(PyObject *__pyx_v_self values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_nelem = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_nelem == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7614, __pyx_L3_error) + __pyx_v_nelem = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_nelem == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7821, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setNelemCtrl", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7614, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelemCtrl", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7821, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setNelemCtrl", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -124676,7 +128354,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setNelemCtrl", 0); - /* "PyCafe.pyx":7615 + /* "PyCafe.pyx":7822 * * def setNelemCtrl(self, handlePV, unsigned int nelem): * cdef str _METHOD = "setNelemCtrl(handlePV, unsigned int nelem)" # <<<<<<<<<<<<<< @@ -124686,7 +128364,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_setNelemCtrl_handlePV_unsigned_i); __pyx_v__METHOD = __pyx_kp_u_setNelemCtrl_handlePV_unsigned_i; - /* "PyCafe.pyx":7617 + /* "PyCafe.pyx":7824 * cdef str _METHOD = "setNelemCtrl(handlePV, unsigned int nelem)" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -124695,7 +128373,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa */ __pyx_v_handle = 0; - /* "PyCafe.pyx":7618 + /* "PyCafe.pyx":7825 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -124716,17 +128394,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7619 + /* "PyCafe.pyx":7826 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7619, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7826, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7618 + /* "PyCafe.pyx":7825 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -124736,7 +128414,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":7620 + /* "PyCafe.pyx":7827 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -124747,21 +128425,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7621 + /* "PyCafe.pyx":7828 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7621, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7621, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7828, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7621, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7828, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7620 + /* "PyCafe.pyx":7827 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -124771,7 +128449,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa goto __pyx_L3; } - /* "PyCafe.pyx":7623 + /* "PyCafe.pyx":7830 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -124779,10 +128457,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7624 + /* "PyCafe.pyx":7831 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -124804,7 +128482,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -124812,13 +128490,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -124832,29 +128510,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7623 + /* "PyCafe.pyx":7830 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7623, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7830, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7623, __pyx_L1_error) + __PYX_ERR(3, 7830, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7628 + /* "PyCafe.pyx":7835 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -124864,7 +128542,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7629 + /* "PyCafe.pyx":7836 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124874,7 +128552,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7630 + /* "PyCafe.pyx":7837 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -124883,7 +128561,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":7629 + /* "PyCafe.pyx":7836 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -124892,60 +128570,60 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":7632 + /* "PyCafe.pyx":7839 * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7632, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7632, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7632, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7839, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7839, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7633 + /* "PyCafe.pyx":7840 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7633, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7634 + /* "PyCafe.pyx":7841 * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7634, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7632, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7631 + /* "PyCafe.pyx":7838 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7631, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7635 + /* "PyCafe.pyx":7842 * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException # <<<<<<<<<<<<<< @@ -124953,9 +128631,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa * # returns nelem */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7635, __pyx_L1_error) + __PYX_ERR(3, 7842, __pyx_L1_error) - /* "PyCafe.pyx":7628 + /* "PyCafe.pyx":7835 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -124964,7 +128642,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa */ } - /* "PyCafe.pyx":7638 + /* "PyCafe.pyx":7845 * * # returns nelem * return self.hh.setNelemCtrl(handle, nelem) # <<<<<<<<<<<<<< @@ -124972,13 +128650,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa * ################################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelemCtrl(__pyx_v_handle, __pyx_v_nelem)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7638, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelemCtrl(__pyx_v_handle, __pyx_v_nelem)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7614 + /* "PyCafe.pyx":7821 * ############################################################################ * * def setNelemCtrl(self, handlePV, unsigned int nelem): # <<<<<<<<<<<<<< @@ -125004,7 +128682,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_414setNelemCtrl(struct __pyx_obj_6PyCa return __pyx_r; } -/* "PyCafe.pyx":7642 +/* "PyCafe.pyx":7849 * ################################################################################## * * def setNelem(self, handlePV, unsigned int nelem): # <<<<<<<<<<<<<< @@ -125043,11 +128721,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_417setNelem(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nelem_2)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setNelem", 1, 2, 2, 1); __PYX_ERR(3, 7642, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelem", 1, 2, 2, 1); __PYX_ERR(3, 7849, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelem") < 0)) __PYX_ERR(3, 7642, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelem") < 0)) __PYX_ERR(3, 7849, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -125056,11 +128734,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_417setNelem(PyObject *__pyx_v_self, Py values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_nelem = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_nelem == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7642, __pyx_L3_error) + __pyx_v_nelem = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_nelem == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7849, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setNelem", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7642, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelem", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7849, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setNelem", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -125090,7 +128768,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setNelem", 0); - /* "PyCafe.pyx":7643 + /* "PyCafe.pyx":7850 * * def setNelem(self, handlePV, unsigned int nelem): * cdef str _METHOD = "setNelem" # <<<<<<<<<<<<<< @@ -125100,7 +128778,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_n_u_setNelem); __pyx_v__METHOD = __pyx_n_u_setNelem; - /* "PyCafe.pyx":7645 + /* "PyCafe.pyx":7852 * cdef str _METHOD = "setNelem" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -125109,7 +128787,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C */ __pyx_v_handle = 0; - /* "PyCafe.pyx":7646 + /* "PyCafe.pyx":7853 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125130,17 +128808,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7647 + /* "PyCafe.pyx":7854 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7647, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7854, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7646 + /* "PyCafe.pyx":7853 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125150,7 +128828,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":7648 + /* "PyCafe.pyx":7855 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125161,21 +128839,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7649 + /* "PyCafe.pyx":7856 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7649, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7649, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7856, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7649, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7648 + /* "PyCafe.pyx":7855 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125185,7 +128863,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C goto __pyx_L3; } - /* "PyCafe.pyx":7651 + /* "PyCafe.pyx":7858 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -125193,10 +128871,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7652 + /* "PyCafe.pyx":7859 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -125218,7 +128896,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -125226,13 +128904,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -125246,29 +128924,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7651 + /* "PyCafe.pyx":7858 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7651, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7651, __pyx_L1_error) + __PYX_ERR(3, 7858, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7656 + /* "PyCafe.pyx":7863 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -125278,7 +128956,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7657 + /* "PyCafe.pyx":7864 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -125288,7 +128966,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7658 + /* "PyCafe.pyx":7865 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -125297,7 +128975,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":7657 + /* "PyCafe.pyx":7864 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -125306,60 +128984,60 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":7660 + /* "PyCafe.pyx":7867 * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7660, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7660, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7660, __pyx_L1_error) - __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7660, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7867, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7867, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7660, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7867, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7661 + /* "PyCafe.pyx":7868 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7661, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7660, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7867, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7662 + /* "PyCafe.pyx":7869 * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7662, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7660, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7867, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7659 + /* "PyCafe.pyx":7866 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7659, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7663 + /* "PyCafe.pyx":7870 * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException # <<<<<<<<<<<<<< @@ -125367,9 +129045,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C * */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7663, __pyx_L1_error) + __PYX_ERR(3, 7870, __pyx_L1_error) - /* "PyCafe.pyx":7656 + /* "PyCafe.pyx":7863 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -125378,7 +129056,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C */ } - /* "PyCafe.pyx":7667 + /* "PyCafe.pyx":7874 * * # returns nelem * return self.hh.setNelem(handle, nelem) # <<<<<<<<<<<<<< @@ -125386,13 +129064,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C * ############################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelem(__pyx_v_handle, __pyx_v_nelem)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7667, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelem(__pyx_v_handle, __pyx_v_nelem)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7642 + /* "PyCafe.pyx":7849 * ################################################################################## * * def setNelem(self, handlePV, unsigned int nelem): # <<<<<<<<<<<<<< @@ -125418,7 +129096,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_416setNelem(struct __pyx_obj_6PyCafe_C return __pyx_r; } -/* "PyCafe.pyx":7670 +/* "PyCafe.pyx":7877 * * ############################################################################ * def setNelemToNative(self, handlePV): # <<<<<<<<<<<<<< @@ -125456,7 +129134,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setNelemToNative", 0); - /* "PyCafe.pyx":7671 + /* "PyCafe.pyx":7878 * ############################################################################ * def setNelemToNative(self, handlePV): * cdef str _METHOD = "setNelemToNative" # <<<<<<<<<<<<<< @@ -125466,7 +129144,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __Pyx_INCREF(__pyx_n_u_setNelemToNative); __pyx_v__METHOD = __pyx_n_u_setNelemToNative; - /* "PyCafe.pyx":7673 + /* "PyCafe.pyx":7880 * cdef str _METHOD = "setNelemToNative" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -125475,7 +129153,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 */ __pyx_v_handle = 0; - /* "PyCafe.pyx":7674 + /* "PyCafe.pyx":7881 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125496,17 +129174,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7675 + /* "PyCafe.pyx":7882 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7675, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7882, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7674 + /* "PyCafe.pyx":7881 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125516,7 +129194,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":7676 + /* "PyCafe.pyx":7883 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125527,21 +129205,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7677 + /* "PyCafe.pyx":7884 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7677, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7677, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7884, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7677, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7676 + /* "PyCafe.pyx":7883 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125551,7 +129229,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 goto __pyx_L3; } - /* "PyCafe.pyx":7679 + /* "PyCafe.pyx":7886 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -125559,10 +129237,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7680 + /* "PyCafe.pyx":7887 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -125584,7 +129262,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -125592,13 +129270,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -125612,29 +129290,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7679 + /* "PyCafe.pyx":7886 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7679, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7679, __pyx_L1_error) + __PYX_ERR(3, 7886, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7684 + /* "PyCafe.pyx":7891 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -125644,7 +129322,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7685 + /* "PyCafe.pyx":7892 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -125654,7 +129332,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7686 + /* "PyCafe.pyx":7893 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -125663,7 +129341,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":7685 + /* "PyCafe.pyx":7892 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -125672,68 +129350,68 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":7688 + /* "PyCafe.pyx":7895 * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, # <<<<<<<<<<<<<< * _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7688, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7688, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7688, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type, __pyx_n_u_CafeError) < 0) __PYX_ERR(3, 7895, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_source, __pyx_v__METHOD) < 0) __PYX_ERR(3, 7895, __pyx_L1_error) - /* "PyCafe.pyx":7689 + /* "PyCafe.pyx":7896 * _cafeException = CafeException( * _type='CafeError', _source=_METHOD, * _error_code=ECAFE_INVALID_HANDLE, # <<<<<<<<<<<<<< * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) */ - __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7689, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_CAFE_ERROR_STATE(ECAFE_INVALID_HANDLE); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7688, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_code, __pyx_t_5) < 0) __PYX_ERR(3, 7895, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7690 + /* "PyCafe.pyx":7897 * _type='CafeError', _source=_METHOD, * _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), # <<<<<<<<<<<<<< * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7690, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.code(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7688, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_text, __pyx_t_5) < 0) __PYX_ERR(3, 7895, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7691 + /* "PyCafe.pyx":7898 * _error_code=ECAFE_INVALID_HANDLE, * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) # <<<<<<<<<<<<<< * raise _cafeException * */ - __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7691, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyStr_string_to_py_std__in_string(__pyx_v_self->cs.info(ECAFE_INVALID_HANDLE)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7688, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_error_info, __pyx_t_5) < 0) __PYX_ERR(3, 7895, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7687 + /* "PyCafe.pyx":7894 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * _cafeException = CafeException( # <<<<<<<<<<<<<< * _type='CafeError', _source=_METHOD, * _error_code=ECAFE_INVALID_HANDLE, */ - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7687, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_6PyCafe_CafeException), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v__cafeException = ((struct __pyx_obj_6PyCafe_CafeException *)__pyx_t_5); __pyx_t_5 = 0; - /* "PyCafe.pyx":7692 + /* "PyCafe.pyx":7899 * _error_text=self.cs.code(ECAFE_INVALID_HANDLE), * _error_info=self.cs.info(ECAFE_INVALID_HANDLE)) * raise _cafeException # <<<<<<<<<<<<<< @@ -125741,9 +129419,9 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 * # returns nelem */ __Pyx_Raise(((PyObject *)__pyx_v__cafeException), 0, 0, 0); - __PYX_ERR(3, 7692, __pyx_L1_error) + __PYX_ERR(3, 7899, __pyx_L1_error) - /* "PyCafe.pyx":7684 + /* "PyCafe.pyx":7891 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -125752,7 +129430,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 */ } - /* "PyCafe.pyx":7695 + /* "PyCafe.pyx":7902 * * # returns nelem * return self.hh.setNelemToNative(handle) # <<<<<<<<<<<<<< @@ -125760,13 +129438,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 * ############################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelemToNative(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7695, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->hh.setNelemToNative(__pyx_v_handle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7670 + /* "PyCafe.pyx":7877 * * ############################################################################ * def setNelemToNative(self, handlePV): # <<<<<<<<<<<<<< @@ -125792,7 +129470,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_418setNelemToNative(struct __pyx_obj_6 return __pyx_r; } -/* "PyCafe.pyx":7699 +/* "PyCafe.pyx":7906 * ############################################################################## * * def setNelemToRetrieveFromCacheToOne(self, handlePV): # <<<<<<<<<<<<<< @@ -125829,7 +129507,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setNelemToRetrieveFromCacheToOne", 0); - /* "PyCafe.pyx":7700 + /* "PyCafe.pyx":7907 * * def setNelemToRetrieveFromCacheToOne(self, handlePV): * cdef str _METHOD = "setNelemToRetrieveFromCacheToOne" # <<<<<<<<<<<<<< @@ -125839,7 +129517,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __Pyx_INCREF(__pyx_n_u_setNelemToRetrieveFromCacheToOne); __pyx_v__METHOD = __pyx_n_u_setNelemToRetrieveFromCacheToOne; - /* "PyCafe.pyx":7702 + /* "PyCafe.pyx":7909 * cdef str _METHOD = "setNelemToRetrieveFromCacheToOne" * * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -125848,7 +129526,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st */ __pyx_v_handle = 0; - /* "PyCafe.pyx":7703 + /* "PyCafe.pyx":7910 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125869,17 +129547,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7704 + /* "PyCafe.pyx":7911 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7704, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7911, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7703 + /* "PyCafe.pyx":7910 * * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -125889,7 +129567,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st goto __pyx_L3; } - /* "PyCafe.pyx":7705 + /* "PyCafe.pyx":7912 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125900,21 +129578,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7706 + /* "PyCafe.pyx":7913 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7706, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7706, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7913, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7706, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7913, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7705 + /* "PyCafe.pyx":7912 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -125924,7 +129602,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st goto __pyx_L3; } - /* "PyCafe.pyx":7708 + /* "PyCafe.pyx":7915 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -125932,10 +129610,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7709 + /* "PyCafe.pyx":7916 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -125957,7 +129635,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -125965,13 +129643,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -125985,29 +129663,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7708 + /* "PyCafe.pyx":7915 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7708, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7708, __pyx_L1_error) + __PYX_ERR(3, 7915, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7713 + /* "PyCafe.pyx":7920 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -126017,7 +129695,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7714 + /* "PyCafe.pyx":7921 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -126027,7 +129705,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7715 + /* "PyCafe.pyx":7922 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -126036,7 +129714,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":7714 + /* "PyCafe.pyx":7921 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -126045,20 +129723,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st */ } - /* "PyCafe.pyx":7716 + /* "PyCafe.pyx":7923 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def setNelemToRetrieveFromCacheToOne") * */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__140, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7716, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7716, __pyx_L1_error) + __PYX_ERR(3, 7923, __pyx_L1_error) - /* "PyCafe.pyx":7713 + /* "PyCafe.pyx":7920 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -126067,7 +129745,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st */ } - /* "PyCafe.pyx":7720 + /* "PyCafe.pyx":7927 * * # returns previous nelem * return self._c_cafe.setNelemToRetrieveFromCacheToOne(handle) # <<<<<<<<<<<<<< @@ -126075,13 +129753,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st * ################################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToRetrieveFromCacheToOne(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7720, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToRetrieveFromCacheToOne(__pyx_v_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7699 + /* "PyCafe.pyx":7906 * ############################################################################## * * def setNelemToRetrieveFromCacheToOne(self, handlePV): # <<<<<<<<<<<<<< @@ -126106,7 +129784,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_420setNelemToRetrieveFromCacheToOne(st return __pyx_r; } -/* "PyCafe.pyx":7723 +/* "PyCafe.pyx":7930 * * ################################################################################ * def setNelemToRetrieveFromCache(self, handlePV, int netrfc): # <<<<<<<<<<<<<< @@ -126145,11 +129823,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_423setNelemToRetrieveFromCache(PyObjec case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_netrfc)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("setNelemToRetrieveFromCache", 1, 2, 2, 1); __PYX_ERR(3, 7723, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelemToRetrieveFromCache", 1, 2, 2, 1); __PYX_ERR(3, 7930, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelemToRetrieveFromCache") < 0)) __PYX_ERR(3, 7723, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setNelemToRetrieveFromCache") < 0)) __PYX_ERR(3, 7930, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -126158,11 +129836,11 @@ static PyObject *__pyx_pw_6PyCafe_6CyCafe_423setNelemToRetrieveFromCache(PyObjec values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_handlePV = values[0]; - __pyx_v_netrfc = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_netrfc == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7723, __pyx_L3_error) + __pyx_v_netrfc = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_netrfc == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7930, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("setNelemToRetrieveFromCache", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7723, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("setNelemToRetrieveFromCache", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7930, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("PyCafe.CyCafe.setNelemToRetrieveFromCache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -126191,7 +129869,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("setNelemToRetrieveFromCache", 0); - /* "PyCafe.pyx":7724 + /* "PyCafe.pyx":7931 * ################################################################################ * def setNelemToRetrieveFromCache(self, handlePV, int netrfc): * cdef str _METHOD="etNelemToRetrieveFromCache" # <<<<<<<<<<<<<< @@ -126201,7 +129879,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __Pyx_INCREF(__pyx_n_u_etNelemToRetrieveFromCache); __pyx_v__METHOD = __pyx_n_u_etNelemToRetrieveFromCache; - /* "PyCafe.pyx":7725 + /* "PyCafe.pyx":7932 * def setNelemToRetrieveFromCache(self, handlePV, int netrfc): * cdef str _METHOD="etNelemToRetrieveFromCache" * cdef unsigned int handle = 0 # <<<<<<<<<<<<<< @@ -126210,7 +129888,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct */ __pyx_v_handle = 0; - /* "PyCafe.pyx":7726 + /* "PyCafe.pyx":7933 * cdef str _METHOD="etNelemToRetrieveFromCache" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -126231,17 +129909,17 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "PyCafe.pyx":7727 + /* "PyCafe.pyx":7934 * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): * handle = handlePV # <<<<<<<<<<<<<< * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7727, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_handlePV); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7934, __pyx_L1_error) __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7726 + /* "PyCafe.pyx":7933 * cdef str _METHOD="etNelemToRetrieveFromCache" * cdef unsigned int handle = 0 * if isinstance(handlePV, (int, long)): # <<<<<<<<<<<<<< @@ -126251,7 +129929,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct goto __pyx_L3; } - /* "PyCafe.pyx":7728 + /* "PyCafe.pyx":7935 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -126262,21 +129940,21 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7729 + /* "PyCafe.pyx":7936 * handle = handlePV * elif isinstance(handlePV, (str)): * handle = self.checkForHandle(handlePV) # <<<<<<<<<<<<<< * else: * raise TypeError("{} {} \n{}".format( */ - if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7729, __pyx_L1_error) - __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7729, __pyx_L1_error) + if (!(likely(PyUnicode_CheckExact(__pyx_v_handlePV))||((__pyx_v_handlePV) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v_handlePV)->tp_name), 0))) __PYX_ERR(3, 7936, __pyx_L1_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_6PyCafe_CyCafe *)__pyx_v_self->__pyx_vtab)->checkForHandle(__pyx_v_self, ((PyObject*)__pyx_v_handlePV), 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7729, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 7936, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_handle = __pyx_t_4; - /* "PyCafe.pyx":7728 + /* "PyCafe.pyx":7935 * if isinstance(handlePV, (int, long)): * handle = handlePV * elif isinstance(handlePV, (str)): # <<<<<<<<<<<<<< @@ -126286,7 +129964,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct goto __pyx_L3; } - /* "PyCafe.pyx":7731 + /* "PyCafe.pyx":7938 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< @@ -126294,10 +129972,10 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct * ("First Input argument should be of type " */ /*else*/ { - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u__37, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "PyCafe.pyx":7732 + /* "PyCafe.pyx":7939 * else: * raise TypeError("{} {} \n{}".format( * self._exception_text, _METHOD, # <<<<<<<<<<<<<< @@ -126319,7 +129997,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else @@ -126327,13 +130005,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[4] = {__pyx_t_7, __pyx_v_self->_exception_text, __pyx_v__METHOD, __pyx_kp_u_First_Input_argument_should_be_o}; - __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 3+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { - __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(3+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -126347,29 +130025,29 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __Pyx_INCREF(__pyx_kp_u_First_Input_argument_should_be_o); __Pyx_GIVEREF(__pyx_kp_u_First_Input_argument_should_be_o); PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_kp_u_First_Input_argument_should_be_o); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "PyCafe.pyx":7731 + /* "PyCafe.pyx":7938 * handle = self.checkForHandle(handlePV) * else: * raise TypeError("{} {} \n{}".format( # <<<<<<<<<<<<<< * self._exception_text, _METHOD, * ("First Input argument should be of type " */ - __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7731, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7731, __pyx_L1_error) + __PYX_ERR(3, 7938, __pyx_L1_error) } __pyx_L3:; - /* "PyCafe.pyx":7736 + /* "PyCafe.pyx":7943 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -126379,7 +130057,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __pyx_t_1 = ((__pyx_v_handle == 0) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7737 + /* "PyCafe.pyx":7944 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -126389,7 +130067,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct __pyx_t_1 = ((__pyx_v_6PyCafe_PYCAFE_PRINT_LEVEL >= __pyx_v_6PyCafe_PYCAFE_PRINT_LOW) != 0); if (__pyx_t_1) { - /* "PyCafe.pyx":7738 + /* "PyCafe.pyx":7945 * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) # <<<<<<<<<<<<<< @@ -126398,7 +130076,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct */ __pyx_v_self->_c_cafe->printStatusMessage(ECAFE_INVALID_HANDLE); - /* "PyCafe.pyx":7737 + /* "PyCafe.pyx":7944 * * if handle == 0: * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: # <<<<<<<<<<<<<< @@ -126407,20 +130085,20 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct */ } - /* "PyCafe.pyx":7739 + /* "PyCafe.pyx":7946 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def setNelemToRetrieveFromCacheToOne") * */ - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__140, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7739, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __PYX_ERR(3, 7739, __pyx_L1_error) + __PYX_ERR(3, 7946, __pyx_L1_error) - /* "PyCafe.pyx":7736 + /* "PyCafe.pyx":7943 * "if handle, else if PV"))) * * if handle == 0: # <<<<<<<<<<<<<< @@ -126429,7 +130107,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct */ } - /* "PyCafe.pyx":7743 + /* "PyCafe.pyx":7950 * * # returns new nelem * return self._c_cafe.setNelemToRetrieveFromCacheToPrevious(handle, netrfc) # <<<<<<<<<<<<<< @@ -126437,13 +130115,13 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct * ################################################################################ */ __Pyx_XDECREF(__pyx_r); - __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToRetrieveFromCacheToPrevious(__pyx_v_handle, __pyx_v_netrfc)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7743, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->_c_cafe->setNelemToRetrieveFromCacheToPrevious(__pyx_v_handle, __pyx_v_netrfc)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 7950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; - /* "PyCafe.pyx":7723 + /* "PyCafe.pyx":7930 * * ################################################################################ * def setNelemToRetrieveFromCache(self, handlePV, int netrfc): # <<<<<<<<<<<<<< @@ -126468,7 +130146,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_422setNelemToRetrieveFromCache(struct return __pyx_r; } -/* "PyCafe.pyx":7747 +/* "PyCafe.pyx":7954 * ################################################################################ * * def terminate(self): # <<<<<<<<<<<<<< @@ -126494,7 +130172,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_424terminate(struct __pyx_obj_6PyCafe_ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("terminate", 0); - /* "PyCafe.pyx":7748 + /* "PyCafe.pyx":7955 * * def terminate(self): * with nogil: # <<<<<<<<<<<<<< @@ -126509,7 +130187,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_424terminate(struct __pyx_obj_6PyCafe_ #endif /*try:*/ { - /* "PyCafe.pyx":7749 + /* "PyCafe.pyx":7956 * def terminate(self): * with nogil: * self._c_cafe.terminate() # <<<<<<<<<<<<<< @@ -126519,7 +130197,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_424terminate(struct __pyx_obj_6PyCafe_ (void)(__pyx_v_self->_c_cafe->terminate()); } - /* "PyCafe.pyx":7748 + /* "PyCafe.pyx":7955 * * def terminate(self): * with nogil: # <<<<<<<<<<<<<< @@ -126538,7 +130216,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_424terminate(struct __pyx_obj_6PyCafe_ } } - /* "PyCafe.pyx":7750 + /* "PyCafe.pyx":7957 * with nogil: * self._c_cafe.terminate() * return # <<<<<<<<<<<<<< @@ -126549,7 +130227,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_424terminate(struct __pyx_obj_6PyCafe_ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "PyCafe.pyx":7747 + /* "PyCafe.pyx":7954 * ################################################################################ * * def terminate(self): # <<<<<<<<<<<<<< @@ -126596,7 +130274,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_426__reduce_cython__(CYTHON_UNUSED str * 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__141, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__136, 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; @@ -126652,7 +130330,7 @@ static PyObject *__pyx_pf_6PyCafe_6CyCafe_428__setstate_cython__(CYTHON_UNUSED s * 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__142, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__137, 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; @@ -127137,7 +130815,7 @@ static PyObject *__pyx_f_6PyCafe___pyx_unpickle_CafeException__set_state(struct return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 * # experimental exception made for __getbuffer__ and __releasebuffer__ * # -- the details of this may change. * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< @@ -127186,7 +130864,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); __Pyx_GIVEREF(__pyx_v_info->obj); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":265 * * cdef int i, ndim * cdef int endian_detector = 1 # <<<<<<<<<<<<<< @@ -127195,7 +130873,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_endian_detector = 1; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":266 * cdef int i, ndim * cdef int endian_detector = 1 * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< @@ -127204,7 +130882,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":268 * cdef bint little_endian = ((&endian_detector)[0] != 0) * * ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<< @@ -127213,7 +130891,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_ndim = PyArray_NDIM(__pyx_v_self); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 * ndim = PyArray_NDIM(self) * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127227,7 +130905,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P goto __pyx_L4_bool_binop_done; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":271 * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)): # <<<<<<<<<<<<<< @@ -127238,7 +130916,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 * ndim = PyArray_NDIM(self) * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127247,20 +130925,20 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)): * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__143, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 272, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__138, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(4, 272, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":270 * ndim = PyArray_NDIM(self) * * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127269,7 +130947,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 * raise ValueError(u"ndarray is not C contiguous") * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127283,7 +130961,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P goto __pyx_L7_bool_binop_done; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":275 * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)): # <<<<<<<<<<<<<< @@ -127294,7 +130972,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 * raise ValueError(u"ndarray is not C contiguous") * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127303,20 +130981,20 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)): * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< * * info.buf = PyArray_DATA(self) */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__144, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 276, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__139, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(4, 276, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":274 * raise ValueError(u"ndarray is not C contiguous") * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<< @@ -127325,7 +131003,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":278 * raise ValueError(u"ndarray is not Fortran contiguous") * * info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<< @@ -127334,7 +131012,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->buf = PyArray_DATA(__pyx_v_self); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":279 * * info.buf = PyArray_DATA(self) * info.ndim = ndim # <<<<<<<<<<<<<< @@ -127343,7 +131021,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->ndim = __pyx_v_ndim; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 * info.buf = PyArray_DATA(self) * info.ndim = ndim * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< @@ -127353,7 +131031,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":283 * # Allocate new buffer for strides and shape info. * # This is allocated as one block, strides first. * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) # <<<<<<<<<<<<<< @@ -127362,7 +131040,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim)))); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":284 * # This is allocated as one block, strides first. * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) * info.shape = info.strides + ndim # <<<<<<<<<<<<<< @@ -127371,7 +131049,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":285 * info.strides = PyObject_Malloc(sizeof(Py_ssize_t) * 2 * ndim) * info.shape = info.strides + ndim * for i in range(ndim): # <<<<<<<<<<<<<< @@ -127383,7 +131061,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) { __pyx_v_i = __pyx_t_6; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":286 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":286 * info.shape = info.strides + ndim * for i in range(ndim): * info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<< @@ -127392,7 +131070,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":287 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":287 * for i in range(ndim): * info.strides[i] = PyArray_STRIDES(self)[i] * info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<< @@ -127402,7 +131080,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]); } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":280 * info.buf = PyArray_DATA(self) * info.ndim = ndim * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< @@ -127412,7 +131090,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P goto __pyx_L9; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":289 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":289 * info.shape[i] = PyArray_DIMS(self)[i] * else: * info.strides = PyArray_STRIDES(self) # <<<<<<<<<<<<<< @@ -127422,7 +131100,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P /*else*/ { __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self)); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":290 * else: * info.strides = PyArray_STRIDES(self) * info.shape = PyArray_DIMS(self) # <<<<<<<<<<<<<< @@ -127433,7 +131111,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P } __pyx_L9:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":291 * info.strides = PyArray_STRIDES(self) * info.shape = PyArray_DIMS(self) * info.suboffsets = NULL # <<<<<<<<<<<<<< @@ -127442,7 +131120,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->suboffsets = NULL; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":292 * info.shape = PyArray_DIMS(self) * info.suboffsets = NULL * info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<< @@ -127451,7 +131129,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":293 * info.suboffsets = NULL * info.itemsize = PyArray_ITEMSIZE(self) * info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<< @@ -127460,7 +131138,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0)); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":296 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":296 * * cdef int t * cdef char* f = NULL # <<<<<<<<<<<<<< @@ -127469,7 +131147,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_f = NULL; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":297 * cdef int t * cdef char* f = NULL * cdef dtype descr = PyArray_DESCR(self) # <<<<<<<<<<<<<< @@ -127482,7 +131160,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3); __pyx_t_3 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":300 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":300 * cdef int offset * * info.obj = self # <<<<<<<<<<<<<< @@ -127495,7 +131173,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = ((PyObject *)__pyx_v_self); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302 * info.obj = self * * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< @@ -127505,7 +131183,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":303 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":303 * * if not PyDataType_HASFIELDS(descr): * t = descr.type_num # <<<<<<<<<<<<<< @@ -127515,7 +131193,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_4 = __pyx_v_descr->type_num; __pyx_v_t = __pyx_t_4; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 * if not PyDataType_HASFIELDS(descr): * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -127535,7 +131213,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P } __pyx_L15_next_or:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":305 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":305 * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< @@ -127552,7 +131230,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_1 = __pyx_t_2; __pyx_L14_bool_binop_done:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 * if not PyDataType_HASFIELDS(descr): * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -127561,20 +131239,20 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__145, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 306, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__140, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(4, 306, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":304 * if not PyDataType_HASFIELDS(descr): * t = descr.type_num * if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -127583,7 +131261,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":307 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":307 * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") * if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<< @@ -127596,7 +131274,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_UBYTE: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":308 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":308 * raise ValueError(u"Non-native byte order not supported") * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<< @@ -127607,7 +131285,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_SHORT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":309 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":309 * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" * elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<< @@ -127618,7 +131296,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_USHORT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":310 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":310 * elif t == NPY_UBYTE: f = "B" * elif t == NPY_SHORT: f = "h" * elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<< @@ -127629,7 +131307,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_INT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":311 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":311 * elif t == NPY_SHORT: f = "h" * elif t == NPY_USHORT: f = "H" * elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<< @@ -127640,7 +131318,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_UINT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":312 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":312 * elif t == NPY_USHORT: f = "H" * elif t == NPY_INT: f = "i" * elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<< @@ -127651,7 +131329,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_LONG: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":313 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":313 * elif t == NPY_INT: f = "i" * elif t == NPY_UINT: f = "I" * elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<< @@ -127662,7 +131340,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_ULONG: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":314 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":314 * elif t == NPY_UINT: f = "I" * elif t == NPY_LONG: f = "l" * elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<< @@ -127673,7 +131351,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_LONGLONG: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":315 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":315 * elif t == NPY_LONG: f = "l" * elif t == NPY_ULONG: f = "L" * elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<< @@ -127684,7 +131362,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_ULONGLONG: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":316 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":316 * elif t == NPY_ULONG: f = "L" * elif t == NPY_LONGLONG: f = "q" * elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<< @@ -127695,7 +131373,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_FLOAT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":317 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":317 * elif t == NPY_LONGLONG: f = "q" * elif t == NPY_ULONGLONG: f = "Q" * elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<< @@ -127706,7 +131384,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_DOUBLE: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":318 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":318 * elif t == NPY_ULONGLONG: f = "Q" * elif t == NPY_FLOAT: f = "f" * elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<< @@ -127717,7 +131395,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_LONGDOUBLE: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":319 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":319 * elif t == NPY_FLOAT: f = "f" * elif t == NPY_DOUBLE: f = "d" * elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<< @@ -127728,7 +131406,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_CFLOAT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":320 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":320 * elif t == NPY_DOUBLE: f = "d" * elif t == NPY_LONGDOUBLE: f = "g" * elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<< @@ -127739,7 +131417,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_CDOUBLE: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":321 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":321 * elif t == NPY_LONGDOUBLE: f = "g" * elif t == NPY_CFLOAT: f = "Zf" * elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<< @@ -127750,7 +131428,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_CLONGDOUBLE: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":322 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":322 * elif t == NPY_CFLOAT: f = "Zf" * elif t == NPY_CDOUBLE: f = "Zd" * elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<< @@ -127761,7 +131439,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; case NPY_OBJECT: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":323 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":323 * elif t == NPY_CDOUBLE: f = "Zd" * elif t == NPY_CLONGDOUBLE: f = "Zg" * elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<< @@ -127772,7 +131450,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; default: - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":325 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":325 * elif t == NPY_OBJECT: f = "O" * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< @@ -127793,7 +131471,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P break; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":326 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":326 * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * info.format = f # <<<<<<<<<<<<<< @@ -127802,7 +131480,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_info->format = __pyx_v_f; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":327 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":327 * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * info.format = f * return # <<<<<<<<<<<<<< @@ -127812,7 +131490,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_r = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":302 * info.obj = self * * if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<< @@ -127822,7 +131500,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P goto __pyx_L12; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":329 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":329 * return * else: * info.format = PyObject_Malloc(_buffer_format_string_len) # <<<<<<<<<<<<<< @@ -127832,7 +131510,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P /*else*/ { __pyx_v_info->format = ((char *)PyObject_Malloc(0xFF)); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":330 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":330 * else: * info.format = PyObject_Malloc(_buffer_format_string_len) * info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<< @@ -127841,7 +131519,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ (__pyx_v_info->format[0]) = '^'; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":331 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":331 * info.format = PyObject_Malloc(_buffer_format_string_len) * info.format[0] = c'^' # Native data types, manual alignment * offset = 0 # <<<<<<<<<<<<<< @@ -127850,7 +131528,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P */ __pyx_v_offset = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":332 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":332 * info.format[0] = c'^' # Native data types, manual alignment * offset = 0 * f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<< @@ -127860,7 +131538,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == ((char *)NULL))) __PYX_ERR(4, 332, __pyx_L1_error) __pyx_v_f = __pyx_t_9; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":335 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":335 * info.format + _buffer_format_string_len, * &offset) * f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<< @@ -127871,7 +131549,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P } __pyx_L12:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":258 * # experimental exception made for __getbuffer__ and __releasebuffer__ * # -- the details of this may change. * def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< @@ -127903,7 +131581,7 @@ static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, P return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337 * f[0] = c'\0' # Terminate format string * * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< @@ -127927,7 +131605,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s int __pyx_t_1; __Pyx_RefNannySetupContext("__releasebuffer__", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338 * * def __releasebuffer__(ndarray self, Py_buffer* info): * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< @@ -127937,7 +131615,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":339 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":339 * def __releasebuffer__(ndarray self, Py_buffer* info): * if PyArray_HASFIELDS(self): * PyObject_Free(info.format) # <<<<<<<<<<<<<< @@ -127946,7 +131624,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s */ PyObject_Free(__pyx_v_info->format); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":338 * * def __releasebuffer__(ndarray self, Py_buffer* info): * if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<< @@ -127955,7 +131633,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340 * if PyArray_HASFIELDS(self): * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< @@ -127965,7 +131643,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":341 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":341 * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): * PyObject_Free(info.strides) # <<<<<<<<<<<<<< @@ -127974,7 +131652,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s */ PyObject_Free(__pyx_v_info->strides); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":340 * if PyArray_HASFIELDS(self): * PyObject_Free(info.format) * if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<< @@ -127983,7 +131661,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":337 * f[0] = c'\0' # Terminate format string * * def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<< @@ -127995,7 +131673,7 @@ static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_s __Pyx_RefNannyFinishContext(); } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 * ctypedef npy_cdouble complex_t * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< @@ -128009,7 +131687,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":822 * * cdef inline object PyArray_MultiIterNew1(a): * return PyArray_MultiIterNew(1, a) # <<<<<<<<<<<<<< @@ -128023,7 +131701,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":821 * ctypedef npy_cdouble complex_t * * cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<< @@ -128044,7 +131722,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 * return PyArray_MultiIterNew(1, a) * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< @@ -128058,7 +131736,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":825 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":825 * * cdef inline object PyArray_MultiIterNew2(a, b): * return PyArray_MultiIterNew(2, a, b) # <<<<<<<<<<<<<< @@ -128072,7 +131750,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":824 * return PyArray_MultiIterNew(1, a) * * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< @@ -128093,7 +131771,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 * return PyArray_MultiIterNew(2, a, b) * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< @@ -128107,7 +131785,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":828 * * cdef inline object PyArray_MultiIterNew3(a, b, c): * return PyArray_MultiIterNew(3, a, b, c) # <<<<<<<<<<<<<< @@ -128121,7 +131799,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":827 * return PyArray_MultiIterNew(2, a, b) * * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< @@ -128142,7 +131820,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 * return PyArray_MultiIterNew(3, a, b, c) * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< @@ -128156,7 +131834,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":831 * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): * return PyArray_MultiIterNew(4, a, b, c, d) # <<<<<<<<<<<<<< @@ -128170,7 +131848,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":830 * return PyArray_MultiIterNew(3, a, b, c) * * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< @@ -128191,7 +131869,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 * return PyArray_MultiIterNew(4, a, b, c, d) * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< @@ -128205,7 +131883,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":834 * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): * return PyArray_MultiIterNew(5, a, b, c, d, e) # <<<<<<<<<<<<<< @@ -128219,7 +131897,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ __pyx_t_1 = 0; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":833 * return PyArray_MultiIterNew(4, a, b, c, d) * * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< @@ -128240,7 +131918,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 * return PyArray_MultiIterNew(5, a, b, c, d, e) * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< @@ -128254,7 +131932,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ int __pyx_t_1; __Pyx_RefNannySetupContext("PyDataType_SHAPE", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< @@ -128264,7 +131942,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":838 * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): * return d.subarray.shape # <<<<<<<<<<<<<< @@ -128276,7 +131954,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape); goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":837 * * cdef inline tuple PyDataType_SHAPE(dtype d): * if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<< @@ -128286,7 +131964,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ goto __pyx_L3; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":840 * return d.subarray.shape * else: * return () # <<<<<<<<<<<<<< @@ -128301,7 +131979,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ } __pyx_L3:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":836 * return PyArray_MultiIterNew(5, a, b, c, d, e) * * cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<< @@ -128317,7 +131995,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__ return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 * return () * * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< @@ -128346,7 +132024,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx char *__pyx_t_9; __Pyx_RefNannySetupContext("_util_dtypestring", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":847 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":847 * * cdef dtype child * cdef int endian_detector = 1 # <<<<<<<<<<<<<< @@ -128355,7 +132033,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ __pyx_v_endian_detector = 1; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":848 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":848 * cdef dtype child * cdef int endian_detector = 1 * cdef bint little_endian = ((&endian_detector)[0] != 0) # <<<<<<<<<<<<<< @@ -128364,7 +132042,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 * cdef tuple fields * * for childname in descr.names: # <<<<<<<<<<<<<< @@ -128387,7 +132065,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3); __pyx_t_3 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":852 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":852 * * for childname in descr.names: * fields = descr.fields[childname] # <<<<<<<<<<<<<< @@ -128404,7 +132082,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":853 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":853 * for childname in descr.names: * fields = descr.fields[childname] * child, new_offset = fields # <<<<<<<<<<<<<< @@ -128439,7 +132117,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4); __pyx_t_4 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 * child, new_offset = fields * * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< @@ -128456,20 +132134,20 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0); if (__pyx_t_6) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 * * if (end - f) - (new_offset - offset[0]) < 15: * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< * * if ((child.byteorder == c'>' and little_endian) or */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 856, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__141, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(4, 856, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":855 * child, new_offset = fields * * if (end - f) - (new_offset - offset[0]) < 15: # <<<<<<<<<<<<<< @@ -128478,7 +132156,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -128498,7 +132176,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx } __pyx_L8_next_or:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":859 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":859 * * if ((child.byteorder == c'>' and little_endian) or * (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<< @@ -128515,7 +132193,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_t_6 = __pyx_t_7; __pyx_L7_bool_binop_done:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -128524,20 +132202,20 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ if (__pyx_t_6) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":860 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":860 * if ((child.byteorder == c'>' and little_endian) or * (child.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< * # One could encode it in the format string and have Cython * # complain instead, BUT: < and > in format strings also imply */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__145, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 860, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__140, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(4, 860, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":858 * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") * * if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<< @@ -128546,7 +132224,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":870 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":870 * * # Output padding bytes * while offset[0] < new_offset: # <<<<<<<<<<<<<< @@ -128562,7 +132240,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (!__pyx_t_6) break; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":871 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":871 * # Output padding bytes * while offset[0] < new_offset: * f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<< @@ -128571,7 +132249,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ (__pyx_v_f[0]) = 0x78; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":872 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":872 * while offset[0] < new_offset: * f[0] = 120 # "x"; pad byte * f += 1 # <<<<<<<<<<<<<< @@ -128580,7 +132258,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ __pyx_v_f = (__pyx_v_f + 1); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":873 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":873 * f[0] = 120 # "x"; pad byte * f += 1 * offset[0] += 1 # <<<<<<<<<<<<<< @@ -128591,7 +132269,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1); } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":875 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":875 * offset[0] += 1 * * offset[0] += child.itemsize # <<<<<<<<<<<<<< @@ -128601,7 +132279,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_t_8 = 0; (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877 * offset[0] += child.itemsize * * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< @@ -128611,7 +132289,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0); if (__pyx_t_6) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":878 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":878 * * if not PyDataType_HASFIELDS(child): * t = child.type_num # <<<<<<<<<<<<<< @@ -128623,7 +132301,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4); __pyx_t_4 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879 * if not PyDataType_HASFIELDS(child): * t = child.type_num * if end - f < 5: # <<<<<<<<<<<<<< @@ -128633,20 +132311,20 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0); if (__pyx_t_6) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< * * # Until ticket #99 is fixed, use integers to avoid warnings */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__147, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 880, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__142, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 880, __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(4, 880, __pyx_L1_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":879 * if not PyDataType_HASFIELDS(child): * t = child.type_num * if end - f < 5: # <<<<<<<<<<<<<< @@ -128655,7 +132333,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":883 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":883 * * # Until ticket #99 is fixed, use integers to avoid warnings * if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<< @@ -128673,7 +132351,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":884 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":884 * # Until ticket #99 is fixed, use integers to avoid warnings * if t == NPY_BYTE: f[0] = 98 #"b" * elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<< @@ -128691,7 +132369,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":885 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":885 * if t == NPY_BYTE: f[0] = 98 #"b" * elif t == NPY_UBYTE: f[0] = 66 #"B" * elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<< @@ -128709,7 +132387,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":886 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":886 * elif t == NPY_UBYTE: f[0] = 66 #"B" * elif t == NPY_SHORT: f[0] = 104 #"h" * elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<< @@ -128727,7 +132405,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":887 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":887 * elif t == NPY_SHORT: f[0] = 104 #"h" * elif t == NPY_USHORT: f[0] = 72 #"H" * elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<< @@ -128745,7 +132423,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":888 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":888 * elif t == NPY_USHORT: f[0] = 72 #"H" * elif t == NPY_INT: f[0] = 105 #"i" * elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<< @@ -128763,7 +132441,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":889 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":889 * elif t == NPY_INT: f[0] = 105 #"i" * elif t == NPY_UINT: f[0] = 73 #"I" * elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<< @@ -128781,7 +132459,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":890 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":890 * elif t == NPY_UINT: f[0] = 73 #"I" * elif t == NPY_LONG: f[0] = 108 #"l" * elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<< @@ -128799,7 +132477,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":891 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":891 * elif t == NPY_LONG: f[0] = 108 #"l" * elif t == NPY_ULONG: f[0] = 76 #"L" * elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<< @@ -128817,7 +132495,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":892 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":892 * elif t == NPY_ULONG: f[0] = 76 #"L" * elif t == NPY_LONGLONG: f[0] = 113 #"q" * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<< @@ -128835,7 +132513,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":893 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":893 * elif t == NPY_LONGLONG: f[0] = 113 #"q" * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" * elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<< @@ -128853,7 +132531,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":894 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":894 * elif t == NPY_ULONGLONG: f[0] = 81 #"Q" * elif t == NPY_FLOAT: f[0] = 102 #"f" * elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<< @@ -128871,7 +132549,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":895 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":895 * elif t == NPY_FLOAT: f[0] = 102 #"f" * elif t == NPY_DOUBLE: f[0] = 100 #"d" * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<< @@ -128889,7 +132567,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":896 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":896 * elif t == NPY_DOUBLE: f[0] = 100 #"d" * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<< @@ -128909,7 +132587,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":897 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":897 * elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<< @@ -128929,7 +132607,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":898 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":898 * elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<< @@ -128949,7 +132627,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":899 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":899 * elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd * elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg * elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<< @@ -128967,7 +132645,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L15; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":901 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":901 * elif t == NPY_OBJECT: f[0] = 79 #"O" * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<< @@ -128986,7 +132664,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx } __pyx_L15:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":902 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":902 * else: * raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) * f += 1 # <<<<<<<<<<<<<< @@ -128995,7 +132673,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx */ __pyx_v_f = (__pyx_v_f + 1); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":877 * offset[0] += child.itemsize * * if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<< @@ -129005,7 +132683,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx goto __pyx_L13; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":906 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":906 * # Cython ignores struct boundary information ("T{...}"), * # so don't output it * f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<< @@ -129018,7 +132696,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx } __pyx_L13:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":851 * cdef tuple fields * * for childname in descr.names: # <<<<<<<<<<<<<< @@ -129028,7 +132706,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":907 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":907 * # so don't output it * f = _util_dtypestring(child, f, end, offset) * return f # <<<<<<<<<<<<<< @@ -129038,7 +132716,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx __pyx_r = __pyx_v_f; goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":842 * return () * * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<< @@ -129065,7 +132743,7 @@ static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022 * int _import_umath() except -1 * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< @@ -129077,7 +132755,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_array_base", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1023 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1023 * * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<< @@ -129086,7 +132764,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a */ Py_INCREF(__pyx_v_base); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1024 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1024 * cdef inline void set_array_base(ndarray arr, object base): * Py_INCREF(base) # important to do this before stealing the reference below! * PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<< @@ -129095,7 +132773,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a */ (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base)); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1022 * int _import_umath() except -1 * * cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<< @@ -129107,7 +132785,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a __Pyx_RefNannyFinishContext(); } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026 * PyArray_SetBaseObject(arr, base) * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< @@ -129122,7 +132800,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py int __pyx_t_1; __Pyx_RefNannySetupContext("get_array_base", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1027 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1027 * * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) # <<<<<<<<<<<<<< @@ -129131,7 +132809,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ __pyx_v_base = PyArray_BASE(__pyx_v_arr); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -129141,7 +132819,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_t_1 = ((__pyx_v_base == NULL) != 0); if (__pyx_t_1) { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1029 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1029 * base = PyArray_BASE(arr) * if base is NULL: * return None # <<<<<<<<<<<<<< @@ -129152,7 +132830,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1028 * cdef inline object get_array_base(ndarray arr): * base = PyArray_BASE(arr) * if base is NULL: # <<<<<<<<<<<<<< @@ -129161,7 +132839,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py */ } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1030 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1030 * if base is NULL: * return None * return base # <<<<<<<<<<<<<< @@ -129173,7 +132851,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py __pyx_r = ((PyObject *)__pyx_v_base); goto __pyx_L0; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1026 * PyArray_SetBaseObject(arr, base) * * cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<< @@ -129189,7 +132867,7 @@ static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__py return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -129210,7 +132888,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("import_array", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -129226,7 +132904,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1036 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1036 * cdef inline int import_array() except -1: * try: * _import_array() # <<<<<<<<<<<<<< @@ -129235,7 +132913,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { */ __pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(4, 1036, __pyx_L3_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -129249,7 +132927,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1037 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1037 * try: * _import_array() * except Exception: # <<<<<<<<<<<<<< @@ -129264,14 +132942,14 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038 * _import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< * * cdef inline int import_umath() except -1: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__148, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1038, __pyx_L5_except_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__143, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1038, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -129284,7 +132962,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1035 * # Cython code. * cdef inline int import_array() except -1: * try: # <<<<<<<<<<<<<< @@ -129304,7 +132982,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { __pyx_L8_try_end:; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1034 * # Versions of the import_* functions which are more suitable for * # Cython code. * cdef inline int import_array() except -1: # <<<<<<<<<<<<<< @@ -129327,7 +133005,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) { return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040 * raise ImportError("numpy.core.multiarray failed to import") * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< @@ -129348,7 +133026,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("import_umath", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -129364,7 +133042,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1042 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1042 * cdef inline int import_umath() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -129373,7 +133051,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(4, 1042, __pyx_L3_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -129387,7 +133065,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1043 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1043 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< @@ -129402,14 +133080,14 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< * * cdef inline int import_ufunc() except -1: */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__149, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1044, __pyx_L5_except_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__144, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1044, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -129422,7 +133100,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1041 * * cdef inline int import_umath() except -1: * try: # <<<<<<<<<<<<<< @@ -129442,7 +133120,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { __pyx_L8_try_end:; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1040 * raise ImportError("numpy.core.multiarray failed to import") * * cdef inline int import_umath() except -1: # <<<<<<<<<<<<<< @@ -129465,7 +133143,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) { return __pyx_r; } -/* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046 +/* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046 * raise ImportError("numpy.core.umath failed to import") * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< @@ -129486,7 +133164,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("import_ufunc", 0); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -129502,7 +133180,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1048 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1048 * cdef inline int import_ufunc() except -1: * try: * _import_umath() # <<<<<<<<<<<<<< @@ -129511,7 +133189,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { */ __pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(4, 1048, __pyx_L3_error) - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -129525,7 +133203,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L8_try_end; __pyx_L3_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1049 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1049 * try: * _import_umath() * except Exception: # <<<<<<<<<<<<<< @@ -129539,12 +133217,12 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1050 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1050 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< */ - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__149, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1050, __pyx_L5_except_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__144, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1050, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_Raise(__pyx_t_8, 0, 0, 0); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -129557,7 +133235,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { goto __pyx_L5_except_error; __pyx_L5_except_error:; - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1047 * * cdef inline int import_ufunc() except -1: * try: # <<<<<<<<<<<<<< @@ -129577,7 +133255,7 @@ static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) { __pyx_L8_try_end:; } - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1046 * raise ImportError("numpy.core.umath failed to import") * * cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<< @@ -131696,7 +135374,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * * if itemsize <= 0: */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__150, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 133, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__145, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -131728,7 +135406,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * * if not isinstance(format, bytes): */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__151, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 136, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -131855,7 +135533,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * * */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__152, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 148, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__147, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -132129,7 +135807,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __ * * if self.dtype_is_object: */ - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__153, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 176, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__148, NULL); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -132370,7 +136048,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(stru * info.buf = self.data * info.len = self.len */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__154, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 192, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__149, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -133086,7 +136764,7 @@ static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __p * 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__155, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__150, 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; @@ -133139,7 +136817,7 @@ static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct * 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__156, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__151, 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; @@ -134783,7 +138461,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setit * * have_slices, index = _unellipsify(index, self.view.ndim) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 414, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 414, __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; @@ -135810,7 +139488,7 @@ static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview * else: * if len(self.view.format) == 1: */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__158, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 491, __pyx_L5_except_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__153, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 491, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -136166,7 +139844,7 @@ static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbu * * if flags & PyBUF_ND: */ - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__159, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 516, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__154, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; @@ -136706,7 +140384,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(st * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 566, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 566, __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; @@ -136820,7 +140498,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get_ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__161, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 573, __pyx_L1_error) + __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__156, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; @@ -137821,7 +141499,7 @@ static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struc * 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__162, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__157, 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; @@ -137874,7 +141552,7 @@ static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED st * 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__163, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__158, 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; @@ -138225,9 +141903,9 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { __Pyx_GOTREF(__pyx_t_7); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < ((__pyx_v_ndim - __pyx_t_8) + 1); __pyx_temp++) { - __Pyx_INCREF(__pyx_slice__164); - __Pyx_GIVEREF(__pyx_slice__164); - PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__164); + __Pyx_INCREF(__pyx_slice__159); + __Pyx_GIVEREF(__pyx_slice__159); + PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__159); } } __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_7); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 678, __pyx_L1_error) @@ -138260,7 +141938,7 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { * else: */ /*else*/ { - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__164); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 681, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__159); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 681, __pyx_L1_error) } __pyx_L7:; @@ -138400,9 +142078,9 @@ static PyObject *_unellipsify(PyObject *__pyx_v_index, int __pyx_v_ndim) { __Pyx_GOTREF(__pyx_t_3); { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < __pyx_v_nslices; __pyx_temp++) { - __Pyx_INCREF(__pyx_slice__164); - __Pyx_GIVEREF(__pyx_slice__164); - PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__164); + __Pyx_INCREF(__pyx_slice__159); + __Pyx_GIVEREF(__pyx_slice__159); + PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__159); } } __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_3); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 692, __pyx_L1_error) @@ -138526,7 +142204,7 @@ static PyObject *assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets, int __ * * */ - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__165, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 699, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__160, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -140689,7 +144367,7 @@ static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED * 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__166, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__161, 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; @@ -140742,7 +144420,7 @@ static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUS * 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__167, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__162, 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; @@ -147968,8 +151646,7 @@ static struct PyModuleDef __pyx_moduledef = { static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_0, __pyx_k_0, sizeof(__pyx_k_0), 0, 1, 0, 0}, {&__pyx_kp_u_0_1_2_3_4_5, __pyx_k_0_1_2_3_4_5, sizeof(__pyx_k_0_1_2_3_4_5), 0, 1, 0, 0}, - {&__pyx_kp_u_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 1, 0, 0}, - {&__pyx_kp_u_1_15_0_py37_gcc_7_3_0, __pyx_k_1_15_0_py37_gcc_7_3_0, sizeof(__pyx_k_1_15_0_py37_gcc_7_3_0), 0, 1, 0, 0}, + {&__pyx_kp_u_1_15_1_py37_gcc_7_3_0, __pyx_k_1_15_1_py37_gcc_7_3_0, sizeof(__pyx_k_1_15_1_py37_gcc_7_3_0), 0, 1, 0, 0}, {&__pyx_kp_u_7_0_6, __pyx_k_7_0_6, sizeof(__pyx_k_7_0_6), 0, 1, 0, 0}, {&__pyx_n_s_ASCII, __pyx_k_ASCII, sizeof(__pyx_k_ASCII), 0, 0, 1, 1}, {&__pyx_kp_u_A_handle_can_never_hold_a_negati, __pyx_k_A_handle_can_never_hold_a_negati, sizeof(__pyx_k_A_handle_can_never_hold_a_negati), 0, 1, 0, 0}, @@ -147999,6 +151676,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_Data_to_be_presented_in_native_d, __pyx_k_Data_to_be_presented_in_native_d, sizeof(__pyx_k_Data_to_be_presented_in_native_d), 0, 1, 0, 0}, {&__pyx_kp_u_Datatype_unknown_returning_value, __pyx_k_Datatype_unknown_returning_value, sizeof(__pyx_k_Datatype_unknown_returning_value), 0, 1, 0, 0}, {&__pyx_kp_u_EGU, __pyx_k_EGU, sizeof(__pyx_k_EGU), 0, 1, 0, 0}, + {&__pyx_kp_u_END_TIME_CHAR, __pyx_k_END_TIME_CHAR, sizeof(__pyx_k_END_TIME_CHAR), 0, 1, 0, 0}, {&__pyx_kp_u_ENUM_string_value, __pyx_k_ENUM_string_value, sizeof(__pyx_k_ENUM_string_value), 0, 1, 0, 0}, {&__pyx_kp_u_ENUM_value, __pyx_k_ENUM_value, sizeof(__pyx_k_ENUM_value), 0, 1, 0, 0}, {&__pyx_kp_u_ERROR_GROUP_MEMBER_MISMATCH, __pyx_k_ERROR_GROUP_MEMBER_MISMATCH, sizeof(__pyx_k_ERROR_GROUP_MEMBER_MISMATCH), 0, 1, 0, 0}, @@ -148124,7 +151802,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_PV_3, __pyx_k_PV_3, sizeof(__pyx_k_PV_3), 0, 1, 0, 0}, {&__pyx_n_u_PV_4, __pyx_k_PV_4, sizeof(__pyx_k_PV_4), 0, 1, 0, 1}, {&__pyx_kp_u_PY_VERSION_HEX_is, __pyx_k_PY_VERSION_HEX_is, sizeof(__pyx_k_PY_VERSION_HEX_is), 0, 1, 0, 0}, - {&__pyx_kp_u_Parameter, __pyx_k_Parameter, sizeof(__pyx_k_Parameter), 0, 1, 0, 0}, {&__pyx_n_s_PickleError, __pyx_k_PickleError, sizeof(__pyx_k_PickleError), 0, 0, 1, 1}, {&__pyx_kp_u_Possible_types_are, __pyx_k_Possible_types_are, sizeof(__pyx_k_Possible_types_are), 0, 1, 0, 0}, {&__pyx_n_s_PyCafe, __pyx_k_PyCafe, sizeof(__pyx_k_PyCafe), 0, 0, 1, 1}, @@ -148136,8 +151813,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_PyCafe_pyx_getArray_array_type_d, __pyx_k_PyCafe_pyx_getArray_array_type_d, sizeof(__pyx_k_PyCafe_pyx_getArray_array_type_d), 0, 1, 0, 0}, {&__pyx_kp_u_Returning_memoryview, __pyx_k_Returning_memoryview, sizeof(__pyx_k_Returning_memoryview), 0, 1, 0, 0}, {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, - {&__pyx_kp_u_SIGNATURE, __pyx_k_SIGNATURE, sizeof(__pyx_k_SIGNATURE), 0, 1, 0, 0}, - {&__pyx_kp_u_SIGNATURE_2, __pyx_k_SIGNATURE_2, sizeof(__pyx_k_SIGNATURE_2), 0, 1, 0, 0}, {&__pyx_kp_u_Second_input_argument_if_not_a_l, __pyx_k_Second_input_argument_if_not_a_l, sizeof(__pyx_k_Second_input_argument_if_not_a_l), 0, 1, 0, 0}, {&__pyx_kp_u_Second_input_argument_should_be, __pyx_k_Second_input_argument_should_be, sizeof(__pyx_k_Second_input_argument_should_be), 0, 1, 0, 0}, {&__pyx_kp_u_Second_input_argument_should_be_2, __pyx_k_Second_input_argument_should_be_2, sizeof(__pyx_k_Second_input_argument_should_be_2), 0, 1, 0, 0}, @@ -148175,14 +151850,13 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_Warning_from_groupMonitorStartW, __pyx_k_Warning_from_groupMonitorStartW, sizeof(__pyx_k_Warning_from_groupMonitorStartW), 0, 1, 0, 0}, {&__pyx_kp_u_Warning_from_monitorStart_for_h, __pyx_k_Warning_from_monitorStart_for_h, sizeof(__pyx_k_Warning_from_monitorStart_for_h), 0, 1, 0, 0}, {&__pyx_kp_u__10, __pyx_k__10, sizeof(__pyx_k__10), 0, 1, 0, 0}, - {&__pyx_kp_u__103, __pyx_k__103, sizeof(__pyx_k__103), 0, 1, 0, 0}, - {&__pyx_kp_u__106, __pyx_k__106, sizeof(__pyx_k__106), 0, 1, 0, 0}, - {&__pyx_kp_u__110, __pyx_k__110, sizeof(__pyx_k__110), 0, 1, 0, 0}, - {&__pyx_kp_u__113, __pyx_k__113, sizeof(__pyx_k__113), 0, 1, 0, 0}, - {&__pyx_kp_u__114, __pyx_k__114, sizeof(__pyx_k__114), 0, 1, 0, 0}, - {&__pyx_kp_u__135, __pyx_k__135, sizeof(__pyx_k__135), 0, 1, 0, 0}, + {&__pyx_kp_u__101, __pyx_k__101, sizeof(__pyx_k__101), 0, 1, 0, 0}, + {&__pyx_kp_u__105, __pyx_k__105, sizeof(__pyx_k__105), 0, 1, 0, 0}, + {&__pyx_kp_u__108, __pyx_k__108, sizeof(__pyx_k__108), 0, 1, 0, 0}, + {&__pyx_kp_u__109, __pyx_k__109, sizeof(__pyx_k__109), 0, 1, 0, 0}, + {&__pyx_kp_u__130, __pyx_k__130, sizeof(__pyx_k__130), 0, 1, 0, 0}, {&__pyx_kp_u__15, __pyx_k__15, sizeof(__pyx_k__15), 0, 1, 0, 0}, - {&__pyx_kp_u__168, __pyx_k__168, sizeof(__pyx_k__168), 0, 1, 0, 0}, + {&__pyx_kp_u__163, __pyx_k__163, sizeof(__pyx_k__163), 0, 1, 0, 0}, {&__pyx_kp_u__23, __pyx_k__23, sizeof(__pyx_k__23), 0, 1, 0, 0}, {&__pyx_kp_u__24, __pyx_k__24, sizeof(__pyx_k__24), 0, 1, 0, 0}, {&__pyx_kp_u__26, __pyx_k__26, sizeof(__pyx_k__26), 0, 1, 0, 0}, @@ -148275,6 +151949,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_u_cinit, __pyx_k_cinit, sizeof(__pyx_k_cinit), 0, 1, 0, 1}, {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1}, {&__pyx_kp_u_className_s, __pyx_k_className_s, sizeof(__pyx_k_className_s), 0, 1, 0, 0}, + {&__pyx_n_u_client, __pyx_k_client, sizeof(__pyx_k_client), 0, 1, 0, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_u_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 1, 0, 1}, {&__pyx_n_u_closeChannelKeepHandle, __pyx_k_closeChannelKeepHandle, sizeof(__pyx_k_closeChannelKeepHandle), 0, 1, 0, 1}, @@ -148299,7 +151974,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_dbrDataType, __pyx_k_dbrDataType, sizeof(__pyx_k_dbrDataType), 0, 1, 0, 0}, {&__pyx_kp_u_dbr_base_type_should_be_one_of_D, __pyx_k_dbr_base_type_should_be_one_of_D, sizeof(__pyx_k_dbr_base_type_should_be_one_of_D), 0, 1, 0, 0}, {&__pyx_kp_u_dbr_base_type_should_be_one_of_D_2, __pyx_k_dbr_base_type_should_be_one_of_D_2, sizeof(__pyx_k_dbr_base_type_should_be_one_of_D_2), 0, 1, 0, 0}, - {&__pyx_kp_u_dbr_mask_notify_milliseconds, __pyx_k_dbr_mask_notify_milliseconds, sizeof(__pyx_k_dbr_mask_notify_milliseconds), 0, 1, 0, 0}, {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, {&__pyx_kp_u_decode_utf_16_error, __pyx_k_decode_utf_16_error, sizeof(__pyx_k_decode_utf_16_error), 0, 1, 0, 0}, {&__pyx_n_s_deepcopy, __pyx_k_deepcopy, sizeof(__pyx_k_deepcopy), 0, 0, 1, 1}, @@ -148314,6 +151988,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 0, 1, 1}, {&__pyx_n_u_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 1, 0, 1}, {&__pyx_n_s_dt, __pyx_k_dt, sizeof(__pyx_k_dt), 0, 0, 1, 1}, + {&__pyx_n_u_dtcheck, __pyx_k_dtcheck, sizeof(__pyx_k_dtcheck), 0, 1, 0, 1}, {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1}, {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object, sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1}, {&__pyx_n_s_empty, __pyx_k_empty, sizeof(__pyx_k_empty), 0, 0, 1, 1}, @@ -148499,8 +152174,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1}, {&__pyx_kp_u_latin_1, __pyx_k_latin_1, sizeof(__pyx_k_latin_1), 0, 1, 0, 0}, - {&__pyx_n_u_len1, __pyx_k_len1, sizeof(__pyx_k_len1), 0, 1, 0, 1}, - {&__pyx_n_u_len2, __pyx_k_len2, sizeof(__pyx_k_len2), 0, 1, 0, 1}, + {&__pyx_kp_u_length_of_ui8val, __pyx_k_length_of_ui8val, sizeof(__pyx_k_length_of_ui8val), 0, 1, 0, 0}, {&__pyx_n_s_longlong, __pyx_k_longlong, sizeof(__pyx_k_longlong), 0, 0, 1, 1}, {&__pyx_kp_u_lowerAlarmLimit_f, __pyx_k_lowerAlarmLimit_f, sizeof(__pyx_k_lowerAlarmLimit_f), 0, 1, 0, 0}, {&__pyx_kp_u_lowerControlLimit_f, __pyx_k_lowerControlLimit_f, sizeof(__pyx_k_lowerControlLimit_f), 0, 1, 0, 0}, @@ -148532,8 +152206,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_monitorStop, __pyx_k_monitorStop, sizeof(__pyx_k_monitorStop), 0, 0, 1, 1}, {&__pyx_kp_u_monitorStopAll, __pyx_k_monitorStopAll, sizeof(__pyx_k_monitorStopAll), 0, 1, 0, 0}, {&__pyx_kp_u_monitorStop_handlePV_mpid_None, __pyx_k_monitorStop_handlePV_mpid_None, sizeof(__pyx_k_monitorStop_handlePV_mpid_None), 0, 1, 0, 0}, - {&__pyx_kp_u_monitor_id, __pyx_k_monitor_id, sizeof(__pyx_k_monitor_id), 0, 1, 0, 0}, - {&__pyx_n_u_monitorid, __pyx_k_monitorid, sizeof(__pyx_k_monitorid), 0, 1, 0, 1}, {&__pyx_n_s_monitorpolicy, __pyx_k_monitorpolicy, sizeof(__pyx_k_monitorpolicy), 0, 0, 1, 1}, {&__pyx_n_s_mpid, __pyx_k_mpid, sizeof(__pyx_k_mpid), 0, 0, 1, 1}, {&__pyx_n_u_mv, __pyx_k_mv, sizeof(__pyx_k_mv), 0, 1, 0, 1}, @@ -148646,6 +152318,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__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_kp_u_reports_the_following_error, __pyx_k_reports_the_following_error, sizeof(__pyx_k_reports_the_following_error), 0, 1, 0, 0}, + {&__pyx_n_u_request, __pyx_k_request, sizeof(__pyx_k_request), 0, 1, 0, 1}, {&__pyx_kp_u_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 1, 0, 0}, {&__pyx_n_s_scalarOnly, __pyx_k_scalarOnly, sizeof(__pyx_k_scalarOnly), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, @@ -148749,12 +152422,12 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_userArgs, __pyx_k_userArgs, sizeof(__pyx_k_userArgs), 0, 1, 0, 0}, {&__pyx_n_s_ushort, __pyx_k_ushort, sizeof(__pyx_k_ushort), 0, 0, 1, 1}, {&__pyx_n_u_ushort, __pyx_k_ushort, sizeof(__pyx_k_ushort), 0, 1, 0, 1}, - {&__pyx_n_u_utf_16, __pyx_k_utf_16, sizeof(__pyx_k_utf_16), 0, 1, 0, 1}, - {&__pyx_kp_u_utf_16_2, __pyx_k_utf_16_2, sizeof(__pyx_k_utf_16_2), 0, 1, 0, 0}, + {&__pyx_kp_u_utf_16, __pyx_k_utf_16, sizeof(__pyx_k_utf_16), 0, 1, 0, 0}, + {&__pyx_n_u_utf_16_2, __pyx_k_utf_16_2, sizeof(__pyx_k_utf_16_2), 0, 1, 0, 1}, {&__pyx_n_u_utf_32, __pyx_k_utf_32, sizeof(__pyx_k_utf_32), 0, 1, 0, 1}, {&__pyx_kp_u_utf_32_2, __pyx_k_utf_32_2, sizeof(__pyx_k_utf_32_2), 0, 1, 0, 0}, - {&__pyx_n_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 1}, - {&__pyx_kp_u_utf_8_2, __pyx_k_utf_8_2, sizeof(__pyx_k_utf_8_2), 0, 1, 0, 0}, + {&__pyx_kp_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 0}, + {&__pyx_n_u_utf_8_2, __pyx_k_utf_8_2, sizeof(__pyx_k_utf_8_2), 0, 1, 0, 1}, {&__pyx_kp_u_utf_none, __pyx_k_utf_none, sizeof(__pyx_k_utf_none), 0, 1, 0, 0}, {&__pyx_n_s_valAction, __pyx_k_valAction, sizeof(__pyx_k_valAction), 0, 0, 1, 1}, {&__pyx_n_s_valList, __pyx_k_valList, sizeof(__pyx_k_valList), 0, 0, 1, 1}, @@ -148789,13 +152462,13 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error) __pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s_hex); if (!__pyx_builtin_hex) __PYX_ERR(2, 697, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(2, 814, __pyx_L1_error) - __pyx_builtin_UnicodeDecodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeDecodeError); if (!__pyx_builtin_UnicodeDecodeError) __PYX_ERR(2, 1203, __pyx_L1_error) + __pyx_builtin_UnicodeDecodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeDecodeError); if (!__pyx_builtin_UnicodeDecodeError) __PYX_ERR(2, 1126, __pyx_L1_error) __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(3, 92, __pyx_L1_error) - __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(3, 184, __pyx_L1_error) - __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 195, __pyx_L1_error) - __pyx_builtin_UserWarning = __Pyx_GetBuiltinName(__pyx_n_s_UserWarning); if (!__pyx_builtin_UserWarning) __PYX_ERR(3, 718, __pyx_L1_error) - __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_n_s_zip); if (!__pyx_builtin_zip) __PYX_ERR(3, 1478, __pyx_L1_error) - __pyx_builtin_UnicodeEncodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeEncodeError); if (!__pyx_builtin_UnicodeEncodeError) __PYX_ERR(3, 7001, __pyx_L1_error) + __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(3, 183, __pyx_L1_error) + __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 194, __pyx_L1_error) + __pyx_builtin_UserWarning = __Pyx_GetBuiltinName(__pyx_n_s_UserWarning); if (!__pyx_builtin_UserWarning) __PYX_ERR(3, 717, __pyx_L1_error) + __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_n_s_zip); if (!__pyx_builtin_zip) __PYX_ERR(3, 1477, __pyx_L1_error) + __pyx_builtin_UnicodeEncodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeEncodeError); if (!__pyx_builtin_UnicodeEncodeError) __PYX_ERR(3, 7208, __pyx_L1_error) __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(4, 1038, __pyx_L1_error) __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(1, 151, __pyx_L1_error) __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis); if (!__pyx_builtin_Ellipsis) __PYX_ERR(1, 400, __pyx_L1_error) @@ -149023,25 +152696,25 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); - /* "PyCafeDefs.pxi":1158 + /* "PyCafeDefs.pxi":1187 * dtcheck = dtn # need a line here * else: * print("Valid input parameters for data type are variations of: 'int', 'float', 'str', or 'native'") # <<<<<<<<<<<<<< * print("Data to be presented in native data type") * */ - __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_u_Valid_input_parameters_for_data); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 1158, __pyx_L1_error) + __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_u_Valid_input_parameters_for_data); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 1187, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); - /* "PyCafeDefs.pxi":1159 + /* "PyCafeDefs.pxi":1188 * else: * print("Valid input parameters for data type are variations of: 'int', 'float', 'str', or 'native'") * print("Data to be presented in native data type") # <<<<<<<<<<<<<< * * return dtcheck */ - __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_u_Data_to_be_presented_in_native_d); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 1159, __pyx_L1_error) + __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_u_Data_to_be_presented_in_native_d); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 1188, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); @@ -149057,212 +152730,212 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GIVEREF(__pyx_tuple__32); __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PyCafe_pyx, __pyx_n_s_wrapper, 76, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(3, 76, __pyx_L1_error) - /* "PyCafe.pyx":184 + /* "PyCafe.pyx":183 * * if self._c_cafe is NULL: * raise MemoryError("Failed to instantiate CAFE()") # <<<<<<<<<<<<<< * * self.cs = self._c_cafe.getCafeStatus() */ - __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_u_Failed_to_instantiate_CAFE); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(3, 184, __pyx_L1_error) + __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_u_Failed_to_instantiate_CAFE); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(3, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); - /* "PyCafe.pyx":208 + /* "PyCafe.pyx":207 * * * print("PY_VERSION_HEX is ", hex(PY_VERSION_HEX)) # <<<<<<<<<<<<<< * * IF PY_EXT_C: */ - __pyx_tuple__35 = PyTuple_Pack(1, __pyx_int_50792432); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(3, 208, __pyx_L1_error) + __pyx_tuple__35 = PyTuple_Pack(1, __pyx_int_50792432); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(3, 207, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__35); __Pyx_GIVEREF(__pyx_tuple__35); - /* "PyCafe.pyx":211 + /* "PyCafe.pyx":210 * * IF PY_EXT_C: * print("USING PUBLIC PyCafe.h INTERFACE FOR CALLBACKS") # <<<<<<<<<<<<<< * ELSE: * print("USING API PyCafe_api.h INTERFACE FOR CALLBACKS") */ - __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_u_USING_PUBLIC_PyCafe_h_INTERFACE); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(3, 211, __pyx_L1_error) + __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_u_USING_PUBLIC_PyCafe_h_INTERFACE); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(3, 210, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__36); __Pyx_GIVEREF(__pyx_tuple__36); - /* "PyCafe.pyx":1738 + /* "PyCafe.pyx":1737 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def getChannelDataStore") * */ - __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(3, 1738, __pyx_L1_error) + __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_g); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(3, 1737, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__43); __Pyx_GIVEREF(__pyx_tuple__43); - /* "PyCafe.pyx":1925 + /* "PyCafe.pyx":1924 * # Print Warning Message * if dbrBase > DBR_TIME: * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") # <<<<<<<<<<<<<< * print("Allowed DBR_TYPEs are:") * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") */ - __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setDbrBase_ha); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(3, 1925, __pyx_L1_error) + __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setDbrBase_ha); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(3, 1924, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); - /* "PyCafe.pyx":1926 + /* "PyCafe.pyx":1925 * if dbrBase > DBR_TIME: * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") * print("Allowed DBR_TYPEs are:") # <<<<<<<<<<<<<< * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") * print("The value entered was", dbrBase, "hence assuming DBR_TIME") */ - __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_u_Allowed_DBR_TYPEs_are); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(3, 1926, __pyx_L1_error) + __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_u_Allowed_DBR_TYPEs_are); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(3, 1925, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__46); __Pyx_GIVEREF(__pyx_tuple__46); - /* "PyCafe.pyx":1927 + /* "PyCafe.pyx":1926 * print("WARNING: PyCafe def setDbrBase(handle/PV, DBR_TYPE)") * print("Allowed DBR_TYPEs are:") * print("DBR_PLAIN (0), DBR_STS(1), DBR_TIME(2)") # <<<<<<<<<<<<<< * print("The value entered was", dbrBase, "hence assuming DBR_TIME") * dbrBase = DBR_TIME */ - __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_u_DBR_PLAIN_0_DBR_STS_1_DBR_TIME_2); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(3, 1927, __pyx_L1_error) + __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_u_DBR_PLAIN_0_DBR_STS_1_DBR_TIME_2); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(3, 1926, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); - /* "PyCafe.pyx":1952 + /* "PyCafe.pyx":1951 * # Print Warning Message * if wpk > GET_CACHE_WAIT: * print( # <<<<<<<<<<<<<< * ("WARNING: PyCafe def setGetCacheWaitPolicy(" * "handle/PV, ChannelGetCacheWaitPolicyKind)")) */ - __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetCacheWa); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(3, 1952, __pyx_L1_error) + __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetCacheWa); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(3, 1951, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__48); __Pyx_GIVEREF(__pyx_tuple__48); - /* "PyCafe.pyx":1955 + /* "PyCafe.pyx":1954 * ("WARNING: PyCafe def setGetCacheWaitPolicy(" * "handle/PV, ChannelGetCacheWaitPolicyKind)")) * print("Allowed ChannelGetCacheWaitPolicyKind are:") # <<<<<<<<<<<<<< * print( * ("GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1)," */ - __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_u_Allowed_ChannelGetCacheWaitPolic); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(3, 1955, __pyx_L1_error) + __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_u_Allowed_ChannelGetCacheWaitPolic); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(3, 1954, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); - /* "PyCafe.pyx":1956 + /* "PyCafe.pyx":1955 * "handle/PV, ChannelGetCacheWaitPolicyKind)")) * print("Allowed ChannelGetCacheWaitPolicyKind are:") * print( # <<<<<<<<<<<<<< * ("GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1)," * "GET_CACHE_WAIT (2)")) */ - __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_u_GET_CACHE_NO_CHECK_0_GET_CACHE_N); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(3, 1956, __pyx_L1_error) + __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_u_GET_CACHE_NO_CHECK_0_GET_CACHE_N); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(3, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); - /* "PyCafe.pyx":1977 + /* "PyCafe.pyx":1976 * # Print Warning Message * if wpk > GET_CACHE_WAIT: * print( # <<<<<<<<<<<<<< * "WARNING: PyCafe def setGetCacheWaitPolicyAllHandles( \ * ChannelGetCacheWaitPolicyKind)") */ - __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetCacheWa_2); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(3, 1977, __pyx_L1_error) + __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetCacheWa_2); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(3, 1976, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); - /* "PyCafe.pyx":1981 + /* "PyCafe.pyx":1980 * ChannelGetCacheWaitPolicyKind)") * print("Allowed ChannelGetCacheWaitPolicyKind are:") * print( # <<<<<<<<<<<<<< * "GET_CACHE_NO_CHECK (0), GET_CACHE_NO_WAIT (1), \ * GET_CACHE_WAIT (2)") */ - __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_u_GET_CACHE_NO_CHECK_0_GET_CACHE_N_2); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(3, 1981, __pyx_L1_error) + __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_u_GET_CACHE_NO_CHECK_0_GET_CACHE_N_2); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(3, 1980, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); - /* "PyCafe.pyx":2003 + /* "PyCafe.pyx":2002 * # Print Warning Message * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") # <<<<<<<<<<<<<< * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") */ - __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetActionW); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(3, 2003, __pyx_L1_error) + __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetActionW); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(3, 2002, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__53); __Pyx_GIVEREF(__pyx_tuple__53); - /* "PyCafe.pyx":2004 + /* "PyCafe.pyx":2003 * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") # <<<<<<<<<<<<<< * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") * print("The value entered was", wmpk, */ - __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_u_Allowed_ChannelGetActionWhenMoni); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(3, 2004, __pyx_L1_error) + __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_u_Allowed_ChannelGetActionWhenMoni); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(3, 2003, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__54); __Pyx_GIVEREF(__pyx_tuple__54); - /* "PyCafe.pyx":2005 + /* "PyCafe.pyx":2004 * print("WARNING: PyCafe def setGetActionWhenMonitorPolicy") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print("GET_FROM_CACHE (0), GET_FROM_IOC (1)") # <<<<<<<<<<<<<< * print("The value entered was", wmpk, * "hence assuming default value GET_FROM_IOC") */ - __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_u_GET_FROM_CACHE_0_GET_FROM_IOC_1); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(3, 2005, __pyx_L1_error) + __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_u_GET_FROM_CACHE_0_GET_FROM_IOC_1); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(3, 2004, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__55); __Pyx_GIVEREF(__pyx_tuple__55); - /* "PyCafe.pyx":2023 + /* "PyCafe.pyx":2022 * # Print Warning Message * if wmpk > GET_FROM_IOC: * print("WARNING: PyCafe def setGetActionWhenMonitorPolicyAllHandles") # <<<<<<<<<<<<<< * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") */ - __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetActionW_2); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(3, 2023, __pyx_L1_error) + __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_u_WARNING_PyCafe_def_setGetActionW_2); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(3, 2022, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__56); __Pyx_GIVEREF(__pyx_tuple__56); - /* "PyCafe.pyx":2025 + /* "PyCafe.pyx":2024 * print("WARNING: PyCafe def setGetActionWhenMonitorPolicyAllHandles") * print("Allowed ChannelGetActionWhenMonitorPolicyKind are:") * print(" GET_FROM_CACHE (0), GET_FROM_IOC (1)") # <<<<<<<<<<<<<< * print( * "The value entered was", wmpk, */ - __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_u_GET_FROM_CACHE_0_GET_FROM_IOC_1_2); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(3, 2025, __pyx_L1_error) + __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_u_GET_FROM_CACHE_0_GET_FROM_IOC_1_2); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(3, 2024, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__57); __Pyx_GIVEREF(__pyx_tuple__57); - /* "PyCafe.pyx":2214 + /* "PyCafe.pyx":2213 * return self.valInt * else: * print("This line in PyCafe def get should never appear!") # <<<<<<<<<<<<<< * return None * */ - __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_get_shou); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(3, 2214, __pyx_L1_error) + __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_get_shou); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(3, 2213, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); - /* "PyCafe.pyx":2492 + /* "PyCafe.pyx":2491 * return None * else: * print("This line in PyCafe def getAsList should never appear!") # <<<<<<<<<<<<<< * return None * */ - __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_getAsLis); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(3, 2492, __pyx_L1_error) + __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_getAsLis); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(3, 2491, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__59); __Pyx_GIVEREF(__pyx_tuple__59); @@ -149299,687 +152972,643 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__62); __Pyx_GIVEREF(__pyx_tuple__62); - /* "PyCafe.pyx":2832 - * elif art in ['array', 'array.array']: + /* "PyCafe.pyx":2833 * + * elif art in ['array', 'array.array']: * a = array.array('h') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): - * a.append( < short > i16val[ij]) + * a.append( < short > ui8val[ij]) */ - __pyx_tuple__63 = PyTuple_Pack(1, __pyx_n_u_h); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(3, 2832, __pyx_L1_error) + __pyx_tuple__63 = PyTuple_Pack(1, __pyx_n_u_h); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(3, 2833, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__63); __Pyx_GIVEREF(__pyx_tuple__63); - /* "PyCafe.pyx":2998 + /* "PyCafe.pyx":3088 * elif art in ['array', 'array.array']: * * a = array.array('f') # <<<<<<<<<<<<<< * * for ij in range(0, nelemMethod): */ - __pyx_tuple__64 = PyTuple_Pack(1, __pyx_n_u_f); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(3, 2998, __pyx_L1_error) + __pyx_tuple__64 = PyTuple_Pack(1, __pyx_n_u_f); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(3, 3088, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__64); __Pyx_GIVEREF(__pyx_tuple__64); - /* "PyCafe.pyx":3080 + /* "PyCafe.pyx":3170 * * elif art in ['array', 'array.array']: * a = array.array('d') # <<<<<<<<<<<<<< * for ij in range(0, nelemMethod): * a.append(dval[ij]) */ - __pyx_tuple__65 = PyTuple_Pack(1, __pyx_n_u_d); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(3, 3080, __pyx_L1_error) + __pyx_tuple__65 = PyTuple_Pack(1, __pyx_n_u_d); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(3, 3170, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__65); __Pyx_GIVEREF(__pyx_tuple__65); - /* "PyCafe.pyx":3502 + /* "PyCafe.pyx":3592 * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error/Warning from def getAsyn: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * */ - __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_u_Error_Warning_from_def_getAsyn); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(3, 3502, __pyx_L1_error) + __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_u_Error_Warning_from_def_getAsyn); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(3, 3592, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__66); __Pyx_GIVEREF(__pyx_tuple__66); - /* "PyCafe.pyx":3534 + /* "PyCafe.pyx":3624 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_tuple__67 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_w); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(3, 3534, __pyx_L1_error) + __pyx_tuple__67 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_w); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(3, 3624, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__67); __Pyx_GIVEREF(__pyx_tuple__67); - /* "PyCafe.pyx":3540 + /* "PyCafe.pyx":3630 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def waitForBundledEvents. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_tuple__68 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_w_2); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(3, 3540, __pyx_L1_error) + __pyx_tuple__68 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_w_2); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(3, 3630, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__68); __Pyx_GIVEREF(__pyx_tuple__68); - /* "PyCafe.pyx":3557 + /* "PyCafe.pyx":3647 * if (status != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def waitForBundledEvents: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * return status */ - __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_waitForBundledEvent); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(3, 3557, __pyx_L1_error) + __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_waitForBundledEvent); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(3, 3647, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__69); __Pyx_GIVEREF(__pyx_tuple__69); - /* "PyCafe.pyx":3574 + /* "PyCafe.pyx":3664 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_tuple__70 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(3, 3574, __pyx_L1_error) + __pyx_tuple__70 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(3, 3664, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__70); __Pyx_GIVEREF(__pyx_tuple__70); - /* "PyCafe.pyx":3580 + /* "PyCafe.pyx":3670 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarArray. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_tuple__71 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_2); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(3, 3580, __pyx_L1_error) + __pyx_tuple__71 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_2); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(3, 3670, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__71); __Pyx_GIVEREF(__pyx_tuple__71); - /* "PyCafe.pyx":3631 + /* "PyCafe.pyx":3721 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarArray: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_tuple__72 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getScalarArray); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(3, 3631, __pyx_L1_error) + __pyx_tuple__72 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getScalarArray); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(3, 3721, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__72); __Pyx_GIVEREF(__pyx_tuple__72); - /* "PyCafe.pyx":3855 + /* "PyCafe.pyx":3945 * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarArray:") # <<<<<<<<<<<<<< * print("Entering 0 for element", i, * "as channel is not connected!") */ - __pyx_tuple__73 = PyTuple_Pack(1, __pyx_kp_u_def_getScalarArray); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(3, 3855, __pyx_L1_error) + __pyx_tuple__73 = PyTuple_Pack(1, __pyx_kp_u_def_getScalarArray); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(3, 3945, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__73); __Pyx_GIVEREF(__pyx_tuple__73); - /* "PyCafe.pyx":3900 + /* "PyCafe.pyx":3990 * * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_tuple__74 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_3); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(3, 3900, __pyx_L1_error) + __pyx_tuple__74 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_3); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(3, 3990, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__74); __Pyx_GIVEREF(__pyx_tuple__74); - /* "PyCafe.pyx":3906 + /* "PyCafe.pyx":3996 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_tuple__75 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_4); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(3, 3906, __pyx_L1_error) + __pyx_tuple__75 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_4); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(3, 3996, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__75); __Pyx_GIVEREF(__pyx_tuple__75); - /* "PyCafe.pyx":3970 + /* "PyCafe.pyx":4060 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getScalarList: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_tuple__76 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getScalarList); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(3, 3970, __pyx_L1_error) + __pyx_tuple__76 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getScalarList); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(3, 4060, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__76); __Pyx_GIVEREF(__pyx_tuple__76); - /* "PyCafe.pyx":4196 + /* "PyCafe.pyx":4286 * localList.append(0) * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_HIGH: * print("def getScalarList:") # <<<<<<<<<<<<<< * print("Entering 0 for element", i, * "as channel is not connected!") */ - __pyx_tuple__77 = PyTuple_Pack(1, __pyx_kp_u_def_getScalarList); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(3, 4196, __pyx_L1_error) + __pyx_tuple__77 = PyTuple_Pack(1, __pyx_kp_u_def_getScalarList); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(3, 4286, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__77); __Pyx_GIVEREF(__pyx_tuple__77); - /* "PyCafe.pyx":4225 + /* "PyCafe.pyx":4315 * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getDictionary. \n" + # <<<<<<<<<<<<<< * "First input argument should be " + * "of handles or PVs\nelse for " + */ - __pyx_tuple__78 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_5); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(3, 4225, __pyx_L1_error) + __pyx_tuple__78 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_5); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(3, 4315, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__78); __Pyx_GIVEREF(__pyx_tuple__78); - /* "PyCafe.pyx":4231 + /* "PyCafe.pyx":4321 * else: * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_tuple__79 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_6); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(3, 4231, __pyx_L1_error) + __pyx_tuple__79 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_6); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(3, 4321, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__79); __Pyx_GIVEREF(__pyx_tuple__79); - /* "PyCafe.pyx":4238 + /* "PyCafe.pyx":4328 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_7); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(3, 4238, __pyx_L1_error) + __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_7); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(3, 4328, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__80); __Pyx_GIVEREF(__pyx_tuple__80); - /* "PyCafe.pyx":4264 + /* "PyCafe.pyx":4354 * handleList = self.getHandlesFromWithinGroup(handleList) * if not handleList: * raise Exception(("EXCEPTION RAISED IN PyCafe def getCompoundList. \n" + # <<<<<<<<<<<<<< * "First input argument should be " + * "of handles or PVs\nelse for " + */ - __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_8); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(3, 4264, __pyx_L1_error) + __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_8); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(3, 4354, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__81); __Pyx_GIVEREF(__pyx_tuple__81); - /* "PyCafe.pyx":4319 + /* "PyCafe.pyx":4409 * if (statusBundle != ICAFE_NORMAL): * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * print("Error in def getCompoundList: ") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(statusBundle) * */ - __pyx_tuple__82 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getCompoundList); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(3, 4319, __pyx_L1_error) + __pyx_tuple__82 = PyTuple_Pack(1, __pyx_kp_u_Error_in_def_getCompoundList); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(3, 4409, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__82); __Pyx_GIVEREF(__pyx_tuple__82); - /* "PyCafe.pyx":4562 + /* "PyCafe.pyx":4652 * else: * * raise Exception("EXCEPTION RAISED IN PyCafe def getCompoundPVGroup. \n\ # <<<<<<<<<<<<<< * First input argument, should be of type if group handle, else if group name") * */ - __pyx_tuple__83 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_9); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(3, 4562, __pyx_L1_error) + __pyx_tuple__83 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_9); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(3, 4652, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__83); __Pyx_GIVEREF(__pyx_tuple__83); - /* "PyCafe.pyx":4670 + /* "PyCafe.pyx":4760 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCache. \n\ # <<<<<<<<<<<<<< * First input argument, should be of type if handle, else if PV") * */ - __pyx_tuple__84 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_10); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(3, 4670, __pyx_L1_error) + __pyx_tuple__84 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_10); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(3, 4760, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__84); __Pyx_GIVEREF(__pyx_tuple__84); - /* "PyCafe.pyx":4776 + /* "PyCafe.pyx":4866 * status = self.hh.getStatus(handle) * if status == ICAFE_NORMAL: * print("This line in PyCafe def getCache should never appear!") # <<<<<<<<<<<<<< * print("Datatype unknown, returning value 0") * return 0 */ - __pyx_tuple__85 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_getCache); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(3, 4776, __pyx_L1_error) + __pyx_tuple__85 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_getCache); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(3, 4866, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__85); __Pyx_GIVEREF(__pyx_tuple__85); - /* "PyCafe.pyx":4777 + /* "PyCafe.pyx":4867 * if status == ICAFE_NORMAL: * print("This line in PyCafe def getCache should never appear!") * print("Datatype unknown, returning value 0") # <<<<<<<<<<<<<< * return 0 * */ - __pyx_tuple__86 = PyTuple_Pack(1, __pyx_kp_u_Datatype_unknown_returning_value); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(3, 4777, __pyx_L1_error) + __pyx_tuple__86 = PyTuple_Pack(1, __pyx_kp_u_Datatype_unknown_returning_value); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(3, 4867, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__86); __Pyx_GIVEREF(__pyx_tuple__86); - /* "PyCafe.pyx":5288 + /* "PyCafe.pyx":5493 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getPVCache. \n \ # <<<<<<<<<<<<<< * First input argument, should be of type if handle, else if PV") * */ - __pyx_tuple__87 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_11); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(3, 5288, __pyx_L1_error) + __pyx_tuple__87 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_11); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(3, 5493, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__87); __Pyx_GIVEREF(__pyx_tuple__87); - /* "PyCafe.pyx":5334 + /* "PyCafe.pyx":5539 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrl. \n\ # <<<<<<<<<<<<<< * First input argument, should be of type if handle, else if PV") * */ - __pyx_tuple__88 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_12); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(3, 5334, __pyx_L1_error) + __pyx_tuple__88 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_12); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(3, 5539, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__88); __Pyx_GIVEREF(__pyx_tuple__88); - /* "PyCafe.pyx":5380 + /* "PyCafe.pyx":5585 * handle = self.checkForHandle(handlePV) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getCtrlCache. \n\ # <<<<<<<<<<<<<< * First input argument, should be of type if handle, else if PV") * */ - __pyx_tuple__89 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_13); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(3, 5380, __pyx_L1_error) + __pyx_tuple__89 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_13); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(3, 5585, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__89); __Pyx_GIVEREF(__pyx_tuple__89); - /* "PyCafe.pyx":5461 + /* "PyCafe.pyx":5666 * handle = self.checkForHandle(handlePV, force=True) * else: * raise Exception("EXCEPTION RAISED IN PyCafe def getMonitorPolicyVector \n\ # <<<<<<<<<<<<<< * First input argument, should be of type if handle, else if PV") * */ - __pyx_tuple__90 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_14); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(3, 5461, __pyx_L1_error) + __pyx_tuple__90 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_14); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(3, 5666, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__90); __Pyx_GIVEREF(__pyx_tuple__90); - /* "PyCafe.pyx":5522 + /* "PyCafe.pyx":5727 * print( * "***Warning*** from groupMonitorStart for handle(orPV)=", ghandleName) * print( # <<<<<<<<<<<<<< * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") */ - __pyx_tuple__95 = PyTuple_Pack(1, __pyx_kp_u_dbr_base_type_should_be_one_of_D); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(3, 5522, __pyx_L1_error) + __pyx_tuple__95 = PyTuple_Pack(1, __pyx_kp_u_dbr_base_type_should_be_one_of_D); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(3, 5727, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__95); __Pyx_GIVEREF(__pyx_tuple__95); - /* "PyCafe.pyx":5524 + /* "PyCafe.pyx":5729 * print( * "dbr base type should be one of DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") # <<<<<<<<<<<<<< * dbr = DBR_TIME * */ - __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_u_Assuming_DBR_TIME); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(3, 5524, __pyx_L1_error) + __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_u_Assuming_DBR_TIME); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(3, 5729, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__96); __Pyx_GIVEREF(__pyx_tuple__96); - /* "PyCafe.pyx":5556 - * mp.setPyCyHandler( cb) - * - * print('============//1//') # <<<<<<<<<<<<<< - * print('SIGNATURE:') - * print(str(sig)) - */ - __pyx_tuple__97 = PyTuple_Pack(1, __pyx_kp_u_1); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(3, 5556, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__97); - __Pyx_GIVEREF(__pyx_tuple__97); - - /* "PyCafe.pyx":5557 - * - * print('============//1//') - * print('SIGNATURE:') # <<<<<<<<<<<<<< - * print(str(sig)) - * for param in sig.parameters.values(): - */ - __pyx_tuple__98 = PyTuple_Pack(1, __pyx_kp_u_SIGNATURE); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(3, 5557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__98); - __Pyx_GIVEREF(__pyx_tuple__98); - - /* "PyCafe.pyx":5613 + /* "PyCafe.pyx":5820 * * if not isinstance(cb, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ # <<<<<<<<<<<<<< * Input cb should be of type and give the list of cb objects") * */ - __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_15); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(3, 5613, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__101); - __Pyx_GIVEREF(__pyx_tuple__101); + __pyx_tuple__99 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_15); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(3, 5820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__99); + __Pyx_GIVEREF(__pyx_tuple__99); - /* "PyCafe.pyx":5628 + /* "PyCafe.pyx":5835 * print("No of group members is ", pvg.getNPV(), * " while list of callback objects is", len(cb)) * raise Exception("EXCEPTION RAISED IN PyCafe def groupMonitorStartWithCBList. \n\ # <<<<<<<<<<<<<< * No of group members doe not match the length of callback object list") * */ - __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_16); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(3, 5628, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__102); - __Pyx_GIVEREF(__pyx_tuple__102); + __pyx_tuple__100 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_g_16); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(3, 5835, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__100); + __Pyx_GIVEREF(__pyx_tuple__100); - /* "PyCafe.pyx":5654 - * mp[i].setPyCyHandler( cb[i]) - * - * print('============') # <<<<<<<<<<<<<< - * print('SIGNATURE//2//:') - * print(str(sig)) - */ - __pyx_tuple__104 = PyTuple_Pack(1, __pyx_kp_u__103); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(3, 5654, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__104); - __Pyx_GIVEREF(__pyx_tuple__104); - - /* "PyCafe.pyx":5655 - * - * print('============') - * print('SIGNATURE//2//:') # <<<<<<<<<<<<<< - * print(str(sig)) - * for param in sig.parameters.values(): - */ - __pyx_tuple__105 = PyTuple_Pack(1, __pyx_kp_u_SIGNATURE_2); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(3, 5655, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__105); - __Pyx_GIVEREF(__pyx_tuple__105); - - /* "PyCafe.pyx":5738 + /* "PyCafe.pyx":5945 * * if status == ECA_TIMEOUT: * print("======================================================") # <<<<<<<<<<<<<< * self._c_cafe.printStatusMessage(status) * print("TIMEOUT in getGroup; switching to getCompoundList") */ - __pyx_tuple__107 = PyTuple_Pack(1, __pyx_kp_u__106); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(3, 5738, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__107); - __Pyx_GIVEREF(__pyx_tuple__107); + __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_u__101); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(3, 5945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__102); + __Pyx_GIVEREF(__pyx_tuple__102); - /* "PyCafe.pyx":5740 + /* "PyCafe.pyx":5947 * print("======================================================") * self._c_cafe.printStatusMessage(status) * print("TIMEOUT in getGroup; switching to getCompoundList") # <<<<<<<<<<<<<< * print("======================================================") * return self.getCompoundList(pvg.getNameAsString(), dt) */ - __pyx_tuple__108 = PyTuple_Pack(1, __pyx_kp_u_TIMEOUT_in_getGroup_switching_to); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(3, 5740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__108); - __Pyx_GIVEREF(__pyx_tuple__108); + __pyx_tuple__103 = PyTuple_Pack(1, __pyx_kp_u_TIMEOUT_in_getGroup_switching_to); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(3, 5947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__103); + __Pyx_GIVEREF(__pyx_tuple__103); - /* "PyCafe.pyx":6093 + /* "PyCafe.pyx":6300 * if status == ECA_TIMEOUT: * print("======================================================") * print("TIMEOUT in getGroup; swithing to getCompoundPVGroup") # <<<<<<<<<<<<<< * print("======================================================") * return self.getCompoundPVGroup(ghandle, dt) */ - __pyx_tuple__109 = PyTuple_Pack(1, __pyx_kp_u_TIMEOUT_in_getGroup_swithing_to); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(3, 6093, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__109); - __Pyx_GIVEREF(__pyx_tuple__109); + __pyx_tuple__104 = PyTuple_Pack(1, __pyx_kp_u_TIMEOUT_in_getGroup_swithing_to); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(3, 6300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__104); + __Pyx_GIVEREF(__pyx_tuple__104); - /* "PyCafe.pyx":6146 + /* "PyCafe.pyx":6353 * with nogil: * self._c_cafe.groupAttach(ghandle, pvg) * print("==============" ) # <<<<<<<<<<<<<< * print(_METHOD) * pvg.showMax(1) */ - __pyx_tuple__111 = PyTuple_Pack(1, __pyx_kp_u__110); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(3, 6146, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__111); - __Pyx_GIVEREF(__pyx_tuple__111); + __pyx_tuple__106 = PyTuple_Pack(1, __pyx_kp_u__105); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(3, 6353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__106); + __Pyx_GIVEREF(__pyx_tuple__106); - /* "PyCafe.pyx":6271 + /* "PyCafe.pyx":6478 * print("Error in def grouping for group named", _gname) * self._c_cafe.printStatusMessage(status) * print("Analysing statusList[]...") # <<<<<<<<<<<<<< * for i in range(0, len(statusList)): * if statusList[i] != ICAFE_NORMAL: */ - __pyx_tuple__112 = PyTuple_Pack(1, __pyx_kp_u_Analysing_statusList); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(3, 6271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__112); - __Pyx_GIVEREF(__pyx_tuple__112); + __pyx_tuple__107 = PyTuple_Pack(1, __pyx_kp_u_Analysing_statusList); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(3, 6478, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__107); + __Pyx_GIVEREF(__pyx_tuple__107); - /* "PyCafe.pyx":6502 + /* "PyCafe.pyx":6709 * else: * print("***Warning*** from monitorStart for handle=", handlePV) * print("dbr base type should be one of \ # <<<<<<<<<<<<<< * DBR_PLAIN, DBR_STS, DBR_TIME, DBR_GR, DBR_CTRL") * print("Assuming DBR_TIME") */ - __pyx_tuple__119 = PyTuple_Pack(1, __pyx_kp_u_dbr_base_type_should_be_one_of_D_2); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(3, 6502, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__119); - __Pyx_GIVEREF(__pyx_tuple__119); + __pyx_tuple__114 = PyTuple_Pack(1, __pyx_kp_u_dbr_base_type_should_be_one_of_D_2); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(3, 6709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__114); + __Pyx_GIVEREF(__pyx_tuple__114); - /* "PyCafe.pyx":6578 + /* "PyCafe.pyx":6785 * del hmd[l] * else: * raise Exception("EXCEPTION RAISED IN PyCafe def monitorStop. \n \ # <<<<<<<<<<<<<< * monitorPolicy ID (mpid) should be of type ") * else: */ - __pyx_tuple__120 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_m); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(3, 6578, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__120); - __Pyx_GIVEREF(__pyx_tuple__120); + __pyx_tuple__115 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_m); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(3, 6785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__115); + __Pyx_GIVEREF(__pyx_tuple__115); - /* "PyCafe.pyx":6727 + /* "PyCafe.pyx":6934 * # print('OK for memoryview') * * if _python_version > (2,6): # <<<<<<<<<<<<<< * #if ((_python_version[0] > 2) or (_python_version[0] == 2 and _python_version[1] > 6)): * */ - __pyx_tuple__121 = PyTuple_Pack(2, __pyx_int_2, __pyx_int_6); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(3, 6727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__121); - __Pyx_GIVEREF(__pyx_tuple__121); + __pyx_tuple__116 = PyTuple_Pack(2, __pyx_int_2, __pyx_int_6); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(3, 6934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__116); + __Pyx_GIVEREF(__pyx_tuple__116); - /* "PyCafe.pyx":6881 + /* "PyCafe.pyx":7088 * temp = (valSet[i]).decode('utf_8') * encoding = True * print('utf-8') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_8')) * except UnicodeDecodeError: */ - __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_u_utf_8_2); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(3, 6881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__122); - __Pyx_GIVEREF(__pyx_tuple__122); + __pyx_tuple__117 = PyTuple_Pack(1, __pyx_kp_u_utf_8); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(3, 7088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__117); + __Pyx_GIVEREF(__pyx_tuple__117); - /* "PyCafe.pyx":6889 + /* "PyCafe.pyx":7096 * temp = (valSet[i]).decode('utf_16') * encoding = True * print('utf-16') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_16').decode('utf_16')) * except UnicodeDecodeError: */ - __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_u_utf_16_2); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(3, 6889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__123); - __Pyx_GIVEREF(__pyx_tuple__123); + __pyx_tuple__118 = PyTuple_Pack(1, __pyx_kp_u_utf_16); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(3, 7096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__118); + __Pyx_GIVEREF(__pyx_tuple__118); - /* "PyCafe.pyx":6897 + /* "PyCafe.pyx":7104 * temp = (valSet[i]).decode('utf_32') * encoding = True * print('utf-32') # <<<<<<<<<<<<<< * vecS.push_back(temp.encode('utf_32')) * except UnicodeDecodeError: */ - __pyx_tuple__124 = PyTuple_Pack(1, __pyx_kp_u_utf_32_2); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(3, 6897, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__124); - __Pyx_GIVEREF(__pyx_tuple__124); + __pyx_tuple__119 = PyTuple_Pack(1, __pyx_kp_u_utf_32_2); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(3, 7104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__119); + __Pyx_GIVEREF(__pyx_tuple__119); - /* "PyCafe.pyx":6999 + /* "PyCafe.pyx":7206 * encoding = True * except UnicodeDecodeError: * print('decode utf_16 error') # <<<<<<<<<<<<<< * pass * except UnicodeEncodeError as ex: */ - __pyx_tuple__125 = PyTuple_Pack(1, __pyx_kp_u_decode_utf_16_error); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(3, 6999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__125); - __Pyx_GIVEREF(__pyx_tuple__125); + __pyx_tuple__120 = PyTuple_Pack(1, __pyx_kp_u_decode_utf_16_error); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(3, 7206, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__120); + __Pyx_GIVEREF(__pyx_tuple__120); - /* "PyCafe.pyx":7005 + /* "PyCafe.pyx":7212 * pass * if not encoding: * print('no encoding done') # <<<<<<<<<<<<<< * valSetS = valSet * with nogil: */ - __pyx_tuple__126 = PyTuple_Pack(1, __pyx_kp_u_no_encoding_done); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(3, 7005, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__126); - __Pyx_GIVEREF(__pyx_tuple__126); + __pyx_tuple__121 = PyTuple_Pack(1, __pyx_kp_u_no_encoding_done); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(3, 7212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__121); + __Pyx_GIVEREF(__pyx_tuple__121); - /* "PyCafe.pyx":7015 + /* "PyCafe.pyx":7222 * status = self._c_cafe.setString(handle, valSetS) * else: * print("PyCafe def set WARNING: DATA TYPE NOT SUPPORTED") # <<<<<<<<<<<<<< * print("Input data (whether within a 'list','array.array','cython.view.memoryview','memoryview' \n\ * or not) should be of of type , or ") */ - __pyx_tuple__127 = PyTuple_Pack(1, __pyx_kp_u_PyCafe_def_set_WARNING_DATA_TYPE); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(3, 7015, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__127); - __Pyx_GIVEREF(__pyx_tuple__127); + __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_u_PyCafe_def_set_WARNING_DATA_TYPE); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(3, 7222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__122); + __Pyx_GIVEREF(__pyx_tuple__122); - /* "PyCafe.pyx":7016 + /* "PyCafe.pyx":7223 * else: * print("PyCafe def set WARNING: DATA TYPE NOT SUPPORTED") * print("Input data (whether within a 'list','array.array','cython.view.memoryview','memoryview' \n\ # <<<<<<<<<<<<<< * or not) should be of of type , or ") * type(valSet) */ - __pyx_tuple__128 = PyTuple_Pack(1, __pyx_kp_u_Input_data_whether_within_a_list); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(3, 7016, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__128); - __Pyx_GIVEREF(__pyx_tuple__128); + __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_u_Input_data_whether_within_a_list); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(3, 7223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__123); + __Pyx_GIVEREF(__pyx_tuple__123); - /* "PyCafe.pyx":7045 + /* "PyCafe.pyx":7252 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setScalarList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type \ * if handles or if PVs") */ - __pyx_tuple__129 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(3, 7045, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__129); - __Pyx_GIVEREF(__pyx_tuple__129); + __pyx_tuple__124 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(3, 7252, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__124); + __Pyx_GIVEREF(__pyx_tuple__124); - /* "PyCafe.pyx":7091 + /* "PyCafe.pyx":7298 * pvd[i].setInt(valList[i]) * else: * print("This line in PyCafe def setScalarList should never appear!") # <<<<<<<<<<<<<< * * cdef int status = ICAFE_NORMAL */ - __pyx_tuple__130 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_setScala); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(3, 7091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__130); - __Pyx_GIVEREF(__pyx_tuple__130); + __pyx_tuple__125 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_setScala); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(3, 7298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__125); + __Pyx_GIVEREF(__pyx_tuple__125); - /* "PyCafe.pyx":7133 + /* "PyCafe.pyx":7340 * else: * if not isinstance(handleList, (list)): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be of handles or PVs") * */ - __pyx_tuple__131 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_3); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(3, 7133, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__131); - __Pyx_GIVEREF(__pyx_tuple__131); + __pyx_tuple__126 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_3); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(3, 7340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__126); + __Pyx_GIVEREF(__pyx_tuple__126); - /* "PyCafe.pyx":7139 + /* "PyCafe.pyx":7346 * handleList = self.checkForHandleList(handleList) * elif not isinstance(handleList[0], (int, long)): * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * First input argument, should be a 'list' of of type if handles or if PVs") * */ - __pyx_tuple__132 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_4); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(3, 7139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__132); - __Pyx_GIVEREF(__pyx_tuple__132); + __pyx_tuple__127 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_4); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(3, 7346, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__127); + __Pyx_GIVEREF(__pyx_tuple__127); - /* "PyCafe.pyx":7198 + /* "PyCafe.pyx":7405 * * else: * print("This line in PyCafe def setCompoundList should never appear!") # <<<<<<<<<<<<<< * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ * Unknown data input; should be one of of type , , , ") */ - __pyx_tuple__133 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_setCompo); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(3, 7198, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__133); - __Pyx_GIVEREF(__pyx_tuple__133); + __pyx_tuple__128 = PyTuple_Pack(1, __pyx_kp_u_This_line_in_PyCafe_def_setCompo); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(3, 7405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__128); + __Pyx_GIVEREF(__pyx_tuple__128); - /* "PyCafe.pyx":7199 + /* "PyCafe.pyx":7406 * else: * print("This line in PyCafe def setCompoundList should never appear!") * raise Exception("EXCEPTION RAISED IN PyCafe def setCompoundList. \n\ # <<<<<<<<<<<<<< * Unknown data input; should be one of of type , , , ") * */ - __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_6); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(3, 7199, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__134); - __Pyx_GIVEREF(__pyx_tuple__134); + __pyx_tuple__129 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_6); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(3, 7406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__129); + __Pyx_GIVEREF(__pyx_tuple__129); - /* "PyCafe.pyx":7297 + /* "PyCafe.pyx":7504 * print("PyCafe def setGroup: Unusual data type for element", * i, " : ", type(vectorList[i])) * raise Exception("EXCEPTION RAISED IN PyCafe def setGroup. \n\ # <<<<<<<<<<<<<< * Unknown data input; should be one of of type , , , ") * */ - __pyx_tuple__136 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_7); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(3, 7297, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__136); - __Pyx_GIVEREF(__pyx_tuple__136); + __pyx_tuple__131 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_7); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(3, 7504, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__131); + __Pyx_GIVEREF(__pyx_tuple__131); - /* "PyCafe.pyx":7337 + /* "PyCafe.pyx":7544 * * if (len(handlePVSet) != len(valSet)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and second (valSet) input lists must match!") * */ - __pyx_tuple__137 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_8); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(3, 7337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__137); - __Pyx_GIVEREF(__pyx_tuple__137); + __pyx_tuple__132 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_8); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(3, 7544, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__132); + __Pyx_GIVEREF(__pyx_tuple__132); - /* "PyCafe.pyx":7341 + /* "PyCafe.pyx":7548 * * if (len(handlePVSet) != len(handlePVMatch)): * raise Exception("EXCEPTION RAISED IN PyCafe def setAndMatchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * */ - __pyx_tuple__138 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_9); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(3, 7341, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__138); - __Pyx_GIVEREF(__pyx_tuple__138); + __pyx_tuple__133 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_s_9); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(3, 7548, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__133); + __Pyx_GIVEREF(__pyx_tuple__133); - /* "PyCafe.pyx":7539 + /* "PyCafe.pyx":7746 * * if (len(valSet) != len(handlePVMatch)): * raise Exception("EXCEPTION RAISED IN PyCafe def matchMany. \n\ # <<<<<<<<<<<<<< * Lengths of first (handlePVSet) and third (handlePVMatch) input lists must match!") * */ - __pyx_tuple__139 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_m_2); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(3, 7539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__139); - __Pyx_GIVEREF(__pyx_tuple__139); + __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_IN_PyCafe_def_m_2); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(3, 7746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__134); + __Pyx_GIVEREF(__pyx_tuple__134); - /* "PyCafe.pyx":7716 + /* "PyCafe.pyx":7923 * if PYCAFE_PRINT_LEVEL >= PYCAFE_PRINT_LOW: * self._c_cafe.printStatusMessage(ECAFE_INVALID_HANDLE) * raise Exception( # <<<<<<<<<<<<<< * "EXCEPTION RAISED in PyCafe def setNelemToRetrieveFromCacheToOne") * */ - __pyx_tuple__140 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s_3); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(3, 7716, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__140); - __Pyx_GIVEREF(__pyx_tuple__140); + __pyx_tuple__135 = PyTuple_Pack(1, __pyx_kp_u_EXCEPTION_RAISED_in_PyCafe_def_s_3); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(3, 7923, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__135); + __Pyx_GIVEREF(__pyx_tuple__135); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -149987,95 +153616,95 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_tuple__141 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(1, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__141); - __Pyx_GIVEREF(__pyx_tuple__141); + __pyx_tuple__136 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(1, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__136); + __Pyx_GIVEREF(__pyx_tuple__136); /* "(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__142 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(1, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__142); - __Pyx_GIVEREF(__pyx_tuple__142); + __pyx_tuple__137 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__137); + __Pyx_GIVEREF(__pyx_tuple__137); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":272 * if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)): * raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<< * * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) */ - __pyx_tuple__143 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(4, 272, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__143); - __Pyx_GIVEREF(__pyx_tuple__143); + __pyx_tuple__138 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(4, 272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__138); + __Pyx_GIVEREF(__pyx_tuple__138); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":276 * if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) * and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)): * raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<< * * info.buf = PyArray_DATA(self) */ - __pyx_tuple__144 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(4, 276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__144); - __Pyx_GIVEREF(__pyx_tuple__144); + __pyx_tuple__139 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(4, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__139); + __Pyx_GIVEREF(__pyx_tuple__139); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":306 * if ((descr.byteorder == c'>' and little_endian) or * (descr.byteorder == c'<' and not little_endian)): * raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<< * if t == NPY_BYTE: f = "b" * elif t == NPY_UBYTE: f = "B" */ - __pyx_tuple__145 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(4, 306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__145); - __Pyx_GIVEREF(__pyx_tuple__145); + __pyx_tuple__140 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(4, 306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__140); + __Pyx_GIVEREF(__pyx_tuple__140); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":856 * * if (end - f) - (new_offset - offset[0]) < 15: * raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<< * * if ((child.byteorder == c'>' and little_endian) or */ - __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(4, 856, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__146); - __Pyx_GIVEREF(__pyx_tuple__146); + __pyx_tuple__141 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(4, 856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__141); + __Pyx_GIVEREF(__pyx_tuple__141); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":880 * t = child.type_num * if end - f < 5: * raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<< * * # Until ticket #99 is fixed, use integers to avoid warnings */ - __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(4, 880, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__147); - __Pyx_GIVEREF(__pyx_tuple__147); + __pyx_tuple__142 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(4, 880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__142); + __Pyx_GIVEREF(__pyx_tuple__142); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1038 * _import_array() * except Exception: * raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<< * * cdef inline int import_umath() except -1: */ - __pyx_tuple__148 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(4, 1038, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__148); - __Pyx_GIVEREF(__pyx_tuple__148); + __pyx_tuple__143 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_multiarray_failed_to); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(4, 1038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__143); + __Pyx_GIVEREF(__pyx_tuple__143); - /* "../../../../../../../opt/gfa/python-3.7/latest/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044 + /* "../../../../../../../opt/gfa/python-3.7/2018.12/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd":1044 * _import_umath() * except Exception: * raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<< * * cdef inline int import_ufunc() except -1: */ - __pyx_tuple__149 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(4, 1044, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__149); - __Pyx_GIVEREF(__pyx_tuple__149); + __pyx_tuple__144 = PyTuple_Pack(1, __pyx_kp_u_numpy_core_umath_failed_to_impor); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(4, 1044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__144); + __Pyx_GIVEREF(__pyx_tuple__144); /* "View.MemoryView":133 * @@ -150084,9 +153713,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * if itemsize <= 0: */ - __pyx_tuple__150 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(1, 133, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__150); - __Pyx_GIVEREF(__pyx_tuple__150); + __pyx_tuple__145 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(1, 133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__145); + __Pyx_GIVEREF(__pyx_tuple__145); /* "View.MemoryView":136 * @@ -150095,9 +153724,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * if not isinstance(format, bytes): */ - __pyx_tuple__151 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(1, 136, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__151); - __Pyx_GIVEREF(__pyx_tuple__151); + __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(1, 136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__146); + __Pyx_GIVEREF(__pyx_tuple__146); /* "View.MemoryView":148 * @@ -150106,9 +153735,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * */ - __pyx_tuple__152 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(1, 148, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__152); - __Pyx_GIVEREF(__pyx_tuple__152); + __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(1, 148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__147); + __Pyx_GIVEREF(__pyx_tuple__147); /* "View.MemoryView":176 * self.data = malloc(self.len) @@ -150117,9 +153746,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * if self.dtype_is_object: */ - __pyx_tuple__153 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(1, 176, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__153); - __Pyx_GIVEREF(__pyx_tuple__153); + __pyx_tuple__148 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__148); + __Pyx_GIVEREF(__pyx_tuple__148); /* "View.MemoryView":192 * bufmode = PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS @@ -150128,9 +153757,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * info.buf = self.data * info.len = self.len */ - __pyx_tuple__154 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(1, 192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__154); - __Pyx_GIVEREF(__pyx_tuple__154); + __pyx_tuple__149 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(1, 192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__149); + __Pyx_GIVEREF(__pyx_tuple__149); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -150138,18 +153767,18 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_tuple__155 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(1, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__155); - __Pyx_GIVEREF(__pyx_tuple__155); + __pyx_tuple__150 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(1, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__150); + __Pyx_GIVEREF(__pyx_tuple__150); /* "(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__156 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(1, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__156); - __Pyx_GIVEREF(__pyx_tuple__156); + __pyx_tuple__151 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__151); + __Pyx_GIVEREF(__pyx_tuple__151); /* "View.MemoryView":414 * def __setitem__(memoryview self, object index, object value): @@ -150158,9 +153787,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * have_slices, index = _unellipsify(index, self.view.ndim) */ - __pyx_tuple__157 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(1, 414, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__157); - __Pyx_GIVEREF(__pyx_tuple__157); + __pyx_tuple__152 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(1, 414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__152); + __Pyx_GIVEREF(__pyx_tuple__152); /* "View.MemoryView":491 * result = struct.unpack(self.view.format, bytesitem) @@ -150169,9 +153798,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * else: * if len(self.view.format) == 1: */ - __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(1, 491, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__158); - __Pyx_GIVEREF(__pyx_tuple__158); + __pyx_tuple__153 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(1, 491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__153); + __Pyx_GIVEREF(__pyx_tuple__153); /* "View.MemoryView":516 * def __getbuffer__(self, Py_buffer *info, int flags): @@ -150180,9 +153809,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * if flags & PyBUF_ND: */ - __pyx_tuple__159 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(1, 516, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__159); - __Pyx_GIVEREF(__pyx_tuple__159); + __pyx_tuple__154 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__154); + __Pyx_GIVEREF(__pyx_tuple__154); /* "View.MemoryView":566 * if self.view.strides == NULL: @@ -150191,9 +153820,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * return tuple([stride for stride in self.view.strides[:self.view.ndim]]) */ - __pyx_tuple__160 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(1, 566, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__160); - __Pyx_GIVEREF(__pyx_tuple__160); + __pyx_tuple__155 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(1, 566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__155); + __Pyx_GIVEREF(__pyx_tuple__155); /* "View.MemoryView":573 * def suboffsets(self): @@ -150202,12 +153831,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * return tuple([suboffset for suboffset in self.view.suboffsets[:self.view.ndim]]) */ - __pyx_tuple__161 = PyTuple_New(1); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(1, 573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__161); + __pyx_tuple__156 = PyTuple_New(1); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(1, 573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__156); __Pyx_INCREF(__pyx_int_neg_1); __Pyx_GIVEREF(__pyx_int_neg_1); - PyTuple_SET_ITEM(__pyx_tuple__161, 0, __pyx_int_neg_1); - __Pyx_GIVEREF(__pyx_tuple__161); + PyTuple_SET_ITEM(__pyx_tuple__156, 0, __pyx_int_neg_1); + __Pyx_GIVEREF(__pyx_tuple__156); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -150215,18 +153844,18 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_tuple__162 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(1, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__162); - __Pyx_GIVEREF(__pyx_tuple__162); + __pyx_tuple__157 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(1, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__157); + __Pyx_GIVEREF(__pyx_tuple__157); /* "(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__163 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(1, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__163); - __Pyx_GIVEREF(__pyx_tuple__163); + __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__158); + __Pyx_GIVEREF(__pyx_tuple__158); /* "View.MemoryView":678 * if item is Ellipsis: @@ -150235,9 +153864,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * seen_ellipsis = True * else: */ - __pyx_slice__164 = PySlice_New(Py_None, Py_None, Py_None); if (unlikely(!__pyx_slice__164)) __PYX_ERR(1, 678, __pyx_L1_error) - __Pyx_GOTREF(__pyx_slice__164); - __Pyx_GIVEREF(__pyx_slice__164); + __pyx_slice__159 = PySlice_New(Py_None, Py_None, Py_None); if (unlikely(!__pyx_slice__159)) __PYX_ERR(1, 678, __pyx_L1_error) + __Pyx_GOTREF(__pyx_slice__159); + __Pyx_GIVEREF(__pyx_slice__159); /* "View.MemoryView":699 * for suboffset in suboffsets[:ndim]: @@ -150246,9 +153875,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * */ - __pyx_tuple__165 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(1, 699, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__165); - __Pyx_GIVEREF(__pyx_tuple__165); + __pyx_tuple__160 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(1, 699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__160); + __Pyx_GIVEREF(__pyx_tuple__160); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -150256,18 +153885,18 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_tuple__166 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(1, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__166); - __Pyx_GIVEREF(__pyx_tuple__166); + __pyx_tuple__161 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(1, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__161); + __Pyx_GIVEREF(__pyx_tuple__161); /* "(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__167 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(1, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__167); - __Pyx_GIVEREF(__pyx_tuple__167); + __pyx_tuple__162 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__162); + __Pyx_GIVEREF(__pyx_tuple__162); /* "PyCafe.pyx":45 * @@ -150276,9 +153905,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * _appname = _pymodule_parts[0] * */ - __pyx_tuple__169 = PyTuple_Pack(1, __pyx_kp_u__168); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(3, 45, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__169); - __Pyx_GIVEREF(__pyx_tuple__169); + __pyx_tuple__164 = PyTuple_Pack(1, __pyx_kp_u__163); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(3, 45, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__164); + __Pyx_GIVEREF(__pyx_tuple__164); /* "PyCafe.pyx":54 * include "PyCafeDefs.pxi" @@ -150287,20 +153916,20 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Decorator to validate handle/PV input argument. * */ - __pyx_tuple__170 = PyTuple_Pack(3, __pyx_n_s_func, __pyx_n_s_wrapper, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(3, 54, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__170); - __Pyx_GIVEREF(__pyx_tuple__170); - __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__170, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PyCafe_pyx, __pyx_n_s_verify_handlepv, 54, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(3, 54, __pyx_L1_error) + __pyx_tuple__165 = PyTuple_Pack(3, __pyx_n_s_func, __pyx_n_s_wrapper, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(3, 54, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__165); + __Pyx_GIVEREF(__pyx_tuple__165); + __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_PyCafe_pyx, __pyx_n_s_verify_handlepv, 54, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(3, 54, __pyx_L1_error) /* "(tree fragment)":1 * def __pyx_unpickle_CafeException(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ - __pyx_tuple__172 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(1, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__172); - __Pyx_GIVEREF(__pyx_tuple__172); - __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__172, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_CafeException, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(1, 1, __pyx_L1_error) + __pyx_tuple__167 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(1, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__167); + __Pyx_GIVEREF(__pyx_tuple__167); + __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_CafeException, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(1, 1, __pyx_L1_error) /* "View.MemoryView":286 * return self.name @@ -150309,9 +153938,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * cdef strided = Enum("") # default * cdef indirect = Enum("") */ - __pyx_tuple__174 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(1, 286, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__174); - __Pyx_GIVEREF(__pyx_tuple__174); + __pyx_tuple__169 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__169); + __Pyx_GIVEREF(__pyx_tuple__169); /* "View.MemoryView":287 * @@ -150320,9 +153949,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * cdef indirect = Enum("") * */ - __pyx_tuple__175 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(1, 287, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__175); - __Pyx_GIVEREF(__pyx_tuple__175); + __pyx_tuple__170 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(1, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__170); + __Pyx_GIVEREF(__pyx_tuple__170); /* "View.MemoryView":288 * cdef generic = Enum("") @@ -150331,9 +153960,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * */ - __pyx_tuple__176 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(1, 288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__176); - __Pyx_GIVEREF(__pyx_tuple__176); + __pyx_tuple__171 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(1, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__171); + __Pyx_GIVEREF(__pyx_tuple__171); /* "View.MemoryView":291 * @@ -150342,9 +153971,9 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * cdef indirect_contiguous = Enum("") * */ - __pyx_tuple__177 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(1, 291, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__177); - __Pyx_GIVEREF(__pyx_tuple__177); + __pyx_tuple__172 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__172); + __Pyx_GIVEREF(__pyx_tuple__172); /* "View.MemoryView":292 * @@ -150353,19 +153982,19 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * * */ - __pyx_tuple__178 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(1, 292, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__178); - __Pyx_GIVEREF(__pyx_tuple__178); + __pyx_tuple__173 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(1, 292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__173); + __Pyx_GIVEREF(__pyx_tuple__173); /* "(tree fragment)":1 * def __pyx_unpickle_Enum(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< * cdef object __pyx_PickleError * cdef object __pyx_result */ - __pyx_tuple__179 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(1, 1, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__179); - __Pyx_GIVEREF(__pyx_tuple__179); - __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(1, 1, __pyx_L1_error) + __pyx_tuple__174 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(1, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__174); + __Pyx_GIVEREF(__pyx_tuple__174); + __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__174, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -151032,7 +154661,7 @@ if (!__Pyx_RefNanny) { __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_split); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__169, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 45, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__164, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 45, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_pymodule_parts, __pyx_t_1) < 0) __PYX_ERR(3, 45, __pyx_L1_error) @@ -151174,24 +154803,24 @@ if (!__Pyx_RefNanny) { if (PyDict_SetItem(__pyx_d, __pyx_n_s_verify_handlepv, __pyx_t_1) < 0) __PYX_ERR(3, 54, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "PyCafe.pyx":238 + /* "PyCafe.pyx":237 * return EPICS_VERSION * * @verify_handlepv # <<<<<<<<<<<<<< * def setPyConnectCallbackFn(self, handlePV, cb: object = None): * if cb is None: */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 238, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":239 + /* "PyCafe.pyx":238 * * @verify_handlepv * def setPyConnectCallbackFn(self, handlePV, cb: object = None): # <<<<<<<<<<<<<< * if cb is None: * return */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setPyConnectCallbackFn); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 239, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setPyConnectCallbackFn); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151206,31 +154835,31 @@ if (!__Pyx_RefNanny) { __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(3, 238, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setPyConnectCallbackFn, __pyx_t_1) < 0) __PYX_ERR(3, 239, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setPyConnectCallbackFn, __pyx_t_1) < 0) __PYX_ERR(3, 238, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1371 + /* "PyCafe.pyx":1370 * ############################################################################ * * @verify_handlepv # <<<<<<<<<<<<<< * def isConnected(self, handlePV): * cdef str _METHOD = "isConnected" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1371, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1372 + /* "PyCafe.pyx":1371 * * @verify_handlepv * def isConnected(self, handlePV): # <<<<<<<<<<<<<< * cdef str _METHOD = "isConnected" * return self._c_cafe.isChannelConnected(handlePV) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_isConnected); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1372, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_isConnected); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151245,31 +154874,31 @@ if (!__Pyx_RefNanny) { __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(3, 1371, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_isConnected, __pyx_t_1) < 0) __PYX_ERR(3, 1372, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_isConnected, __pyx_t_1) < 0) __PYX_ERR(3, 1371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1395 + /* "PyCafe.pyx":1394 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def supplementHandle(self, handlePV): * #decorator casts handlePV to int */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1395, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1396 + /* "PyCafe.pyx":1395 * ############################################################################ * @verify_handlepv * def supplementHandle(self, handlePV): # <<<<<<<<<<<<<< * #decorator casts handlePV to int * cdef unsigned int handle = handlePV */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_supplementHandle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1396, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_supplementHandle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151284,31 +154913,31 @@ if (!__Pyx_RefNanny) { __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(3, 1395, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_supplementHandle, __pyx_t_1) < 0) __PYX_ERR(3, 1396, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_supplementHandle, __pyx_t_1) < 0) __PYX_ERR(3, 1395, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1438 + /* "PyCafe.pyx":1437 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def printHandle(self, handlePV): * self._c_cafe.printHandle(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1438, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1439 + /* "PyCafe.pyx":1438 * ############################################################################ * @verify_handlepv * def printHandle(self, handlePV): # <<<<<<<<<<<<<< * self._c_cafe.printHandle(handlePV) * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_printHandle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1439, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_printHandle); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151323,31 +154952,31 @@ if (!__Pyx_RefNanny) { __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(3, 1438, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_printHandle, __pyx_t_1) < 0) __PYX_ERR(3, 1439, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_printHandle, __pyx_t_1) < 0) __PYX_ERR(3, 1438, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1514 + /* "PyCafe.pyx":1513 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getStatus(self, handlePV): * return self.hh.getStatus(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1514, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1515 + /* "PyCafe.pyx":1514 * ############################################################################ * @verify_handlepv * def getStatus(self, handlePV): # <<<<<<<<<<<<<< * return self.hh.getStatus(handlePV) * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1515, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151362,31 +154991,31 @@ if (!__Pyx_RefNanny) { __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(3, 1514, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getStatus, __pyx_t_1) < 0) __PYX_ERR(3, 1515, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getStatus, __pyx_t_1) < 0) __PYX_ERR(3, 1514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1568 + /* "PyCafe.pyx":1567 * ############################################################################ * * @verify_handlepv # <<<<<<<<<<<<<< * def getDescription(self, handlePV): * cdef unsigned int handle = handlePV */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1568, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1569 + /* "PyCafe.pyx":1568 * * @verify_handlepv * def getDescription(self, handlePV): # <<<<<<<<<<<<<< * cdef unsigned int handle = handlePV * if not self.hh.hasDescription(handle): */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1569, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151401,31 +155030,31 @@ if (!__Pyx_RefNanny) { __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(3, 1568, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getDescription, __pyx_t_1) < 0) __PYX_ERR(3, 1569, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getDescription, __pyx_t_1) < 0) __PYX_ERR(3, 1568, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1579 + /* "PyCafe.pyx":1578 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def hasDescription(self, handlePV): * return self.hh.hasDescription(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1579, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1580 + /* "PyCafe.pyx":1579 * ############################################################################ * @verify_handlepv * def hasDescription(self, handlePV): # <<<<<<<<<<<<<< * return self.hh.hasDescription(handlePV) * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_hasDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1580, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_hasDescription); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151440,31 +155069,31 @@ if (!__Pyx_RefNanny) { __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(3, 1579, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_hasDescription, __pyx_t_1) < 0) __PYX_ERR(3, 1580, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_hasDescription, __pyx_t_1) < 0) __PYX_ERR(3, 1579, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1584 + /* "PyCafe.pyx":1583 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getUnits(self, handlePV): * cdef string valString */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1584, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1585 + /* "PyCafe.pyx":1584 * ############################################################################ * @verify_handlepv * def getUnits(self, handlePV): # <<<<<<<<<<<<<< * cdef string valString * self.hh.getUnits(handlePV, valString) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getUnits); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1585, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getUnits); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151479,31 +155108,31 @@ if (!__Pyx_RefNanny) { __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(3, 1584, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getUnits, __pyx_t_1) < 0) __PYX_ERR(3, 1585, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getUnits, __pyx_t_1) < 0) __PYX_ERR(3, 1584, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1594 + /* "PyCafe.pyx":1593 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getPrecision(self, handlePV): * cdef short precision = 0 */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1594, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1595 + /* "PyCafe.pyx":1594 * ############################################################################ * @verify_handlepv * def getPrecision(self, handlePV): # <<<<<<<<<<<<<< * cdef short precision = 0 * self.hh.getPrecision(handlePV, precision) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getPrecision); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1595, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getPrecision); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151518,31 +155147,31 @@ if (!__Pyx_RefNanny) { __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(3, 1594, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getPrecision, __pyx_t_1) < 0) __PYX_ERR(3, 1595, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getPrecision, __pyx_t_1) < 0) __PYX_ERR(3, 1594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1601 + /* "PyCafe.pyx":1600 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def hasAlarmStatusSeverity(self, handlePV): * return self.hh.hasAlarmStatusSeverity(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1601, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1602 + /* "PyCafe.pyx":1601 * ############################################################################ * @verify_handlepv * def hasAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< * return self.hh.hasAlarmStatusSeverity(handlePV) * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_hasAlarmStatusSeverity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1602, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_hasAlarmStatusSeverity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151557,31 +155186,31 @@ if (!__Pyx_RefNanny) { __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(3, 1601, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_hasAlarmStatusSeverity, __pyx_t_1) < 0) __PYX_ERR(3, 1602, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_hasAlarmStatusSeverity, __pyx_t_1) < 0) __PYX_ERR(3, 1601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1606 + /* "PyCafe.pyx":1605 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getAlarmStatusSeverity(self, handlePV): * cdef short aStatSev[2] */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1606, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1607 + /* "PyCafe.pyx":1606 * ############################################################################ * @verify_handlepv * def getAlarmStatusSeverity(self, handlePV): # <<<<<<<<<<<<<< * cdef short aStatSev[2] * self.hh.getAlarmStatusSeverity(handlePV, aStatSev) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getAlarmStatusSeverity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1607, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getAlarmStatusSeverity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151596,31 +155225,31 @@ if (!__Pyx_RefNanny) { __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(3, 1606, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getAlarmStatusSeverity, __pyx_t_1) < 0) __PYX_ERR(3, 1607, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getAlarmStatusSeverity, __pyx_t_1) < 0) __PYX_ERR(3, 1606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1613 + /* "PyCafe.pyx":1612 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getTimeStamp(self, handlePV): * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1613, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1614 + /* "PyCafe.pyx":1613 * ############################################################################ * @verify_handlepv * def getTimeStamp(self, handlePV): # <<<<<<<<<<<<<< * * cdef HandleHelper hh */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getTimeStamp); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1614, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getTimeStamp); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151635,31 +155264,31 @@ if (!__Pyx_RefNanny) { __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(3, 1613, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getTimeStamp, __pyx_t_1) < 0) __PYX_ERR(3, 1614, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getTimeStamp, __pyx_t_1) < 0) __PYX_ERR(3, 1613, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1626 + /* "PyCafe.pyx":1625 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getTimeStampAsDate(self, handlePV): * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1626, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1627 + /* "PyCafe.pyx":1626 * ############################################################################ * @verify_handlepv * def getTimeStampAsDate(self, handlePV): # <<<<<<<<<<<<<< * * cdef HandleHelper hh */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getTimeStampAsDate); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1627, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getTimeStampAsDate); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151674,31 +155303,31 @@ if (!__Pyx_RefNanny) { __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(3, 1626, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getTimeStampAsDate, __pyx_t_1) < 0) __PYX_ERR(3, 1627, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getTimeStampAsDate, __pyx_t_1) < 0) __PYX_ERR(3, 1626, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1787 + /* "PyCafe.pyx":1786 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getChannelInfo(self, handlePV): * cdef str _METHOD = "getChannelInfo(handlePV)" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1787, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1788 + /* "PyCafe.pyx":1787 * ############################################################################ * @verify_handlepv * def getChannelInfo(self, handlePV): # <<<<<<<<<<<<<< * cdef str _METHOD = "getChannelInfo(handlePV)" * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getChannelInfo); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1788, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getChannelInfo); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151713,31 +155342,31 @@ if (!__Pyx_RefNanny) { __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(3, 1787, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getChannelInfo, __pyx_t_1) < 0) __PYX_ERR(3, 1788, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getChannelInfo, __pyx_t_1) < 0) __PYX_ERR(3, 1787, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1811 + /* "PyCafe.pyx":1810 * * ################################################################################## * @verify_handlepv # <<<<<<<<<<<<<< * def getWFAsString(self, handlePV, cache: bool = False): * cdef str _METHOD = "getWFAsString" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1811, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1812 + /* "PyCafe.pyx":1811 * ################################################################################## * @verify_handlepv * def getWFAsString(self, handlePV, cache: bool = False): # <<<<<<<<<<<<<< * cdef str _METHOD = "getWFAsString" * cdef string strWF */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1812, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getWFAsString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151752,31 +155381,31 @@ if (!__Pyx_RefNanny) { __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(3, 1811, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getWFAsString, __pyx_t_1) < 0) __PYX_ERR(3, 1812, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getWFAsString, __pyx_t_1) < 0) __PYX_ERR(3, 1811, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1872 + /* "PyCafe.pyx":1871 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def isEnum(self, handlePV): * return self._c_cafe.isEnum(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1872, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1873 + /* "PyCafe.pyx":1872 * ############################################################################ * @verify_handlepv * def isEnum(self, handlePV): # <<<<<<<<<<<<<< * return self._c_cafe.isEnum(handlePV) * ############################################################################ */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_isEnum); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1873, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_isEnum); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151791,31 +155420,31 @@ if (!__Pyx_RefNanny) { __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(3, 1872, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_isEnum, __pyx_t_1) < 0) __PYX_ERR(3, 1873, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_isEnum, __pyx_t_1) < 0) __PYX_ERR(3, 1872, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1878 + /* "PyCafe.pyx":1877 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getEnumStrings(self, handlePV): * return self.hh.getEnumStrings(handlePV) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1878, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1879 + /* "PyCafe.pyx":1878 * ############################################################################ * @verify_handlepv * def getEnumStrings(self, handlePV): # <<<<<<<<<<<<<< * return self.hh.getEnumStrings(handlePV) * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getEnumStrings); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1879, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getEnumStrings); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151830,31 +155459,31 @@ if (!__Pyx_RefNanny) { __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(3, 1878, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getEnumStrings, __pyx_t_1) < 0) __PYX_ERR(3, 1879, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getEnumStrings, __pyx_t_1) < 0) __PYX_ERR(3, 1878, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1883 + /* "PyCafe.pyx":1882 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getEnumFromString(self, handlePV, str enumString): * cdef str _METHOD = "getEnumFromString" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1883, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1884 + /* "PyCafe.pyx":1883 * ############################################################################ * @verify_handlepv * def getEnumFromString(self, handlePV, str enumString): # <<<<<<<<<<<<<< * cdef str _METHOD = "getEnumFromString" * cdef short enumValue */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getEnumFromString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1884, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getEnumFromString); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151869,31 +155498,31 @@ if (!__Pyx_RefNanny) { __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(3, 1883, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getEnumFromString, __pyx_t_1) < 0) __PYX_ERR(3, 1884, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getEnumFromString, __pyx_t_1) < 0) __PYX_ERR(3, 1883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1897 + /* "PyCafe.pyx":1896 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): * cdef str _METHOD = "getStringFromEnum" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1897, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1898 + /* "PyCafe.pyx":1897 * ############################################################################ * @verify_handlepv * def getStringFromEnum(self, handlePV, unsigned short enumValue = 0): # <<<<<<<<<<<<<< * cdef str _METHOD = "getStringFromEnum" * cdef string enumString = self.hh.getStringFromEnum(handlePV, enumValue) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getStringFromEnum); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1898, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getStringFromEnum); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151908,31 +155537,31 @@ if (!__Pyx_RefNanny) { __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(3, 1897, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getStringFromEnum, __pyx_t_1) < 0) __PYX_ERR(3, 1898, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getStringFromEnum, __pyx_t_1) < 0) __PYX_ERR(3, 1897, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1920 + /* "PyCafe.pyx":1919 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def setDbrBase(self, handlePV, DBR_TYPE dbrBase): * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1920, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1921 + /* "PyCafe.pyx":1920 * ############################################################################ * @verify_handlepv * def setDbrBase(self, handlePV, DBR_TYPE dbrBase): # <<<<<<<<<<<<<< * * # Print Warning Message */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setDbrBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1921, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setDbrBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151947,31 +155576,31 @@ if (!__Pyx_RefNanny) { __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(3, 1920, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setDbrBase, __pyx_t_1) < 0) __PYX_ERR(3, 1921, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setDbrBase, __pyx_t_1) < 0) __PYX_ERR(3, 1920, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1935 + /* "PyCafe.pyx":1934 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getDbrBase(self, handlePV): * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1935, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1936 + /* "PyCafe.pyx":1935 * ############################################################################ * @verify_handlepv * def getDbrBase(self, handlePV): # <<<<<<<<<<<<<< * * cdef DBR_TYPE _cafeDbrType = DBR_PLAIN */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getDbrBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1936, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getDbrBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -151986,31 +155615,31 @@ if (!__Pyx_RefNanny) { __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(3, 1935, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getDbrBase, __pyx_t_1) < 0) __PYX_ERR(3, 1936, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getDbrBase, __pyx_t_1) < 0) __PYX_ERR(3, 1935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1946 + /* "PyCafe.pyx":1945 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def setGetCacheWaitPolicy( * self, handlePV, ChannelGetCacheWaitPolicyKind wpk): */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1946, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1947 + /* "PyCafe.pyx":1946 * ############################################################################ * @verify_handlepv * def setGetCacheWaitPolicy( # <<<<<<<<<<<<<< * self, handlePV, ChannelGetCacheWaitPolicyKind wpk): * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setGetCacheWaitPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1947, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setGetCacheWaitPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152025,31 +155654,31 @@ if (!__Pyx_RefNanny) { __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(3, 1946, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setGetCacheWaitPolicy, __pyx_t_1) < 0) __PYX_ERR(3, 1947, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setGetCacheWaitPolicy, __pyx_t_1) < 0) __PYX_ERR(3, 1946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":1997 + /* "PyCafe.pyx":1996 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def setGetActionWhenMonitorPolicy( * self, handlePV, ChannelGetActionWhenMonitorPolicyKind wmpk): */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1997, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":1998 + /* "PyCafe.pyx":1997 * ############################################################################ * @verify_handlepv * def setGetActionWhenMonitorPolicy( # <<<<<<<<<<<<<< * self, handlePV, ChannelGetActionWhenMonitorPolicyKind wmpk): * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setGetActionWhenMonitorPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1998, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_setGetActionWhenMonitorPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 1997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152064,31 +155693,31 @@ if (!__Pyx_RefNanny) { __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(3, 1997, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setGetActionWhenMonitorPolicy, __pyx_t_1) < 0) __PYX_ERR(3, 1998, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_setGetActionWhenMonitorPolicy, __pyx_t_1) < 0) __PYX_ERR(3, 1997, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":2039 + /* "PyCafe.pyx":2038 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getNonBlocking(self, handlePV): * '''Requires cafe.ca_flush_io by user. */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2039, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":2040 + /* "PyCafe.pyx":2039 * ############################################################################ * @verify_handlepv * def getNonBlocking(self, handlePV): # <<<<<<<<<<<<<< * '''Requires cafe.ca_flush_io by user. * In this resepct, it differs from cafe.getAsync */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getNonBlocking); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2040, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getNonBlocking); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152103,31 +155732,31 @@ if (!__Pyx_RefNanny) { __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(3, 2039, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getNonBlocking, __pyx_t_1) < 0) __PYX_ERR(3, 2040, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getNonBlocking, __pyx_t_1) < 0) __PYX_ERR(3, 2039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":2088 + /* "PyCafe.pyx":2087 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def get(self, handlePV = 0, str dt='native'): * cdef str _METHOD = "get(handlePV, dt)" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2088, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":2089 + /* "PyCafe.pyx":2088 * ############################################################################ * @verify_handlepv * def get(self, handlePV = 0, str dt='native'): # <<<<<<<<<<<<<< * cdef str _METHOD = "get(handlePV, dt)" * */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2089, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152142,31 +155771,31 @@ if (!__Pyx_RefNanny) { __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(3, 2088, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(3, 2089, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(3, 2088, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":2249 + /* "PyCafe.pyx":2248 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getList(self, handlePV, str dt='native'): * cdef str _METHOD = "getList" */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2249, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":2250 + /* "PyCafe.pyx":2249 * ############################################################################ * @verify_handlepv * def getList(self, handlePV, str dt='native'): # <<<<<<<<<<<<<< * cdef str _METHOD = "getList" * cdef unsigned int handle = handlePV */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getList); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2250, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getList); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152181,31 +155810,31 @@ if (!__Pyx_RefNanny) { __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(3, 2249, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getList, __pyx_t_1) < 0) __PYX_ERR(3, 2250, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getList, __pyx_t_1) < 0) __PYX_ERR(3, 2249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":2529 + /* "PyCafe.pyx":2528 * * ############################################################################ * @verify_handlepv # <<<<<<<<<<<<<< * def getArray(self, handlePV, str dt='native', str art='numpy'): * ############################################################################ */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2529, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":2530 + /* "PyCafe.pyx":2529 * ############################################################################ * @verify_handlepv * def getArray(self, handlePV, str dt='native', str art='numpy'): # <<<<<<<<<<<<<< * ############################################################################ * # Typed Memoryviews from K.W. Smith */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2530, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 2529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152220,31 +155849,31 @@ if (!__Pyx_RefNanny) { __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(3, 2529, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getArray, __pyx_t_1) < 0) __PYX_ERR(3, 2530, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getArray, __pyx_t_1) < 0) __PYX_ERR(3, 2529, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":3512 + /* "PyCafe.pyx":3602 * * ################################################################################## * @verify_handlepv # <<<<<<<<<<<<<< * def waitForGetEvent(self, handlePV): * */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3512, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":3513 + /* "PyCafe.pyx":3603 * ################################################################################## * @verify_handlepv * def waitForGetEvent(self, handlePV): # <<<<<<<<<<<<<< * * cdef unsigned int handle = handlePV */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_waitForGetEvent); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3513, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_waitForGetEvent); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 3603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152259,14 +155888,14 @@ if (!__Pyx_RefNanny) { __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(3, 3512, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_waitForGetEvent, __pyx_t_1) < 0) __PYX_ERR(3, 3513, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_waitForGetEvent, __pyx_t_1) < 0) __PYX_ERR(3, 3603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":5495 + /* "PyCafe.pyx":5700 * return mp * * def groupMonitor(self, ghandleName, object cb=None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -152275,7 +155904,7 @@ if (!__Pyx_RefNanny) { */ __pyx_k__91 = DBR_TIME; - /* "PyCafe.pyx":5496 + /* "PyCafe.pyx":5701 * * def groupMonitor(self, ghandleName, object cb=None, DBR_TYPE dbr=DBR_TIME, * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, # <<<<<<<<<<<<<< @@ -152284,7 +155913,7 @@ if (!__Pyx_RefNanny) { */ __pyx_k__92 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); - /* "PyCafe.pyx":5502 + /* "PyCafe.pyx":5707 * ################################################################################## * def groupMonitorStart(self, ghandleName, object cb=None, * DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< @@ -152293,7 +155922,7 @@ if (!__Pyx_RefNanny) { */ __pyx_k__93 = DBR_TIME; - /* "PyCafe.pyx":5503 + /* "PyCafe.pyx":5708 * def groupMonitorStart(self, ghandleName, object cb=None, * DBR_TYPE dbr=DBR_TIME, * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, # <<<<<<<<<<<<<< @@ -152302,42 +155931,42 @@ if (!__Pyx_RefNanny) { */ __pyx_k__94 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); - /* "PyCafe.pyx":5585 + /* "PyCafe.pyx":5792 * def groupMonitorStartWithCBList(self, * ghandleName, list cb=None, * DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< * unsigned int mask=\ * DBE_VALUE | DBE_LOG | DBE_ALARM, */ - __pyx_k__99 = DBR_TIME; + __pyx_k__97 = DBR_TIME; - /* "PyCafe.pyx":5587 + /* "PyCafe.pyx":5794 * DBR_TYPE dbr=DBR_TIME, * unsigned int mask=\ * DBE_VALUE | DBE_LOG | DBE_ALARM, # <<<<<<<<<<<<<< * unsigned short notify_milliseconds=0): * ############################################################################ */ - __pyx_k__100 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); + __pyx_k__98 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); - /* "PyCafe.pyx":6404 + /* "PyCafe.pyx":6611 * * ################################################################################## * @verify_handlepv # <<<<<<<<<<<<<< * def getNoMonitors(self, handlePV): * cdef unsigned int handle = handlePV */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6404, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":6405 + /* "PyCafe.pyx":6612 * ################################################################################## * @verify_handlepv * def getNoMonitors(self, handlePV): # <<<<<<<<<<<<<< * cdef unsigned int handle = handlePV * return self.hh.getNmonitor(handle) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getNoMonitors); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6405, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getNoMonitors); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152352,31 +155981,31 @@ if (!__Pyx_RefNanny) { __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(3, 6404, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getNoMonitors, __pyx_t_1) < 0) __PYX_ERR(3, 6405, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getNoMonitors, __pyx_t_1) < 0) __PYX_ERR(3, 6612, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":6412 + /* "PyCafe.pyx":6619 * * ################################################################################## * @verify_handlepv # <<<<<<<<<<<<<< * def getMonitorIDsInWaiting(self, handlePV): * cdef unsigned int handle = handlePV */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6412, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":6413 + /* "PyCafe.pyx":6620 * ################################################################################## * @verify_handlepv * def getMonitorIDsInWaiting(self, handlePV): # <<<<<<<<<<<<<< * cdef unsigned int handle = handlePV * return self.hh.getMonitorIDsInWaiting(handle) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getMonitorIDsInWaiting); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6413, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getMonitorIDsInWaiting); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152391,31 +156020,31 @@ if (!__Pyx_RefNanny) { __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(3, 6412, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getMonitorIDsInWaiting, __pyx_t_1) < 0) __PYX_ERR(3, 6413, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getMonitorIDsInWaiting, __pyx_t_1) < 0) __PYX_ERR(3, 6620, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":6420 + /* "PyCafe.pyx":6627 * * ################################################################################## * @verify_handlepv # <<<<<<<<<<<<<< * def getMonitorIDs(self, handlePV): * cdef unsigned int handle = handlePV */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6420, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":6421 + /* "PyCafe.pyx":6628 * ################################################################################## * @verify_handlepv * def getMonitorIDs(self, handlePV): # <<<<<<<<<<<<<< * cdef unsigned int handle = handlePV * return self.hh.getMonitorIDs(handle) */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getMonitorIDs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6421, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_getMonitorIDs); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152430,31 +156059,31 @@ if (!__Pyx_RefNanny) { __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(3, 6420, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getMonitorIDs, __pyx_t_1) < 0) __PYX_ERR(3, 6421, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_getMonitorIDs, __pyx_t_1) < 0) __PYX_ERR(3, 6628, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":6426 + /* "PyCafe.pyx":6633 * ############################################################################ * * @verify_handlepv # <<<<<<<<<<<<<< * def updateMonitorPolicyDeltaMS( * self, handlePV, unsigned int monid=0, unsigned int deltaMS=0): */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6426, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_verify_handlepv); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - /* "PyCafe.pyx":6427 + /* "PyCafe.pyx":6634 * * @verify_handlepv * def updateMonitorPolicyDeltaMS( # <<<<<<<<<<<<<< * self, handlePV, unsigned int monid=0, unsigned int deltaMS=0): * cdef unsigned int handle = handlePV */ - __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_updateMonitorPolicyDeltaMS); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6427, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_3, (PyObject *)__pyx_ptype_6PyCafe_CyCafe, __pyx_n_s_updateMonitorPolicyDeltaMS); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) { @@ -152469,48 +156098,48 @@ if (!__Pyx_RefNanny) { __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(3, 6426, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_updateMonitorPolicyDeltaMS, __pyx_t_1) < 0) __PYX_ERR(3, 6427, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_6PyCafe_CyCafe->tp_dict, __pyx_n_s_updateMonitorPolicyDeltaMS, __pyx_t_1) < 0) __PYX_ERR(3, 6634, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_6PyCafe_CyCafe); - /* "PyCafe.pyx":6436 + /* "PyCafe.pyx":6643 * ############################################################################ * def monitor( * self, handlePV, object cb=None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, * unsigned short notify_milliseconds=0): */ - __pyx_k__115 = DBR_TIME; + __pyx_k__110 = DBR_TIME; - /* "PyCafe.pyx":6437 + /* "PyCafe.pyx":6644 * def monitor( * self, handlePV, object cb=None, DBR_TYPE dbr=DBR_TIME, * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, # <<<<<<<<<<<<<< * unsigned short notify_milliseconds=0): * */ - __pyx_k__116 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); + __pyx_k__111 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); - /* "PyCafe.pyx":6444 + /* "PyCafe.pyx":6651 * ############################################################################ * def monitorStart( * self, handlePV, cb: object = None, DBR_TYPE dbr=DBR_TIME, # <<<<<<<<<<<<<< * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, * unsigned short notify_milliseconds=0): */ - __pyx_k__117 = DBR_TIME; + __pyx_k__112 = DBR_TIME; - /* "PyCafe.pyx":6445 + /* "PyCafe.pyx":6652 * def monitorStart( * self, handlePV, cb: object = None, DBR_TYPE dbr=DBR_TIME, * unsigned int mask=DBE_VALUE | DBE_LOG | DBE_ALARM, # <<<<<<<<<<<<<< * unsigned short notify_milliseconds=0): * */ - __pyx_k__118 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); + __pyx_k__113 = ((DBE_VALUE | DBE_LOG) | DBE_ALARM); /* "(tree fragment)":1 * def __pyx_unpickle_CafeException(__pyx_type, long __pyx_checksum, __pyx_state): # <<<<<<<<<<<<<< @@ -152552,7 +156181,7 @@ if (!__Pyx_RefNanny) { * cdef strided = Enum("") # default * cdef indirect = Enum("") */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__174, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 286, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__169, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XGOTREF(generic); __Pyx_DECREF_SET(generic, __pyx_t_1); @@ -152566,7 +156195,7 @@ if (!__Pyx_RefNanny) { * cdef indirect = Enum("") * */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__175, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 287, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__170, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XGOTREF(strided); __Pyx_DECREF_SET(strided, __pyx_t_1); @@ -152580,7 +156209,7 @@ if (!__Pyx_RefNanny) { * * */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__176, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 288, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__171, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XGOTREF(indirect); __Pyx_DECREF_SET(indirect, __pyx_t_1); @@ -152594,7 +156223,7 @@ if (!__Pyx_RefNanny) { * cdef indirect_contiguous = Enum("") * */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__177, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 291, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__172, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XGOTREF(contiguous); __Pyx_DECREF_SET(contiguous, __pyx_t_1); @@ -152608,7 +156237,7 @@ if (!__Pyx_RefNanny) { * * */ - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__178, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 292, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__173, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_XGOTREF(indirect_contiguous); __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_1); @@ -154134,33 +157763,6 @@ static PyObject* __Pyx_PyObject_Format(PyObject* obj, PyObject* format_spec) { } #endif -/* decode_c_bytes */ -static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( - const char* cstring, Py_ssize_t length, 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)) { - if (unlikely((start < 0) | (stop < 0))) { - if (start < 0) { - start += length; - if (start < 0) - start = 0; - } - if (stop < 0) - stop += length; - } - if (stop > length) - 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); - } -} - /* GetTopmostException */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * @@ -154217,6 +157819,38 @@ static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject } #endif +/* None */ +static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { + PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); +} + +/* decode_c_bytes */ +static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes( + const char* cstring, Py_ssize_t length, 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)) { + if (unlikely((start < 0) | (stop < 0))) { + if (start < 0) { + start += length; + if (start < 0) + start = 0; + } + if (stop < 0) + stop += length; + } + if (stop > length) + 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); + } +} + /* PyObjectGetMethod */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) { PyObject *attr; @@ -154344,11 +157978,6 @@ static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { return 0; } -/* None */ -static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { - PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); -} - /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) @@ -155704,203 +159333,6 @@ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { return 0; } -/* PyObjectCallMethod0 */ -static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { - PyObject *method = NULL, *result = NULL; - int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); - if (likely(is_method)) { - result = __Pyx_PyObject_CallOneArg(method, obj); - Py_DECREF(method); - return result; - } - if (unlikely(!method)) goto bad; - result = __Pyx_PyObject_CallNoArg(method); - Py_DECREF(method); -bad: - return result; -} - -/* RaiseNoneIterError */ -static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); -} - -/* UnpackTupleError */ -static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { - if (t == Py_None) { - __Pyx_RaiseNoneNotIterableError(); - } else if (PyTuple_GET_SIZE(t) < index) { - __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)); - } else { - __Pyx_RaiseTooManyValuesError(index); - } -} - -/* UnpackTuple2 */ -static CYTHON_INLINE int __Pyx_unpack_tuple2_exact( - PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) { - PyObject *value1 = NULL, *value2 = NULL; -#if CYTHON_COMPILING_IN_PYPY - value1 = PySequence_ITEM(tuple, 0); if (unlikely(!value1)) goto bad; - value2 = PySequence_ITEM(tuple, 1); if (unlikely(!value2)) goto bad; -#else - value1 = PyTuple_GET_ITEM(tuple, 0); Py_INCREF(value1); - value2 = PyTuple_GET_ITEM(tuple, 1); Py_INCREF(value2); -#endif - if (decref_tuple) { - Py_DECREF(tuple); - } - *pvalue1 = value1; - *pvalue2 = value2; - return 0; -#if CYTHON_COMPILING_IN_PYPY -bad: - Py_XDECREF(value1); - Py_XDECREF(value2); - if (decref_tuple) { Py_XDECREF(tuple); } - return -1; -#endif -} -static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, - int has_known_size, int decref_tuple) { - Py_ssize_t index; - PyObject *value1 = NULL, *value2 = NULL, *iter = NULL; - iternextfunc iternext; - iter = PyObject_GetIter(tuple); - if (unlikely(!iter)) goto bad; - if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; } - iternext = Py_TYPE(iter)->tp_iternext; - value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; } - value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; } - if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad; - Py_DECREF(iter); - *pvalue1 = value1; - *pvalue2 = value2; - return 0; -unpacking_failed: - if (!has_known_size && __Pyx_IterFinish() == 0) - __Pyx_RaiseNeedMoreValuesError(index); -bad: - Py_XDECREF(iter); - Py_XDECREF(value1); - Py_XDECREF(value2); - if (decref_tuple) { Py_XDECREF(tuple); } - return -1; -} - -/* dict_iter */ -static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, - Py_ssize_t* p_orig_length, int* p_source_is_dict) { - is_dict = is_dict || likely(PyDict_CheckExact(iterable)); - *p_source_is_dict = is_dict; - if (is_dict) { -#if !CYTHON_COMPILING_IN_PYPY - *p_orig_length = PyDict_Size(iterable); - Py_INCREF(iterable); - return iterable; -#elif PY_MAJOR_VERSION >= 3 - static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL; - PyObject **pp = NULL; - if (method_name) { - const char *name = PyUnicode_AsUTF8(method_name); - if (strcmp(name, "iteritems") == 0) pp = &py_items; - else if (strcmp(name, "iterkeys") == 0) pp = &py_keys; - else if (strcmp(name, "itervalues") == 0) pp = &py_values; - if (pp) { - if (!*pp) { - *pp = PyUnicode_FromString(name + 4); - if (!*pp) - return NULL; - } - method_name = *pp; - } - } -#endif - } - *p_orig_length = 0; - if (method_name) { - PyObject* iter; - iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); - if (!iterable) - return NULL; -#if !CYTHON_COMPILING_IN_PYPY - if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) - return iterable; -#endif - iter = PyObject_GetIter(iterable); - Py_DECREF(iterable); - return iter; - } - return PyObject_GetIter(iterable); -} -static CYTHON_INLINE int __Pyx_dict_iter_next( - PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, - PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { - PyObject* next_item; -#if !CYTHON_COMPILING_IN_PYPY - if (source_is_dict) { - PyObject *key, *value; - if (unlikely(orig_length != PyDict_Size(iter_obj))) { - PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); - return -1; - } - if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) { - return 0; - } - if (pitem) { - PyObject* tuple = PyTuple_New(2); - if (unlikely(!tuple)) { - return -1; - } - Py_INCREF(key); - Py_INCREF(value); - PyTuple_SET_ITEM(tuple, 0, key); - PyTuple_SET_ITEM(tuple, 1, value); - *pitem = tuple; - } else { - if (pkey) { - Py_INCREF(key); - *pkey = key; - } - if (pvalue) { - Py_INCREF(value); - *pvalue = value; - } - } - return 1; - } else if (PyTuple_CheckExact(iter_obj)) { - Py_ssize_t pos = *ppos; - if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0; - *ppos = pos + 1; - next_item = PyTuple_GET_ITEM(iter_obj, pos); - Py_INCREF(next_item); - } else if (PyList_CheckExact(iter_obj)) { - Py_ssize_t pos = *ppos; - if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0; - *ppos = pos + 1; - next_item = PyList_GET_ITEM(iter_obj, pos); - Py_INCREF(next_item); - } else -#endif - { - next_item = PyIter_Next(iter_obj); - if (unlikely(!next_item)) { - return __Pyx_IterFinish(); - } - } - if (pitem) { - *pitem = next_item; - } else if (pkey && pvalue) { - if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) - return -1; - } else if (pkey) { - *pkey = next_item; - } else { - *pvalue = next_item; - } - return 1; -} - /* UnpackUnboundCMethod */ static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { PyObject *method; @@ -156144,6 +159576,11 @@ static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { } #endif +/* RaiseNoneIterError */ +static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); +} + /* ExtTypeTest */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { diff --git a/src/cafe.cpp b/src/cafe.cpp index 13c9cf4..0d7af53 100644 --- a/src/cafe.cpp +++ b/src/cafe.cpp @@ -42,7 +42,7 @@ map, string> groupPseudoMap; cafeGroup_set gs; cafeConduit_set cs; - +epicsMutex cafeMutex; //5+ long long /** diff --git a/src/conduit.cpp b/src/conduit.cpp index 47a0d64..7b8d809 100644 --- a/src/conduit.cpp +++ b/src/conduit.cpp @@ -565,13 +565,14 @@ int Conduit::putWithCallback(pCallback callbackHandlerPut) const int Conduit::get(void) const { #define __METHOD__ "Conduit::get(void) " - /* For testing readout time for waveforms! + /* For testing readout time for waveforms! */ + /* using namespace boost::posix_time; ptime timeStart(microsec_clock::local_time()); double timeElapsed=0; unsigned int nPoll=0; - - for (int i=0; i< 100000; ++i) { + unsigned nevent = 10; + for (int i=0; i< nevent; ++i) { ca_array_get(channelRequestMetaData.dbrDataType, channelRequestMetaData.nelem, channelRegalia.channelID,dataBuffer); } @@ -580,7 +581,8 @@ int Conduit::get(void) const timeElapsed= (double) duration.total_microseconds()/1000000.0; std::cout << "Time Elapsed " << timeElapsed << std::endl; - */ + std::cout << "Time Elapsed/per event " << timeElapsed/nevent << std::endl; + */ return ca_array_get(channelRequestMetaData.dbrDataType, channelRequestMetaData.nelem, channelRegalia.channelID, dataBuffer); @@ -597,6 +599,47 @@ int Conduit::getWithCallback(pCallback callbackHandlerGet) const { #define __METHOD__ "Conduit::getCallback(pCallback callbackHandlerGet) " + /* + if (channelRequestMetaData.nelem > 1) { + + using namespace boost::posix_time; + ptime timeStart(microsec_clock::local_time()); + double timeElapsed=0; + unsigned int nPoll=0; + unsigned int nevent = 1000; + + std::cout << "NELM ==> " << channelRequestMetaData.nelem << std::endl; + + for (int i=0; i< nevent; ++i) { + ca_array_get(channelRequestMetaData.dbrDataType, channelRequestMetaData.nelem, + channelRegalia.channelID,dataBuffer); + } + ptime timeEnd(microsec_clock::local_time()); + time_duration duration(timeEnd-timeStart); + timeElapsed= (double) duration.total_microseconds()/1000000.0; + + std::cout << "Time Elapsed nevents " << timeElapsed << " " << nevent << std::endl; + std::cout << "Time Elapsed/per event " << timeElapsed/nevent << std::endl; + + ptime timeStart2(microsec_clock::local_time()); + timeElapsed=0; + nPoll=0; + + for (int i=0; i&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/cafe pkgincludedir = $(includedir)/cafe pkglibdir = $(libdir)/cafe @@ -83,8 +39,7 @@ am__append_1 = PyCafe.cpp # bitshuffle/bitshuffle_core.c bitshuffle/bitshuffle.c bitshuffle/iochain.c subdir = src -DIST_COMMON = $(srcdir)/makefile.in $(srcdir)/makefile.am \ - $(top_srcdir)/./depcomp +DIST_COMMON = $(srcdir)/makefile.am $(srcdir)/makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ @@ -117,12 +72,6 @@ am__nobase_list = $(am__nobase_strip_setup); \ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libcafe_la_LIBADD = @@ -152,94 +101,38 @@ am_libcafe_la_OBJECTS = cafe.lo cafeCache.lo cafeGroup.lo \ policyHelper.lo conduitGroup.lo connectGroup.lo transpose.lo \ restorePVGroupXMLParser.lo $(am__objects_1) $(am__objects_2) libcafe_la_OBJECTS = $(am_libcafe_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -am__v_lt_1 = -libcafe_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ +libcafe_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libcafe_la_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_$(V)) -am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -am__v_at_1 = DEFAULT_INCLUDES = -I. -I$(top_builddir)/./include depcomp = $(SHELL) $(top_srcdir)/./depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_$(V)) -am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) -am__v_CXX_0 = @echo " CXX " $@; -am__v_CXX_1 = +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CXXLD = $(am__v_CXXLD_$(V)) -am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CXXLD_0 = @echo " CXXLD " $@; -am__v_CXXLD_1 = +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ SOURCES = $(libcafe_la_SOURCES) DIST_SOURCES = $(am__libcafe_la_SOURCES_DIST) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing aclocal-1.13 -AMTAR = $${TAR-tar} +ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run aclocal-1.11 +AMTAR = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run tar #if HAVE_PYCAFE_EXT_ #libcafe_la_SOURCES += PyCafe.cpp @@ -248,20 +141,19 @@ AMTAR = $${TAR-tar} #if HAVE_PYTHON_ #libcafe_la_SOURCES += pycafe/PyCafe.cpp #endif -AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -I$(top_srcdir)/include -AM_DEFAULT_VERBOSITY = 1 -AM_LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +AM_CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml -I$(top_srcdir)/include +AM_LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib AR = ar -AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoconf -AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing autoheader -AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing automake-1.13 +AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoconf +AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoheader +AUTOMAKE = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run automake-1.11 AWK = gawk CAFE_CPPFLAGS = -I$(top_srcdir)/include CC = /opt/psi/Programming/gcc/7.3.0/bin/gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = /opt/psi/Programming/gcc/7.3.0/bin/gcc -E -CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base-7.0.6/include/ -I/usr/local/epics/base-7.0.6/include/os/Linux -I/usr/local/epics/base-7.0.6/include/compiler/gcc -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml +CPPFLAGS = -fexceptions -fPIC -std=c++1z -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/opt/gfa/python-3.5/latest/include/python3.5m -I/opt/gfa/python-3.5/latest/lib/python3.5/site-packages/numpy/core/include -I/opt/gfa/python-3.5/latest/include -I/opt/gfa/python-3.5/latest/include/QtCore -I/opt/gfa/python-3.5/latest/include/QtXml CXX = /opt/psi/Programming/gcc/7.3.0/bin/g++ CXXCPP = /opt/psi/Programming/gcc/7.3.0/bin/g++ -E CXXDEPMODE = depmode=gcc3 @@ -275,17 +167,17 @@ DUMPBIN = ECHO_C = ECHO_N = -n ECHO_T = -EGREP = /usr/bin/grep -E +EGREP = /bin/grep -E EXEEXT = -FGREP = /usr/bin/grep -F -GREP = /usr/bin/grep +FGREP = /bin/grep -F +GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s LD = /usr/bin/ld -m elf_x86_64 -LDFLAGS = -L/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -Wl,-rpath,/usr/local/epics/base-7.0.6/lib/RHEL7-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib +LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib LIBOBJS = LIBS = -lQtXml -lQtCore -lpython3.5m LIBTOOL = $(SHELL) $(top_builddir)/libtool @@ -293,9 +185,9 @@ LIPO = LN_S = ln -s LTLIBOBJS = LT_SYS_LIBRARY_PATH = -MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing makeinfo +MAKEINFO = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run makeinfo MANIFEST_TOOL = : -MKDIR_P = /usr/bin/mkdir -p +MKDIR_P = /bin/mkdir -p NM = /usr/bin/nm -B NMEDIT = OBJDUMP = objdump @@ -305,17 +197,16 @@ OTOOL64 = PACKAGE = cafe PACKAGE_BUGREPORT = Bug reports to: jan.chrin@psi.ch PACKAGE_NAME = CAFE -PACKAGE_STRING = CAFE 1.15.0 +PACKAGE_STRING = CAFE 1.15.1 PACKAGE_TARNAME = cafe -PACKAGE_URL = -PACKAGE_VERSION = 1.15.0 +PACKAGE_VERSION = 1.15.1 PATH_SEPARATOR = : RANLIB = ranlib -SED = /usr/bin/sed +SED = /bin/sed SET_MAKE = SHELL = /bin/sh STRIP = strip -VERSION = 1.15.0 +VERSION = 1.15.1 abs_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/src abs_srcdir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/src abs_top_builddir = /afs/psi.ch/project/cafe/gitlab/CAFE/cpp @@ -327,8 +218,8 @@ ac_ct_DUMPBIN = am__include = include am__leading_dot = . am__quote = -am__tar = $${TAR-tar} chof - "$$tardir" -am__untar = $${TAR-tar} xf - +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - bindir = ${exec_prefix}/bin build = x86_64-unknown-linux-gnu build_alias = @@ -350,15 +241,15 @@ htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/install-sh -libdir = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0/lib/RHEL7-x86_64 +libdir = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0/lib/SL6-x86_64 libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man -mkdir_p = $(MKDIR_P) +mkdir_p = /bin/mkdir -p oldincludedir = /usr/include pdfdir = ${docdir} -prefix = /opt/gfa/cafe/cpp/cafe-1.15.0-py35-gcc-7.3.0 +prefix = /opt/gfa/cafe/cpp/cafe-1.15.1-epics3-py35-gcc-7.3.0 program_transform_name = s,x,x, psdir = ${docdir} sbindir = ${exec_prefix}/sbin @@ -378,7 +269,7 @@ lib_LTLIBRARIES = libcafe.la #2nd: age #3rd: revision #1.9.1 1.10.2 1.11.0 1.11.1 1.12.0 1.12.1 1.12.2 1.12.4 -libcafe_la_LDFLAGS = -version-info 16:0:15 +libcafe_la_LDFLAGS = -version-info 16:1:15 libcafe_la_SOURCES = cafe.cpp cafeCache.cpp cafeGroup.cpp \ cafeVectors.cpp cafeXML.cpp callbackHandlerCreate.cpp \ callbackHandlerMonitor.cpp conduit.cpp connect.cpp \ @@ -422,9 +313,9 @@ $(top_srcdir)/configure: $(am__configure_deps) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): - install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ @@ -432,8 +323,6 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) else :; fi; \ done; \ test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } @@ -449,14 +338,12 @@ uninstall-libLTLIBRARIES: clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done bitshuffle/$(am__dirstamp): @$(MKDIR_P) bitshuffle @: > bitshuffle/$(am__dirstamp) @@ -469,14 +356,17 @@ bitshuffle/bitshuffle.lo: bitshuffle/$(am__dirstamp) \ bitshuffle/$(DEPDIR)/$(am__dirstamp) bitshuffle/iochain.lo: bitshuffle/$(am__dirstamp) \ bitshuffle/$(DEPDIR)/$(am__dirstamp) - -libcafe.la: $(libcafe_la_OBJECTS) $(libcafe_la_DEPENDENCIES) $(EXTRA_libcafe_la_DEPENDENCIES) - $(AM_V_CXXLD)$(libcafe_la_LINK) -rpath $(libdir) $(libcafe_la_OBJECTS) $(libcafe_la_LIBADD) $(LIBS) +libcafe.la: $(libcafe_la_OBJECTS) $(libcafe_la_DEPENDENCIES) + $(libcafe_la_LINK) -rpath $(libdir) $(libcafe_la_OBJECTS) $(libcafe_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) - -rm -f bitshuffle/*.$(OBJEXT) - -rm -f bitshuffle/*.lo + -rm -f bitshuffle/bitshuffle.$(OBJEXT) + -rm -f bitshuffle/bitshuffle.lo + -rm -f bitshuffle/bitshuffle_core.$(OBJEXT) + -rm -f bitshuffle/bitshuffle_core.lo + -rm -f bitshuffle/iochain.$(OBJEXT) + -rm -f bitshuffle/iochain.lo distclean-compile: -rm -f *.tab.c @@ -511,52 +401,52 @@ include bitshuffle/$(DEPDIR)/bitshuffle_core.Plo include bitshuffle/$(DEPDIR)/iochain.Plo .c.o: - $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ $(am__mv) $$depbase.Tpo $$depbase.Po -# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< +# $(COMPILE) -c -o $@ $< .c.obj: - $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ $(am__mv) $$depbase.Tpo $$depbase.Po -# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` +# $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: - $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ $(am__mv) $$depbase.Tpo $$depbase.Plo -# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# source='$<' object='$@' libtool=yes \ # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< +# $(LTCOMPILE) -c -o $@ $< .cpp.o: - $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ $(am__mv) $$depbase.Tpo $$depbase.Po -# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ -# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ $< +# $(CXXCOMPILE) -c -o $@ $< .cpp.obj: - $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ $(am__mv) $$depbase.Tpo $$depbase.Po -# $(AM_V_CXX)source='$<' object='$@' libtool=no \ +# source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ -# $(AM_V_CXX_no)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` +# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: - $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ $(am__mv) $$depbase.Tpo $$depbase.Plo -# $(AM_V_CXX)source='$<' object='$@' libtool=yes \ +# source='$<' object='$@' libtool=yes \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ -# $(AM_V_CXX_no)$(LTCXXCOMPILE) -c -o $@ $< +# $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo @@ -565,15 +455,26 @@ clean-libtool: -rm -rf .libs _libs -rm -rf bitshuffle/.libs bitshuffle/_libs -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ - $(am__define_uniq_tagged_files); \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ @@ -585,11 +486,15 @@ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $$unique; \ fi; \ fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique @@ -598,21 +503,6 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -664,15 +554,10 @@ install-am: all-am installcheck: installcheck-am install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: @@ -759,19 +644,19 @@ uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip -.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-libLTLIBRARIES install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES + tags uninstall uninstall-am uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/src/makefile.am b/src/makefile.am index e71c338..530f024 100644 --- a/src/makefile.am +++ b/src/makefile.am @@ -12,7 +12,7 @@ lib_LTLIBRARIES = libcafe.la #2nd: age #3rd: revision #1.9.1 1.10.2 1.11.0 1.11.1 1.12.0 1.12.1 1.12.2 1.12.4 -libcafe_la_LDFLAGS = -version-info 16:0:15 +libcafe_la_LDFLAGS = -version-info 16:1:15 libcafe_la_SOURCES = cafe.cpp cafeCache.cpp cafeGroup.cpp cafeVectors.cpp cafeXML.cpp \ callbackHandlerCreate.cpp callbackHandlerMonitor.cpp conduit.cpp connect.cpp connectCallbacks.cpp \ diff --git a/src/methodCallbacks.cpp b/src/methodCallbacks.cpp index 625bad7..38f345b 100644 --- a/src/methodCallbacks.cpp +++ b/src/methodCallbacks.cpp @@ -123,7 +123,7 @@ void CALLBACK_CAFE::PyHandlerGet( struct event_handler_args args) if (it_handle != handle_index.end()) { - + ChannelRequestStatus channelRequestStatusGet=(*it_handle).getChannelRequestStatusGet(); channelRequestStatusGet.setCallbackKind(false, true); @@ -138,6 +138,7 @@ void CALLBACK_CAFE::PyHandlerGet( struct event_handler_args args) { cafeMutex.unlock(); } + (*it_handle).PyGetHandler(); } else