Skip to content

Commit

Permalink
feat(report): enable the overview section by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed May 23, 2022
1 parent b547573 commit a5f235b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions popmon/notebooks/popmon_tutorial_reports.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"outputs": [],
"source": [
"# First section, First Feature, First plot\n",
"show_image(report.datastore['report_sections'][0]['features'][0]['plots'][0])"
"show_image(report.datastore['report_sections'][1]['features'][0]['plots'][0])"
]
},
{
Expand Down Expand Up @@ -216,7 +216,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_image(report.datastore['report_sections'][0]['features'][1]['plots'][0])"
"show_image(report.datastore['report_sections'][1]['features'][1]['plots'][0])"
]
},
{
Expand Down Expand Up @@ -266,7 +266,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_image(report.datastore['report_sections'][0]['features'][0]['plots'][2])"
"show_image(report.datastore['report_sections'][1]['features'][0]['plots'][2])"
]
},
{
Expand Down Expand Up @@ -299,7 +299,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_table(report.datastore['report_sections'][1]['features'][0]['plots'][0])"
"show_table(report.datastore['report_sections'][2]['features'][0]['plots'][0])"
]
},
{
Expand All @@ -325,7 +325,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_table(report.datastore['report_sections'][2]['features'][0]['plots'][0])"
"show_table(report.datastore['report_sections'][3]['features'][0]['plots'][0])"
]
},
{
Expand All @@ -351,7 +351,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_image(report.datastore['report_sections'][3]['features'][0]['plots'][0])"
"show_image(report.datastore['report_sections'][4]['features'][0]['plots'][0])"
]
},
{
Expand All @@ -377,7 +377,7 @@
"metadata": {},
"outputs": [],
"source": [
"show_image(report.datastore['report_sections'][4]['features'][0]['plots'][0])"
"show_image(report.datastore['report_sections'][5]['features'][0]['plots'][0])"
]
}
],
Expand Down
7 changes: 7 additions & 0 deletions popmon/pipeline/report_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
SectionGenerator,
TrafficLightSectionGenerator,
)
from ..visualization.overview_section import OverviewSectionGenerator


def get_report_pipeline_class(reference_type, reference):
Expand Down Expand Up @@ -377,6 +378,12 @@ def __init__(
}

modules = [
OverviewSectionGenerator(
read_key="traffic_lights",
description=descs.get("overview", ""),
section_name="Overview",
**sg_kws,
),
# generate section with histogram
HistogramSection(
read_key="split_hists",
Expand Down

0 comments on commit a5f235b

Please sign in to comment.