Skip to content

Commit f308211

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d4f1f25 commit f308211

6 files changed

+6
-5
lines changed

docs/source/_static/images/make_infectiousness_period.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"source": [
127127
"dist_mean = 2 * 0.12 + 4 * 0.29 + 6 * 0.47 + 10 * 0.12\n",
128128
"dist_var = (\n",
129-
" 2 ** 2 * 0.12 + 4 ** 2 * 0.29 + 6 ** 2 * 0.47 + 10 ** 2 * 0.12 - dist_mean ** 2\n",
129+
" 2**2 * 0.12 + 4**2 * 0.29 + 6**2 * 0.47 + 10**2 * 0.12 - dist_mean**2\n",
130130
")\n",
131131
"dist_std = np.sqrt(dist_var)\n",
132132
"dist_mean, dist_std"

docs/source/_static/images/make_time_until_death.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"source": [
4242
"mean = 11.74\n",
4343
"std = 8.79\n",
44-
"var = 8.79 ** 2\n",
44+
"var = 8.79**2\n",
4545
"\n",
4646
"print(mean, std)"
4747
]

docs/source/_static/images/make_time_until_icu_recovery.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"source": [
4242
"mean = 18.8\n",
4343
"std = 12.21\n",
44-
"var = std ** 2\n",
44+
"var = std**2\n",
4545
"\n",
4646
"print(mean, std)"
4747
]

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers =
2020
Programming Language :: Python :: 3.7
2121
Programming Language :: Python :: 3.8
2222
Programming Language :: Python :: 3.9
23+
Programming Language :: Python :: 3.10
2324
Topic :: Scientific/Engineering
2425
project_urls =
2526
Changelog = https://sid-dev.readthedocs.io/en/latest/changes.html

src/sid/msm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _msm(
156156
moment_errors = flat_simulated_moments - flat_empirical_moments
157157

158158
root_contribs = np.sqrt(np.diagonal(weighting_matrix)) * moment_errors
159-
value = np.sum(root_contribs ** 2)
159+
value = np.sum(root_contribs**2)
160160

161161
out = {
162162
"value": value,

src/sid/update_states.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def _get_waning_immunity_coefficients(
289289
("immunity", "immunity_waning", f"slope_after_maximum_{event}"), "value"
290290
]
291291

292-
slope_before_maximum = maximum_immunity / (time_to_reach_maximum ** 3)
292+
slope_before_maximum = maximum_immunity / (time_to_reach_maximum**3)
293293
intercept_after_maximum = (
294294
maximum_immunity - slope_after_maximum * time_to_reach_maximum
295295
)

0 commit comments

Comments
 (0)