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

Cli #771

Open r-s-rai opened 4 years ago

r-s-rai commented 4 years ago

Related issues and PRs

Fixes issue #663

Description

Begin working more towards cli So far based on issue #663, we have begun -Added cli/ directory (and changed package.json to reflect that) -Added the neodoc parser -Wrapped run() in an exportable function -Read severity and age distribution json files instead of "import get*" statements -and doing the above with fs-extra -Switching console.log to console.info/warn

Impacted Areas in the application

Can read json files and output results in a text file

Testing

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/8wm8juszy
✅ Preview: https://covid19-scenarios-git-cli.neherlab.vercel.app

ivan-aksamentov commented 4 years ago

@r-s-rai Thanks!

In order for me to be able to understand what's happening here, please:

Don't hesitate to sketch some bash/node/python scripts as well as a set of inputs/outputs for testing/showcasing the command-line part of the functionality. You probably already have accumulated some for development purposes.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 1c2e65d1 and detected 0 issues on this pull request.

View more on Code Climate.