read_scenario#

read_scenario(config_file, warn=True, strict=False, *, format=None)[source]#

Load a sansmic scenario file.

Parameters:
  • config_file (str) – filename or full path to a new-style configuration file

  • warn (bool, optional) – emit warnings if there are extra, unrecognized options in the file, by default True

  • strict (bool, optional) – raise errors if there are extra, unrecognized options in the file, by default False

Returns:

the sansmic scenario

Return type:

Scenario

Raises:

RuntimeError – if there is an unrecognized option and strict is True, or if there are no stages defined.