From 1a167ee1a9906d5b8554521b6259e572f2409340 Mon Sep 17 00:00:00 2001 From: Meyers-Im Date: Fri, 15 Mar 2024 16:34:51 -0700 Subject: [PATCH] require a minimum of 20 monte carlo samples --- solardatatools/algorithms/loss_factor_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solardatatools/algorithms/loss_factor_analysis.py b/solardatatools/algorithms/loss_factor_analysis.py index b03d28ac..f006e491 100644 --- a/solardatatools/algorithms/loss_factor_analysis.py +++ b/solardatatools/algorithms/loss_factor_analysis.py @@ -164,7 +164,7 @@ def estimate_degradation_rate( f"changes: {diffs[-1][0]:.3e}, {diffs[-1][1]:.3e}, {diffs[-1][2]:.3e}" ) # check exit conditions - if counter < 10: + if counter < 20: # get at least 10 samples continue elif counter > max_samples: