def test_webviz_store(testdata_folder): emodel = EnsembleModel( ensemble_name="iter-0", ensemble_path=Path(testdata_folder) / "reek_history_match" / "realization-*" / "iter-0", ) emodel.load_parameters() assert len(emodel.webviz_store) == 1 emodel.load_smry() assert len(emodel.webviz_store) == 2 emodel.load_smry(column_keys=["FOIP"]) assert len(emodel.webviz_store) == 3 emodel.load_smry(time_index="raw") assert len(emodel.webviz_store) == 4 emodel.load_smry_meta() assert len(emodel.webviz_store) == 5 emodel.load_smry_meta(column_keys=["R*", "GW?T*"]) assert len(emodel.webviz_store) == 6 emodel.load_csv(Path("share") / "results" / "tables" / "rft.csv") assert len(emodel.webviz_store) == 7
def test_smry_meta(testdata_folder): emodel = EnsembleModel( ensemble_name="iter-0", ensemble_path=Path(testdata_folder) / "reek_history_match" / "realization-*" / "iter-0", ) smeta = emodel.load_smry_meta() assert set(smeta.columns) == set([ "unit", "is_total", "is_rate", "is_historical", "keyword", "wgname", "get_num" ]) assert len(smeta) == 473 assert "FOPT" in smeta.index