This is the beamline configuration (IPython profile) for 17BM.
nsls-ii-xfp / profile_collection Goto Github PK
View Code? Open in Web Editor NEWbeamline configuration (IPython profile)
beamline configuration (IPython profile)
This is the beamline configuration (IPython profile) for 17BM.
With @AbbyGi
Bluesky workstations: xf17bm-ws1 and xf17bm-ws3
IOCs: xf17bm-ioc3 and xf17bm-disp2
The HTGui alignment reports COM/FWHM numbers above the plots for each alignment axis. For 2019.c3 and before, this text appeared at the completion of the scan for each axis, before the next axis scan or other bluesky action.
In the 2020.c2 environment on the initial alignment scan it only shows when the next action starts, i.e., the ht_x results only appear when the ht_y scan starts, and the ht_y results appear only after doing something at the ipython CLI (e.g., typing HT_COORDS). In some cases, no ht_y COM/FWHM numbers ever appear. When repeating alignments with overlays on the same plot, the same behavior is observed.
This is a minor annoyance, since the alignment otherwise works fine, but it is a behavioral change from prior environments that might be problematic down the road.
With the 2020.c2 upgrade, the circular status widget for each slot (colored blue, red, or green depending on state) randomly changes to a square before / during runs. Moving the mouse over a slot with a square results in it immediately changing back to a circle. See attached screen shots below.
Anecdotally, I have seen on a couple occassions that if I re-use an exposure plan and hit "run" again without clicking check/uncheck in the GUI, I have seen a mixture of green and blue colors for the slot status randomly distributed across the 8x12 array. Previously all selected slots would change from green to blue when this action was taken. Will update with a screen shot when this occurs.
profile_collection
bsui
remotely (does it touch any hardware?) - use git grep .put
or git grep caput
~/.bashrc
add the following and remember to source ~/.bashrc
afterward.
export BLUESKY_LOG_FILE=/var/log/bluesky/bluesky.log
export BLUESKY_IPYTHON_LOG_FILE=/var/log/bluesky/bluesky_ipython.log
00-startup.py
https://gist.github.com/jklynch/a4366b8900ec0c03883403455ae711b2BS_ENV=collection-2020-2.0rc8 bsui
.value
-> .get()
if it's in a Device
, or with yield from bps.read()
if in a planhistory.sqlite
issue - see https://blueskyproject.io/bluesky/metadata.html#persistence-between-sessions2020C2.0
An opportunity for improvement in the UI: Right now any checks of the .csv metadata export filename are done at the end of the run when the file is written. Possible issues:
Neither is desirable. A possible improvement is to implement some file-name checking routine and prompt the user to correct their input. Probably easier for 1 than it is for 2, but I also view 1 as more problematic and likely to occur; it's easier to educate people on nomenclature.
Randomly got this today during running of the alignment procedure:
shutter Close 139733943670096
pps_shutter Close 139733943025168
** (2018-04-12 14:32:23) Had to reactuate shutter while Closing
pps_shutter Close 139733943135424
Traceback (most recent call last):
File "/home/xf17bm/.ipython/profile_collection/startup/99-gui-ht.py", line 587, in align_ht
RE(align_ht(**kwargs))
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/run_engine.py", line 669, in __call__
raise exc
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/run_engine.py", line 1117, in _run
raise err
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/run_engine.py", line 995, in _run
self._exception)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1238, in __call__
return (yield from plan)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 1092, in baseline_wrapper
return (yield from plan)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 724, in monitor_during_wrapper
return (yield from plan2)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 75, in plan_mutator
msg = plan_stack[-1].throw(exception)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 75, in plan_mutator
msg = plan_stack[-1].throw(exception)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 782, in fly_during_wrapper
return (yield from plan2)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 75, in plan_mutator
msg = plan_stack[-1].throw(exception)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 75, in plan_mutator
msg = plan_stack[-1].throw(exception)
File "/home/xf17bm/.ipython/profile_collection/startup/97-align-ht.py", line 52, in align_ht
close_shutters())
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 453, in finalize_wrapper
yield from ensure_generator(final_plan_instance)
File "/home/xf17bm/.ipython/profile_collection/startup/97-align-ht.py", line 26, in close_shutters
yield from bps.mv(pps_shutter, 'Close')
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/plan_stubs.py", line 244, in mv
yield Msg('wait', None, group=group)
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 163, in plan_mutator
inner_ret = yield msg
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 163, in plan_mutator
inner_ret = yield msg
File "/opt/conda_envs/collection-2018-1.0/lib/python3.6/site-packages/bluesky/preprocessors.py", line 163, in plan_mutator
inner_ret = yield msg
bluesky.utils.FailedStatus: DeviceStatus(device=pps_shutter, done=True, success=False)
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
In [2]:
In [2]: pps_shutter
Out[2]: TwoButtonShutter(prefix='XF:17BM-PPS{Sh:FE}', name='pps_shutter', read_attrs=['status'], configuration_attrs=[])
In [3]: pps_shutter.status
Out[3]: EpicsSignalRO(read_pv='XF:17BM-PPS{Sh:FE}Pos-Sts', name='pps_shutter_status', parent='pps_shutter', value='Not Open', timestamp=1523557945.098395, pv_kw={}, auto_monitor=False, string=True)
In [5]: pps_shutter.status.read()
Out[5]: {'pps_shutter_status': {'timestamp': 1523557945.098395, 'value': 'Not Open'}}
@tacaswell, can it be related to the TwoButtonShutter?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.