Skip to content

Commit

Permalink
Hardcode the instrument list
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Nov 15, 2024
1 parent e38706d commit 68d1694
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions alembic-autogenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
# 3. Heed the message at the end to revise your auto-generated code as needed.
#

import glob
import os
import re
import sys

from alembic.config import Config
Expand All @@ -42,7 +40,7 @@

# 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 = ["latiss", "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 68d1694

Please sign in to comment.