Skip to content

Commit

Permalink
fix black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAlidoost committed Feb 2, 2024
1 parent 3c9ee7a commit 76264fe
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/cams_co2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/cci_landcover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/copernicus_lai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/eth_canopy_height.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion PyStemmusScope/global_data/prism_dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion PyStemmusScope/global_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 76264fe

Please sign in to comment.