Skip to content

Commit

Permalink
Fix numpy TypeError and DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmarke committed Aug 21, 2024
1 parent d0c87ef commit 66c44f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mwrpy/level2/write_lev2_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def get_products(
else:
ret_in = retrieval_input(lev1, coeff)
ret_array = np.reshape(
tb, (len(coeff["AG"]) * len(freq_ind), len(ibl)), "F"
tb, (len(coeff["AG"]) * len(freq_ind), len(ibl)), order="F"
)
ret_array = np.concatenate((np.ones((1, len(ibl)), np.float32), ret_array))
for i_add in range(ret_in.shape[1] - len(coeff["FR"]) - 1, 0, -1):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_get_ret_coeff_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _check(
):
item = self.coeff[key]
if not isinstance(item, np.ndarray):
item = np.array(item)
item = np.ndarray(item)

assert item.ndim in (0, 1, 2, 3)

Expand Down

0 comments on commit 66c44f2

Please sign in to comment.