Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Nov 3, 2023
1 parent 122fec5 commit 8056e39
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pywatershed/atmosphere/prms_atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ..base.adapter import adaptable
from ..base.control import Control
from ..constants import nearzero, inch2cm, nan, one, zero
from ..constants import inch2cm, nan, nearzero, one, zero
from ..parameters import Parameters
from ..utils.time_utils import datetime_doy, datetime_month
from .solar_constants import solf
Expand Down
4 changes: 2 additions & 2 deletions pywatershed/hydrology/prms_canopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from ..constants import (
CovType,
HruType,
dnearzero,
nan,
nearzero,
numba_num_threads,
zero,
dnearzero,
nearzero,
)
from ..parameters import Parameters

Expand Down
2 changes: 1 addition & 1 deletion pywatershed/hydrology/prms_runoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from ..constants import (
HruType,
dnearzero,
nearzero,
nan,
nearzero,
numba_num_threads,
zero,
)
Expand Down
2 changes: 1 addition & 1 deletion pywatershed/hydrology/prms_snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
HruType,
closezero,
dnearzero,
nearzero,
inch2cm,
nan,
nearzero,
numba_num_threads,
one,
zero,
Expand Down
9 changes: 8 additions & 1 deletion pywatershed/hydrology/prms_soilzone.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
HruType,
SoilType,
nan,
nearzero,
numba_num_threads,
one,
nearzero,
zero,
)
from ..parameters import Parameters
Expand Down Expand Up @@ -89,6 +89,9 @@ def __init__(
self._set_inputs(locals())
self._set_options(locals())

# This uses options
self._initialize_soilzone_data()

self._set_budget()
self._init_calc_method()

Expand Down Expand Up @@ -214,6 +217,10 @@ def get_mass_budget_terms():
}

def _set_initial_conditions(self):
# this is called in the super before options are set on self
pass

def _initialize_soilzone_data(self):
# Derived parameters
# JLM: is this awkward here?
# JLM: it's definitely awkward to edit a parameter. maybe
Expand Down

0 comments on commit 8056e39

Please sign in to comment.