Skip to content

Commit

Permalink
now that weight kwarg is connected in the function again, we needed t…
Browse files Browse the repository at this point in the history
…o set it correctly in the test.
  • Loading branch information
bmeyers committed Jul 16, 2024
1 parent 7725f4c commit ba6b065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/solardatatools/test_signal_decompositions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba6b065

Please sign in to comment.