compare_beam_calculators module

Define an utility function to compare two BeamCalculator.

Todo

Allow for undetermined number of BeamCalculator in the config, and update here.

output_comparison(sim_1, sim_2, element, qty, single_value, **kwargs)[source]

Compare two simulation outputs.

Parameters:
  • sim1 – Objects to compate.

  • sim2 – Objects to compate.

  • element (Element | str) – Element at which look for qty.

  • qty (str) – Quantity that will be compared.

  • single_value (bool) – True if a single value is expected, False if it is an array.

  • sim_1 (SimulationOutput)

  • sim_2 (SimulationOutput)

Return type:

str

Returns:

Holds requested information.

compare_beam_calculators(toml_filepath, toml_keys, tests)[source]

Compute beam with two beam calculators and compare them.

Parameters:
Return type:

None