From 60ebc6e0e7cb155be62743e7aabf7e6e71636ba7 Mon Sep 17 00:00:00 2001 From: Kamil Raczycki Date: Thu, 28 Dec 2023 20:39:10 +0100 Subject: [PATCH] fix: change paths printing in doctests --- quackosm/functions.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/quackosm/functions.py b/quackosm/functions.py index 2e93605..eb357cc 100644 --- a/quackosm/functions.py +++ b/quackosm/functions.py @@ -63,8 +63,8 @@ def convert_pbf_to_gpq( Tags will be kept in a single column. >>> import quackosm as qosm >>> gpq_path = qosm.convert_pbf_to_gpq(monaco_pbf_path) - >>> gpq_path - PosixPath('files/monaco_nofilter_noclip_compact.geoparquet') + >>> str(gpq_path) + 'files/monaco_nofilter_noclip_compact.geoparquet' Inspect the file with duckdb >>> import duckdb @@ -110,8 +110,8 @@ def convert_pbf_to_gpq( ... monaco_pbf_path, ... tags_filter={"building": True, "amenity": True, "highway": True} ... ) - >>> gpq_path - PosixPath('files/monaco_6593ca69098459d039054bc5fe0a87c56681e29a5f59d38ce3485c03cb0e9374_noclip_exploded.geoparquet') + >>> str(gpq_path) + 'files/monaco_6593ca69098459d039054bc5fe0a87c56681e29a5f59d38ce3485c03cb0e9374_noclip_exploded.geoparquet' Inspect the file with duckdb >>> import duckdb @@ -163,8 +163,8 @@ def convert_pbf_to_gpq( ... maxy=4.1818121 ... ) ... ) - >>> gpq_path - PosixPath('files/maldives_nofilter_35532d32333a47a057265be0d7903ce27f6aa6ca3df31fe45f4ce67e4dbb3fb5_compact.geoparquet') + >>> str(gpq_path) + 'files/maldives_nofilter_35532d32333a47a057265be0d7903ce27f6aa6ca3df31fe45f4ce67e4dbb3fb5_compact.geoparquet' Inspect the file with duckdb >>> import duckdb