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 Oct 21, 2024
1 parent 16a4138 commit aa58713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions wsimod/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The entry point for the myproject program."""

from argparse import ArgumentParser
from pathlib import Path
from typing import Any, cast
Expand Down
1 change: 1 addition & 0 deletions wsimod/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
TODO: Update documentation on extensions files.
"""

from typing import Callable, Hashable

from .orchestration.model import Model
Expand Down
10 changes: 4 additions & 6 deletions wsimod/nodes/land.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,9 @@ def __init__(
if initial_soil_storage:
self.initial_soil_storage = initial_soil_storage
# Reflect initial nutrient stores in solid nutrient pools
self.nutrient_pool.adsorbed_inorganic_pool.storage[
"P"
] = initial_soil_storage["phosphate"]
self.nutrient_pool.adsorbed_inorganic_pool.storage["P"] = (
initial_soil_storage["phosphate"]
)
self.nutrient_pool.adsorbed_inorganic_pool.storage["N"] = (
initial_soil_storage["ammonia"]
+ initial_soil_storage["nitrate"]
Expand Down Expand Up @@ -2201,9 +2201,7 @@ def adsorption(self):
while (
abs(fxn) > limit and j < self.adsorption_nr_maxiter
): # iteration to calculate equilibrium concentations
fxn = (
xn * soil_moisture_content + coeff * (xn**self.nfr) - ad_de_P_pool
)
fxn = xn * soil_moisture_content + coeff * (xn**self.nfr) - ad_de_P_pool
fprimxn = soil_moisture_content + self.nfr * coeff * (
xn ** (self.nfr - 1)
)
Expand Down

0 comments on commit aa58713

Please sign in to comment.