Skip to content
Snippets Groups Projects
Commit 68c6bf5a authored by Matthias Reich's avatar Matthias Reich
Browse files

Adjust for netlib and further improve NAG handling

Change-Id: I781dc1a2dc18a9920ad726c9cd5006b0c67b7291
Reviewed-on: https://gerrit.aug.ipp.mpg.de/c/ipp/aug/ecrh/pytorbeam/+/12068


Reviewed-by: default avatarMatthias Reich <matthias.reich@ipp.mpg.de>
Tested-by: default avatarMatthias Reich <matthias.reich@ipp.mpg.de>
parent 132521e5
Branches
No related tags found
No related merge requests found
#!/usr/bin/env python
import sys
sys.path.append('/u/rem/soft/pyddww')
from ddww import dd
from math import exp
from numpy import zeros
def neprof(coeff, lam):
coeff[1] = coeff.sum()
rho = [i/30. for i in range(40)]
nep = zeros(40)
nep = [ coeff[1] * exp(-lam * (rho - 1)) if rho > 1 else rho ]
def getTeprof(shot, diag='TBM', experiment='AUGD'):
sf = dd.shotfile()
sf.open(diag, shot, experiment=experiment)
if __name__ == "__main__":
main()
\ No newline at end of file
......@@ -21,8 +21,7 @@ except Exception:
basepath = '../libtorbeam/tests/'
def decode_libdir(libdir):
res = libdir.replace('^^^', '../')
res = res.replace('^', '/')+'/'
res = '../'+libdir.replace('^', '/')[3:] if libdir.startswith('^^^') else libdir.replace('^', '/')
return res
#print ('================================')
......
......
......@@ -72,7 +72,7 @@ if [[ "$bdir" == "" ]]; then
bdir="../libtorbeam/lib/"
fi
echo Testing libs in directory: $bdir ===================
libdir=`echo $bdir | tr . ^ | tr / ^ `
libdir=`echo $bdir | tr / ^ `
# nocompile switch skips compilation step
if [[ $(contains "$@" "nocompile") == "-1" ]] ; then
......@@ -85,6 +85,10 @@ fi
export HYPOTHESIS_PROFILE=full
if [ $(contains "$@" "NAG") != "-1" ]; then
export NAG_KUSARI_FILE=lserv1.rzg.mpg.de:7733
fi
if [ $(contains "$@" "debug") != "-1" ]; then
export HYPOTHESIS_PROFILE=debug
fi
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment