Skip to content

Commit

Permalink
setting verbosity to true to check clipping SD runs
Browse files Browse the repository at this point in the history
  • Loading branch information
pluflou committed Aug 24, 2023
1 parent b97a53f commit 58978d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solardatatools/algorithms/clipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def calculate_cdf(self, data):
return x_rs, y_rs

def get_l2_l1d2(self, y, weight=5, solver=None):
out = l2_l1d2_constrained(y, w1=weight, solver=solver)
out = l2_l1d2_constrained(y, w1=weight, solver=solver, verbose=True)

self.y_param = out[0]
self.y_hat = out[1]
Expand Down
2 changes: 1 addition & 1 deletion tests/solardatatools/test_data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_load_and_run(self):
data_file_path = filepath / "fixtures" / "data_transforms" / "timeseries.csv"
df = pd.read_csv(data_file_path, index_col=0, parse_dates=True)
dh = DataHandler(df)
dh.run_pipeline(verbose=False)
dh.run_pipeline(verbose=True)
# dh.report()
self.assertAlmostEqual(dh.capacity_estimate, 6.7453649044036865, places=2)
self.assertAlmostEqual(dh.data_quality_score, 0.9948186528497409, places=3)
Expand Down

0 comments on commit 58978d9

Please sign in to comment.