Skip to content

Commit 5675509

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0d8c548 commit 5675509

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parcels/fieldset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ def from_copernicusmarine(ds: xr.Dataset):
237237
fields["V"].units = Geographic()
238238

239239
if "W" in ds.data_vars:
240-
ds["W"] -= ds["W"] # Negate W to convert from up positive to down positive (as that's the direction of positive depth)
240+
ds["W"] -= ds[
241+
"W"
242+
] # Negate W to convert from up positive to down positive (as that's the direction of positive depth)
241243
fields["W"] = Field("W", ds["W"], grid)
242244
fields["UVW"] = VectorField("UVW", fields["U"], fields["V"], fields["W"])
243245
else:

0 commit comments

Comments
 (0)