diff --git a/src/pybdy/nemo_bdy_gen_c.py b/src/pybdy/nemo_bdy_gen_c.py index 3cd0aea..24563f8 100644 --- a/src/pybdy/nemo_bdy_gen_c.py +++ b/src/pybdy/nemo_bdy_gen_c.py @@ -119,7 +119,7 @@ def __init__(self, boundary_mask, settings, grid): bdy_i = np.tile(tij, (rw, 1, 1)) bdy_i = np.transpose(bdy_i, (1, 2, 0)) - bdy_r = bdy_r = np.tile(np.arange(0, rw), (bdy_i.shape[0], 1)) + bdy_r = np.tile(np.arange(0, rw), (bdy_i.shape[0], 1)) # Add points for relaxation zone over rim width # In the relaxation zone with rim width. looking into the domain up to the rim width diff --git a/tests/test_nemo_bdy_extr_assist.py b/tests/test_nemo_bdy_extr_assist.py index 688d0fb..737e747 100644 --- a/tests/test_nemo_bdy_extr_assist.py +++ b/tests/test_nemo_bdy_extr_assist.py @@ -63,7 +63,7 @@ def test_get_ind_out_of_bound(): lat_range_s = np.arange(30, 50, 0.5) lon_sc, lat_sc = np.meshgrid(lon_range_s, lat_range_s) - with pytest.raises(Exception, match="") as exc_info: + with pytest.raises(Exception) as exc_info: imin, imax, jmin, jmax = extr_assist.get_ind(dst_lon, dst_lat, lon_sc, lat_sc) assert ( exc_info.value.args[0]