Skip to content

Commit

Permalink
fixing issues with new main TSEVA
Browse files Browse the repository at this point in the history
  • Loading branch information
Alowis committed Aug 26, 2024
1 parent 99ca64b commit e4c8811
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions R/mainTSEVA.R
Original file line number Diff line number Diff line change
@@ -221,6 +221,7 @@ TsEvaNs<- function(timeAndSeries, timeWindow, transfType='trendPeaks',minPeakDis
TrendTh=NA
}
}
print(TrendTh)
trasfData = tsEvaTransformSeriesToStationaryPeakTrend( timeStamps, series, timeWindow, TrendTh);
gevMaxima = 'annual'
potEventsPerYear = epy
2 changes: 1 addition & 1 deletion R/trend_functions.R
Original file line number Diff line number Diff line change
@@ -903,7 +903,7 @@ tsEvaFindTrendThreshold<-function(series, timeStamps, timeWindow){
timeb = timeStamps
timeb = timeb[-which(serieb < thrsdt)]
serieb[which(serieb < thrsdt)] <- NA
checkY=check_timeserie2(timeb,bounds)
checkY=check_timeseries(timeb,bounds)
if (checkY == FALSE) {
print(paste0("not all years - q= ",pcts[iter]))
break
2 changes: 1 addition & 1 deletion RtsEva.Rproj
Original file line number Diff line number Diff line change
@@ -18,5 +18,5 @@ StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --as-cran
PackageCheckArgs: --as-cran --no-multiarch
PackageRoxygenize: rd,collate,namespace,vignette
7 changes: 6 additions & 1 deletion man/TsEvaNs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4c8811

Please sign in to comment.