-
Notifications
You must be signed in to change notification settings - Fork 0
Pointing residual stats #26
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
Changes from all commits
851d9bc
5933131
9dc514b
c94febc
c1b299f
62ea3d0
1160bfe
b76c4eb
4523c2d
f7c6123
04652f0
06dff81
14a560d
b7ab262
348677b
d9c073e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| """Add residual_stats to PointingResidualTable | ||
|
|
||
| Revision ID: a1b2c3d4e5f6 | ||
| Revises: cd9bc4ba5bc0 | ||
| Create Date: 2026-04-23 | ||
|
|
||
| """ | ||
|
|
||
| from typing import Sequence, Union | ||
|
Check failure on line 9 in mapcat/alembic/versions/a1b2c3d4e5f6_add_residual_stats_to_pointing_residuals.py
|
||
|
|
||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision: str = "a1b2c3d4e5f6" | ||
| down_revision: Union[str, None] = "cd9bc4ba5bc0" | ||
|
Check failure on line 16 in mapcat/alembic/versions/a1b2c3d4e5f6_add_residual_stats_to_pointing_residuals.py
|
||
| branch_labels: Union[str, Sequence[str], None] = None | ||
|
Check failure on line 17 in mapcat/alembic/versions/a1b2c3d4e5f6_add_residual_stats_to_pointing_residuals.py
|
||
| depends_on: Union[str, Sequence[str], None] = None | ||
|
Check failure on line 18 in mapcat/alembic/versions/a1b2c3d4e5f6_add_residual_stats_to_pointing_residuals.py
|
||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| with op.batch_alter_table("depth_one_pointing_residuals") as batch: | ||
| batch.add_column(sa.Column("residual_stats", sa.JSON(), nullable=True)) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| with op.batch_alter_table("depth_one_pointing_residuals") as batch: | ||
| batch.drop_column("residual_stats") | ||
Uh oh!
There was an error while loading. Please reload this page.