Skip to content

Commit 0b02191

Browse files
Update tests/test_advection.py
Co-authored-by: Vecko <[email protected]>
1 parent ee4604a commit 0b02191

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_advection.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ def test_conversion_3DCROCO():
199199
"""Test of the (SciPy) version of the conversion from depth to sigma in CROCO
200200
201201
Values below are retrieved using xroms and hardcoded in the method (to avoid dependency on xroms):
202-
# x, y = 10, 20
203-
# s_xroms = ds.s_w.values
204-
# z_xroms = ds.z_w.isel(time=0).isel(eta_rho=y).isel(xi_rho=x).values
205-
# lat, lon = ds.y_rho.values[y, x], ds.x_rho.values[y, x]
202+
```py
203+
x, y = 10, 20
204+
s_xroms = ds.s_w.values
205+
z_xroms = ds.z_w.isel(time=0).isel(eta_rho=y).isel(xi_rho=x).values
206+
lat, lon = ds.y_rho.values[y, x], ds.x_rho.values[y, x]
207+
```
206208
"""
207209
fieldset = FieldSet.from_modulefile(TEST_DATA / "fieldset_CROCO3D.py")
208210

0 commit comments

Comments
 (0)