-
-
Notifications
You must be signed in to change notification settings - Fork 10
Issue/probablistic #202
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
Merged
Merged
Issue/probablistic #202
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6139fe3
add JSON column for ForecastValue ready for probablistic forecasts
peterdudfield 6555198
add into convert function
peterdudfield 08aa1ac
add to forecast_value_latest
peterdudfield ba46112
add properties when updating foreast_value_latest
peterdudfield c03b86c
add to tests
peterdudfield 24ed347
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0d717d6
start blending forecasts
peterdudfield beb2e7d
Merge commit '24ed3476078ccd14f09da93e86de1ae81d6861ac' into issue/pr…
peterdudfield 0be65f2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 219eb1e
clean up
peterdudfield dfde574
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 82b3d89
fix
peterdudfield 25cf89c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3d3e787
add method to just take properties from one model
peterdudfield a5cdc7e
Merge commit '25cf89c7d850849d4558038640979ad130075507' into issue/pr…
peterdudfield 4e48b6d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bd21c53
normalize properties values by the blended values
peterdudfield 177de50
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a4c5404
add to tests
peterdudfield 7ac1364
Merge commit '177de50013ad4d937b2d480397e57d5d35bb10ca' into issue/pr…
peterdudfield 4b6f27a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cef1ea0
update
peterdudfield 552f2d7
Merge commit '4b6f27a97ecf7db6226e3e1ced8d021780d9b599' into issue/pr…
peterdudfield 7105a2e
tidy up " rm_mode = True"
peterdudfield bd69cce
tidy
peterdudfield 512f09d
pydantic==1.10.10
peterdudfield f5095a6
add migrations
peterdudfield f3b858c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] af1cf53
add comments
peterdudfield bbfa333
fix convert
peterdudfield File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
nowcasting_datamodel/migrations/forecast/versions/a6fb75892950_.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
"""Add properties column to forecast_value | ||
|
||
Revision ID: a6fb75892950 | ||
Revises: 08ba6879b865 | ||
Create Date: 2023-07-03 11:00:31.216789 | ||
|
||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "a6fb75892950" | ||
down_revision = "08ba6879b865" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): # noqa | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
|
||
op.add_column("forecast_value", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2022_09", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2022_10", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2022_11", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2022_12", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_01", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_02", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_03", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_04", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_05", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_06", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_07", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_08", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_09", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_10", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_11", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_2023_12", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column( | ||
"forecast_value_last_seven_days", sa.Column("properties", sa.JSON(), nullable=True) | ||
) | ||
op.add_column("forecast_value_latest", sa.Column("properties", sa.JSON(), nullable=True)) | ||
op.add_column("forecast_value_old", sa.Column("properties", sa.JSON(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): # noqa | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("forecast_value_old", "properties") | ||
op.drop_column("forecast_value_latest", "properties") | ||
op.drop_column("forecast_value_last_seven_days", "properties") | ||
op.drop_column("forecast_value_2023_12", "properties") | ||
op.drop_column("forecast_value_2023_11", "properties") | ||
op.drop_column("forecast_value_2023_10", "properties") | ||
op.drop_column("forecast_value_2023_09", "properties") | ||
op.drop_column("forecast_value_2023_08", "properties") | ||
op.drop_column("forecast_value_2023_07", "properties") | ||
op.drop_column("forecast_value_2023_06", "properties") | ||
op.drop_column("forecast_value_2023_05", "properties") | ||
op.drop_column("forecast_value_2023_04", "properties") | ||
op.drop_column("forecast_value_2023_03", "properties") | ||
op.drop_column("forecast_value_2023_02", "properties") | ||
op.drop_column("forecast_value_2023_01", "properties") | ||
op.drop_column("forecast_value_2022_12", "properties") | ||
op.drop_column("forecast_value_2022_11", "properties") | ||
op.drop_column("forecast_value_2022_10", "properties") | ||
op.drop_column("forecast_value_2022_09", "properties") | ||
op.drop_column("forecast_value", "properties") | ||
|
||
# ### end Alembic commands ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.