Skip to content

[ePix100][Correct] Correcting one train for epix100 and storing a list of one pulseId

Karim Ahmed requested to merge fix/one_pulse_in_list into master

Description

A few weeks ago a bug was identified in ePix100 correction notebook when correcting a sequence file of 1 train.

This is a fix for the following error when converting an array of one pulseId to a list:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-44-b0dfb1190f77> in <module>
----> 1 list(seq_dc[instrument_src]['data.pulseId'].ndarray().squeeze())

TypeError: iteration over a 0-d array

How Has This Been Tested?

Unit tests and attached the correction result for the run which exposed the bug in the first place

Relevant Documents (optional)

The failed run after correcting it with this MR

Types of changes

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

Checklist:

Reviewers

@duarten @schmidtp

Edited by Karim Ahmed

Merge request reports