easyvvuq.comparison.base

Provides base class for all comparison/validation elements.

 1"""Provides base class for all comparison/validation elements.
 2"""
 3from .. import BaseElement
 4
 5__copyright__ = """
 6
 7    Copyright 2018 Robin A. Richardson, David W. Wright
 8
 9    This file is part of EasyVVUQ
10
11    EasyVVUQ is free software: you can redistribute it and/or modify
12    it under the terms of the Lesser GNU General Public License as published by
13    the Free Software Foundation, either version 3 of the License, or
14    (at your option) any later version.
15
16    EasyVVUQ is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19    Lesser GNU General Public License for more details.
20
21    You should have received a copy of the Lesser GNU General Public License
22    along with this program.  If not, see <https://www.gnu.org/licenses/>.
23
24"""
25__license__ = "LGPL"
26
27
28class BaseComparisonElement(BaseElement):
29    """Baseclass for all EasyVVUQ comparison elements.
30
31    Attributes
32    ----------
33
34    """
35
36    def compare(self, dataframe1, dataframe2):
37        raise NotImplementedError
38
39    def element_category(self):
40        return "comparison"
class BaseComparisonElement(easyvvuq.base_element.BaseElement):
29class BaseComparisonElement(BaseElement):
30    """Baseclass for all EasyVVUQ comparison elements.
31
32    Attributes
33    ----------
34
35    """
36
37    def compare(self, dataframe1, dataframe2):
38        raise NotImplementedError
39
40    def element_category(self):
41        return "comparison"

Baseclass for all EasyVVUQ comparison elements.

Attributes

def compare(self, dataframe1, dataframe2):
37    def compare(self, dataframe1, dataframe2):
38        raise NotImplementedError
def element_category(self):
40    def element_category(self):
41        return "comparison"