dubfi.tests.compare_insitu

Check inversion by comparing resutls of 3 implementations.

Added in version 0.1.0: (initial release)

Functions

main(→ int)

Run inversions and compare results.

run(→ int)

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

compare(, no_prior_info)

Compare inversion results saved in target_dir.

Module Contents

dubfi.tests.compare_insitu.main(config: str | dict[str, dict], target_dir: str | None, implementations: tuple[str, ...] = IMPLEMENTATIONS, ref: str = 'MPI', no_prior_info: int | None = None, **kwargs) int

Run inversions and compare results.

dubfi.tests.compare_insitu.run(config: str | dict[str, dict], target_dir: str, implementations: tuple[str, ...] = IMPLEMENTATIONS, test_initial_guess_from: bool = True, **kwargs) int

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

dubfi.tests.compare_insitu.compare(target_dir: str, ref: str = 'MPI', implementations: tuple[str, ...] = IMPLEMENTATIONS, extra_ds: list[xarray.Dataset] | tuple[xarray.Dataset] = (), no_prior_info: int | None = None) int

Compare inversion results saved in target_dir.