-
Notifications
You must be signed in to change notification settings - Fork 0
Add total flux columns #112
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
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,50 @@ | ||
| """add total fluxes | ||
Check warningCode scanning / Pylint (reported by Codacy) Module name "20250505-162126_fc8ea63b8c9d_add_total_fluxes" doesn't conform to snake_case naming style Warning
Module name "20250505-162126_fc8ea63b8c9d_add_total_fluxes" doesn't conform to snake_case naming style
|
||
|
|
||
| Revision ID: fc8ea63b8c9d | ||
| Revises: 5b40ed8dcd48 | ||
| Create Date: 2025-05-05 16:21:26.652825 | ||
|
|
||
| """ | ||
| from alembic import op | ||
Check warningCode scanning / Pylint (reported by Codacy) No name 'op' in module 'alembic' Warning
No name 'op' in module 'alembic'
|
||
| import sqlalchemy as sa | ||
Check warningCode scanning / Prospector (reported by Codacy) Unable to import 'sqlalchemy' (import-error) Warning
Unable to import 'sqlalchemy' (import-error)
Check warningCode scanning / Pylintpython3 (reported by Codacy) third party import "import sqlalchemy as sa" should be placed before "from alembic import op" Warning
third party import "import sqlalchemy as sa" should be placed before "from alembic import op"
|
||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = 'fc8ea63b8c9d' | ||
Check warningCode scanning / Pylint (reported by Codacy) Constant name "revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "revision" doesn't conform to UPPER_CASE naming style
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Constant name "revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "revision" doesn't conform to UPPER_CASE naming style
|
||
| down_revision = '5b40ed8dcd48' | ||
Check warningCode scanning / Pylint (reported by Codacy) Constant name "down_revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "down_revision" doesn't conform to UPPER_CASE naming style
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Constant name "down_revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "down_revision" doesn't conform to UPPER_CASE naming style
|
||
| branch_labels = None | ||
Check warningCode scanning / Pylint (reported by Codacy) Constant name "branch_labels" doesn't conform to UPPER_CASE naming style Warning
Constant name "branch_labels" doesn't conform to UPPER_CASE naming style
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Constant name "branch_labels" doesn't conform to UPPER_CASE naming style Warning
Constant name "branch_labels" doesn't conform to UPPER_CASE naming style
|
||
| depends_on = None | ||
Check warningCode scanning / Pylint (reported by Codacy) Constant name "depends_on" doesn't conform to UPPER_CASE naming style Warning
Constant name "depends_on" doesn't conform to UPPER_CASE naming style
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Constant name "depends_on" doesn't conform to UPPER_CASE naming style Warning
Constant name "depends_on" doesn't conform to UPPER_CASE naming style
|
||
|
|
||
|
|
||
| def upgrade(): | ||
Check warningCode scanning / Pylint (reported by Codacy) Missing function docstring Warning
Missing function docstring
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Missing function or method docstring Warning
Missing function or method docstring
|
||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column('target', sa.Column('total_flux_g', sa.Float(), nullable=True, comment='g-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_r', sa.Float(), nullable=True, comment='r-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_i', sa.Float(), nullable=True, comment='i-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_z', sa.Float(), nullable=True, comment='z-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_y', sa.Float(), nullable=True, comment='y-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_j', sa.Float(), nullable=True, comment='J band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (116/100) Warning
Line too long (116/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_g', sa.Float(), nullable=True, comment='Error in g-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_r', sa.Float(), nullable=True, comment='Error in r-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_i', sa.Float(), nullable=True, comment='Error in i-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_z', sa.Float(), nullable=True, comment='Error in z-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_y', sa.Float(), nullable=True, comment='Error in y-band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| op.add_column('target', sa.Column('total_flux_error_j', sa.Float(), nullable=True, comment='Error in J band total flux (nJy)')) | ||
Check warningCode scanning / Pylint (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Line too long (131/100) Warning
Line too long (131/100)
|
||
| # ### end Alembic commands ### | ||
|
|
||
|
|
||
| def downgrade(): | ||
Check warningCode scanning / Pylint (reported by Codacy) Missing function docstring Warning
Missing function docstring
|
||
Check warningCode scanning / Pylintpython3 (reported by Codacy) Missing function or method docstring Warning
Missing function or method docstring
|
||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.drop_column('target', 'total_flux_error_j') | ||
| op.drop_column('target', 'total_flux_error_y') | ||
| op.drop_column('target', 'total_flux_error_z') | ||
| op.drop_column('target', 'total_flux_error_i') | ||
| op.drop_column('target', 'total_flux_error_r') | ||
| op.drop_column('target', 'total_flux_error_g') | ||
| op.drop_column('target', 'total_flux_j') | ||
| op.drop_column('target', 'total_flux_y') | ||
| op.drop_column('target', 'total_flux_z') | ||
| op.drop_column('target', 'total_flux_i') | ||
| op.drop_column('target', 'total_flux_r') | ||
| op.drop_column('target', 'total_flux_g') | ||
| # ### end Alembic commands ### | ||
Large diffs are not rendered by default.
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Module name "20250505-162126_fc8ea63b8c9d_add_total_fluxes" doesn't conform to snake_case naming style Warning