Skip to content

genie_python: Tidy up API #5457

@DominicOram

Description

@DominicOram

As a user I would like the genie_python API to be as small as possible so that it's easier to find the functions I use a lot. After a meeting on 04/06/2020 with @FreddieAkeroyd, @DominicOram, @ThomasLohnert, @Tom-Willemsen, @John-Holt-Tessella, @davidkeymer, @JamesKingWork, @RaiBishal and @Alexandru-Dascalu the following acceptance criteria were created:

Acceptance Criteria

  • check_lowlimit_against_highlimit - should be moved to be an internal function

  • set_title, set_script_dir, set_number_soft_periods, set_sample_par, set_beamline_par, set_period - remove as these have been marked as depreciated for ~3 years. They directly map to change_x equivalents

  • get_absolute_path, is_absolute - should be moved to be an internal function

  • get_instrument_py_name - check if used, specifically on emma-a and in scans library. If used move into advanced, if not remove

  • get_instrument - move into advanced

  • send_tcpip - move into shared instrument scripts, confirm that it works in python 3

  • set_messages_verbosity - move to advanced and rename to make it clear that this is for DAE verbosity

  • For all of the above search instrument scripts for usage, where used contact specific instrument scientists

  • Ensure that the release notes detail these changes well and circulate as part of Create a Python 3 client build #5389

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions