Deprecate modelchain.get_orientation#2495
Conversation
|
I could also add tests to check whether the correct values are returned according to the strategy provided, is this necessary? |
Optional IMO. I'm actually wondering why modelchain.py has this function. It was added in 2016 in the initial modelchain build and hasn't been used since in the |
|
@cwhanse fair observation, are you proposing we deprecate and remove the function entirely? |
|
Yes get rid of it! |
get_orientation test to check error message stringmodelchain.get_orientation
echedey-ls
left a comment
There was a problem hiding this comment.
LGTM :)
Just a comment and a formatting preference down below.
|
@echedey-ls @kandersolar thanks for the feedback about the deprecation scheduling. Please review, let me know if the current version is in line with what you guys have in mind. |
|
Sorry, one more thing @RDaxini: can you also catch the warning in the tests using See https://github.com/pvlib/pvlib-python/actions/runs/16630932041/job/47059848104?pr=2495#step:9:84 |
docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.See discussion in related #2492Original testtest_bad_get_orientation():only checked whether a value error was raised, the new test (with what I think is a clearer name) checks not only whether a value error is raised but also whether the error string matches