[hdf-compass] 246/295: directly use `validation_info` method from bag lib

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.

commit 12c2c454e23cdc5811e5144173f5de26aabbeef6
Author: giumas <giumas at yahoo.it>
Date:   Mon Nov 2 12:02:25 2015 -0500

    directly use `validation_info` method from bag lib
---
 hdf_compass/bag_model/model.py | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/hdf_compass/bag_model/model.py b/hdf_compass/bag_model/model.py
index 3339b8d..26a35e7 100644
--- a/hdf_compass/bag_model/model.py
+++ b/hdf_compass/bag_model/model.py
@@ -498,16 +498,7 @@ class BAGMetadataXml(compass_model.Xml):
     @property
     def validation(self):
         """ Collect a message string with the result of the validation """
-        msg = str()
-
-        msg += "XML input source: %s\nValidation output: " % self.key
-        if self.store.f.validate_metadata():
-            msg += "VALID"
-        else:
-            msg += "INVALID\nReasons:\n"
-            for err_msg in self.store.f.meta_errors:
-                msg += " - %s\n" % err_msg
-        return msg
+        return self.store.f.validation_info()
 
 
 class BAGUncertainty(compass_model.Array):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git



More information about the debian-science-commits mailing list