sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

spock with ipython >= 5 does not offer sardana elements attributes in tab-completion #374

Open reszelaz opened 7 years ago

reszelaz commented 7 years ago

For example motor's attributes like position, acceleration, steps_per_unit are not offered. Only the PyTango.DeviceProxy members are offered:

`Door_zreszela_1 [1]: mot01.

                        mot01.add_logging_target                mot01.attribute_list_query_ex           mot01.command_history                   mot01.command_inout_reply_raw            
                        mot01.adm_name                          mot01.attribute_query                   mot01.command_inout                     mot01.command_list_query                 
                        mot01.alias                             mot01.black_box                         mot01.command_inout_asynch              mot01.command_query                     >
                        mot01.attribute_history                 mot01.cancel_all_polling_asynch_request mot01.command_inout_raw                 mot01.connect                            
                        mot01.attribute_list_query              mot01.cancel_asynch_request             mot01.command_inout_reply               mot01.defaultCommandExtractAs            `
cmft commented 7 years ago

I see the same problem also with PyTango9 and older IPython

With PyTango8 and IPython 2.2.0

Door_cfalcon_1 [2]: mot76.p
mot76.pending_asynch_call  mot76.poll_attribute       mot76.polling_status       mot76.power                
mot76.ping                 mot76.poll_command         mot76.position             mot76.put_property         

Door_cfalcon_1 [2]: mot76.position
        Result [2]: 10.0

PyTango           PyTangoArchiving  

Door_cfalcon_1 [3]: import PyTango

Door_cfalcon_1 [5]: PyTango.Release.version
        Result [5]: '8.1.3'

Door_cfalcon_1 [7]: IPython.version_info
        Result [7]: (2, 2, 0, '')

With PyTango9 and IPython 2.2.0

Door_cfalcon_1 [4]: mot76.p
mot76.pending_asynch_call  mot76.ping                 mot76.poll_attribute       mot76.poll_command         mot76.polling_status       mot76.put_property         

Door_cfalcon_1 [4]: mot76.p

With PyTango8 and IPython 5.1.0

In [1]: import PyTango

In [2]: PyTango.Release.version
Out[2]: '8.1.3'

In [4]: mot76.p
                mot76.pending_asynch_call mot76.poll_command        
                mot76.ping                mot76.polling_status      
                mot76.poll_attribute      mot76.put_property