Skip to content

Commit 2aed435

Browse files
authored
Merge pull request #25 from pythonhealthdatascience/dev
DEV: added changelog
2 parents 78f37a6 + 9482c8f commit 2aed435

3 files changed

Lines changed: 100 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Change Log
2+
3+
## v3.0.0
4+
5+
22nd April 2024
6+
7+
* ENV: `plotly` v5.21.0 added.
8+
* ENV: Arrival rate and MORE plot have been migrated to be interactive `plotly` format.
9+
* MODULE: `more_plot.py` updated to include a `more_plotly` function.
10+
* PAGES: Multiple replications setting moved from side bar to main window and converted to text input in 🎱 Interactive Simulation page.
11+
* PAGES: Creation of Resources app page. Migration of Links from About page.
12+
* PAGES: Creation of Changes app page: logging all major, minor and patched releases of the app.
13+
* PAGES: About page cleaned up and linked to STARS main study and team.
14+
* PAGES: Emojis 😀 added to app internal page names
15+
16+
## v2.2.0
17+
18+
20th April 2024
19+
20+
* PAGES: Introduce of License page
21+
* PAGES: Links to GitHub, Zenodo archive, Documentation and Tutorial material added to About Page
22+
* ENV: Upgrade `streamlit` to 1.33.0
23+
* ENV: Upgrade `simpy` to 4.1.1
24+
25+
## v2.1.0
26+
27+
8th March 2024
28+
29+
* 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
30+
* PATCH: Removed deprecated use of st.@cache decorator.
31+
32+
## v2.0.0
33+
34+
1st March 2024
35+
36+
* ENV: Upgraded to Python 3.10 and upgrade `numpy`, `pandas`, `matplotlib`` versions etc.
37+
* ENV: Upgraded to streamlit `1.31.1`
38+
* PAGES: Removed deprecated `streamlit`` functions
39+
* PATCH: Fixed `st.setup_page` location in `Overview.py` (main landing page) to avoid runtime error.
40+
41+
## v1.2.0
42+
43+
30th October 2023
44+
45+
* Updated pilot Web App release to support *Toward Sharing Tools and Artefacts for Reusable Simulations in Healthcare* project.
46+
* GITHUB: Included detailed instructions to download the code, install dependencies and run the app locally
47+
* GITHUB: Updated README URLs and included link to SW23 version of app redundancy.
48+
49+
## v1.1.0
50+
51+
23rd January 2023
52+
53+
* Added Dockerfile that creates a python:3.8 image running the latest version of streamlit and the app on port 8989.
54+
55+
## v1.0.0
56+
57+
19th July 2022
58+
59+
* Pilot Web App release to test project feasibility.
60+
* The release supports [conference paper](https://www.theorsociety.com/media/7313/doiorg1036819sw23030.pdf) and talk given at the OR Society Simulation Workshop 2023 (SW23)
61+
* Code can be found in separate repository:

pages/0_🎱_Interactive_simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_arrival_chart():
5858
fig = px.bar(arrivals, x='period', y='arrival_rate',
5959
labels={
6060
"period": "hour of day",
61-
"arrival_rate": "mean arrivaks"
61+
"arrival_rate": "mean arrivals"
6262
})
6363

6464
return fig

pages/7_🗒️_Change_Log.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
'''
2+
Change log page
3+
4+
A list of changes to each version of the app
5+
'''
6+
7+
import streamlit as st
8+
import urllib.request as request
9+
10+
FILE = (
11+
"https://raw.githubusercontent.com/pythonhealthdatascience/"
12+
+ "stars-streamlit-example/main/CHANGES.md"
13+
)
14+
15+
16+
def read_file_contents(path):
17+
"""
18+
Download the content of a file from the GitHub Repo and return as a utf-8 string
19+
20+
Notes:
21+
-------
22+
adapted from 'https://github.com/streamlit/demo-self-driving'
23+
24+
Parameters:
25+
----------
26+
path: str
27+
e.g. file_name.md
28+
29+
Returns:
30+
--------
31+
utf-8 str
32+
33+
"""
34+
response = request.urlopen(path)
35+
return response.read().decode("utf-8")
36+
37+
38+
st.markdown(read_file_contents(FILE))

0 commit comments

Comments
 (0)