From c342501d75e04c3ec2d65c16455c0fd031f74e69 Mon Sep 17 00:00:00 2001 From: ispingos Date: Thu, 19 Dec 2019 12:10:57 +0200 Subject: [PATCH] [Version 0.1.2] Important Fix for CA - The `Tend0` parameter for Cluster Analysis is now correctly acquired from the Preferences. --- pytheas/pytheas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytheas/pytheas.py b/pytheas/pytheas.py index dc4c6fd..b4e76a8 100644 --- a/pytheas/pytheas.py +++ b/pytheas/pytheas.py @@ -49,8 +49,8 @@ global VERSION global VERDATE -VERSION="0.1.1" -VERDATE="12/12/2019" +VERSION="0.1.2" +VERDATE="19/12/2019" ## first get script's path import os @@ -3426,7 +3426,7 @@ def applyCA(self,meth,stream,filtered,freqmin,freqmax,sPick, logging.debug("Dominant period is %.4f s" % dPer) # calculate window parameters self.caCNF.Tbeg0=-tpts/2. - self.caCNF.Tend0=dPer#+self.caCNF.Tbeg1 + #self.caCNF.Tend0=dPer#+self.caCNF.Tend0 # maybe consider this for the future? self.caCNF.Tend1=(self.caCNF.multPeriod*dPer)#+self.caCNF.Tbeg0 self.caCNF.Nbeg=int(np.ceil((self.caCNF.Tbeg1-self.caCNF.Tbeg0)/self.caCNF.DTbeg)) self.caCNF.Nend=int(np.ceil((self.caCNF.Tend1-self.caCNF.Tend0)/self.caCNF.DTend))