Skip to content
Snippets Groups Projects

[AGIPD][DARK] FIX: Make sure to process darks out of sequence file with the highest trainIds

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

A hacky temporary solution to the bug of processing darks out of one of the available sequences in raw folder.

I though about the fastest fix to deploy without giving any assumptions for a specific sequence number to always process. This was the result.

Processing darks out of the sequences with highest number of trainIds.

Description

  • The main problem:

AGIPD dark notebook is designed to parallelize the processing of the 3 gains, based on processing only a file for each gain.

Not realizing this I switched before the value of sequences from [0] to [-1]. This lead to having N files processed in parallel. But still 3 values would only be stored for each gain.

The issue is that the values of the last sequence file could be stored (but not always). The last sequence can have about 30 or 70 trains only compared to about 256 in sequence number 1 S00001.

  • The 1st proposed solution:

Is to use S00001 in the first cell. (Currently this is hotfixed in production until we decide with this MR.)

  • This MR solution:

Is to not assume always that there will be S00001 available, use [-1] to read all sequences and process only the file with the highest number of images.

How Has This Been Tested?

Relevant Documents (optional)

Tested by running the notebook with the available parameters in the first cell.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Reviewers

@kluyvert @schmidtp @danilevc

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

    • 48d28055 - [AGIPD][DARK] FIX: Make sure to process darks out of sequence file with the highest trainIds

    Compare with previous version

    • Resolved by Karim Ahmed

      This establishes the maximum trains per sequence and filters empty sequences from what I understand. It seems like a solution for this issue indeed. Still, could we talk about it after the stand-up?

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed changed the description

    changed the description

  • Philipp Schmidt changed milestone to %3.5.0

    changed milestone to %3.5.0

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed resolved all threads

    resolved all threads

  • Karim Ahmed mentioned in commit aee1ae3e

    mentioned in commit aee1ae3e

  • merged

  • Karim Ahmed mentioned in merge request !616 (merged)

    mentioned in merge request !616 (merged)

  • Please register or sign in to reply
    Loading