Skip to content

Commit 59e08db

Browse files
authored
Merge branch 'develop' into split-ingress
2 parents c58415c + e0c0821 commit 59e08db

File tree

121 files changed

+65296
-895
lines changed

Some content is hidden

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

121 files changed

+65296
-895
lines changed

.cache/v/cache/lastfailed

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"test_app.py": true
3+
}

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ venv
2525
ENV
2626
env.bak
2727
venv.bak
28+
cypress
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Dash feature request
3+
about: Report something that's missing from the Dash version
4+
title: [dash]
5+
labels: 'dash'
6+
assignees: ''
7+
8+
---
9+
10+
### Description:
11+
12+
13+
14+
[ ] This is something we can copy over from streamlit (screenshots if applicable)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: General bug report
3+
about: Create an report to help us improve.
4+
title: [bug]
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
Before you begin, please help us manage volume by checking if this could be submitted another way:
12+
- Usage questions? Ask in Slack [#chime-help](https://codeforphilly.org/chat?channel=chime-help).
13+
- Feature ideas? Propose in Slack for discussion.
14+
- Is this something you can debug and fix? Pull requests are very welcome.
15+
-->
16+
17+
### Description:
18+
19+
### Steps to reproduce:
20+
1.
21+
2.
22+
3.
23+
24+
### Expected behavior:
25+
26+
### What I got instead:
27+
(screenshots if applicable)

.github/ISSUE_TEMPLATE/model.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report for model
3+
about: Feedback or bug report for the epidemiological model and analysis.
4+
title: [model]
5+
labels: 'models'
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
Please note: Any changes to the model have a huge impact on rapidly evolving hospital system & public health decisions. The current model has been in use for a while now, and it has been validated against other similar models, so any changes to the model must meet a very high bar.
12+
13+
However, these 2 types of issue reports are very welcome:
14+
- Bugs causing this model to produce invalid results. In this case, please include details and a suggested fix.
15+
- If this model is producing a significantly different result than another well-known epidemiological model. In this case, please include proof of this difference and a suggested fix to our approach.
16+
17+
For questions or early discussion, please join us in [#chime-analysis](https://codeforphilly.org/chat?channel=chime-analysis) in Slack instead.
18+
-->
19+
20+
### Summary
21+
22+
23+
### Additional details
24+
25+
26+
### Suggested fix

.github/workflows/heroku.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy working development app to Heroku staging project
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
8+
env:
9+
HEROKU_USER: 32dd7c8d-eb68-4420-bfe2-9ed047ef8fb0
10+
HEROKU_SECRET: ${{ secrets.heroku_secret_key }}
11+
HEROKU_APP: cfp-ci-chime
12+
HEROKU_EMAIL: [email protected]
13+
14+
jobs:
15+
deploy-heroku-stg:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Deploy app
20+
id: deploy_stg_job
21+
uses: akhileshns/[email protected]
22+
with:
23+
heroku_api_key: ${HEROKU_SECRET}
24+
heroku_app_name: ${HEROKU_APP}
25+
heroku_email: ${HEROKU_EMAIL}
26+
- name: Return app URL
27+
run: |
28+
echo "Deployed to: https://${HEROKU_APP}.herokuapp.com/"

.github/workflows/pythonapp.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,11 @@ jobs:
3737
run: |
3838
pip install pytest
3939
python -m pytest
40+
- name: Run App
41+
run: |
42+
streamlit run src/app.py &
43+
- name: Cypress
44+
uses: cypress-io/[email protected]
45+
with:
46+
working-directory: e2e
47+

Dockerfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
FROM python:3.7.7-slim-buster
2-
3-
COPY .streamlit ~/
4-
5-
COPY ./requirements.txt /app/requirements.txt
6-
2+
RUN mkdir /app
73
WORKDIR /app
8-
9-
RUN pip install -q -r requirements.txt
10-
11-
COPY . ./
12-
13-
CMD ["streamlit", "run", "app.py"]
4+
COPY .streamlit .streamlit
5+
COPY README.md .
6+
COPY setup.py .
7+
COPY settings.cfg .
8+
COPY src src
9+
RUN pip install -q .
10+
11+
CMD ["streamlit", "run", "src/app.py"]

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: STREAMLIT_SERVER_PORT=$PORT streamlit run app.py
1+
web: STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# CHIME
22

3-
The **C**OVID-19 **H**ospital **I**mpact **M**odel for **E**pidemics
3+
The **C**OVID-19 **H**ospital **I**mpact **M**odel for **E**pidemics ([penn-chime.phl.io](http://penn-chime.phl.io/))
44

55
[![CHIME](https://user-images.githubusercontent.com/1069047/76693244-5e07e980-6638-11ea-9e02-1c265c86fd2b.gif)](http://predictivehealthcare.pennmedicine.org/chime)
66

7-
Try it out online at [penn-chime.phl.io](http://penn-chime.phl.io/)
7+
## Background
8+
The [CHIME](https://penn-chime.phl.io/) (COVID-19 Hospital Impact Model for Epidemics) Application is designed to assist hospitals and public health officials with understanding hospital capacity needs as they relate to the COVID pandemic. CHIME enables capacity planning by providing estimates of total daily (i.e. new) and running totals of (i.e. census) inpatient hospitalizations, ICU admissions, and patients requiring ventilation. These estimates are generated using a [SIR (Susceptible, Infected, Recovered)](https://mathworld.wolfram.com/SIRModel.html) model, a standard epidemiological modeling technique. Our model has been validated by several epidemiologists including [Michael Z. Levy, PhD](https://www.dbei.med.upenn.edu/bio/michael-z-levy-phd), Associate Professor of Epidemiology, Department of Biostatistics, Epidemiology and Informatics at the Perelman School of Medicine.
89

9-
Interested in [contributing](https://codeforphilly.github.io/chime/CONTRIBUTING.html)?
10+
Originally developed in `github.com/pennsignals/chime`, active development is now at `github.com/CodeForPhilly/chime`.
1011

11-
Join our [Code For Philly](https://codeforphilly.org/projects/chime) project or our [Slack workspace](https://codeforphilly.org/chat) in the [#covid19-chime-penn](https://codeforphilly.org/chat/covid19-chime-penn) channel if you'd like to chat with us. We'd appreciate your [feedback](http://predictivehealthcare.pennmedicine.org/contact/).
12+
### Documentation
13+
14+
- [User Documentation](https://code-for-philly.gitbook.io/chime/)
15+
- [Developer Documentation](https://codeforphilly.github.io/chime/)
1216

13-
## Documentation
17+
## Contributing
1418

15-
- [Getting Started: Try Online](https://codeforphilly.github.io/chime/getting-started/try-online.html)
16-
- [Getting Started: Run Locally](https://codeforphilly.github.io/chime/getting-started/run-locally.html)
1719
- [Contributing: Overview](https://codeforphilly.github.io/chime/CONTRIBUTING.html)
18-
- [Contributing: Application Development](https://codeforphilly.github.io/chime/contributing/app-dev.html)
20+
21+
Join our [Code For Philly](https://codeforphilly.org/projects/chime) project or our [Slack workspace](https://codeforphilly.org/chat) in the [#covid19-chime-penn](https://codeforphilly.org/chat/covid19-chime-penn) channel if you'd like to chat with us. We'd appreciate your [feedback](http://predictivehealthcare.pennmedicine.org/contact/).
1922

2023
## Thanks
2124

0 commit comments

Comments
 (0)