sorcha.utilities.diffTestUtils

Attributes

BASELINE_ARGS

WITH_EPHEMERIS_ARGS

CHUNKED_ARGS

UNCHUNKED_ARGS

VERIFICATION_TRUTH

Functions

compare_result_files(test_output, golden_output)

Compare the results in test_output to those in golden_output.

override_seed_and_run(outpath[, arg_set])

Run the full Rubin sim on the demo data and a fixed seed.

Module Contents

compare_result_files(test_output, golden_output)[source]

Compare the results in test_output to those in golden_output.

Parameters:
  • test_output (string) -- The path and file name of the test results.

  • golden_output (string) -- The path and file name of the golden set results.

Returns:

Indicates whether the results are the same.

Return type:

bool

BASELINE_ARGS[source]
WITH_EPHEMERIS_ARGS[source]
CHUNKED_ARGS[source]
UNCHUNKED_ARGS[source]
VERIFICATION_TRUTH[source]
override_seed_and_run(outpath, arg_set='baseline')[source]

Run the full Rubin sim on the demo data and a fixed seed.

WARNING: Never use a fixed seed for scientific analysis. This is for testing purposes only.

Parameters:
  • outpath (string) -- The path for the output files.

  • arg_set (string, default="baseline") -- set of arguments for setting up the run. Options: "baseline" or "with_ephemeris". "baseline"" run does not ephemeris generation. "with_ephemeeris" is a full end to end run of all main components of sorcha.