Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:17

0001 #!/bin/bash 
0002 
0003 usage(){ cat << EOU
0004 SGLFW__DEPTH.sh 
0005 =================
0006 
0007 ~/o/sysrap/tests/SGLFW__DEPTH.sh
0008 
0009 EXE=CSGOptiXRenderInteractiveTest ~/o/sysrap/tests/SGLFW__DEPTH.sh
0010 
0011 imshow plotting of depth .npy 
0012 
0013 
0014 EOU
0015 }
0016 
0017 
0018 cd $(dirname $(realpath $BASH_SOURCE))
0019 
0020 script=SGLFW__DEPTH.py 
0021 defarg="info_ana"
0022 vars="BASH_SOURCE PWD script arg defarg GEOM exe EXE NPY"
0023 
0024 source $HOME/.opticks/GEOM/GEOM.sh 
0025 
0026 
0027 exe=SGLFW_SOPTIX_Scene_test
0028 #exe=CSGOptiXRenderInteractiveTest
0029 EXE=${EXE:-$exe}
0030 
0031 ls -1 $TMP/GEOM/$GEOM/$EXE/*_depth.npy
0032 npy=$(ls -1 $TMP/GEOM/$GEOM/$EXE/*_depth.npy | tail -1)
0033 
0034 export NPY=$npy
0035 
0036 arg=${1:-$defarg}
0037 if [ "${arg/info}" != "$arg" ]; then
0038    for var in $vars ; do printf "%20s : %s \n" "$var" "${!var}" ; done
0039 fi 
0040 
0041 if [ "${arg/ana}" != "$arg" ]; then
0042    ${IPYTHON:-ipython} -i --pdb $script 
0043 fi 
0044 
0045