示例#1
0
    def __init__(self, _id):
        """
        :param cow: The cow the view of is generated.
        :type cow: int
        """

        super().__init__('production')

        self.title = 'Crude production'
        self.cow = mongo.cow(_id)
示例#2
0
文件: crude.py 项目: tartopum/MPF
    def __init__(self, _id):
        """
        :param cow: The cow the view of is generated.
        :type cow: int
        """

        super().__init__('production')

        self.title = 'Crude production'
        self.cow = mongo.cow(_id) 
示例#3
0
    def __init__(self, path, title, _ids, type_):
        super().__init__(join(path, type_))

        self.title = title
        self._ids = _ids
        self.cow = mongo.cow(_ids[0][LABELS['values']])
示例#4
0
    def __init__(self, path, title, _ids, type_):
        super().__init__(join(path, type_))

        self.title = title
        self._ids = _ids
        self.cow = mongo.cow(_ids[0][LABELS['values']]) 
示例#5
0
文件: smoothing.py 项目: tartopum/MPF
    def __init__(self, path, title, _ids):
        super().__init__(join(path, 'smoothed'))

        self.title = title
        self._ids = _ids
        self.cow = mongo.cow(_ids[0])
示例#6
0
    def __init__(self, path, title, _ids):
        super().__init__(join(path, 'differenced'))

        self.title = title
        self._ids = _ids
        self.cow = mongo.cow(_ids[0])