Commit 00287451 authored by Roberto Arturo Homs-Regojo's avatar Roberto Arturo Homs-Regojo
Browse files

autocommit Wed May 5 01:05:01 CEST 2021

parent 046cef2d
......@@ -11,8 +11,8 @@ controller:
steps_per_unit: 1
velocity: 5
acceleration: 200
low_limit: 63.000488
high_limit: 12.000487999999997
low_limit: 68.81769700000001
high_limit: 6.617697000000007
low_endswitch_type: 2
high_endswitch_type: 2
hw_low_limit: -10000.0
......
#
# BLISS_CMD = 'dkpatchmesh(0.4,800,0.4,800,0.004,1,1, retveloc=0.1)'
#
# ==========> bliss output
EH2 [93]: mvr(ustrx,-10)
Moving ustrx from -77.0004 to -87.0002
EH2 [94]: mvr(ustrx,-10)
Moving ustrx from -87.0004 to -97.0002
EH2 [95]: newproposal('blc12965')
!!! === KeyError: '__path__' === !!! ( for more details type cmd 'last_error' )
EH2 [96]:
EH2 [96]: last_error
Out [96]: 04/05/2021 10:17:14 Traceback (most recent call last):
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 885, in embed
cmd_line_i._execute(inp)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 481, in _execute
raise exception # .with_traceback(exception.__traceback__)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 472, in _execute_task
self._execute_line(*args, **kwargs)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 411, in _execute_line
self._eval_line(line)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 421, in _eval_line
result = eval(code, self.get_globals(), self.get_locals())
File "<stdin>", line 1, in <module>
File "/users/blissadm/conda/miniconda/envs/bliss_dev/lib/python3.7/site-packages/typeguard/__init__.py", line 784, in wrapper
retval = func(*args, **kwargs)
File "/users/blissadm/local/bliss.git/bliss/shell/standard.py", line 1214, in newproposal
current_session.scan_saving.newproposal(proposal_name)
File "/users/blissadm/local/bliss.git/bliss/scanning/scan_saving.py", line 1424, in newproposal
self.proposal_name = proposal_name
File "/users/blissadm/local/bliss.git/bliss/scanning/scan_saving.py", line 1281, in proposal_name
self._close_dataset()
File "/users/blissadm/local/bliss.git/bliss/scanning/scan_saving.py", line 1582, in _close_dataset
dataset.close(self.icat_proxy)
File "/users/blissadm/local/bliss.git/bliss/icat/dataset.py", line 123, in close
if not self.has_data:
File "/users/blissadm/local/bliss.git/bliss/icat/dataset.py", line 178, in has_data
return os.path.exists(self.path)
File "/users/blissadm/local/bliss.git/bliss/icat/policy.py", line 60, in path
return self._node.info["__path__"]
File "/users/blissadm/local/bliss.git/bliss/config/settings.py", line 945, in __getitem__
raise KeyError(key)
KeyError: '__path__'
EH2 [97]:
# ==========> eiger limaCCDs output (lbs131, was freshly initialized)
no eiger problem
print('blc12965_mcb load 7')
def ybeam_knife_prescan():
dscan(ustry,-0.15,0.15,50,0.05)
gofe()
def ybeam_knife_scan():
dscan(ustry,-0.04,0.04,160,0.1, sleep_time=0.05)
gofe()
def zbeam_knife_prescan():
dscan(ustrz,-0.15,0.15,50,0.05)
gofe()
def zbeam_knife_scan():
dscan(ustrz,-0.04,0.04,160,0.1, sleep_time=0.05)
gofe()
def knife_series_y(ds_name, psgap):
mv(pvg,psgap,phg,psgap)
newdataset('prealign')
x_start = -113.8
delta_x = 0.5
n_pts = 121
try:
mv(ustrx, x_start)
ybeam_knife_prescan()
newdataset('may4_ybeam_series_ps50mu_002')
for i in range(n_pts):
x_pos = x_start + i*delta_x
print (f'cycle = {i} x_pos = {x_pos} ====================================')
mv(ustrx, x_pos)
ybeam_knife_scan()
finally:
enddataset()
def knife_series_z(ds_name, psgap):
mv(pvg,psgap,phg,psgap)
newdataset('prealign')
x_start = -113.8
delta_x = 0.5
n_pts = 121
try:
mv(ustrx, x_start)
zbeam_knife_prescan()
newdataset(ds_name)
for i in range(n_pts):
x_pos = x_start + i*delta_x
print (f'cycle = {i} x_pos = {x_pos} ====================================')
mv(ustrx, x_pos)
zbeam_knife_scan()
finally:
enddataset()
def knife_ps_serseries():
pos = 'mrostd_mtd_01_cross_initial_0000.json'
psgap_tup = [(0.05, '50mu'), (0.1,'100mu'),(0.2,'200mu'),(0.3,'300mu')]
START_KEY = 'a'
try:
gopos(pos)
mvr(ustrz,-0.2)
for psgap, sgp in psgap_tup[0:1]:
knife_series_y(f'may4_repeat_y_serseries_ps{sgp}_{START_KEY}', psgap)
gopos(pos)
mvr(ustry,-0.2)
for psgap, sgp in psgap_tup:
knife_series_z(f'may4_z_serseries_ps{sgp}_{START_KEY}', psgap)
gopos(pos)
mvr(ustrz,-0.2)
for psgap, sgp in psgap_tup:
knife_series_y(f'may4_y_serseries_ps{sgp}_{START_KEY}', psgap)
finally:
sc()
sc()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment