From dc8f7647cee179b1b4a61f1c31d8eb940df90dc7 Mon Sep 17 00:00:00 2001 From: Walter Simson Date: Tue, 26 Nov 2024 08:03:52 -0800 Subject: [PATCH] Update simulation_options.py Fix typo for dim 3 --- kwave/options/simulation_options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwave/options/simulation_options.py b/kwave/options/simulation_options.py index 78a49f10..78a30e46 100644 --- a/kwave/options/simulation_options.py +++ b/kwave/options/simulation_options.py @@ -305,7 +305,7 @@ def option_factory(kgrid: "kWaveGrid", options: SimulationOptions): elif kgrid.dim == 2: options.pml_x_alpha = val[0] options.pml_y_alpha = val[-1] - elif kgrid.dim == 2: + elif kgrid.dim == 3: options.pml_x_alpha = val[0] options.pml_y_alpha = val[len(val) // 2] options.pml_z_alpha = val[-1]