Skip to content
Snippets Groups Projects
Commit 4f86417a authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Pad arrays with zeros when in multi-bunch mode.

parent a9552016
No related branches found
No related tags found
1 merge request!18Added better outlier detection and handle multi-pulse scenario better
Pipeline #120019 passed
...@@ -314,7 +314,7 @@ class SelectRelevantLowResolution(TransformerMixin, BaseEstimator): ...@@ -314,7 +314,7 @@ class SelectRelevantLowResolution(TransformerMixin, BaseEstimator):
if channel in self.channels} if channel in self.channels}
# pad it with zeros, if we reach the edge of the array # pad it with zeros, if we reach the edge of the array
for channel in y.keys(): for channel in y.keys():
y[channel] = [np.pad(y[channel][j], (0, 2*delta_tof - len(y[channel][j]))) y[channel] = [np.pad(y[channel][j], (0, 2*self.delta_tof - len(y[channel][j])))
for j in range(len(y[channel]))] for j in range(len(y[channel]))]
y[channel] = np.stack(y[channel], axis=1) y[channel] = np.stack(y[channel], axis=1)
if not keep_dictionary_structure: if not keep_dictionary_structure:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment