Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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