Added definition of psf_trans
@@ -125,6 +125,7 @@ def cube_inject_companions(array, psf_template, angle_list, flevel, plsc,
for fr in range(nframes):
fc_fr[fr] = psf_template[fr]
+ psf_trans = None
array_out = array.copy()
for branch in range(n_branches):
