Skip to content

Commit

Permalink
fixing tests again. cleaning up weights removed a hidden factor of 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeyers committed Jul 16, 2024
1 parent ba6b065 commit dc296a8
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 154 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions tests/solardatatools/test_signal_decompositions.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_l2_l1d1_l2d2p365_default(self):

# Run test
actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365(
signal, w1=50, solver=self.solver, return_all=True
signal, w1=5, solver=self.solver, return_all=True
)

actual_obj_val = actual_problem.objective_value
Expand Down 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=1e-3, solver=self.solver, return_all=True
signal, w1=5, 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=1e-3, solver=self.solver, use_ixs=indices, return_all=True
signal, w1=5, w2=1e-3, solver=self.solver, use_ixs=indices, return_all=True
)

actual_obj_val = actual_problem.objective_value
Expand Down Expand Up @@ -233,7 +233,7 @@ def test_l2_l1d1_l2d2p365_yearly_periodic(self):
# Run test
actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365(
signal,
w1=50,
w1=5,
w2=1e-3,
solver=self.solver,
yearly_periodic=True,
Expand Down Expand Up @@ -286,8 +286,7 @@ def test_l2_l1d1_l2d2p365_yearly_periodic_sum_card(self):
# Run test
actual_s_hat, actual_s_seas, _, actual_problem = sd.l2_l1d1_l2d2p365(
signal,
w1=50,
w2=1e6,
w1=5,
solver=self.solver,
yearly_periodic=True,
return_all=True,
Expand Down Expand Up @@ -333,7 +332,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=1e-3, solver="OSQP", yearly_periodic=True, return_all=True
signal, w1=5, w2=1e-3, solver="OSQP", yearly_periodic=True, return_all=True
)

actual_obj_val = actual_problem.objective_value
Expand Down

0 comments on commit dc296a8

Please sign in to comment.