Skip to content

Commit decedcd

Browse files
mlubejMatic Lubej
andauthored
remove "whether to" from docs (#776)
Co-authored-by: Matic Lubej <matic.lubej@sinergise.com>
1 parent 0128a26 commit decedcd

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

eolearn/core/core_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init__(
119119
all features will be saved.
120120
:param overwrite_permission: A level of permission for overwriting an existing EOPatch
121121
to 9 (highest compression).
122-
:save_timestamps: Whether to save the timestamps of the EOPatch. With the `"auto"` setting timestamps are saved
122+
:save_timestamps: Save the timestamps of the EOPatch. With the `"auto"` setting timestamps are saved
123123
if `features=...` or if other temporal features are being saved.
124124
:param use_zarr: Saves numpy-array based features into Zarr files. Requires ZARR extra dependencies.
125125
:param temporal_selection: Writes all of the data to the chosen temporal indices of preexisting arrays. Can be
@@ -191,7 +191,7 @@ def __init__(
191191
default configuration will be taken.
192192
:param features: A collection of features to be loaded. By default, all features will be loaded.
193193
:param lazy_loading: If `True` features will be lazy loaded.
194-
:load_timestamps: Whether to load the timestamps of the EOPatch. With the `"auto"` setting timestamps are loaded
194+
:load_timestamps: Load the timestamps of the EOPatch. With the `"auto"` setting timestamps are loaded
195195
if `features=...` or if other temporal features are being loaded.
196196
:param temporal_selection: Only loads data corresponding to the chosen indices. Can also be a callable that,
197197
given a list of timestamps, returns a list of booleans declaring which temporal slices to load.

eolearn/core/eodata.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def __copy__(
499499
"""Returns a new EOPatch with shallow copies of given features.
500500
501501
:param features: A collection of features or feature types that will be copied into new EOPatch.
502-
:param copy_timestamps: Whether to copy timestamps to the new EOPatch. By default copies them over if all
502+
:param copy_timestamps: Copy timestamps to the new EOPatch. By default copies them over if all
503503
features are copied or if any temporal features are getting copied.
504504
"""
505505
if not features: # For some reason deepcopy and copy pass {} by default
@@ -526,7 +526,7 @@ def __deepcopy__(
526526
527527
:param memo: built-in parameter for memoization
528528
:param features: A collection of features or feature types that will be copied into new EOPatch.
529-
:param copy_timestamps: Whether to copy timestamps to the new EOPatch. By default copies them over if all
529+
:param copy_timestamps: Copy timestamps to the new EOPatch. By default copies them over if all
530530
features are copied or if any temporal features are getting copied.
531531
"""
532532
if not features: # For some reason deepcopy and copy pass {} by default
@@ -564,7 +564,7 @@ def copy(
564564
:param features: Features to be copied into a new `EOPatch`. By default, all features will be copied.
565565
:param deep: If `True` it will make a deep copy of all data inside the `EOPatch`. Otherwise, only a shallow copy
566566
of `EOPatch` will be made. Note that `BBOX` and `TIMESTAMPS` will be copied even with a shallow copy.
567-
:param copy_timestamps: Whether to copy timestamps to the new EOPatch. By default copies them over if all
567+
:param copy_timestamps: Copy timestamps to the new EOPatch. By default copies them over if all
568568
features are copied or if any temporal features are getting copied.
569569
:return: An EOPatch copy.
570570
"""
@@ -620,7 +620,7 @@ def save(
620620
:param overwrite_permission: A level of permission for overwriting an existing EOPatch
621621
:param filesystem: An existing filesystem object. If not given it will be initialized according to the `path`
622622
parameter.
623-
:save_timestamps: Whether to save the timestamps of the EOPatch. With the `"auto"` setting timestamps are saved
623+
:save_timestamps: Save the timestamps of the EOPatch. With the `"auto"` setting timestamps are saved
624624
if `features=...` or if other temporal features are being saved.
625625
:param use_zarr: Saves numpy-array based features into Zarr files. Requires ZARR extra dependencies.
626626
:param temporal_selection: Writes all of the data to the chosen temporal indices of preexisting arrays. Can be
@@ -666,7 +666,7 @@ def load(
666666
:param lazy_loading: If `True` features will be lazy loaded.
667667
:param filesystem: An existing filesystem object. If not given it will be initialized according to the `path`
668668
parameter.
669-
:load_timestamps: Whether to load the timestamps of the EOPatch. With the `"auto"` setting timestamps are loaded
669+
:load_timestamps: Load the timestamps of the EOPatch. With the `"auto"` setting timestamps are loaded
670670
if `features=...` or if other temporal features are being loaded.
671671
:param temporal_selection: Only loads data corresponding to the chosen indices. Can also be a callable that,
672672
given a list of timestamps, returns a list of booleans declaring which temporal slices to load.

eolearn/core/eoexecution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__(
114114
object.
115115
116116
The 2nd option is chosen only if `filesystem` parameter exists in the signature.
117-
:param raise_on_temporal_mismatch: Whether to treat `TemporalDimensionWarning` as an exception.
117+
:param raise_on_temporal_mismatch: Treat `TemporalDimensionWarning` as an exception.
118118
"""
119119
self.workflow = workflow
120120
self.execution_kwargs = self._parse_and_validate_execution_kwargs(execution_kwargs)
@@ -326,7 +326,7 @@ def get_failed_executions(self) -> list[int]:
326326
def get_report_path(self, full_path: bool = True) -> str:
327327
"""Returns the filename and file path of the report.
328328
329-
:param full_path: Whether to return full absolute paths or paths relative to the filesystem object.
329+
:param full_path: Return full absolute paths or paths relative to the filesystem object.
330330
:return: Report filename
331331
"""
332332
if self.report_folder is None:
@@ -354,7 +354,7 @@ def make_report(self, include_logs: bool = True) -> None:
354354
def get_log_paths(self, full_path: bool = True) -> list[str]:
355355
"""Returns a list of file paths containing logs.
356356
357-
:param full_path: Whether to return full absolute paths or paths relative to the filesystem object.
357+
:param full_path: Return full absolute paths or paths relative to the filesystem object.
358358
:return: A list of paths to log files.
359359
"""
360360
if self.report_folder is None:

eolearn/ml_tools/sampling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def sample_by_values(
5454
:param n_samples_per_value: A dictionary specifying the amount of samples per value. Values that are not in the
5555
dictionary will not be sampled.
5656
:param rng: A random numbers generator. If not provided it will be initialized without a seed.
57-
:param replace: Whether to sample with replacement. False means each value can only be chosen once.
57+
:param replace: Sample with replacement. False means each value can only be chosen once.
5858
:return: A pair of numpy arrays first one containing row indices and second one containing column indices of sampled
5959
points.
6060
"""
@@ -190,7 +190,7 @@ def __init__(
190190
:param sampling_feature: A timeless mask feature according to which points will be sampled.
191191
:param fraction: Fraction of points to sample. Can be dictionary mapping values of mask to fractions.
192192
:param exclude_values: Skips points that have these values in `sampling_mask`
193-
:param replace: Whether to sample with replacement. False means each value can only be chosen once.
193+
:param replace: Sample with replacement. False means each value can only be chosen once.
194194
:param mask_of_samples: An output mask timeless feature of counts how many times each pixel has been sampled.
195195
"""
196196
super().__init__(features_to_sample, mask_of_samples=mask_of_samples)
@@ -275,7 +275,7 @@ def __init__(
275275
:param amount: The number of points to sample if integer valued and the fraction of all points if `float`
276276
:param sample_size: A tuple describing a size of sampled blocks. The size is defined as a tuple of number of
277277
rows and number of columns.
278-
:param replace: Whether to sample with replacement. False means each value can only be chosen once.
278+
:param replace: Sample with replacement. False means each value can only be chosen once.
279279
:param mask_of_samples: An output mask timeless feature of counts how many times each pixel has been sampled.
280280
"""
281281
super().__init__(features_to_sample, mask_of_samples=mask_of_samples)

0 commit comments

Comments
 (0)