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
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
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