]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
- Bug for catalog
authorAndré <andre.ribes@edf.fr>
Wed, 21 Apr 2010 14:48:07 +0000 (16:48 +0200)
committerAndré <andre.ribes@edf.fr>
Wed, 21 Apr 2010 14:48:07 +0000 (16:48 +0200)
- Add first test

src/daSalome/daYacsSchemaCreator/methods.py
src/tests/daSalome/test000_Blue.py [new file with mode: 0644]

index 29726b7556befc0b0b85f06c3199d296a9d9b68f..2fb7ceeb824552243c97fb7530f0f934706caadf 100644 (file)
@@ -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 (file)
index 0000000..c0ed37d
--- /dev/null
@@ -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