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

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:48 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 e337ec0700db93cd44e8a8a129fa2fcdaa22fc8a
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 707c97f..1148e03 100644
--- a/hdf_compass/bag_model/model.py
+++ b/hdf_compass/bag_model/model.py
@@ -490,16 +490,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