From 9a6f531c12bb82bbff30bcf13b6c7840da758899 Mon Sep 17 00:00:00 2001 From: martin-springer Date: Mon, 20 Nov 2023 11:19:06 -0500 Subject: [PATCH] specify dtype seasonal_samples --- .gitignore | 3 +++ rdtools/soiling.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2a7bf5838..a289ac224 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ rdtools.egg-info* .\#* *.pickle + +# ignore vscode settings +.vscode/ diff --git a/rdtools/soiling.py b/rdtools/soiling.py index 76b007915..dac6bb269 100644 --- a/rdtools/soiling.py +++ b/rdtools/soiling.py @@ -2507,7 +2507,8 @@ def _make_seasonal_samples(list_of_SCs, sample_nr=10, min_multiplier=0.5, ''' Generate seasonal samples by perturbing the amplitude and the phase of a seasonal components found with the fitted CODS model ''' samples = pd.DataFrame(index=list_of_SCs[0].index, - columns=range(int(sample_nr*len(list_of_SCs)))) + columns=range(int(sample_nr*len(list_of_SCs))), + dtype=float) # From each fitted signal, we will generate new seaonal components for i, signal in enumerate(list_of_SCs): # Remove beginning and end of signal