diff --git a/schainpy/model/proc/jroproc_voltage.py b/schainpy/model/proc/jroproc_voltage.py index 393daab..389085a 100644 --- a/schainpy/model/proc/jroproc_voltage.py +++ b/schainpy/model/proc/jroproc_voltage.py @@ -3158,10 +3158,10 @@ class remFaradayProfiles(Operation): fi = 0 if f_iTaus: - if fi > offTaus-1: + if fi > offTaus: booldataset[i, j]=0 #Afected profile fi += 1 - if fi == nTaus-1: #restart the taus sequence + if fi == nTaus: #restart the taus sequence fi = 0 f_iTaus = False fi_reps += 1 @@ -3169,6 +3169,7 @@ class remFaradayProfiles(Operation): fi = 0 fi_reps = 0 f_ntx=False + #break kt += 1 k += 1 @@ -3201,8 +3202,8 @@ class remFaradayProfiles(Operation): new_block[:,ich,:] = booldataset[:,idx_ch] new_block = numpy.transpose(new_block, (1,0,2)) - #new_block = numpy.reshape(new_block, (nChannels,-1)) - new_block = numpy.reshape(new_block, (nChannels,profPerCH*nBlocks)) + new_block = numpy.reshape(new_block, (nChannels,-1)) + #new_block = numpy.reshape(new_block, (nChannels,profPerCH*nBlocks)) self.profilesFlag = new_block.copy() # fig = plt.figure() @@ -3215,7 +3216,7 @@ class remFaradayProfiles(Operation): def run(self,dataOut, channel=0, nChannels=5, nProfiles=300,nBlocks=100,nIpp1=100, - nIpp2=300, nTx2=132, nTaus=22, offTaus=8, iTaus=14, nfft=1 ,offIpp=0): + nIpp2=300, nTx2=132, nTaus=22, offTaus=12, iTaus=10, nfft=1 ,offIpp=0): dataOut.flagNoData = False