This commit is contained in:
8
script/TerstRetCall.py
Normal file
8
script/TerstRetCall.py
Normal file
@@ -0,0 +1,8 @@
|
||||
#from TestRet import *
|
||||
|
||||
print run("TestRet")
|
||||
print _
|
||||
print "PASS"
|
||||
|
||||
|
||||
print get_return()
|
||||
14
script/TestRet.py
Normal file
14
script/TestRet.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#print __name__
|
||||
#from startup import *
|
||||
|
||||
is_panel = get_exec_pars().source != CommandSource.ui #Must be checked before callin "run"
|
||||
|
||||
|
||||
print is_panel, get_exec_pars().source
|
||||
ret = []
|
||||
|
||||
for i in range(10):
|
||||
ret.extend([i])
|
||||
print "OK"
|
||||
|
||||
set_return(ret)
|
||||
@@ -8,6 +8,16 @@ import ch.psi.pshell.crlogic.CrlogicPositioner as CrlogicPositioner
|
||||
import ch.psi.pshell.crlogic.CrlogicSensor as CrlogicSensor
|
||||
|
||||
|
||||
|
||||
###################################################################################################
|
||||
# Layout setup
|
||||
###################################################################################################
|
||||
import ch.psi.pshell.data.LayoutSF as LayoutSF
|
||||
|
||||
LayoutSF.setExperimentArguments([PiezoRoll1, testd, pv, motor, pe, cv, en, sin])
|
||||
|
||||
|
||||
|
||||
#Libraries
|
||||
#import Jama.Matrix
|
||||
#sys.path.append('/Users/gobbo_a/dev/pshell/config/home/script/Lib/diffcalc')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
set_exec_pars(persist=False)
|
||||
set_exec_pars(save=False)
|
||||
set_preference(Preference.PLOT_DISABLED, True)
|
||||
|
||||
plots = None
|
||||
|
||||
26
script/test/TestJyNI.py
Normal file
26
script/test/TestJyNI.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import datetime
|
||||
|
||||
#sys.path.insert(0, "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload")
|
||||
print datetime.__doc__
|
||||
|
||||
#sys.path.insert(0, "/Users/gobbo_a/dev/pshell/pshell/build/libs/Lib")
|
||||
#sys.path.insert(0, "/Users/gobbo_a/dev/pshell/config/home/extensions/JyNI.jar")
|
||||
#sys.path.insert(0, "/Users/gobbo_a/dev/pshell/config/home/disabled/JYNI")
|
||||
|
||||
#sys.path.insert(0, "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7")
|
||||
#sys.path.insert(0, "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages")
|
||||
#sys.path.insert(0, "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core")
|
||||
#sys.path.insert(0, "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages")
|
||||
print "Start"
|
||||
print sys.path
|
||||
import numpy
|
||||
|
||||
print sys.path
|
||||
|
||||
|
||||
|
||||
import datetime
|
||||
print datetime.__doc__
|
||||
import sys
|
||||
|
||||
import numpy
|
||||
10
script/test/TestRet.py
Normal file
10
script/test/TestRet.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
ret = []
|
||||
|
||||
for i in range(10):
|
||||
ret.extend([i])
|
||||
print "X"
|
||||
|
||||
set_return(ret)
|
||||
|
||||
@@ -1 +1 @@
|
||||
[ "Change event series", [ ], [ [ "Channel", "TESTIOC:TESTSINUS:SinCalc?monitored=true", 2, 0.1, "Enabled" ] ], false, [ ], "", 50, 0.0, 0.1, true, true, true, true, "", "", "Default", "h5", 0, null, null, "Positioner", false ]
|
||||
[ "Continuous", [ [ "Device", "motor", 0.0, 5.0, 0.1 ] ], [ [ "Device", "sin", 2, 0.1, "Enabled" ] ], false, [ ], "", 1, 0.0, 0.1, false, false, true, true, "", "", "Default", "h5", 0, null, null, "Positioner", false, false ]
|
||||
@@ -2,8 +2,8 @@
|
||||
Line Scan
|
||||
'''
|
||||
|
||||
import ch.psi.pshell.data.LayoutSF as LayoutSF
|
||||
LayoutSF.setExperimentArguments([sin, out])
|
||||
#import ch.psi.pshell.data.LayoutSF as LayoutSF
|
||||
#LayoutSF.setExperimentArguments([sin, out])
|
||||
|
||||
|
||||
print get_exec_pars().path
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
start = time.time()
|
||||
|
||||
#setup_plotting( enable_table=False)
|
||||
#set_exec_pars(accumulate = False, persist = False)
|
||||
#set_exec_pars(keep = False, save = False)
|
||||
#set_preference(Preference.PLOT_TYPES, {det.getDataMatrix():"ch.psi.pshell.plot.MatrixPlotRenderer"})
|
||||
#tscan(det.getDataMatrix(), 1000,0.00)
|
||||
|
||||
|
||||
1
script/test/test_cam.scan
Normal file
1
script/test/test_cam.scan
Normal file
@@ -0,0 +1 @@
|
||||
[ "Time series", [ ], [ [ "CamServer", "http://localhost:8889/simulation_sp intensity", 3, -1.0, "Enabled" ], [ "CamServer", "http://localhost:8889/simulation_sp?channel=intensity", 1, 0, "Enabled" ], [ "CamServer", "tcp://Alexandres-MBP.psi.ch:11112?channel=intensity", 1, 0, "Enabled" ], [ "CamServer", "tcp://Alexandres-MBP.psi.ch:11112 intensity", 1, 0, "Enabled" ] ], false, [ ], "", 5, 50.0, 0.1, true, true, false, true, "", "", "Default", "h5", 0, null, null, "Time", false, true ]
|
||||
Reference in New Issue
Block a user