From d1126e30d6ef6cbb991a0bf8851d1e8f9ba776ec Mon Sep 17 00:00:00 2001 From: Bryan Hilbert Date: Tue, 21 Jan 2025 15:16:40 -0500 Subject: [PATCH] Fix apps.py location. Update example config --- jwql/example_config.json | 1 + jwql/website/{apps/jwql => }/apps.py | 1 + .../0029_wispfinderb4queryhistory.py | 28 +++++++++++++++++++ .../apps/jwql/monitor_pages/__init__.py | 2 ++ 4 files changed, 32 insertions(+) rename jwql/website/{apps/jwql => }/apps.py (93%) create mode 100644 jwql/website/apps/jwql/migrations/0029_wispfinderb4queryhistory.py diff --git a/jwql/example_config.json b/jwql/example_config.json index adcf87555..80f920a76 100644 --- a/jwql/example_config.json +++ b/jwql/example_config.json @@ -43,6 +43,7 @@ "setup_file" : "", "test_data" : "", "test_dir" : "", + "wisp_finder_ML_model" : "", "thumbnail_filesystem" : "", "cores" : "", "redis_host": "", diff --git a/jwql/website/apps/jwql/apps.py b/jwql/website/apps.py similarity index 93% rename from jwql/website/apps/jwql/apps.py rename to jwql/website/apps.py index d8c347d31..b603db453 100644 --- a/jwql/website/apps/jwql/apps.py +++ b/jwql/website/apps.py @@ -28,3 +28,4 @@ def ready(self): import jwql.website.apps.jwql.monitor_models.dark_current import jwql.website.apps.jwql.monitor_models.readnoise import jwql.website.apps.jwql.monitor_models.ta + import jwql.website.apps.jwql.monitor_models.wisp_finder diff --git a/jwql/website/apps/jwql/migrations/0029_wispfinderb4queryhistory.py b/jwql/website/apps/jwql/migrations/0029_wispfinderb4queryhistory.py new file mode 100644 index 000000000..9ef047c67 --- /dev/null +++ b/jwql/website/apps/jwql/migrations/0029_wispfinderb4queryhistory.py @@ -0,0 +1,28 @@ +# Generated by Django 5.1.4 on 2025-01-21 20:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('jwql', '0028_alter_filesystemcharacteristics_filter_pupil_and_more'), + ] + + operations = [ + migrations.CreateModel( + name='WispFinderB4QueryHistory', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('entry_date', models.DateTimeField(blank=True, null=True)), + ('start_time_mjd', models.FloatField(blank=True, null=True)), + ('end_time_mjd', models.FloatField(blank=True, null=True)), + ('run_monitor', models.BooleanField(blank=True, null=True)), + ], + options={ + 'db_table': 'wisp_finder_b4_query_history', + 'managed': True, + 'unique_together': {('id', 'entry_date')}, + }, + ), + ] diff --git a/jwql/website/apps/jwql/monitor_pages/__init__.py b/jwql/website/apps/jwql/monitor_pages/__init__.py index ba9fc9d4a..ede985f9f 100644 --- a/jwql/website/apps/jwql/monitor_pages/__init__.py +++ b/jwql/website/apps/jwql/monitor_pages/__init__.py @@ -42,3 +42,5 @@ from jwql.website.apps.jwql.monitor_models.readnoise import NIRSpecReadnoiseQueryHistory, NIRSpecReadnoiseStats from jwql.website.apps.jwql.monitor_models.ta import MIRITaQueryHistory + + from jwql.website.apps.jwql.monitor_models.wisp_finder import WispFinderB4QueryHistory