-
Notifications
You must be signed in to change notification settings - Fork 1.1k
update API entrypoint #1466
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
update API entrypoint #1466
Conversation
new API entrypoint PVGIS 5.2
👀 @kanderso-nrel does pvgis have a new api endpoint? |
See #1415. I had thought that we didn't need to change the url, and they would eventually point the original url to the new 5.2 data, but this page suggests otherwise:
Anyway thanks @ancirTOR for the PR! Can you take a look at updating the pvgis tests for this change as well? I think we will also want some minor docstring edits for this as mentioned in #1415. Edit: actually, does this maybe count as a breaking change? I know it's an external service that we don't control, but the above link says there's a way to keep using the old data. Does that mean we should stick with PVGIS 5.1 for now and wait until v0.10.0 to switch to PVGIS 5.2? |
I have a feeling that it is a bad idea to hardcode the version number. What is your opinion @kanderso-nrel? As stated in the PVGIS doscs the endpoint https://re.jrc.ec.europa.eu/api/ will default to 5.1 for now:
To me, this means that sometime in the future they will change this to default to the PVGIS 5.2 database, i.e., generally to the most recent version with somedelay. Having the version hardcoded makes it difficult for users to understand which database is actually being used. Some versions of pvlib will then default to 5.1, some will use 5.2, and in the future maybe also 5.3 and so forth. As it is set up right now, users can utilize a specific version of the database by manually specifying the URL:
|
I guess "will continue serve PVGIS 5.1 for a limited period" and "will continue to serve PVGIS 5.1 for the time being" are both ambiguous -- they could mean that they will switch the old url to the new data, as you say and as I previously thought, or they could mean that they are changing the url scheme to explicitly include the data version, and someday the old versionless url will be retired. Maybe we could just ask them for clarity :) |
Hi @NikosAlexandris (employee at the Joint Research Center who works on PVGIS) |
hi everyone, i will wait confirmation about this change before updating the pvgis test as well. From what i can understand the current API entry point won't be supported anymore so everyone using it should update it to one of the newest releas 5.1 or 5.2. Anyway it is a good point to ask directly to someone involved in the pvgis projet as AdamRJensen did. |
Apologies for the delay! In the API Non-Interactive Service documentation page, it is stated
Indeed, this isn't clear enough about the future setup. We are updating our database and once PVGIS v5.2 is ready, it will be the default version served via the stadard entrypoint https://re.jrc.ec.europa.eu/api/. What is served currently via https://re.jrc.ec.europa.eu/api/v5_2/ is beta and comes with issues mentioned in the release notes. In any case, we are not going to deprecate the default URL scheme. |
Thank you @NikosAlexandris for clarifying! Sounds like we don't need to make any changes on our side and can close this PR then. Thanks also @ancirTOR for the PR, even if we didn't end up merging it :) |
new API entrypoint PVGIS 5.2
docs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for 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`
).