Skip to content

Commit 4054c03

Browse files
author
Julian Kates-Harbeck
committed
fix small error in variable ordering
1 parent 9322202 commit 4054c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plasma/preprocessor/normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ def train_on_files(self,shot_files,use_shots,all_machines):
141141
def cut_end_of_shot(self,shot):
142142
cut_shot_ends = self.conf['data']['cut_shot_ends']
143143
if not self.inference_mode and cut_shot_ends: #only cut shots during training
144+
T_min_warn = self.conf['data']['T_min_warn']
144145
if shot.ttd.shape[0] <= T_min_warn:
145146
print("not cutting shot since T_min_warn is larger than length of shot")
146147
return
147-
T_min_warn = self.conf['data']['T_min_warn']
148148
for key in shot.signals_dict:
149149
shot.signals_dict[key] = shot.signals_dict[key][:-T_min_warn,:]
150150
shot.ttd = shot.ttd[:-T_min_warn]

0 commit comments

Comments
 (0)