Skip to content

Commit

Permalink
adjust deprecation warning for scs and make cvx default solver in lon…
Browse files Browse the repository at this point in the history
…g fitting
  • Loading branch information
pluflou committed May 24, 2024
1 parent 1dfdb51 commit b37d0e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvsystemprofiler/algorithms/longitude/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def fit_longitude(eot, solarnoon, days, gmt_offset, loss='l2'):
cost = cost_func(sn_h[use_days] - solarnoon[use_days])
objective = cvx.Minimize(cost)
problem = cvx.Problem(objective)
problem.solve(solver=cvx.ECOS)
problem.solve("CLARABEL")
return lon.value.item()
6 changes: 5 additions & 1 deletion statistical_clear_sky/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@

from warnings import warn

warn("Starting in Solar Data Tools 1.5.0, the Statistical Clear Sky package will be deprecated.", FutureWarning)
warn(
"The Statistical Clear Sky package is deprecated. Starting in Solar Data Tools 2.0, it will be removed.",
DeprecationWarning,
stacklevel=2
)

0 comments on commit b37d0e9

Please sign in to comment.