Skip to content

Commit

Permalink
[Version 0.1.2] Important Fix for CA
Browse files Browse the repository at this point in the history
- The  `Tend0` parameter for Cluster Analysis is now correctly acquired from the Preferences.
  • Loading branch information
ispingos committed Dec 19, 2019
1 parent 7974552 commit c342501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytheas/pytheas.py
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit c342501

Please sign in to comment.