From: André Date: Wed, 21 Apr 2010 14:48:07 +0000 (+0200) Subject: - Bug for catalog X-Git-Tag: V6_4_0rc3~171 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08f639cbb7ba512d188d5cf3f1176c4aa98f7b78;p=modules%2Fadao.git - Bug for catalog - Add first test --- 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