Skip to content
Snippets Groups Projects

Fix/select max pulses

Merged Karim Ahmed requested to merge fix/select_max_pulses into master
All threads resolved!

This is a fix for reported issue at: https://in.xfel.eu/redmine/issues/106968

Description

for run /gpfs/exfel/exp/SPB/202102/p002510/raw/r0023/, the 12th sequence has only one train of 202 memory cells and 202 pulseIds. As the max_pulses is set by default to [0, 352, 1], correcting this sequence fail due to trying to access an index out of bounds.

Validate_selected_cells was modified to only validate the range of max_cells at the class AGIPDCorrection's initialization. and to modify max_cells if maximum selected pulse range is greater than the operating memory cells.

How Has This Been Tested?

Relevant Documents (optional)

max_pulses_352_.pdf max_pulses = [0, 352, 1], mem_cells 202 max_pulses_50.pdf max_pulses = [0, 50, 2], mem_cells 202

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (refactoring code with no functionality changes)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.

Reviewers

@danilevc @jsztuk @kluyvert

Edited by Karim Ahmed

Merge request reports

Checking pipeline status.

Merged by Karim AhmedKarim Ahmed 3 years ago (Sep 17, 2021 9:57am UTC)

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

    • 28a16411 - keep using pulse range instead of pulse_list

    Compare with previous version

  • Karim Ahmed
  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    • 05c53c24 - modify validate_selected_pulses

    Compare with previous version

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed
  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed added 1 commit

    added 1 commit

    • 34b32843 - Apply suggestion to src/cal_tools/agipdlib.py

    Compare with previous version

  • Karim Ahmed enabled an automatic merge when the pipeline for 34b32843 succeeds

    enabled an automatic merge when the pipeline for 34b32843 succeeds

  • merged

  • Karim Ahmed mentioned in commit 3c06a7c0

    mentioned in commit 3c06a7c0

  • Philipp Schmidt changed milestone to %3.4.2

    changed milestone to %3.4.2

  • Please register or sign in to reply
    Loading