Skip to content

Commit 5a70089

Browse files
committed
Formatting
1 parent 3433174 commit 5a70089

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/climate_data/data.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def extracted_era5(self) -> Path:
3737
def extracted_era5_path(
3838
self, dataset: str, variable: str, year: int | str, month: str
3939
) -> Path:
40-
return (
41-
self.extracted_era5
42-
/ f"{dataset}_{variable}_{year}_{month}.nc"
43-
)
40+
return self.extracted_era5 / f"{dataset}_{variable}_{year}_{month}.nc"
4441

4542
@property
4643
def extracted_cmip6(self) -> Path:

src/climate_data/extract/era5.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import itertools
2-
from typing import final
32
import zipfile
43
from pathlib import Path
54

@@ -89,7 +88,7 @@ def download_era5_main(
8988

9089
def check_zipfile(zip_path: Path) -> None:
9190
try:
92-
with zipfile.ZipFile(zip_path) as zf:
91+
with zipfile.ZipFile(zip_path):
9392
pass
9493
except zipfile.BadZipFile as e:
9594
# Download failed or was interrupted, delete the zipfile

0 commit comments

Comments
 (0)