Skip to content

Validate startYear against MIN/MAX bounds#180

Merged
Mariia-Var merged 2 commits into
simpaths:developfrom
Mariia-Var:develop
May 13, 2026
Merged

Validate startYear against MIN/MAX bounds#180
Mariia-Var merged 2 commits into
simpaths:developfrom
Mariia-Var:develop

Conversation

@Mariia-Var
Copy link
Copy Markdown
Collaborator

Added Parameters.validateStartYear() that throws a clear IllegalArgumentException when startYear falls outside [MIN_START_YEAR, MAX_START_YEAR] (or the _TRAINING variants when -t is set).

Called from

  • SimPathsStart (headless setup and buildExperiment)
  • SimPathsMultiRun.main()
    so invalid values from -s, YAML config, or DatabaseCountryYear.xlsx fail fast instead of surfacing as obscure downstream errors.

  Added Parameters.validateStartYear() that throws a clear
  IllegalArgumentException when startYear falls outside
  [MIN_START_YEAR, MAX_START_YEAR] (or the _TRAINING variants when
  -t is set). Called from SimPathsStart (headless setup and
  buildExperiment) and SimPathsMultiRun.main() so invalid values
  from -s, YAML config, or DatabaseCountryYear.xlsx fail fast
  instead of surfacing as obscure downstream errors.
-added automatic loading of packages if missing
-added definitions of min_sim_year and max_sim_year
-removed local folder assignments
@Mariia-Var Mariia-Var merged commit 903b764 into simpaths:develop May 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant