Skip to content

Commit eaa07a8

Browse files
committed
Set normalize to default to True
1 parent 8b35751 commit eaa07a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

factor/scripts/smooth_amps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def median_window_filter(ampl, half_window, threshold):
6464
return ampl_tot_copy
6565

6666

67-
def main(instrument_name, instrument_name_smoothed, normalize=False):
67+
def main(instrument_name, instrument_name_smoothed, normalize=True):
6868
if type(normalize) is str:
6969
if normalize.lower() == 'true':
7070
normalize = True
@@ -131,12 +131,12 @@ def main(instrument_name, instrument_name_smoothed, normalize=False):
131131
imag = numpy.copy(parms[gain + ':' + pol + ':Imag:'+ antenna]['values'][:, chan])
132132
phase = numpy.arctan2(imag, real)
133133
amp = numpy.copy(numpy.sqrt(real**2 + imag**2))
134-
134+
135135
# Clip extremely low amplitude solutions to prevent very high
136136
# amplitudes in the corrected data
137137
low_ind = numpy.where(amp < 0.2)
138138
amp[low_ind] = 0.2
139-
139+
140140
parms[gain + ':' + pol + ':Real:'+ antenna]['values'][:, chan] = numpy.copy(amp *
141141
numpy.cos(phase) * norm_factor)
142142
parms[gain + ':' + pol + ':Imag:'+ antenna]['values'][:, chan] = numpy.copy(amp *

0 commit comments

Comments
 (0)