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

AttributeError from mode_USAXS() #91

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

AttributeError from mode_USAXS() #91

prjemian opened this issue Dec 7, 2018 · 0 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 [35]: 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
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
/APSshare/anaconda3/BlueSky/lib/python3.6/site-packages/ophyd/device.py in __getattr__(self, name)
    983                 # Initial access of signal
--> 984                 cpt = self._sig_attrs[name]
    985                 return cpt.__get__(self, None)

KeyError: 'vap'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
<ipython-input-35-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':

<ipython-input-31-86a659f8e6b7> in mode_USAXS()
     17         yield from move_WAXSOut()
     18         yield from move_SAXSOut()
---> 19         yield from move_USAXSIn()
     20         retune_needed = True
     21 

/home/beams11/USAXS/.ipython/profile_bluesky/startup/41-commands.py in move_USAXSIn()
    246         guard_slit.h_size,  terms.SAXS.usaxs_guard_h_size.value,
    247         guard_slit.v_size,  terms.SAXS.usaxs_guard_v_size.value,
--> 248         usaxs_slit.vap,     terms.SAXS.usaxs_v_size.value,
    249         usaxs_slit.hap,     terms.SAXS.usaxs_h_size.value,
    250         a_stage.y,          terms.USAXS.AY0.value,

/APSshare/anaconda3/BlueSky/lib/python3.6/site-packages/ophyd/device.py in __getattr__(self, name)
    985                 return cpt.__get__(self, None)
    986             except KeyError:
--> 987                 raise AttributeError(name)
    988 
    989         attr_names = name.split('.')

AttributeError: vap
@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
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