Skip to content

Commit c268af3

Browse files
Fixing some typos in documentation and warnings
1 parent 6364140 commit c268af3

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

docs/examples/tutorial_sampling.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,7 @@
247247
"name": "stdout",
248248
"output_type": "stream",
249249
"text": [
250-
"WARNING: Sampling of velocities should normally be done using fieldset.UV or fieldset.UVW object; thread carefully\n"
251-
]
252-
},
253-
{
254-
"name": "stdout",
255-
"output_type": "stream",
256-
"text": [
250+
"WARNING: Sampling of velocities should normally be done using fieldset.UV or fieldset.UVW object; tread carefully\n",
257251
"0it [00:00, ?it/s]\n"
258252
]
259253
}

parcels/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def time_index(self, time):
11941194

11951195
def _check_velocitysampling(self):
11961196
if self.name in ['U', 'V', 'W']:
1197-
logger.warning_once("Sampling of velocities should normally be done using fieldset.UV or fieldset.UVW object; thread carefully")
1197+
logger.warning_once("Sampling of velocities should normally be done using fieldset.UV or fieldset.UVW object; tread carefully")
11981198

11991199
def __getitem__(self, key):
12001200
self._check_velocitysampling()

parcels/fieldset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def from_mom5(cls, filenames, variables, dimensions, indices=None, mesh='spheric
838838
This flag overrides the allow_time_extrapolation and sets it to False
839839
tracer_interp_method : str
840840
Method for interpolation of tracer fields. It is recommended to use 'bgrid_tracer' (default)
841-
Note that in the case of from_mom5() and from_bgrid(), the velocity fields are default to 'bgrid_velocity'
841+
Note that in the case of from_mom5() and from_b_grid_dataset(), the velocity fields are default to 'bgrid_velocity'
842842
chunksize :
843843
size of the chunks in dask loading (Default value = None)
844844
**kwargs :
@@ -918,7 +918,7 @@ def from_b_grid_dataset(cls, filenames, variables, dimensions, indices=None, mes
918918
This flag overrides the allow_time_extrapolation and sets it to False
919919
tracer_interp_method : str
920920
Method for interpolation of tracer fields. It is recommended to use 'bgrid_tracer' (default)
921-
Note that in the case of from_pop() and from_bgrid(), the velocity fields are default to 'bgrid_velocity'
921+
Note that in the case of from_pop() and from_b_grid_dataset(), the velocity fields are default to 'bgrid_velocity'
922922
chunksize :
923923
size of the chunks in dask loading (Default value = None)
924924
**kwargs :

0 commit comments

Comments
 (0)