Skip to content

Commit

Permalink
Update(s) include f-strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrettasm committed Mar 18, 2021
1 parent 1bfa323 commit a4990db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions code/src/models/hydrological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def pressure_head(self, theta, z):

# Check the input dimensions (of the vertical domain).
if dim_d != z.shape[0]:
raise ValueError(" {0}: Input size dimensions do not match:"
" {1} not equal to {2}.".format(self.__class__.__name__,
dim_d, z.shape[0]))
raise ValueError(f" {self.__class__.__name__}:"
f" Input size dimensions don't match:"
f" {dim_d} not equal to {z.shape[0]}.")
# _end_if_

# Get the porosity field at 'z'.
Expand Down
6 changes: 3 additions & 3 deletions code/src/models/vanGenuchten.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def __call__(self, psi, z, *args):

# Check the input dimensions (of the vertical domain).
if dim_d != z.shape[0]:
raise ValueError(" {0}: Input size dimensions do not match:"
" {1} not equal to {2}.".format(self.__class__.__name__,
dim_d, z.shape[0]))
raise ValueError(f" {self.__class__.__name__}:"
f" Input size dimensions don't match:"
f" {dim_d} not equal to {z.shape[0]}.")
# _end_if_

# Get the porosity field at 'z'.
Expand Down
6 changes: 3 additions & 3 deletions code/src/models/vrettas_fung.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def __call__(self, psi, z, *args):

# Check the input dimensions (of the vertical domain).
if dim_d != z.shape[0]:
raise ValueError(" {0}: Input size dimensions do not match:"
" {1} not equal to {2}.".format(self.__class__.__name__,
dim_d, z.shape[0]))
raise ValueError(f" {self.__class__.__name__}:"
f" Input size dimensions don't match:"
f" {dim_d} not equal to {z.shape[0]}.")
# _end_if_

# Get the porosity field at 'z'.
Expand Down

0 comments on commit a4990db

Please sign in to comment.