Example #1
0
    def _tool_default(self):
        ft = FluxTool()
        db = self.processor.db
        fs = []
        with db.session_ctx():
            fm = db.get_flux_monitors()
            if fm:
                fs = [FluxMonitorRecordView(fi) for fi in fm]

        ft.monitors = fs
        if fs:
            ft.monitor = fs[-1]

        return ft
Example #2
0
    def _tool_default(self):
        ft = FluxTool()
        db = self.processor.db
        fs = []
        with db.session_ctx():
            fm = db.get_flux_monitors()
            if fm:
                fs = [FluxMonitorRecordView(fi) for fi in fm]

        ft.monitors = fs
        if fs:
            ft.monitor = fs[-1]

        return ft
Example #3
0
    def _tool_default(self):
        ft = FluxTool(mean_j_error_type='SEM, but if MSWD>1 use SEM * sqrt(MSWD)',
                      predicted_j_error_type='SEM, but if MSWD>1 use SEM * sqrt(MSWD)')

        db = self.processor.db
        fs = []
        with db.session_ctx():
            fm = db.get_flux_monitors()
            if fm:
                fs = [FluxMonitorRecordView(fi) for fi in fm]

        ft.monitors = fs
        if fs:
            ft.monitor = fs[-1]

        return ft
Example #4
0
    def _tool_default(self):
        ft = FluxTool(
            mean_j_error_type='SEM, but if MSWD>1 use SEM * sqrt(MSWD)',
            predicted_j_error_type='SEM, but if MSWD>1 use SEM * sqrt(MSWD)')

        db = self.processor.db
        fs = []
        with db.session_ctx():
            fm = db.get_flux_monitors()
            if fm:
                fs = [FluxMonitorRecordView(fi) for fi in fm]

        ft.monitors = fs
        if fs:
            ft.monitor = fs[-1]

        return ft