NSLS-II-BMM / profile_collection

BlueSky configuration for NSLS-II beamline 6BM, BMM
https://wiki-nsls2.bnl.gov/beamline6BM/index.php/Main_Page
Other
3 stars 7 forks source link

Use modules #15

Closed danielballan closed 3 years ago

danielballan commented 3 years ago

This PR is not a complete solution, but it gets pretty close.

Remaining uses of get_ipython():


$ git grep -e "get_ipython()\."
BMM/functions.py:get_ipython().magic(u"%xmode Plain")
BMM/prompt.py:get_ipython().display_formatter.formatters['text/plain'].for_type(types.GeneratorType, lambda x, y, z: print(f'{x}   Hint: enclose that command in RE()'))
BMM/user.py:                    startup_dir = get_ipython().profile_dir.startup_dir
BMM/xspress3.py:    #     startup_dir = get_ipython().profile_dir.startup_dir
BMM/xspress3.py:        startup_dir = get_ipython().profile_dir.startup_dir
BMM/xspress3_1element.py:        startup_dir = get_ipython().profile_dir.startup_dir
BMM/xspress3_4element.py:        startup_dir = get_ipython().profile_dir.startup_dir
save/05-functions.save:get_ipython().magic(u"%xmode Plain")
save/94-prompt.save:get_ipython().display_formatter.formatters['text/plain'].for_type(types.GeneratorType, lambda x, y, z: print(f'{x}   Hint: enclose that command in RE()'))
bruceravel commented 3 years ago

These changes have been tested with bsui and qserver. Making this the new master branch.