Skip to content
Snippets Groups Projects

[AGIPD] Split AGIPDCtrl function for clear code and adding tests later.

Merged Karim Ahmed requested to merge refactor/split_AGIPDCtrl_functions into master
1 unresolved thread

Based on changes in MR : https://git.xfel.eu/detectors/pycalibration/-/merge_requests/652

This MR is a preparation for the next MR for adding unit tests https://git.xfel.eu/detectors/pycalibration/-/merge_requests/646

Description

  • Separate get_gain_setting() and get_acq_rate() into two different functions which read the gain_settings and acquisition rate using two different methods.

  • Small refactors:

    • correct hint typing for get_gain_mode()
    • correct the doc string for get_num_cells()
    • correct the doc string for AGIPDCtrl()

How Has This Been Tested?

Relevant Documents (optional)

Types of changes

Checklist:

Reviewers

@calibration

Edited by Karim Ahmed

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Karim Ahmed added 1 commit

    added 1 commit

    • 7e1bd60d - explain what is old RAW data

    Compare with previous version

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed resolved all threads

    resolved all threads

  • With the inclusion of a date for "old data", very happy with it, thanks! It definitely makes this whole compatibility stuff around different versions of data clearer. LGTM!

  • Karim Ahmed added 1 commit

    added 1 commit

    • 7fcd6a0e - explain what is old RAW data

    Compare with previous version

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed changed the description

    changed the description

  • Karim Ahmed added 1 commit

    added 1 commit

    • 7e1bd60d - explain what is old RAW data

    Compare with previous version

  • @ahmedk Can this be merged?

  • Philipp Schmidt changed milestone to %3.6.0

    changed milestone to %3.6.0

  • merged

  • Karim Ahmed mentioned in commit 38661a7f

    mentioned in commit 38661a7f

  • Please register or sign in to reply
    Loading