From ea0a0ae7ca5f6e2d1c41411ff79888d06a71276a Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 10 Apr 2024 12:19:34 +0800 Subject: [PATCH] update --- csst_ifs_sim/csst_ifs_sim.py | 6 +++++- tests/test_ifs_sim.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/csst_ifs_sim/csst_ifs_sim.py b/csst_ifs_sim/csst_ifs_sim.py index b97d218..15c1c2b 100644 --- a/csst_ifs_sim/csst_ifs_sim.py +++ b/csst_ifs_sim/csst_ifs_sim.py @@ -4762,10 +4762,14 @@ if __name__ == "__main__": if len(sys.argv[:])>=2: configfile=sys.argv[1]+'IFS_inputdata/configData/IFS_sim_C90.config' - if not os.path.exists(fonfigfile): + if not os.path.exists(configfile): print('The given input fonfigfile path is wrong......') sys.exit(1) + + configfile=configfile0 + + if len(sys.argv[:])>=3: sourcein=sys.argv[2] diff --git a/tests/test_ifs_sim.py b/tests/test_ifs_sim.py index c86b8fa..c8483a8 100644 --- a/tests/test_ifs_sim.py +++ b/tests/test_ifs_sim.py @@ -34,6 +34,9 @@ class TestDemoFunction(unittest.TestCase): # demo function test dir_path=os.path.join(os.environ['UNIT_TEST_DATA_ROOT'],'ifs_sim') + print(dir_path) + + csst_ifs_sim(dir_path) self.assertTrue( -- GitLab