dubfi.tests.compare_insitu

Check inversion by comparing resutls of 3 implementations.

Added in version 0.1.0: (initial release)

Functions

main(config, target_dir[, implementations, ref])

Run inversions and compare results.

run(config, target_dir[, implementations])

Run inversion with all three implementations and save results to target_dir.

compare(target_dir[, ref, implementations])

Compare inversion results saved in target_dir.

Module Contents

dubfi.tests.compare_insitu.main(config, target_dir, implementations=IMPLEMENTATIONS, ref='MPI', **kwargs)

Run inversions and compare results.

Parameters:
  • config (str | dict[str, str])

  • target_dir (str | None)

  • implementations (tuple[str, Ellipsis])

  • ref (str)

Return type:

int

dubfi.tests.compare_insitu.run(config, target_dir, implementations=IMPLEMENTATIONS, **kwargs)

Run inversion with all three implementations and save results to target_dir.

Parameters:
  • config (str | dict[str, str])

  • target_dir (str)

  • implementations (tuple[str, Ellipsis])

Return type:

int

dubfi.tests.compare_insitu.compare(target_dir, ref='MPI', implementations=IMPLEMENTATIONS)

Compare inversion results saved in target_dir.

Parameters:
  • target_dir (str)

  • ref (str)

  • implementations (tuple[str, Ellipsis])

Return type:

int