Skip to content

Commit 7effb64

Browse files
committed
fix mypy type errors
1 parent fa998c6 commit 7effb64

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

PyStemmusScope/global_data/cams_co2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from PyStemmusScope.global_data import utils
88

99
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
10-
dask.config.set(**{'array.slicing.split_large_chunks': True})
10+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1111

1212
RESOLUTION_CAMS = 0.75 # Resolution of the dataset in degrees
1313

PyStemmusScope/global_data/cci_landcover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from PyStemmusScope.global_data import utils
99

1010
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
11-
dask.config.set(**{'array.slicing.split_large_chunks': True})
11+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1212

1313
RESOLUTION_CCI = 1 / 360 # Resolution of the dataset in degrees
1414
FILEPATH_LANDCOVER_TABLE = Path(__file__).parent / "assets" / "lccs_to_igbp_table.csv"

PyStemmusScope/global_data/copernicus_lai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from PyStemmusScope.global_data import utils
88

99
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
10-
dask.config.set(**{'array.slicing.split_large_chunks': True})
10+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1111

1212
RESOLUTION_LAI = 1 / 112 # Resolution of the LAI dataset in degrees
1313

PyStemmusScope/global_data/era5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from PyStemmusScope.global_data import utils
1010

1111
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
12-
dask.config.set(**{'array.slicing.split_large_chunks': True})
12+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1313

1414
ERA5_VARIABLES = ["u10", "v10", "mtpr", "sp", "ssrd", "strd"]
1515
ERA5LAND_VARIABLES = ["t2m", "d2m"]

PyStemmusScope/global_data/eth_canopy_height.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from PyStemmusScope.global_data import utils
88

99
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
10-
dask.config.set(**{'array.slicing.split_large_chunks': True})
10+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1111

1212
MAX_DISTANCE = 0.01 # Maximum lat/lon distance to be considered nearby.
1313

PyStemmusScope/global_data/prism_dem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from PyStemmusScope.global_data import utils
88

99
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
10-
dask.config.set(**{'array.slicing.split_large_chunks': True})
10+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
1111

1212
MAX_DISTANCE = 0.01 # Maximum lat/lon distance to be considered nearby. Approx 1km.
1313

PyStemmusScope/global_data/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import xarray as xr
66

77
# see https://docs.dask.org/en/latest/array-slicing.html#efficiency
8-
dask.config.set(**{'array.slicing.split_large_chunks': True})
8+
dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore
99

1010
class MissingDataError(Exception):
1111
"""Error to be raised when requested data is missing."""

0 commit comments

Comments
 (0)