From aadd8f26a6a3a5427d714573ec2522bf3b260fcf Mon Sep 17 00:00:00 2001 From: thalassemia Date: Fri, 20 Sep 2024 19:01:56 -0700 Subject: [PATCH] Check for CLI emitter_arg --- ecoli/experiments/ecoli_master_sim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecoli/experiments/ecoli_master_sim.py b/ecoli/experiments/ecoli_master_sim.py index 38e924e4f..ee3d0f3f9 100644 --- a/ecoli/experiments/ecoli_master_sim.py +++ b/ecoli/experiments/ecoli_master_sim.py @@ -369,7 +369,8 @@ def update_from_cli(self): updates config. """ args = self.parser.parse_args() - args.emitter_arg = parse_key_value_args(args.emitter_arg) + if args.emitter_arg is not None: + args.emitter_arg = parse_key_value_args(args.emitter_arg) # First load in a configuration file, if one was specified. config_path = getattr(args, "config", None) if config_path: