-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into remove-readnoise-bokeh
- Loading branch information
Showing
18 changed files
with
479 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Generated by Django 3.1.7 on 2022-09-09 17:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ImageData', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('inst', models.CharField(choices=[('FGS', 'FGS'), ('MIRI', 'MIRI'), ('NIRCam', 'NIRCam'), ('NIRISS', 'NIRISS'), ('NIRSpec', 'NIRSpec')], default=None, max_length=7, verbose_name='instrument')), | ||
('pub_date', models.DateTimeField(verbose_name='date published')), | ||
('filepath', models.FilePathField(path='/user/lchambers/jwql/')), | ||
], | ||
options={ | ||
'verbose_name_plural': 'image data', | ||
'db_table': 'imagedata', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='InstrumentFilterHandler', | ||
fields=[ | ||
('instrument', models.CharField(max_length=10, primary_key=True, serialize=False)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='ThumbnailFilterInfo', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('observation', models.PositiveIntegerField()), | ||
('proposal', models.PositiveIntegerField()), | ||
('root_name', models.CharField(max_length=300)), | ||
('marked_viewed', models.BooleanField(default=False)), | ||
('inst_handler', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jwql.instrumentfilterhandler')), | ||
], | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
jwql/website/apps/jwql/migrations/0002_auto_20220913_1525.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.1.7 on 2022-09-13 20:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('jwql', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='thumbnailfilterinfo', | ||
name='id', | ||
), | ||
migrations.AlterField( | ||
model_name='instrumentfilterhandler', | ||
name='instrument', | ||
field=models.TextField(max_length=10, primary_key=True, serialize=False), | ||
), | ||
migrations.AlterField( | ||
model_name='thumbnailfilterinfo', | ||
name='root_name', | ||
field=models.TextField(max_length=300, primary_key=True, serialize=False), | ||
), | ||
] |
58 changes: 58 additions & 0 deletions
58
jwql/website/apps/jwql/migrations/0003_auto_20220921_0955.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 3.1.7 on 2022-09-21 14:55 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('jwql', '0002_auto_20220913_1525'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Archive', | ||
fields=[ | ||
('instrument', models.CharField(help_text='Instrument name', max_length=7, primary_key=True, serialize=False)), | ||
], | ||
options={ | ||
'ordering': ['instrument'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Observation', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('obsnum', models.CharField(help_text='Observation number, as a 3 digit string', max_length=3)), | ||
('number_of_files', models.IntegerField(default=0, help_text='Number of files in the proposal')), | ||
('obsstart', models.FloatField(default=0.0, help_text='Time of the beginning of the observation in MJD')), | ||
('obsend', models.FloatField(default=0.0, help_text='Time of the end of the observation in MJD')), | ||
('exptypes', models.CharField(default='', help_text='Comma-separated list of exposure types', max_length=100)), | ||
], | ||
options={ | ||
'ordering': ['-obsnum'], | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Proposal', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('prop_id', models.CharField(help_text='5-digit proposal ID string', max_length=5)), | ||
('thumbnail_path', models.CharField(default='', help_text='Path to the proposal thumbnail', max_length=100)), | ||
('archive', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jwql.archive')), | ||
], | ||
options={ | ||
'ordering': ['-prop_id'], | ||
'unique_together': {('prop_id', 'archive')}, | ||
}, | ||
), | ||
migrations.DeleteModel( | ||
name='ImageData', | ||
), | ||
migrations.AddField( | ||
model_name='observation', | ||
name='proposal', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jwql.proposal'), | ||
), | ||
] |
33 changes: 33 additions & 0 deletions
33
jwql/website/apps/jwql/migrations/0004_auto_20220922_0911.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.1.7 on 2022-09-22 14:11 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('jwql', '0003_auto_20220921_0955'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='thumbnailfilterinfo', | ||
name='obsnum', | ||
field=models.CharField(default=11, help_text='Observation number, as a 3 digit string', max_length=3), | ||
preserve_default=False, | ||
), | ||
migrations.CreateModel( | ||
name='RootFileInfo', | ||
fields=[ | ||
('instrument', models.CharField(help_text='Instrument name', max_length=7)), | ||
('proposal', models.CharField(help_text='5-digit proposal ID string', max_length=5)), | ||
('root_name', models.TextField(max_length=300, primary_key=True, serialize=False)), | ||
('viewed', models.BooleanField(default=False)), | ||
('obsnum', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jwql.observation')), | ||
], | ||
options={ | ||
'ordering': ['-root_name'], | ||
}, | ||
), | ||
] |
Oops, something went wrong.