-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement get_hist_total
#18
Conversation
We expose geting the database from models with the `getDb` function. We expose getting historical totals from databases with the `getHistTotal` function, which returns a dictionary of dates, states, and data (counts). We expose getting the name of a model with the `getName` function.
Added database tests by way of running a SEIR model and checking the lengths of the returned Numpy arrays `dates`, `states`, and `counts` to make sure they are of the correct length.
Added a graph to the example in the `qmd` file. This pulls a generated graph from the `README_files` directory.
a0d5086
to
d6512ce
Compare
Awesome job! Notice there's a lot of files that should not be included, namely, all the HTML stuff it is only used for pre-view the HTML version of the README.md file. |
Sorry about that; I generated an HTML report and must have forgotten to remove that data. Will remove. |
The Codacity statement seems to be a common issue: fossasia/query-server#332. |
Fixes #15.
Added database tests by way of running a SEIR model and checking the lengths of the returned Numpy arrays
dates
,states
, andcounts
to make sure they are of the correct length.We expose geting the database from models with the
getDb
function.We expose getting historical totals from databases with the
getHistTotal
function, which returns a dictionary of dates, states, and data (counts).We expose getting the name of a model with the
getName
function.Added a graph to the example in the
qmd
file. This pulls a generated graph from theREADME_files
directory.