File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/virtualship/expedition Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,7 @@ def _load_default_fieldset(cls, directory: str | Path) -> FieldSet:
9797
9898 # make depth negative
9999 for g in fieldset .gridset .grids :
100- g ._depth = (
101- - g ._depth
102- ) # TODO maybe add a grid.negate_depth() method in Parcels?
100+ g .depth = - g .depth
103101
104102 # add bathymetry data
105103 bathymetry_file = directory .joinpath ("bathymetry.nc" )
@@ -139,7 +137,7 @@ def _load_drifter_fieldset(cls, directory: str | Path) -> FieldSet:
139137
140138 # make depth negative
141139 for g in fieldset .gridset .grids :
142- g ._depth = - g ._depth
140+ g .depth = - g .depth
143141
144142 # read in data already
145143 fieldset .computeTimeChunk (0 , 1 )
@@ -171,7 +169,7 @@ def _load_argo_float_fieldset(cls, directory: str | Path) -> FieldSet:
171169 # make depth negative
172170 for g in fieldset .gridset .grids :
173171 if max (g .depth ) > 0 :
174- g ._depth = - g ._depth
172+ g .depth = - g .depth
175173
176174 # read in data already
177175 fieldset .computeTimeChunk (0 , 1 )
You can’t perform that action at this time.
0 commit comments