Add support, and CI for Python 3.9
This commit is contained in:
parent
145509ba68
commit
7109c821e8
2 changed files with 13 additions and 6 deletions
|
|
@ -20,6 +20,13 @@ test_dev:
|
|||
extends: .acc_py_dev_test
|
||||
|
||||
|
||||
# A development installation of CARA tested with pytest.
|
||||
test_dev-39:
|
||||
variables:
|
||||
PY_VERSION: "3.9"
|
||||
extends: .acc_py_dev_test
|
||||
|
||||
|
||||
.image_builder:
|
||||
# Build and push images to the openshift instance, which automatically triggers an application re-deployment.
|
||||
stage: deploy
|
||||
|
|
|
|||
|
|
@ -33,17 +33,17 @@ def calculate_report_data(model: models.ExposureModel):
|
|||
resolution = 600
|
||||
|
||||
t_start, t_end = model_start_end(model)
|
||||
times = list(np.linspace(t_start, t_end, resolution))
|
||||
concentrations = [np.mean(model.concentration_model.concentration(time))
|
||||
times = np.linspace(t_start, t_end, resolution)
|
||||
concentrations = [np.array(model.concentration_model.concentration(time)).mean()
|
||||
for time in times]
|
||||
highest_const = max(concentrations)
|
||||
prob = np.mean(model.infection_probability())
|
||||
er = np.mean(model.concentration_model.infected.emission_rate_when_present())
|
||||
prob = np.array(model.infection_probability()).mean()
|
||||
er = np.array(model.concentration_model.infected.emission_rate_when_present()).mean()
|
||||
exposed_occupants = model.exposed.number
|
||||
expected_new_cases = np.mean(model.expected_new_cases())
|
||||
expected_new_cases = np.array(model.expected_new_cases()).mean()
|
||||
|
||||
return {
|
||||
"times": times,
|
||||
"times": list(times),
|
||||
"concentrations": concentrations,
|
||||
"highest_const": highest_const,
|
||||
"prob_inf": prob,
|
||||
|
|
|
|||
Loading…
Reference in a new issue