[AGIPD][TESTs]test_agipdlib AGIPDCtrl and get_bias_voltage for AGIPD1M and AGIPD500K
https://git.xfel.eu/detectors/pycalibration/-/merge_requests/651
Based on- Test
AGIPDCtrl()
methods to read conditions from Fast or slow data. - differentiate between AGIPD1M and AGIPD500K sources and keys to read bias_voltage. (temporary unbreakable change.)
Description
Latest changes to agipdlib had a class AGIPDCtrl()
created collecting all methods to read AGIPD parameter conditions from fast and slow data.
- I have added tests for these methods
- I have split some methods based on their functionality.
- As bias_voltage is stored in different paths for AGIPD1M and AGIPD500K, a condition was added to select the right source.
- This is a temporary change and I think one should give the correct source and key through
get_bias_voltage
arguments.
- All of the tests are based on EXtra-data mocked data. I have added mock_agipd1m_run, mock_agipd500K_run and mock_agipd1m_run_old at :
How Has This Been Tested?
Unit tests.
Relevant Documents (optional)
Types of changes
- Test (additional or refactored tests)
Checklist:
- My code follows the code style of this project.
- I have updated the documentation accordingly.
- I added tests where appropriate.
Reviewers
Edited by Karim Ahmed