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

Measurements Upgrades: coordinates, bitflag, psf photometry #288

Merged
merged 16 commits into from
May 30, 2024
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ tests/local_config.yaml
tests/local_overrides.yaml
tests/local_augments.yaml
tests/improc/cache/*
data/cache/*
data/cache*
data/DECam_default_calibrators
.pytest.ini
tests/plots
tests/temp_data
coadd.weight.fits
tests/coadd.weight.fits

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""add bitflag for measurements

Revision ID: f36d17393be7
Revises: ec64a8fd8cf3
Create Date: 2024-05-23 16:52:07.448402

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'f36d17393be7'
down_revision = '2ea9f6f0b790'
branch_labels = None
depends_on = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('measurements', sa.Column('_bitflag', sa.BIGINT(), nullable=False))
op.add_column('measurements', sa.Column('description', sa.Text(), nullable=True))
op.add_column('measurements', sa.Column('_upstream_bitflag', sa.BIGINT(), nullable=False))
op.create_index(op.f('ix_measurements__bitflag'), 'measurements', ['_bitflag'], unique=False)
op.create_index(op.f('ix_measurements__upstream_bitflag'), 'measurements', ['_upstream_bitflag'], unique=False)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f('ix_measurements__upstream_bitflag'), table_name='measurements')
op.drop_index(op.f('ix_measurements__bitflag'), table_name='measurements')
op.drop_column('measurements', '_upstream_bitflag')
op.drop_column('measurements', 'description')
op.drop_column('measurements', '_bitflag')
# ### end Alembic commands ###
1 change: 0 additions & 1 deletion default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ photo_cal:
mag_range_catalog: 4.0
min_catalog_stars: 50


subtraction:
method: zogy
alignment:
Expand Down
2 changes: 1 addition & 1 deletion extern/nersc-upload-connector
Loading
Loading