From ba6b0653e8a416459ebda4c5d209d40147ab502b Mon Sep 17 00:00:00 2001 From: Meyers-Im Date: Tue, 16 Jul 2024 08:42:08 -0700 Subject: [PATCH] now that weight kwarg is connected in the function again, we needed to set it correctly in the test. --- tests/solardatatools/test_signal_decompositions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/solardatatools/test_signal_decompositions.py b/tests/solardatatools/test_signal_decompositions.py index a10cd53c..eee418da 100644 --- a/tests/solardatatools/test_signal_decompositions.py +++ b/tests/solardatatools/test_signal_decompositions.py @@ -139,7 +139,7 @@ def test_l2_l1d1_l2d2p365_default_long(self): # Run test actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365( - signal, w1=50, w2=1e6, solver=self.solver, return_all=True + signal, w1=50, w2=1e-3, solver=self.solver, return_all=True ) actual_obj_val = actual_problem.objective_value @@ -184,7 +184,7 @@ def test_l2_l1d1_l2d2p365_idx_select(self): # Run test actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365( - signal, w1=50, w2=1e6, solver=self.solver, use_ixs=indices, return_all=True + signal, w1=50, w2=1e-3, solver=self.solver, use_ixs=indices, return_all=True ) actual_obj_val = actual_problem.objective_value @@ -234,7 +234,7 @@ def test_l2_l1d1_l2d2p365_yearly_periodic(self): actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365( signal, w1=50, - w2=1e6, + w2=1e-3, solver=self.solver, yearly_periodic=True, return_all=True, @@ -333,7 +333,7 @@ def test_l2_l1d1_l2d2p365_osqp(self): # Run test actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365( - signal, w1=50, w2=1e6, solver="OSQP", yearly_periodic=True, return_all=True + signal, w1=50, w2=1e-3, solver="OSQP", yearly_periodic=True, return_all=True ) actual_obj_val = actual_problem.objective_value