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)
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']])
def __init__(self, path, title, _ids): super().__init__(join(path, 'smoothed')) self.title = title self._ids = _ids self.cow = mongo.cow(_ids[0])
def __init__(self, path, title, _ids): super().__init__(join(path, 'differenced')) self.title = title self._ids = _ids self.cow = mongo.cow(_ids[0])