def get_model_result(camp: str, profile: str): logger.info("Reading data for: " + camp + ", " + profile) mr = model_runner.get_result(NetworkModel.ID, profile, camp) assert mr is not None profile_df = facade.ps.get_params(NetworkModel.ID, profile) params = Parameters(facade.ps, camp, profile_df, {}) return mr, profile_df, params
def layout(camp, profile): mr = model_runner.get_result(ABM.ID, profile, camp) assert mr is not None return html.Div([ html.H3('Model Results'), charts(mr), ], style={'margin': 10})
def get_model_result(camp: str, profile: str): logging.info("Reading data for: " + camp + ", " + profile) mr = model_runner.get_result(CompartmentalModel.ID, profile, camp) assert mr is not None profile_df = facade.ps.get_params(CompartmentalModel.ID, profile).drop(columns=['Profile']) params = Parameters(facade.ps, camp, profile_df, {}) report = load_report(mr, params) return mr, profile_df, params, report
def layout(camp, profile): mr = model_runner.get_result(NetworkModel.ID, profile, camp) assert mr is not None return html.Div([ html.H3('Network Model Results'), html.H4('Profile: ' + profile), charts(mr), ], style={'margin': 10})
def get_model_result(camp: str, profile: str): logging.info("Reading data for: " + camp + ", " + profile) mr = model_runner.get_result(NetworkModel.ID, profile, camp) assert mr is not None profile_df = facade.ps.get_params(NetworkModel.ID, profile).drop(columns=['Profile']) params = Parameters() #report = mr.get('report_base_model') return mr, profile_df, params