update
This commit is contained in:
@@ -395,7 +395,8 @@ class AnalysisProcedure(QObject):
|
||||
height = 50.0
|
||||
else:
|
||||
height = 0.005
|
||||
|
||||
|
||||
#returns indices of peaks, and dictionary of properties
|
||||
y1_peaks_pre = signal.find_peaks(self.y1_sample, height=height,
|
||||
distance=10)
|
||||
|
||||
|
||||
12
tina.py
12
tina.py
@@ -20,7 +20,17 @@ from apps4ops.hipa.enumkind import ElogHIPA
|
||||
from src.gui import AppGui
|
||||
from pyrcc5 import tina_resources
|
||||
|
||||
|
||||
#try:
|
||||
# import pyscan
|
||||
# import pyscan.interface.pyScan as PyScan
|
||||
#except:
|
||||
# sys.path.append('/hipa/bd/applications/deps/apps4ops/v1.12.0/common/packages/')
|
||||
#or insert to jump the queue
|
||||
#sys.path.insert(0,'/hipa/bd/applications/deps/apps4ops/v1.12.0/common/packages/')
|
||||
# import pyscan
|
||||
# import pyscan.interface.pyScan as PyScan
|
||||
# print("from common.packages import pyscan")
|
||||
|
||||
_pymodule = os.path.basename(__file__)
|
||||
_appname, _appext = _pymodule.split('.')
|
||||
_abspath = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
13
tina.sh
13
tina.sh
@@ -5,7 +5,8 @@ cd /hipa/bd/applications/tina/devl
|
||||
appNameDefault="tina.sh"
|
||||
|
||||
module unload gcc
|
||||
module load gcc/7.5.0
|
||||
module load gcc/7.3.0
|
||||
|
||||
|
||||
if [ -z "$PS1" ] # no prompt?
|
||||
### if [ -v PS1 ] # On Bash 4.2+ ...
|
||||
@@ -18,12 +19,12 @@ else
|
||||
fi
|
||||
|
||||
_EPICS_HOST_ARCH=${RHREL}-x86_64
|
||||
|
||||
_EPICS_BASE=base-7.0.8
|
||||
|
||||
# Select Python Version here. Currently one of 3.5, 3.7, 3.8 and 3.10
|
||||
PYTHON_VERSION=3.10
|
||||
#cafe-1.20.0-gcc-7.5.0
|
||||
PYTHON_PATH=.:/opt/gfa/cafe/python/pycafe/cafe-1.21.0/lib/${_EPICS_HOST_ARCH}:/hipa/bd/applications/deps/apps4ops/v1.12.0
|
||||
PYTHON_PATH=.:/opt/gfa/cafe/python/pycafe/cafe-1.21.0-0/lib/${_EPICS_HOST_ARCH}:/hipa/bd/applications/deps/apps4ops/v1.12.0
|
||||
|
||||
if [ "$1" ]; then
|
||||
|
||||
@@ -35,7 +36,7 @@ if [ "$1" ]; then
|
||||
PYTHON_PATH=.:/opt/gfa/cafe/python/pycafe/cafe-1.21.0/lib/${_EPICS_HOST_ARCH}:/hipa/bd/applications/deps/apps4ops/v1.12.0
|
||||
#module unload gcc
|
||||
#module load gcc/10.4.0
|
||||
|
||||
export LD_PRELOAD=/usr/local/epics/${_EPICS_BASE}/lib/${_EPICS_HOST_ARCH}/libca.so:/usr/local/epics/${_EPICS_BASE}/lib/${_EPICS_HOST_ARCH}/libCom.so
|
||||
elif [ "$1" == "3.8" -o "$1" == "38" ]; then
|
||||
PYTHON_VERSION=3.8
|
||||
#cafe-1.19.3
|
||||
@@ -94,6 +95,7 @@ echo "nameLog: $nameLog"
|
||||
|
||||
python wakeup.py 00:00 &
|
||||
|
||||
|
||||
if [ "${STDOUT_FLAG}" -gt "0" ] ; then
|
||||
#if changing the std::out destination, remember to also change it in your json config file (for reading)
|
||||
if test -f "$STDOUT_DIR/${nameLog}.log---"; then
|
||||
@@ -119,4 +121,7 @@ else
|
||||
python ${name}.py -u ${name}.json &
|
||||
fi
|
||||
|
||||
if [ "${PYTHON_VERSION}" == "3.7" ] ; then
|
||||
unset LD_PRELOAD
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user