Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

TypeError from mode_USAXS #92

Closed
prjemian opened this issue Dec 7, 2018 · 2 comments
Closed

TypeError from mode_USAXS #92

prjemian opened this issue Dec 7, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@prjemian
Copy link
Contributor

prjemian commented Dec 7, 2018

while testing mode_USAXS(), received this exception trace:

In [3]: summarize_plan(mode_USAXS())
user_data_state -> Moving USAXS to USAXS mode
ccd_shutter -> close
usaxs_shutter -> close
monochromator_feedback_on -> 1
Found UsaxsSaxsMode = out of beam
Moving to proper USAXS mode
ccd_shutter -> close
usaxs_shutter -> close
Moving WAXS out of beam
terms_SAXS_UsaxsSaxsMode -> -1
waxsx -> 0.0
waxsx_soft_limit_lo -> 5.0
waxsx_soft_limit_hi -> 5.0
Removed WAXS from beam position
terms_SAXS_UsaxsSaxsMode -> 1
ccd_shutter -> close
usaxs_shutter -> close
Moving SAXS out of beam
terms_SAXS_UsaxsSaxsMode -> -1
saxs_stage_z -> 50.0
saxs_stage_z_soft_limit_lo -> 48.0
saxs_stage_z_soft_limit_hi -> 147.999954
saxs_stage_y -> 260.0
saxs_stage_y_soft_limit_lo -> 257.0
saxs_stage_y_soft_limit_hi -> 257.0
Removed SAXS from beam position
terms_SAXS_UsaxsSaxsMode -> 1
ccd_shutter -> close
usaxs_shutter -> close
Moving to USAXS mode
terms_SAXS_UsaxsSaxsMode -> -1
a_stage_x_soft_limit_lo -> -50.0
a_stage_x_soft_limit_hi -> 168.52500000000003
d_stage_x_soft_limit_lo -> 79.67625
d_stage_x_soft_limit_hi -> 79.67999999999995
guard_slit_h_size -> 1.062
guard_slit_v_size -> 1.0
usaxs_slit_h_size -> 0.8
usaxs_slit_v_size -> 0.8
a_stage_y -> 0.0
a_stage_x -> -47.0
d_stage_x -> 69.67625
d_stage_y -> 13.456867
USAXS is in position
terms_SAXS_UsaxsSaxsMode -> 2
Preparing for USAXS mode ... please wait ...
scaler0 -> 1
d_stage_x -> 69.67625
d_stage_y -> 13.456867
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-1de9224e6c94> in <module>()
----> 1 summarize_plan(mode_USAXS())

/APSshare/anaconda3/BlueSky/lib/python3.6/site-packages/bluesky/simulators.py in summarize_plan(plan)
     70         Must yield `Msg` objects
     71     """
---> 72     for msg in print_summary_wrapper(plan):
     73         ...
     74 

/APSshare/anaconda3/BlueSky/lib/python3.6/site-packages/bluesky/preprocessors.py in print_summary_wrapper(plan)
    286 
    287     read_cache = []
--> 288     for msg in plan:
    289         cmd = msg.command
    290         if cmd == 'open_run':

/home/beams11/USAXS/.ipython/profile_bluesky/startup/43-procedures.py in mode_USAXS()
     56         d_stage.y, terms.USAXS.diode.dy.value,
     57     )
---> 58     yield from bps(0.1)
     59 
     60     if not ccd_shutter.is_closed:

TypeError: 'module' object is not callable
@prjemian prjemian added the bug Something isn't working label Dec 7, 2018
@prjemian prjemian added this to the 2018-3 operations milestone Dec 7, 2018
@prjemian prjemian self-assigned this Dec 7, 2018
@prjemian
Copy link
Contributor Author

prjemian commented Dec 7, 2018

Should be yield from bps.mv(XXXXX, 0.1)
Some code is missing at XXXXX ... look at SPEC macro for a clue.

@prjemian
Copy link
Contributor Author

prjemian commented Dec 7, 2018

not bps.mv, bps.sleep(0.1) but is it needed now?

prjemian pushed a commit that referenced this issue Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant