Skip to content

Commit

Permalink
Stupid pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Nov 20, 2024
1 parent f4f5a5b commit 7cfd466
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions odc/geo/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ def scale_and_offset(
return xx


# pylint: disable-next=dangerous-default-value
def mask_invalid_data(
xx: DataArray | Dataset,
nodata: int | float | None = None,
skip_bands: Sequence[str] = [], # pylint: disable=dangerous-default-value
skip_bands: Sequence[str] = [],
) -> DataArray | Dataset:
"""
Mask out invalid data values.
Expand All @@ -210,15 +211,15 @@ def mask_invalid_data(
return xx


# pylint: disable=too-many-arguments
# pylint: disable-next=too-many-arguments, dangerous-default-value
def mask_clouds(
xx: Dataset,
qa_name: str,
scale: float,
offset: float,
clip: tuple,
mask_func: Callable = enum_to_bool, # Pass the function for enum-based masks (bits_to_bool or enum_to_bool)
mask_func_args: dict = {}, # pylint: disable=dangerous-default-value
mask_func_args: dict = {},
apply_mask: bool = True,
keep_qa: bool = False,
return_mask: bool = False,
Expand Down

0 comments on commit 7cfd466

Please sign in to comment.