From af374440d9a915123ccb704690882c3063d9c454 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Mon, 4 Sep 2023 11:40:32 +0100 Subject: [PATCH] Further tweaks for pml formulation and CLI --- gprMax/hash_cmds_singleuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/hash_cmds_singleuse.py b/gprMax/hash_cmds_singleuse.py index 61145e13..21fea96d 100644 --- a/gprMax/hash_cmds_singleuse.py +++ b/gprMax/hash_cmds_singleuse.py @@ -136,7 +136,7 @@ def process_singlecmds(singlecmds): logger.exception(f"{cmd} requires either one or six parameter(s)") raise ValueError - if pml_formulation in locals(): + if 'pml_formulation' in locals(): if len(tmp) == 1: pml_props = PMLProps(formulation=pml_formulation, thickness=int(tmp[0])) else: