From 76264fe638af3c4094973e73820f8ea32b92545e Mon Sep 17 00:00:00 2001 From: SarahAlidoost Date: Fri, 2 Feb 2024 16:13:15 +0100 Subject: [PATCH] fix black errors --- PyStemmusScope/global_data/cams_co2.py | 2 +- PyStemmusScope/global_data/cci_landcover.py | 2 +- PyStemmusScope/global_data/copernicus_lai.py | 2 +- PyStemmusScope/global_data/era5.py | 2 +- PyStemmusScope/global_data/eth_canopy_height.py | 2 +- PyStemmusScope/global_data/prism_dem.py | 2 +- PyStemmusScope/global_data/utils.py | 3 ++- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/PyStemmusScope/global_data/cams_co2.py b/PyStemmusScope/global_data/cams_co2.py index 520afac5..e06f577a 100644 --- a/PyStemmusScope/global_data/cams_co2.py +++ b/PyStemmusScope/global_data/cams_co2.py @@ -8,7 +8,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore RESOLUTION_CAMS = 0.75 # Resolution of the dataset in degrees diff --git a/PyStemmusScope/global_data/cci_landcover.py b/PyStemmusScope/global_data/cci_landcover.py index 70c4f963..937076fe 100644 --- a/PyStemmusScope/global_data/cci_landcover.py +++ b/PyStemmusScope/global_data/cci_landcover.py @@ -9,7 +9,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore RESOLUTION_CCI = 1 / 360 # Resolution of the dataset in degrees FILEPATH_LANDCOVER_TABLE = Path(__file__).parent / "assets" / "lccs_to_igbp_table.csv" diff --git a/PyStemmusScope/global_data/copernicus_lai.py b/PyStemmusScope/global_data/copernicus_lai.py index 5c2052dc..4f2eafac 100644 --- a/PyStemmusScope/global_data/copernicus_lai.py +++ b/PyStemmusScope/global_data/copernicus_lai.py @@ -8,7 +8,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore RESOLUTION_LAI = 1 / 112 # Resolution of the LAI dataset in degrees diff --git a/PyStemmusScope/global_data/era5.py b/PyStemmusScope/global_data/era5.py index c203fbf8..a3dd4519 100644 --- a/PyStemmusScope/global_data/era5.py +++ b/PyStemmusScope/global_data/era5.py @@ -10,7 +10,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore ERA5_VARIABLES = ["u10", "v10", "mtpr", "sp", "ssrd", "strd"] ERA5LAND_VARIABLES = ["t2m", "d2m"] diff --git a/PyStemmusScope/global_data/eth_canopy_height.py b/PyStemmusScope/global_data/eth_canopy_height.py index f273c985..ee1bf80d 100644 --- a/PyStemmusScope/global_data/eth_canopy_height.py +++ b/PyStemmusScope/global_data/eth_canopy_height.py @@ -8,7 +8,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore MAX_DISTANCE = 0.01 # Maximum lat/lon distance to be considered nearby. diff --git a/PyStemmusScope/global_data/prism_dem.py b/PyStemmusScope/global_data/prism_dem.py index 62a4c030..7addd0c6 100644 --- a/PyStemmusScope/global_data/prism_dem.py +++ b/PyStemmusScope/global_data/prism_dem.py @@ -8,7 +8,7 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore MAX_DISTANCE = 0.01 # Maximum lat/lon distance to be considered nearby. Approx 1km. diff --git a/PyStemmusScope/global_data/utils.py b/PyStemmusScope/global_data/utils.py index c757a044..7db73c78 100644 --- a/PyStemmusScope/global_data/utils.py +++ b/PyStemmusScope/global_data/utils.py @@ -6,7 +6,8 @@ # see https://docs.dask.org/en/latest/array-slicing.html#efficiency -dask.config.set(**{'array.slicing.split_large_chunks': True}) # type: ignore +dask.config.set(**{"array.slicing.split_large_chunks": True}) # type: ignore + class MissingDataError(Exception): """Error to be raised when requested data is missing."""