Skip to content

Commit f02c223

Browse files
committed
fix docs cross-ref
1 parent a4ab7d0 commit f02c223

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/osm_ai_helper/group_elements_and_download_tiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def group_elements_and_download_tiles(
1616
1717
Args:
1818
elements_file (str): Path to the JSON file containing OSM elements.
19-
See [download_osm](osm_ai_helper.download_osm.download_osm).
19+
See [download_osm][osm_ai_helper.download_osm.download_osm].
2020
output_dir (str): Output directory.
2121
The images and annotations will be saved in this directory.
2222
The images will be saved as JPEG files and the annotations as JSON files.

src/osm_ai_helper/utils/plots.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
from PIL import ImageDraw
1+
from PIL import Image, ImageDraw
22

33

4-
def show_vlm_entry(entry):
4+
def show_vlm_entry(entry) -> Image:
55
"""
66
Extracts image and points from entry and draws the points.
77
88
Args:
9-
entry (dict): Dataset entry generated by
10-
[convert_to_vlm_dataset](osm_ai_helper.convert_to_vlm_dataset.convert_to_vlm_dataset).
9+
entry (dict): Dataset entry generated by `convert_to_vlm_dataset`.
1110
Expected format:
1211
1312
```py

src/osm_ai_helper/utils/tiles.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def group_elements_by_tile(elements: List[Dict], zoom: int) -> dict[tuple, list[
1717
1818
Args:
1919
elements (List[Dict]): List of elements from
20-
[download_osm](osm_ai_helper.download_osm.download_osm).
20+
[download_osm][osm_ai_helper.download_osm.download_osm].
2121
zoom (int): Zoom level. See https://docs.mapbox.com/help/glossary/zoom-level/.
2222
2323
Returns:

0 commit comments

Comments
 (0)