From c97e9115787af2c664bc383067aae09d982ca75e Mon Sep 17 00:00:00 2001 From: David Sinden Date: Sun, 25 Jan 2026 21:20:07 +0100 Subject: [PATCH 1/2] Update kWaveSimulation.py --- kwave/kWaveSimulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwave/kWaveSimulation.py b/kwave/kWaveSimulation.py index 8cd31e03..fc943540 100644 --- a/kwave/kWaveSimulation.py +++ b/kwave/kWaveSimulation.py @@ -154,7 +154,7 @@ def equation_of_state(self): else: return "absorbing" else: - return "loseless" + return "lossless" @property def use_sensor(self): From 17204890c6444f002b155e3391b761cbd384dd6e Mon Sep 17 00:00:00 2001 From: David Sinden Date: Sun, 25 Jan 2026 21:26:41 +0100 Subject: [PATCH 2/2] Update create_absorption_variables.py Include lossless option --- kwave/kWaveSimulation_helper/create_absorption_variables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kwave/kWaveSimulation_helper/create_absorption_variables.py b/kwave/kWaveSimulation_helper/create_absorption_variables.py index 56ae2d38..9434f827 100644 --- a/kwave/kWaveSimulation_helper/create_absorption_variables.py +++ b/kwave/kWaveSimulation_helper/create_absorption_variables.py @@ -14,6 +14,8 @@ def create_absorption_variables(kgrid: kWaveGrid, medium: kWaveMedium, equation_ return create_absorbing_medium_variables(kgrid.k, medium) elif equation_of_state == "stokes": return create_stokes_medium_variables(medium) + elif equation_of_state == "lossless": + return None, None, None, None else: raise NotImplementedError