neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 354 forks source link

added new palliative flux #757

Closed tiagoandresvaz closed 4 years ago

tiagoandresvaz commented 4 years ago

Related issues and PRs

703

753

Description

To implement the new proposed flux in the model and interfaces according to the discussion above.

Impacted Areas in the application

Age-Specific Parameters, and Model.

Testing

Edit age-specific parameters to see changes in deaths modeled in results.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/neherlab/covid19-scenarios/6juh4enxl ✅ Preview: https://covid19-scenarios-git-fork-tiagoandresvaz-palliativeflux.neherlab.vercel.app

rneher commented 4 years ago

Hi @tiagoandresvaz,

this now looks very good to me. I think this addition is needed. Before we can merge this, we need to address a few things

I am also wondering whether we should rename critical to ICU in the table. Now that we also have palliative, there are critically ill people that don't end up in ICU. But I am not sure what the least confusing terminology is... (@ivan-aksamentov ?? )

richard

ivan-aksamentov commented 4 years ago

whether we should rename critical to ICU in the table

Does it relate to ICU on other places? ICU beds, ICU on the plot? Should rename in all places then? And also, in export/import files etc.

ivan-aksamentov commented 4 years ago

@tiagoandresvaz @rneher

how do we handle old jsons

Ideally, the workflow is as follows:

This should automatically ensure that the application code always receives the object of version 2.1.0, however users with old JSONs and URLs will still able to load their data.

ivan-aksamentov commented 4 years ago

fix a few little things here and there (linting etc)

These are mostly formatting warning, can be fixed with yarn format:fix. Also, yarn lint to run the entire static analysis stack. For more fine-grained control, check these npm scripts: https://github.com/neherlab/covid19_scenarios/blob/f62c8dc9bc3b9dc6213b67c4379ab1d218d6b6ad/package.json#L25-L45

tiagoandresvaz commented 4 years ago

@ivan-aksamentov the app is running nicely after modifications that you and @rneher recommended. But when loading jsons created with schema 2.0.0 version, it is rising: expected schemaVer to be one of [2.1.0], but received: 2.0.0

it seems that only one version is allowed to be received. Can you confirm where is this configuration?

ivan-aksamentov commented 4 years ago

@tiagoandresvaz I added a few changes and commented on them above. This should fix the remaining problems.

Note that I also removed the src/.generated/latest from version control, as the latest types are a subject to change and should always be generated on the fly to avoid mistakes. By contrast, the old types (v2.0.0) will never change anymore, so they can be committed.

Please pull and check that this stuff works on your side.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 071ebf09 and detected 0 issues on this pull request.

View more on Code Climate.

tiagoandresvaz commented 4 years ago

@ivan-aksamentov

Please pull and check that this stuff works on your side.

Pull done! It is ok on my side!

ivan-aksamentov commented 4 years ago

@tiagoandresvaz okay, let's merge this!