Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2022
1 parent d7bcbda commit c53b805
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering
project_urls =
Changelog = https://sid-dev.readthedocs.io/en/latest/changes.html
Expand Down
2 changes: 1 addition & 1 deletion src/sid/msm.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _msm(
moment_errors = flat_simulated_moments - flat_empirical_moments

root_contribs = np.sqrt(np.diagonal(weighting_matrix)) * moment_errors
value = np.sum(root_contribs ** 2)
value = np.sum(root_contribs**2)

out = {
"value": value,
Expand Down
2 changes: 1 addition & 1 deletion src/sid/update_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _get_waning_immunity_coefficients(
("immunity", "immunity_waning", f"slope_after_maximum_{event}"), "value"
]

slope_before_maximum = maximum_immunity / (time_to_reach_maximum ** 3)
slope_before_maximum = maximum_immunity / (time_to_reach_maximum**3)
intercept_after_maximum = (
maximum_immunity - slope_after_maximum * time_to_reach_maximum
)
Expand Down

0 comments on commit c53b805

Please sign in to comment.