From da329f911081aa4fd4e52d98fd276007db3e0c0c Mon Sep 17 00:00:00 2001 From: Lane Votapka Date: Mon, 31 Jul 2023 09:45:12 -0600 Subject: [PATCH] Testing DX file naming problem. --- seekr2/modules/common_base.py | 2 +- seekr2/modules/runner_browndye2.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/seekr2/modules/common_base.py b/seekr2/modules/common_base.py index 74d8881..175d84f 100644 --- a/seekr2/modules/common_base.py +++ b/seekr2/modules/common_base.py @@ -1065,7 +1065,7 @@ def load_model(model_file, directory=None): """ assert os.path.exists(model_file), \ - "A nonexistent model file was specified: {}.".format(model_file) + "No such file or directory: {}.".format(model_file) model = Model() model.deserialize(model_file) if directory is not None: diff --git a/seekr2/modules/runner_browndye2.py b/seekr2/modules/runner_browndye2.py index dba285e..2bce43b 100644 --- a/seekr2/modules/runner_browndye2.py +++ b/seekr2/modules/runner_browndye2.py @@ -320,6 +320,11 @@ def run_bd_top(browndye_bin_dir, bd_directory, restart=False, assert os.path.exists(sim_browndye2.BROWNDYE_INPUT_FILENAME), \ "Necessary file doesn't exist: %s" % \ sim_browndye2.BROWNDYE_INPUT_FILENAME + print("ls:", os.listdir()) + print("input.xml lines:") + with open(sim_browndye2.BROWNDYE_INPUT_FILENAME, "r") as f: + for line in f.readlines(): + print(line) print("running command:", command) os.system(command) assert os.path.exists(simulation_filename), "Problem occurred running "\