Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transit_sunrise_sunset: seems as a public function, not in public docs? #2255

Open
echedey-ls opened this issue Oct 11, 2024 · 4 comments
Open

Comments

@echedey-ls
Copy link
Contributor

echedey-ls commented Oct 11, 2024

Describe the bug

def transit_sunrise_sunset(dates, lat, lon, delta_t, numthreads):

Personally, I don't find any signs that it may be a private function. However, it does not appear in the webpage:

Well it's not true: it appears here https://pvlib-python.readthedocs.io/en/stable/reference/generated/pvlib.spa.html
I wasn't around when pvlib.spa didn't get documented, so seeing it's not the only undocumented function, maybe it was deliberate?

Expected
To see its documentation on ReadTheDocs.

Versions:

  • pvlib.__version__: 0.11.0
@cwhanse
Copy link
Member

cwhanse commented Oct 11, 2024

In v0.1 when this function was added the documents didn't have the auto-built the API reference pages. Omission was probably to avoid cluttering the solarposition.py module page and only list the most significant functions.

@echedey-ls
Copy link
Contributor Author

I understand why it didn't get included at that time. For the current status of pvlib, is it desired to publicize it or not? I feel it is a well-documented function that may compete with pvlib.location.Location.get_sun_rise_set_transit. At least that one, I can't speak for the rest of functions. Consider this issue as a potential discussion-opener for that.

@cwhanse
Copy link
Member

cwhanse commented Oct 21, 2024

I don't see any downside to adding this function to the API documentation.

@AdamRJensen
Copy link
Member

Agreed, a PR to include it is welcomed 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants