diff --git a/schainpy/model/proc/jroproc_parameters.py b/schainpy/model/proc/jroproc_parameters.py index 116facc..2505e3b 100755 --- a/schainpy/model/proc/jroproc_parameters.py +++ b/schainpy/model/proc/jroproc_parameters.py @@ -124,7 +124,7 @@ class ParametersProc(ProcessingUnit): self.dataOut.abscissaList = self.dataIn.getVelRange(1) self.dataOut.spc_noise = self.dataIn.getNoise() self.dataOut.spc_range = (self.dataIn.getFreqRange(1) , self.dataIn.getAcfRange(1) , self.dataIn.getVelRange(1)) - # self.dataOut.normFactor = self.dataIn.normFactor + self.dataOut.normFactor = self.dataIn.normFactor self.dataOut.pairsList = self.dataIn.pairsList self.dataOut.groupList = self.dataIn.pairsList self.dataOut.flagNoData = False @@ -2119,7 +2119,8 @@ class WindProfiler(Operation): def run(self, dataOut, technique, nHours=1, hmin=70, hmax=110, **kwargs): param = dataOut.data_param - if dataOut.abscissaList != None: + if dataOut.abscissaList.any(): + #if dataOut.abscissaList != None: absc = dataOut.abscissaList[:-1] # noise = dataOut.noise heightList = dataOut.heightList diff --git a/schainpy/model/utils/jroutils_ftp.py b/schainpy/model/utils/jroutils_ftp.py index f913716..dceb206 100644 --- a/schainpy/model/utils/jroutils_ftp.py +++ b/schainpy/model/utils/jroutils_ftp.py @@ -583,7 +583,10 @@ class SendToServer(ProcessingUnit): self.clientObj = None def setup(self, server, username, password, remotefolder, localfolder, ext='.png', period=60, protocol='ftp', **kwargs): - + self.server = server + self.username = username + self.password = password + self.remotefolder = remotefolder self.clientObj = None self.localfolder = localfolder self.ext = ext @@ -947,7 +950,7 @@ class FTP(object): """ self.ftp.close() - +@MPDecorator class SendByFTP(Operation): def __init__(self, **kwargs):