Skip to content

Commit

Permalink
add itc validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tpolecat committed Jul 11, 2024
1 parent e1d61a1 commit 4303f16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ project/hydra.sbt

gnupg*
.direnv/

.vscode/
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ enum ObservationValidationCode(
) derives Enumerated:
case ConfigurationError extends ObservationValidationCode("configuration_error", "Configuration Error", "The observation is not configured correctly and cannot be executed")
case CallForProposalsError extends ObservationValidationCode("cfp_error", "Call for Proposals Error", "Not valid for the selected Call for Proposals")
case ItcError extends ObservationValidationCode("itc_error", "ITC Error", "Integration time is unavailable.")
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ object ObservationValidation:
fromMsgs(ObservationValidationCode.ConfigurationError, msg, moreMsgs*)
def callForProposals(msg: String, moreMsgs: String*): ObservationValidation =
fromMsgs(ObservationValidationCode.CallForProposalsError, msg, moreMsgs*)
def itc(msg: String, moreMsgs: String*): ObservationValidation =
fromMsgs(ObservationValidationCode.ItcError, msg, moreMsgs*)

0 comments on commit 4303f16

Please sign in to comment.