Merge branch 'feature/repr_model' into 'master'
Added code repr to input data Closes #76 See merge request cara/cara!363
This commit is contained in:
commit
d04b011e52
2 changed files with 7 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ def calculate_report_data(form: FormData, model: models.ExposureModel) -> typing
|
|||
expected_new_cases = np.array(model.expected_new_cases()).mean()
|
||||
|
||||
return {
|
||||
"model_repr": repr(model),
|
||||
"times": list(times),
|
||||
"exposed_presence_intervals": [list(interval) for interval in model.exposed.presence.boundaries()],
|
||||
"short_range_intervals": short_range_intervals,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@
|
|||
|
||||
<body id="body">
|
||||
|
||||
<!-- MODEL REPR - Available in the developer tools once the report is generated. Useful to re-create the model using an interpreter that has CARA installed:
|
||||
|
||||
{{ model_repr }}
|
||||
|
||||
-->
|
||||
|
||||
{% block report_header %}
|
||||
|
||||
<div id="report-header-div" class="d-flex flex-row" style="margin: 1%">
|
||||
|
|
|
|||
Loading…
Reference in a new issue