From 08f639cbb7ba512d188d5cf3f1176c4aa98f7b78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9?= Date: Wed, 21 Apr 2010 16:48:07 +0200 Subject: [PATCH] - Bug for catalog - Add first test --- src/daSalome/daYacsSchemaCreator/methods.py | 2 +- src/tests/daSalome/test000_Blue.py | 36 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/tests/daSalome/test000_Blue.py diff --git a/src/daSalome/daYacsSchemaCreator/methods.py b/src/daSalome/daYacsSchemaCreator/methods.py index 29726b7..2fb7cee 100644 --- a/src/daSalome/daYacsSchemaCreator/methods.py +++ b/src/daSalome/daYacsSchemaCreator/methods.py @@ -39,7 +39,7 @@ def create_yacs_proc(study_config): l.registerProcCataLoader() runtime = pilot.getRuntime() try: - catalogAd = runtime.loadCatalog("proc", os.environ["DATASSIM_ROOT_DIR"] + "share/salome/resources/datassim/DATASSIMSchemaCatalog.xml") + catalogAd = runtime.loadCatalog("proc", os.environ["DATASSIM_ROOT_DIR"] + "/share/salome/resources/datassim/DATASSIMSchemaCatalog.xml") except: logging.fatal("Exception in loading DataAssim YACS catalog") traceback.print_exc() diff --git a/src/tests/daSalome/test000_Blue.py b/src/tests/daSalome/test000_Blue.py new file mode 100644 index 0000000..c0ed37d --- /dev/null +++ b/src/tests/daSalome/test000_Blue.py @@ -0,0 +1,36 @@ +study_config = {} +study_config["Name"] = "test000_Blue" +study_config["Algorithm"] = "Blue" + + +Background_config = {} +Background_config["Data"] = "0,1,2" +Background_config["Type"] = "Vector" +Background_config["From"] = "string" +study_config["Background"] = Background_config + +BackgroundError_config = {} +BackgroundError_config["Data"] = "1 0 0;0 1 0;0 0 1" +BackgroundError_config["Type"] = "Matrix" +BackgroundError_config["From"] = "string" +study_config["BackgroundError"] = BackgroundError_config + + +Observation_config = {} +Observation_config["Data"] = "0.5,1.5,2.5" +Observation_config["Type"] = "Vector" +Observation_config["From"] = "string" +study_config["Observation"] = Observation_config + + +ObservationError_config = {} +ObservationError_config["Data"] = "1 0 0;0 1 0;0 0 1" +ObservationError_config["Type"] = "Matrix" +ObservationError_config["From"] = "string" +study_config["ObservationError"] = ObservationError_config + +ObservationOperator_config = {} +ObservationOperator_config["Data"] = "1 0 0;0 1 0;0 0 1" +ObservationOperator_config["Type"] = "Matrix" +ObservationOperator_config["From"] = "string" +study_config["ObservationOperator"] = ObservationOperator_config -- 2.39.2