Skip to content

Commit 53a230c

Browse files
author
Danilo Ferreira de Lima
committed
Bug fix after last commit.
1 parent d6d8954 commit 53a230c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extra/applications/cookiebox_deconvolve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def _count_photo_electrons(self, tof_part, parallel):
459459
idx = tof_data.loc[:, ['trainId', 'pulseIndex']].set_index(['trainId', 'pulseIndex']).index
460460
logging.info("Summing good trains ...")
461461
# select only trains with a photo-electron detected ("good trains") to do this faster
462-
analog_data = -tof.select_trains(by_id[good_trains]).pulse_data(pulse_dim="pulseIndex", parallel=parallel)
462+
analog_data = -tof_part.select_trains(by_id[good_trains]).pulse_data(pulse_dim="pulseIndex", parallel=parallel)
463463
# select the train-pulses of interest
464464
this_tof_data = analog_data.sel(pulse=idx).mean("pulse")
465465
# apply an roi

0 commit comments

Comments
 (0)