Skip to content

Commit

Permalink
Re-adding instrument and updating field types
Browse files Browse the repository at this point in the history
  • Loading branch information
mfixstsci committed Nov 20, 2024
1 parent d4d44e2 commit 5b36c37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jwql/website/apps/jwql/monitor_models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ class Meta:

FILE_SUFFIX_CLASS = Enum('FILE_SUFFIX_CLASS', FILE_SUFFIX_TYPES)

class InstrumentEnum(Enum):
FGS_TYPE = "fgs"
MIRI_TYPE = "miri"
NIRCAM_TYPE = "nircam"
NIRISS_TYPE = "niriss"
NIRSPEC_TYPE = "nirspec"

class Monitor(models.Model):
monitor_name = models.CharField()
Expand Down Expand Up @@ -248,8 +254,9 @@ class Meta:

class FilesystemInstrument(models.Model):
date = models.DateTimeField()
instrument = EnumField(InstrumentEnum) # This field type is a guess.
filetype = EnumField(FILE_SUFFIX_CLASS) # This field type is a guess.
count = EnumField(FILE_SUFFIX_CLASS)
count = models.IntegerField()
size = models.FloatField()

class Meta:
Expand Down

0 comments on commit 5b36c37

Please sign in to comment.