Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename show_ophyd_objects() as listobjects() #306

Closed
prjemian opened this issue Feb 22, 2020 · 2 comments
Closed

rename show_ophyd_objects() as listobjects() #306

prjemian opened this issue Feb 22, 2020 · 2 comments
Assignees
Labels
task Something to be done.
Milestone

Comments

@prjemian
Copy link
Contributor

For now, make an alias and use a warning to indicate the previous name will be removed in the future.

@prjemian prjemian added the task Something to be done. label Feb 22, 2020
@prjemian prjemian added this to the 1.2.2 milestone Feb 22, 2020
@prjemian prjemian self-assigned this Feb 22, 2020
@prjemian
Copy link
Contributor Author

example:

In [2]: listobjects = show_ophyd_symbols                                                                                                                                                    

In [3]: listobjects(camy)                                                                                                                                                                   
=========== ======================================== ================= ========
name        ophyd structure                          EPICS PV          label(s)
=========== ======================================== ================= ========
a_stage     UsaxsAnalyzerStageDevice                                           
aps         ApsSpecialMode                                                     
as_stage    UsaxsAnalyzerSideReflectionStageDevice                             
camy        UsaxsMotor                               9idcLAX:m58:c1:m7         
d_stage     UsaxsDetectorStageDevice                                           
diagnostics DiagnosticsParameters                                              
guard_slit  GSlitDevice                                                        
m_stage     UsaxsCollimatorStageDevice                                         
ms_stage    UsaxsCollimatorSideReflectionStageDevice                           
s_stage     UsaxsSampleStageDevice                                             
saxs_stage  SaxsDetectorStageDevice                                            
tcam        UsaxsMotor                               9idcLAX:m58:c1:m6         
tension     UsaxsMotor                               9idcLAX:m58:c1:m8         
undulator   ApsUndulatorDual                         ID09                      
usaxs_slit  UsaxsSlitDevice                                                    
waxsx       UsaxsMotor                               9idcLAX:m58:c0:m4 waxs    
=========== ======================================== ================= ========

Out[3]: <pyRestTable.rest_table.Table at 0x7f21d14b7310>

@prjemian
Copy link
Contributor Author

work in progress, status report showing the startup:

(/share1/bluesky/conda_envs/bluesky_2020_1) usaxs@usaxscontrol ~/.ipython $ blueskyUSAXS 
Python 3.7.6 | packaged by conda-forge | (default, Jan  7 2020, 22:33:48) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help.

IPython profile: bluesky
Activating auto-logging. Current session state plus future input saved.
Filename       : /home/beams11/USAXS/.ipython/.logs/ipython_console.log
Mode           : rotate
Output logging : True
Raw input log  : False
Timestamping   : True
State          : active
I Fri-19:04:29 - ############################################################ startup
I Fri-19:04:29 - logging started
I Fri-19:04:29 - logging level = 10
I Fri-19:04:29 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/collection.py
I Fri-19:04:29 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/mpl/console.py
I Fri-19:04:29 - bluesky framework
I Fri-19:04:29 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/framework/check_python.py
I Fri-19:04:29 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/framework/initialize.py
Loading metadata history from /home/beams/USAXS/.config/bluesky/bluesky_history.db
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/framework/user_dir.py
I Fri-19:04:30 - User code directory: /home/beams11/USAXS/.ipython/bluesky_plans
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/framework/metadata.py
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/framework/callbacks.py
I Fri-19:04:30 - writing to SPEC file: /home/beams11/USAXS/.ipython/20200221-190430.dat
I Fri-19:04:30 -    >>>>   Using default SPEC file name   <<<<
I Fri-19:04:30 -    file will be created when bluesky ends its next scan
I Fri-19:04:30 -    to change SPEC file, use command:   newSpecFile('title')
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/aps_source.py
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/constants.py
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/general_terms.py
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/amplifiers.py
I Fri-19:04:30 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/scaler.py
I Fri-19:04:34 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/diagnostics.py
I Fri-19:04:34 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/miscellaneous.py
I Fri-19:04:34 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/usaxs_motor.py
I Fri-19:04:34 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/slits.py
I Fri-19:04:34 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/utils/motors.py
I Fri-19:04:35 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/stages.py
I Fri-19:04:36 - /home/beams11/USAXS/.ipython/profile_bluesky/startup/instrument/devices/struck3820.py

In [1]: listobjects()                                                                                                                                                                       
====================== ======================================== ===================== ===============
name                   ophyd structure                          EPICS PV              label(s)       
====================== ======================================== ===================== ===============
I0                     EpicsSignalRO                            9idcLAX:vsc:c0.S2     counter channel
I00                    EpicsSignalRO                            9idcLAX:vsc:c0.S3     counter channel
I000                   EpicsSignalRO                            9idcLAX:vsc:c0.S6     counter channel
I000_femto_amplifier   FemtoAmplifierDevice                     9idcRIO:fem04:seq01:                 
I000_photocurrent_calc SwaitRecord                              9idcLAX:USAXS:I000                   
I00_autorange_controls AmplifierAutoDevice                      9idcLAX:pd03:seq01:                  
I00_controls           DetectorAmplifierAutorangeDevice                                              
I00_femto_amplifier    FemtoAmplifierDevice                     9idcRIO:fem03:seq01:                 
I0_autorange_controls  AmplifierAutoDevice                      9idcLAX:pd02:seq01:                  
I0_controls            DetectorAmplifierAutorangeDevice                                              
I0_femto_amplifier     FemtoAmplifierDevice                     9idcRIO:fem02:seq01:                 
a_stage                UsaxsAnalyzerStageDevice                                                      
aps                    ApsSpecialMode                                                                
as_stage               UsaxsAnalyzerSideReflectionStageDevice                                        
camy                   UsaxsMotor                               9idcLAX:m58:c1:m7     motor          
clock                  EpicsSignalRO                            9idcLAX:vsc:c0.S1     counter channel
d_stage                UsaxsDetectorStageDevice                                                      
diagnostics            DiagnosticsParameters                                                         
fuel_spray_bit         EpicsSignal                              9idcLAX:bit1                         
guard_slit             GSlitDevice                                                                   
m_stage                UsaxsCollimatorStageDevice                                                    
ms_stage               UsaxsCollimatorSideReflectionStageDevice                                      
s_stage                UsaxsSampleStageDevice                                                        
saxs_stage             SaxsDetectorStageDevice                                                       
scaler0                myScalerCH                               9idcLAX:vsc:c0                       
scaler1                myScalerCH                               9idcLAX:vsc:c1                       
scaler2_I000_counts    EpicsSignalRO                            9idcLAX:vsc:c2.S2                    
scaler2_I000_cps       EpicsSignalRO                            9idcLAX:vsc:c2_cts1.B                
struck                 Struck3820                               9idcLAX:3820:                        
tcam                   UsaxsMotor                               9idcLAX:m58:c1:m6     motor          
tension                UsaxsMotor                               9idcLAX:m58:c1:m8     motor          
terms                  GeneralParameters                                                             
trd                    EpicsSignalRO                            9idcLAX:vsc:c0.S5     counter channel
trd_autorange_controls AmplifierAutoDevice                      9idcLAX:pd05:seq01:                  
trd_controls           DetectorAmplifierAutorangeDevice                                              
trd_femto_amplifier    FemtoAmplifierDevice                     9idcRIO:fem05:seq01:                 
undulator              ApsUndulatorDual                         ID09                                 
upd2                   EpicsSignalRO                            9idcLAX:vsc:c0.S4     counter channel
upd_autorange_controls AmplifierAutoDevice                      9idcLAX:pd01:seq02:                  
upd_controls           DetectorAmplifierAutorangeDevice                                              
upd_femto_amplifier    FemtoAmplifierDevice                     9idcLAX:fem09:seq02:                 
usaxs_slit             UsaxsSlitDevice                                                               
waxsx                  UsaxsMotor                               9idcLAX:m58:c0:m4     waxs motor     
====================== ======================================== ===================== ===============

Out[1]: <pyRestTable.rest_table.Table at 0x7f9f12aa7750>

prjemian added a commit that referenced this issue May 7, 2020
prjemian added a commit that referenced this issue May 7, 2020
prjemian added a commit that referenced this issue May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Something to be done.
Projects
None yet
Development

No branches or pull requests

1 participant