From 7ebf268c5090f9c62e1bc5609a63fb220f8418a9 Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 10 Apr 2024 12:21:29 +0800 Subject: [PATCH] update --- csst_ifs_sim/csst_ifs_sim.py | 2 +- tests/test_ifs_sim.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/csst_ifs_sim/csst_ifs_sim.py b/csst_ifs_sim/csst_ifs_sim.py index 15c1c2b..ba328ab 100644 --- a/csst_ifs_sim/csst_ifs_sim.py +++ b/csst_ifs_sim/csst_ifs_sim.py @@ -4788,7 +4788,7 @@ if __name__ == "__main__": runIFSsim(sourcein, skyfitsin, configfile, 1, CSST_unittest, applyhole) - + return 1 ############################################################################ ############################################################################ # it=range(1, exposureNum+1,1) diff --git a/tests/test_ifs_sim.py b/tests/test_ifs_sim.py index c8483a8..6522b67 100644 --- a/tests/test_ifs_sim.py +++ b/tests/test_ifs_sim.py @@ -36,11 +36,12 @@ class TestDemoFunction(unittest.TestCase): print(dir_path) + d=0 - csst_ifs_sim(dir_path) + d=csst_ifs_sim(dir_path) self.assertTrue( - 1 == 1, + d == 1, "case 1: SCI sim passes.", ) -- GitLab