Skip to content
Snippets Groups Projects

WS-507: Ingestion Manifest Builder prenatal exam

Merged Janet Goldstein requested to merge WS-507-build-ingestion-manifest into main
8 files
+ 187
0
Compare changes
  • Side-by-side
  • Inline
Files
8
""" Objects pertaining to the various ingestion manifests """
from enum import Enum
class Telescope(Enum):
"""Codifying the names of our telescopes, because Janet can't abide magic strings"""
VLA = 1
EVLA = 2
ALMA = 3
VLBA = 4
GBT = 5
NONE = 6
class IngestionType(Enum):
"""Types of ingestion we'll have to do"""
# ALMA products
ALMA_SDM = Telescope.ALMA
ALMA_CAL = Telescope.ALMA
ALMA_AUDI = Telescope.ALMA
# EVLA products
EVLA_SDM = Telescope.EVLA
EVLA_BDF = Telescope.EVLA
EVLA_CAL = Telescope.EVLA
# RealFast projects
REALFAST_SDM = Telescope.EVLA
# VLASS projects
VLASS_QUICKLOOK = Telescope.EVLA
# VLBA ingestion. (IDI and UVFITS products are treated the same.)
VLBA_FITS = Telescope.VLBA
# Coming Real Soon Now: VLBA Mark 4 product ingestion
VLBA_MARK4 = Telescope.VLBA
# Also coming Real Soon: GBT execution block ingestion
GBT_EB = Telescope.GBT
# Hot on its heels: LVLA execution block ingestion
LVLA_EB = Telescope.VLA
# When we just don't know what we're dealing with
UNKNOWN = Telescope.NONE
Loading