Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[client]
toolbarMode = "minimal"

[browser]
gatherUsageStats = false

[theme]
base = "light"
primaryColor = "#1f3a5f"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ EXPOSE 8501
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8501/_stcore/health')" || exit 1

CMD ["streamlit", "run", "app/streamlit_app.py", \
CMD ["streamlit", "run", "app/Overview.py", \
"--server.address=0.0.0.0", "--server.port=8501"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ python scripts/evaluate_signals.py
```

```bash
streamlit run app/streamlit_app.py
streamlit run app/Overview.py
```

```bash
Expand Down
File renamed without changes.
Binary file added app/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions app/pages/4_Root_Signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def readable_text(text: str, segment: str = signal.segment) -> str:
f"**The other possibility:** {readable_text(signal.pattern.alternative_hypothesis)} "
f"{readable_text(signal.pattern.alternative_note)}"
)
st.info(
f"**What to check next:** {readable_text(signal.pattern.recommended_investigation)}"
)

tabs = st.tabs(["The numbers behind it", "The checks", "How the estimate was made"])
with tabs[0]:
Expand All @@ -151,9 +148,9 @@ def readable_text(text: str, segment: str = signal.segment) -> str:
criteria = views["criteria"]
rows = criteria[criteria["segment"] == signal.segment]
for _, row in rows.iterrows():
mark = "✅" if row["met"] else "⬜"
status = "Met" if row["met"] else "Not met"
st.markdown(
f"{mark} **{describe_criterion(row['criterion'])}** — {row['detail']}"
f"**{status}:** {describe_criterion(row['criterion'])}. {row['detail']}"
)
caveat(
"How well supported is a count of these six checks. It is not a probability, "
Expand Down
5 changes: 4 additions & 1 deletion app/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def get_periods(input_dir: str, period: str) -> list:
return available_periods(get_data(input_dir)["tables"], period=period)


FAVICON = str(APP_DIR / "favicon.png")


def configure(title: str) -> None:
st.set_page_config(page_title=f"RootSignal - {title}", page_icon="🌱", layout="wide")
st.set_page_config(page_title=f"RootSignal | {title}", page_icon=FAVICON, layout="wide")


def sidebar(show_period: bool = True) -> tuple[str, str]:
Expand Down
2 changes: 1 addition & 1 deletion docs/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```bash
pip install -e ".[dashboard]"
streamlit run app/streamlit_app.py
streamlit run app/Overview.py
```

| Page | Question |
Expand Down
Binary file modified docs/screenshots/rootsignal_forecasting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/rootsignal_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/rootsignal_signals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.