Skip to content

Commit edde3de

Browse files
authored
Merge pull request #33 from pythonhealthdatascience/dev_amy
v4.0.0
2 parents cc52ca8 + b52aae8 commit edde3de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1487
-4491
lines changed

.github/workflows/gcp.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
# Backup of changelog
132+
CHANGES.md.backup
133+
134+
# VSCode settings
135+
.vscode/

.streamlit/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[theme]
2+
base = "light"

CHANGES.md

Lines changed: 87 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,133 @@
1-
# Change Log
1+
# Changelog
22

3-
## v3.1.0
3+
All notable changes to this project will be documented in this file.
44

5-
26th May 2024
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Dates formatted as YYYY-MM-DD as per [ISO standard](https://www.iso.org/iso-8601-date-and-time-format.html).
7+
8+
Consistent identifier (represents all versions, resolves to latest): [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10055168.svg)](https://doi.org/10.5281/zenodo.10055168)
9+
10+
## Unreleased
11+
12+
Modifications to help improve user experience and clarity of the application and repository.
13+
14+
### Added
15+
16+
* Created `scripts/` folder and moved functions to that folder (to organise repository and prevent duplication of functions between pages)
17+
* Add `config.toml` to ensure consistent theme for users with multiple apps or global config settings
18+
* Add `treat_sim` to environment to import model (rather than using local model file)
19+
* Created function to set page configuration on every page of app, including NIHR logo in sidebar
20+
* Add Zenodo badges for each version in `CHANGES.md`
21+
* Add Andy Mayne's ORCID and STARS logo to About page
22+
* Add Towards paper to citation page and add Amy to `CITATION.cff`
23+
* Add more description to interactive simulation (help statements for each parameter, labelled process flow diagram, and step-by-step instructions)
24+
* Add instructions for using the Upload experiments page (including display of template `scenarios.csv`)
25+
26+
### Changed
27+
28+
* Made files PEP-8 compliant and consistent use of " / '
29+
* Upgraded environment to `streamlit`==1.35.0 (to use new features like `st.logo()`)
30+
* `read_file_contents()` uses local import (to prevent accidentally importing from deprecated development branches)
31+
* Used headings, bullets, bold text and images to Overview page to help break up paragraph of text. This includes the arrival figure which was moved from the Interactive Simulation page, as it is not used when choosing model parameters but is relevant to the overview description of the model
32+
33+
### Removed
34+
35+
* Removed `model.py`
36+
* Removed duplicate or unused functions from `more_plot.py`
37+
* Moved several unused files to `archive/`: `copy_table.py`, `gcp.yml`, `git_update.sh`, `more_plot.ipynb`, and `more_plot.png`
38+
* Deleted `CHANGES.md.backup`
39+
40+
### Fixed
41+
42+
* Saved preset experiment and uploaded experiments to session state so they are not lost between page changes
43+
* Fixed bugs with download button (where table for preset experiments disappears if click button) and copy button (which required workaround for streamlit bug) by displaying results using `st.dataframe()` which has built-in download button and is easy to copy to clipboard using `Ctrl+A`
44+
45+
## [v3.1.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v3.1.0) - 2024-05-26 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11316319.svg)](https://doi.org/10.5281/zenodo.11316319)
46+
47+
### Changed
648

749
* IMG: updated process flow image.
850

9-
## v3.0.1
51+
## [v3.0.1](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v3.0.1) - 2024-05-02 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11102678.svg)](https://doi.org/10.5281/zenodo.11102678)
1052

11-
2nd May 2024
53+
### Changed
1254

13-
* PATCH: Trauma patient treatment fixed to use the correct distribution and parameters
1455
* PATCH: Tramna and non-trauma pathways updated to self internal instance of `Scenario` class as opposed to module level variable.
1556

16-
## v3.0.0
57+
### Fixed
58+
59+
* PATCH: Trauma patient treatment fixed to use the correct distribution and parameters
60+
61+
## [v3.0.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v3.0.0) - 2024-04-22 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11034479.svg)](https://doi.org/10.5281/zenodo.11034479)
1762

18-
22nd April 2024
63+
### Added
1964

2065
* ENV: `plotly` v5.21.0 added.
21-
* ENV: Arrival rate and MORE plot have been migrated to be interactive `plotly` format.
2266
* MODULE: `more_plot.py` updated to include a `more_plotly` function.
23-
* PAGES: Multiple replications setting moved from side bar to main window and converted to text input in 🎱 Interactive Simulation page.
2467
* PAGES: Creation of Resources app page. Migration of Links from About page.
2568
* PAGES: Creation of Changes app page: logging all major, minor and patched releases of the app.
69+
70+
### Changed
71+
72+
* PAGES: Multiple replications setting moved from side bar to main window and converted to text input in 🎱 Interactive Simulation page.
2673
* PAGES: About page cleaned up and linked to STARS main study and team.
2774
* PAGES: Emojis 😀 added to app internal page names
2875

29-
## v2.2.0
76+
### Removed
77+
78+
* ENV: Arrival rate and MORE plot have been migrated to be interactive `plotly` format.
3079

31-
20th April 2024
80+
## [v2.2.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v2.2.0) - 2024-04-20 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11001959.svg)](https://doi.org/10.5281/zenodo.11001959)
81+
82+
### Added
3283

3384
* PAGES: Introduce of License page
3485
* PAGES: Links to GitHub, Zenodo archive, Documentation and Tutorial material added to About Page
86+
87+
### Changed
88+
3589
* ENV: Upgrade `streamlit` to 1.33.0
3690
* ENV: Upgrade `simpy` to 4.1.1
3791

38-
## v2.1.0
92+
## [v2.1.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v2.1.0) - 2024-03-08 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10935920.svg)](https://doi.org/10.5281/zenodo.10935920)
93+
94+
### Changed
3995

40-
8th March 2024
96+
* 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
97+
98+
### Removed
4199

42-
* 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
43100
* PATCH: Removed deprecated use of st.@cache decorator.
44101

45-
## v2.0.0
102+
## [v2.0.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v2.0.0) - 2024-03-01 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10732700.svg)](https://doi.org/10.5281/zenodo.10732700)
46103

47-
1st March 2024
104+
### Changed
48105

49106
* ENV: Upgraded to Python 3.10 and upgrade `numpy`, `pandas`, `matplotlib`` versions etc.
50107
* ENV: Upgraded to streamlit `1.31.1`
51-
* PAGES: Removed deprecated `streamlit`` functions
108+
109+
### Removed
110+
111+
* PAGES: Removed deprecated `streamlit` functions
112+
113+
### Fixed
114+
52115
* PATCH: Fixed `st.setup_page` location in `Overview.py` (main landing page) to avoid runtime error.
53116

54-
## v1.2.0
117+
## [v1.2.0](https://github.com/pythonhealthdatascience/stars-streamlit-example/releases/tag/v1.2.0) - 2023-10-30 - [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10055169.svg)](https://doi.org/10.5281/zenodo.10055169)
55118

56-
30th October 2023
119+
### Changed
57120

58121
* Updated pilot Web App release to support *Toward Sharing Tools and Artefacts for Reusable Simulations in Healthcare* project.
59122
* GITHUB: Included detailed instructions to download the code, install dependencies and run the app locally
60123
* GITHUB: Updated README URLs and included link to SW23 version of app redundancy.
61124

62-
## v1.1.0
125+
## v1.1.0 - 2023-01-23
63126

64-
23rd January 2023
127+
### Added
65128

66129
* Added Dockerfile that creates a python:3.8 image running the latest version of streamlit and the app on port 8989.
67130

68-
## v1.0.0
69-
70-
19th July 2022
131+
## v1.0.0 - 2022-07-19
71132

72-
* Pilot Web App release to test project feasibility.
73-
* The release supports [conference paper](https://www.theorsociety.com/media/7313/doiorg1036819sw23030.pdf) and talk given at the OR Society Simulation Workshop 2023 (SW23)
74-
* Code can be found in separate repository:
133+
:seedling: First release. 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.

CHANGES.md.backup

Lines changed: 0 additions & 74 deletions
This file was deleted.

CITATION.cff

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ authors:
1313
- given-names: Thomas
1414
family-names: Monks
1515
affiliation: University of Exeter
16-
orcid: 'https://orcid.org/0000-0003-2631-4481'
17-
- given-names: 'Alison '
16+
orcid: https://orcid.org/0000-0003-2631-4481
17+
- given-names: Alison
1818
family-names: Harper
1919
affiliation: University of Exeter
20-
orcid: 'https://orcid.org/0000-0001-5274-5037'
20+
orcid: https://orcid.org/0000-0001-5274-5037
21+
- given-names: Amy
22+
family-names: Heather
23+
affiliation: University of Exeter
24+
orcid: https://orcid.org/0000-0002-6596-3479
2125
repository-code: >-
2226
https://github.com/pythonhealthdatascience/stars-streamlit-example
2327
url: >-

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Tom Monks
3+
Copyright (c) 2024 STARS Project Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)