Skip to content

Commit

Permalink
format w latest black
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Jan 30, 2024
1 parent c975757 commit a5daae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ogcore/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ def compute_default_params(self):
reshape_chi_n = np.zeros((self.T + self.S, self.S))
for t in range(self.chi_n.shape[0]):
self.chi_n_interp = si.interp1d(
self.age_midp_80, np.squeeze(self.chi_n[t, :]), kind="cubic"
self.age_midp_80,
np.squeeze(self.chi_n[t, :]),
kind="cubic",
)
self.newstep = 80.0 / self.S
self.age_midp_S = np.linspace(
Expand Down
4 changes: 3 additions & 1 deletion ogcore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,9 @@ def extrapolate_arrays(param_in, dims=None, item="Parameter Name"):
np.ones((dims[0] - param_in.size)) * param_in[-1],
)
)
param_out = np.tile(param_out.reshape(dims[0], 1), (1, dims[1]))
param_out = np.tile(
param_out.reshape(dims[0], 1), (1, dims[1])
)
elif param_in.ndim == 2:
# case where enter values along 2 dimensions, but those aren't
# complete
Expand Down

0 comments on commit a5daae6

Please sign in to comment.