From d958e91ea4243c58eb575731d7198d5604b17e00 Mon Sep 17 00:00:00 2001 From: TomMonks Date: Mon, 22 Apr 2024 14:38:14 +0100 Subject: [PATCH 1/3] INTSIM: fix typo in demand plot --- "pages/0_\360\237\216\261_Interactive_simulation.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/pages/0_\360\237\216\261_Interactive_simulation.py" "b/pages/0_\360\237\216\261_Interactive_simulation.py" index 7f270d9..50d8a3c 100644 --- "a/pages/0_\360\237\216\261_Interactive_simulation.py" +++ "b/pages/0_\360\237\216\261_Interactive_simulation.py" @@ -58,7 +58,7 @@ def get_arrival_chart(): fig = px.bar(arrivals, x='period', y='arrival_rate', labels={ "period": "hour of day", - "arrival_rate": "mean arrivaks" + "arrival_rate": "mean arrivals" }) return fig From 4095b8c7e21702a68f731ad75efbd8bd1d28464e Mon Sep 17 00:00:00 2001 From: TomMonks Date: Mon, 22 Apr 2024 15:09:47 +0100 Subject: [PATCH 2/3] CHANGE: added change log --- CHANGES.md | 59 +++++++++++++++++++ ...360\237\227\222\357\270\217_Change_Log.py" | 0 2 files changed, 59 insertions(+) create mode 100644 CHANGES.md create mode 100644 "pages/7_\360\237\227\222\357\270\217_Change_Log.py" diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 0000000..e6f0b7f --- /dev/null +++ b/CHANGES.md @@ -0,0 +1,59 @@ +## v3.0.0 + +22nd April 2024 + +* ENV: `plotly` v5.21.0 added. +* ENV: Arrival rate and MORE plot have been migrated to be interactive `plotly` format. +* MODULE: `more_plot.py` updated to include a `more_plotly` function. +* PAGES: Multiple replications setting moved from side bar to main window and converted to text input in 🎱 Interactive Simulation page. +* PAGES: Creation of Resources app page. Migration of Links from About page. +* PAGES: Creation of Changes app page: logging all major, minor and patched releases of the app. +* PAGES: About page cleaned up and linked to STARS main study and team. +* PAGES: Emojis 😀 added to app internal page names + +## v2.2.0 + +20th April 2024 + +* PAGES: Introduce of License page +* PAGES: Links to GitHub, Zenodo archive, Documentation and Tutorial material added to About Page +* ENV: Upgrade `streamlit` to 1.33.0 +* ENV: Upgrade `simpy` to 4.1.1 + +## v2.1.0 + +8th March 2024 + +* SIM: Upgraded internal implementation of generating non-overlapping random number streams. This is now implemented to use `np.random.SeedSequence`. See https://numpy.org/doc/stable/reference/random/parallel.html +* PATCH: Removed deprecated use of st.@cache decorator. + +## v2.0.0 + +1st March 2024 + +* ENV: Upgraded to Python 3.10 and upgrade `numpy`, `pandas`, `matplotlib`` versions etc. +* ENV: Upgraded to streamlit `1.31.1` +* PAGES: Removed deprecated `streamlit`` functions +* PATCH: Fixed `st.setup_page` location in `Overview.py` (main landing page) to avoid runtime error. + +## v1.2.0 + +30th October 2023 + +* Updated pilot Web App release to support *Toward Sharing Tools and Artefacts for Reusable Simulations in Healthcare* project. +* GITHUB: Included detailed instructions to download the code, install dependencies and run the app locally +* GITHUB: Updated README URLs and included link to SW23 version of app redundancy. + +## v1.1.0 + +23rd January 2023 + +* Added Dockerfile that creates a python:3.8 image running the latest version of streamlit and the app on port 8989. + +## v1.0.0 + +19th July 2022 + +* Pilot Web App release to test project feasibility. +* The release supports [conference paper](https://www.theorsociety.com/media/7313/doiorg1036819sw23030.pdf) and talk given at the OR Society Simulation Workshop 2023 (SW23) +* Code can be found in separate repository: diff --git "a/pages/7_\360\237\227\222\357\270\217_Change_Log.py" "b/pages/7_\360\237\227\222\357\270\217_Change_Log.py" new file mode 100644 index 0000000..e69de29 From 9482c8f6eddf17df076100b515ce15c7ac4e6ed8 Mon Sep 17 00:00:00 2001 From: TomMonks Date: Mon, 22 Apr 2024 15:11:30 +0100 Subject: [PATCH 3/3] CHANGE: setup change page for app --- CHANGES.md | 2 + ...360\237\227\222\357\270\217_Change_Log.py" | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index e6f0b7f..379facb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,5 @@ +# Change Log + ## v3.0.0 22nd April 2024 diff --git "a/pages/7_\360\237\227\222\357\270\217_Change_Log.py" "b/pages/7_\360\237\227\222\357\270\217_Change_Log.py" index e69de29..2fe69f8 100644 --- "a/pages/7_\360\237\227\222\357\270\217_Change_Log.py" +++ "b/pages/7_\360\237\227\222\357\270\217_Change_Log.py" @@ -0,0 +1,38 @@ +''' +Change log page + +A list of changes to each version of the app +''' + +import streamlit as st +import urllib.request as request + +FILE = ( + "https://raw.githubusercontent.com/pythonhealthdatascience/" + + "stars-streamlit-example/main/CHANGES.md" +) + + +def read_file_contents(path): + """ + Download the content of a file from the GitHub Repo and return as a utf-8 string + + Notes: + ------- + adapted from 'https://github.com/streamlit/demo-self-driving' + + Parameters: + ---------- + path: str + e.g. file_name.md + + Returns: + -------- + utf-8 str + + """ + response = request.urlopen(path) + return response.read().decode("utf-8") + + +st.markdown(read_file_contents(FILE))