Skip to content

Review enums #894

Description

@schlafly

@tddesjardins , I went through the schemas looking for more potentially problematic enums along the lines of #889 . There are some other cases where we might consider removing the enum / at least making sure we're happy with the allowed values:

Name Location Values Notes
Exposure type meta.exposure.type (meta/exposure.yaml) WFI_IMAGE, WFI_SPECTRAL, WFI_IM_DARK, WFI_SP_DARK, WFI_FLAT, WFI_LOLO, WFI_WFSC Probably okay? We could remove the enum if we thought there were a meaningful chance of adding a mode on short notice.
Guide window mode meta.guidestar.guide_mode (meta/guidestar.yaml) WIM-ACQ, WIM-TRACK, WSM-ACQ-1, WSM-ACQ-2, WSM-TRACK, DEFOCUSED-MODERATE, DEFOCUSED-LARGE No idea if these are up to date or changeable!
Program subcategory meta/program.yamlmeta.program.subcategory CAL, CGI, CR, DR, GBTD, HLTD, HLWA, OR, WFI, WFSC, None Used in both l3_common and program.yaml as separate enums. Per this discussion, both should be strings.
Aperture name meta/wcsinfo.yamlmeta.wcsinfo.aperture_name WFI01_FULL–WFI18_FULL and WFI_01_FULL–WFI_18_FULL, WFI_CEN, BORESIGHT, CGI_CEN We added both WFI01_FULL and WFI_01_FULL to accommodate some known churn in the siaf file. Do we think these are complete or should we convert to a string?
Visit type meta/visit.yamlmeta.visit.type GENERAL_ENGINEERING, GENERIC, PARALLEL, PRIME_TARGETED_FIXED, PRIME_UNTARGETED This feels like another good candidate for enum -> string to me? Just doesn't feel like a complete / unchangeable list.
FGS modes used meta/guidewindow_common.yamlmeta.guide_window.fgs_modes_used NOT_CONFIGURED, STANDBY, WIM_ACQ_VW, WIM_ACQ_NA, WIM_TRK, WIM_TRK_S, WSM_ACQ_HC, WSM_ACQ_VC, WSM_TRK, WIM_DFC I have no sense for how complete / up to date / changeable these are!
FGS op phase l1_face_guidewindow.yamlface_data.fgs_op_phase (same 10 values as fgs_modes_used)
Origin meta/origin.yamlmeta.origin STSCI, STSCI/SOC, IPAC/SSC Convert to string in case anyone else wants to use this?
RCS LED meta/rcs.yamlmeta.rcs.led 1, 2, 3, 4, 5, 6, None Probably okay?
RCS electronics meta/rcs.yamlmeta.rcs.electronics A, B, None Probably okay?
RCS bank meta/rcs.yamlmeta.rcs.bank 1, 2, None Probably okay?
Ephemeris type meta/ephemeris.yamlmeta.ephemeris.type DEFINITIVE, PREDICTED Probably okay?
Exposure engineering quality meta/exposure.yamlmeta.exposure.engineering_quality OK, SUSPECT Convert to string to be less restrictive of potential future uses?
Pointing engineering source meta/pointing.yamlmeta.pointing.pointing_engineering_source CALCULATED, PLANNED Maybe okay?
WSM edge used l1_detector_guidewindow.yaml, l1_face_guidewindow.yamlmeta.wsm_edge_used blue, red Could we imagine other modes, e.g., both blue & red?
Pseudo star flag l1_detector_guidewindow.yamlmeta.guide_star.pseudo_star_flag Y, N Not sure.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions