コード例 #1
0
ファイル: smoothing.py プロジェクト: tartopum/MPF
    def generate(self):
        """Generate the view of smoothed production."""

        for _id in self._ids:
            data = mongo.data(_id)
            step = mongo.settings(_id)['step']

            self.plot(data, step)
            plt.clf()
コード例 #2
0
    def generate(self):
        """Generate the view of differenced production."""

        for _id in self._ids:
            data = mongo.data(_id)
            degree = mongo.settings(_id)['degree']

            self.plot(data, degree)
            plt.clf()
コード例 #3
0
ファイル: differencing.py プロジェクト: tartopum/MPF
    def generate(self):
        """Generate the view of differenced production."""

        for _id in self._ids:
            data = mongo.data(_id)
            degree = mongo.settings(_id)['degree']
            
            self.plot(data, degree)
            plt.clf()
コード例 #4
0
ファイル: smoothing.py プロジェクト: tartopum/MPF
    def generate(self):
        """Generate the view of smoothed production."""

        for _id in self._ids:
            data = mongo.data(_id)
            step = mongo.settings(_id)['step']

            self.plot(data, step)
            plt.clf()
コード例 #5
0
ファイル: correlogram.py プロジェクト: tartopum/MPF
    def generate(self):
        """Generate the view of the correlogram."""

        for _id in self._ids:
            data = mongo.data(_id[LABELS['values']])
            confint = self.get_confint(_id[LABELS['confint']])

            stg = mongo.settings(mongo.parents(_id[LABELS['values']])[0])
            title = ' - '.join(
                ['{} = {}'.format(k, v) for k, v in stg.items()])

            self.plot(data, confint, title)
コード例 #6
0
ファイル: correlogram.py プロジェクト: tartopum/MPF
    def generate(self):
        """Generate the view of the correlogram."""

        for _id in self._ids:
            data = mongo.data(_id[LABELS['values']])
            confint = self.get_confint(_id[LABELS['confint']])
            
            stg = mongo.settings(
                mongo.parents(_id[LABELS['values']])[0]
            )
            title = ' - '.join(['{} = {}'.format(k, v) for k, v in stg.items()])

            self.plot(data, confint, title)