API Version 2.5#53
Conversation
Co-authored-by: Alexander Rey <mail@alexanderrey.ca> Co-authored-by: alexander0042 <alexander0042@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…non-major-versions group (#48) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ns group (#62) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
@alexander0042 Mentioned this in a discussion but you may have missed it: The development endpoint has crashed again and needs to be restarted. Would a restart policy help so it doesn't crash or would that not change anything? You think this will launch next week or we looking more towards March before this can be launched? I know you're busy with the newborn but am curious as to when this may go live. Also can #71 be merged or is there a reason why we're still using 5.9.0? |
|
Ok, I'm back! Wild five weeks, but things have definitely settled down here! Starting with Pull #71, and then going from there |
Bumps the non-major-versions group with 4 updates: [ruff](https://github.com/astral-sh/ruff), [boto3](https://github.com/boto/boto3), [zarr](https://github.com/zarr-developers/zarr-python) and [starlette](https://github.com/encode/starlette). Updates `ruff` from 0.9.6 to 0.9.7 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.9.6...0.9.7) Updates `boto3` from 1.36.21 to 1.36.26 - [Release notes](https://github.com/boto/boto3/releases) - [Commits](boto/boto3@1.36.21...1.36.26) Updates `zarr` from 3.0.3 to 3.0.4 - [Release notes](https://github.com/zarr-developers/zarr-python/releases) - [Changelog](https://github.com/zarr-developers/zarr-python/blob/main/docs/release-notes.rst) - [Commits](zarr-developers/zarr-python@v3.0.3...v3.0.4) Updates `starlette` from 0.45.3 to 0.46.0 - [Release notes](https://github.com/encode/starlette/releases) - [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md) - [Commits](Kludex/starlette@0.45.3...0.46.0) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-major-versions - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-major-versions - dependency-name: zarr dependency-type: direct:production update-type: version-update:semver-patch dependency-group: non-major-versions - dependency-name: starlette dependency-type: direct:production update-type: version-update:semver-minor dependency-group: non-major-versions ... Signed-off-by: dependabot[bot] <support@github.com>
|
There's also now #73 but they're all minor updates so should be safe to update? I usually merge them in but I can stop doing that if you'd prefer to look at it yourself. |
One quick thought on this: I really don't have any particular workflow with respect to these files. so totally ok to rename them! |
Added to my PR. |
UGH, great catch, and can't believe no one has noticed this over the past few years! One the one hand, I really don't want to change it, since it would be a major breaking change to the API. On the other hand though, it would partially solve the "intensity during mixed snow/rain events" issue, and just generally be a cleaner way of doing things. On the balance though, I think we leave it as is, since it's been around for so long and probably more useful this way |
Re: PR #73, this was the where I hit some issues with 2.5. Since it moved zarr over to V3, that actually is a decent change. Got it all working now though (it was just syntax), and planning on FINAILLY moving 2.5 to prod unless I'm missing something major |
Would splitting it into a snowfall and liquid intensity fix the issue? That way the precipIntensity works as Dark Sky did and the snowfall one would be as it is now or would that still be a big change? |
It would be an easy enough change, since we're already calculating them separately. However, what I'm more worried about is users who have set things up assuming precipitation intensity will show either snowfall or rain rates, and then suddenly all the snow amounts would be out of whack. I love the idea of adding another one in though, so we have additional |
|
@alexander0042 The only thing I can see would be to change the docker image used in pirate-api. Currently its FROM nikolaik/python-nodejs:python3.12-nodejs22-slim and should just be a python image now that the node code is gone. Ideally it should have the same python version as the ingest dockerfile. So should probably be python-3.13 since thats the latest version. |
The snowfall rates on the live API are already using the liquid representation of snowfall at the moment with the dev endpoint changing it back to the non-liquid version. Adding that code in wouldn't be a huge change to how it works currently on the live endpoint. |
Ok, that's a great point. It's been that way for a while now and no one complained, so that's a really good reason to keep it consistent! Let me see how hard it would be to switch it back/ add that variable in |
Also removed testing direct zip access. Doesn't work with zarr v3 and creates a host of dependency issues
|
Started adding those variables, but I realized there's not as much value as I though. Since minute will always have a type, all that variable would do is multiply the intensity by 10 if it's snowing, and 1 if it's raining. I know we did that with accumulations, but since they're used a fair bit more I think it's a little more justified. I left all the framework in the script though, so easy to change in the future |
It might be useful if/when this gets added in Pirate-Weather/pirateweather#89 since the snow to liquid ratio will change depending on temperature and wind speed. If nothing else is being added to V2.5 then I think it should be good to go live and then #66 and any other issues you've missed can be added in V2.5.1 or V2.6. |
|
Ok, added in! Also didn't have to chance the text generation, since accumulations are always used. The "currently" text does use intensity; however, so I added a factor to the conversion that's already being done! |
Oh yea, #66 definitely deserves a V2.6 title |
Okay renamed. I had setup a simple version of the daily summaries in case its something you wanted to add in to V2.5 or a V2.5.x version but if you're moving it to V2.6 then the proper daily summaries should be used instead. |
|
This has been merged up to the main branch. Once it gets pushed up to live the API docs will need to be updated but I think I covered off most things there already. |
Describe the change
Pushes API V2.5.0 to the main branch. @alexander0042 the changes you made yesterday haven't been pushed to this repo.
EDIT: Dependabot needs to be excluded from the CLA agreement as its waiting for it to sign which it will never do.
Type of change
Checklist