From 51278f371eb3e2b804ebc34b4832d5afd634f335 Mon Sep 17 00:00:00 2001 From: MiguelonGonzalez Date: Thu, 24 Mar 2022 19:21:27 +0100 Subject: [PATCH] Update wavelet.py --- wasar/wavelet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wasar/wavelet.py b/wasar/wavelet.py index 77aa712..bb0e621 100644 --- a/wasar/wavelet.py +++ b/wasar/wavelet.py @@ -423,6 +423,7 @@ def _xwt(self, **kwargs): #******************************************************************************* _cwt_func = """ +if("WaveletComp" %in% rownames(installed.packages()) == FALSE) {install.packages("WaveletComp")} library(WaveletComp) Sys.setlocale("LC_TIME", "English") @@ -482,6 +483,8 @@ def _xwt(self, **kwargs): ######################################################################### _xwt_func = """ +if("WaveletComp" %in% rownames(installed.packages()) == FALSE) {install.packages("WaveletComp")} + library(WaveletComp) Sys.setlocale("LC_TIME", "English")