Skip to content

Commit d5daa30

Browse files
committed
Fix typos in comments
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
1 parent 8b4fa2a commit d5daa30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/power_grid_model_io/utils/download.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
This downloads the zip file as described above, and then it extracts the files there as well, in a folder which
1919
corresponds to the zip file name ("/tmp/1-complete_data-mixed-all-0-sw/" in our example), and it returns the path to
2020
that directory. By default, it will not re-download or re-extract the zip file as long as the files exist in your
21-
temp dir. Your temp dir is typically emptied whe you reboot your computer.
21+
temp dir. Your temp dir is typically emptied when you reboot your computer.
2222
2323
"""
2424

@@ -43,7 +43,7 @@
4343
@dataclass
4444
class ResponseInfo:
4545
"""
46-
Struct to store response information extracted from the response header
46+
Data class to store response information extracted from the response header
4747
"""
4848

4949
status: int
@@ -61,7 +61,7 @@ def __init__(self, progress_bar: tqdm):
6161
Report hook for request.urlretrieve() to update a progress bar based on the amount of downloaded blocks
6262
6363
Args:
64-
progress_bar: A tqdb progress bar
64+
progress_bar: A tqdm progress bar
6565
"""
6666
self._progress_bar = progress_bar
6767
self._last_block = 0
@@ -103,7 +103,7 @@ def download_and_extract(
103103
src_file_path = download(url=url, file_name=file_name, dir_path=dir_path, overwrite=overwrite)
104104
dst_dir_path = src_file_path.with_suffix("")
105105

106-
# If we explicitly want to overwrite the extracted files, remove the
106+
# If we explicitly want to overwrite the extracted files, remove the destination dir.
107107
if overwrite and dst_dir_path.is_dir():
108108
remove_dir(dst_dir_path)
109109

src/power_grid_model_io/utils/zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def extract(src_file_path: Path, dst_dir_path: Optional[Path] = None, skip_if_ex
6969
if only_item is None:
7070
only_item = item
7171
# Else, if only_item is not None, there are more than one items in the root of the directory.
72-
# This means hat there is no 'only_item' and we can stop the loop
72+
# This means that there is no 'only_item' and we can stop the loop
7373
else:
7474
only_item = None
7575
break

0 commit comments

Comments
 (0)