Skip to content

[AGIPD][TESTs]test_agipdlib AGIPDCtrl and get_bias_voltage for AGIPD1M and AGIPD500K

Karim Ahmed requested to merge test/test_agipdlib into master

Based on https://git.xfel.eu/detectors/pycalibration/-/merge_requests/651

  • 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.

  1. I have added tests for these methods
  2. I have split some methods based on their functionality.
  3. 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.
  1. 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

@calibration

Edited by Karim Ahmed

Merge request reports