Skip to content

Commit

Permalink
Hardcode the list of instruments in the migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Nov 13, 2024
1 parent 32ee10d commit 4cfb752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alembic-autogenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

# Loop over each of the instruments
pattern = os.environ["SDM_SCHEMAS_DIR"] + "/yml/cdb_*.yaml"
instruments = [re.search(r"cdb_(.+)\.yaml$", file).group(1) for file in glob.glob(pattern)]
# instruments = [re.search(r"cdb_(.+)\.yaml$", file).group(1) for file in glob.glob(pattern)]

Check failure on line 45 in alembic-autogenerate.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

W505

doc line too long (93 > 79 characters)
instruments = ["latiss", "lsstcam", "lsstcomcam", "lsstcomcamsim"]
for instrument in instruments:
# Set up a temporary PostgreSQL instance using testing.postgresql
with setup_postgres_test_db() as instance:
Expand Down

0 comments on commit 4cfb752

Please sign in to comment.