Skip to content

Commit

Permalink
specify dtype seasonal_samples
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Nov 20, 2023
1 parent a5945f1 commit 9a6f531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ rdtools.egg-info*
.\#*

*.pickle

# ignore vscode settings
.vscode/
3 changes: 2 additions & 1 deletion rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a6f531

Please sign in to comment.