From 4cfb7526202ea4c9a79e4a278791ed6173580cbc Mon Sep 17 00:00:00 2001 From: Jeremy McCormick Date: Wed, 13 Nov 2024 09:10:54 +0100 Subject: [PATCH] Hardcode the list of instruments in the migration script --- alembic-autogenerate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alembic-autogenerate.py b/alembic-autogenerate.py index ea9aebfa..f0c5ae8c 100755 --- a/alembic-autogenerate.py +++ b/alembic-autogenerate.py @@ -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)] +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: