Git Product home page Git Product logo

profile_collection's Introduction

This is the beamline configuration (IPython profile) for 17BM.

profile_collection's People

Contributors

danielballan avatar dmgav avatar erikfarquhar avatar jbohon avatar junaishima avatar mrakitin avatar robertschaffer1 avatar tacaswell avatar vshekar avatar

Watchers

 avatar  avatar  avatar

profile_collection's Issues

HTGui alignment COM/FWHM text does not always update reliably in 2020c2 env.

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.

HTGui slot status widget circle changes to squares randomly

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.

HTgui-widget-issue1
HTGui-widget-issue2

Deployment 2020-2.0 checklist

Previsit

  • Make sure that the current latest environments are pushed to all the bl machines
    • xf17bm-ws1
    • xf17bm-ws3
  • Skim the IPython startup files in profile_collection
    • Check if it's safe to start bsui remotely (does it touch any hardware?) - use git grep .put or git grep caput
  • Check for outstanding PRs and issues on beamline repos
  • Check if beamline specific packages pushed to the BL machines
  • (Optional) Enable CI

Housekeeping

  • Add BL staff to the BL GitHub organization as owners
  • Work with BL staff to commit any un-committed changes to their profiles
  • Tag the profile as-found as 2019C3.x
  • Discuss with BL staff which conda envs they want to keep/delete and perform the cleanup
  • Check/update the beamline's inventory with the BL staff (in https://github.com/NSLS-II/playbooks/blob/master/production)

Test deployment

[improvement task] check .csv file name for HTGui metadata export

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:

  1. If the file exists, it is overwritten.
  2. If the name is bad, e.g., uses illegal chars like / or , it fails with an error and no file is written.

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.

Random issue with pps_shutter

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.