Skip to content

Commit

Permalink
Comment out test_compare_results function in test_app.py for future r…
Browse files Browse the repository at this point in the history
…eference
  • Loading branch information
kshitijrajsharma committed Feb 20, 2025
1 parent 0a96186 commit b01131d
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,24 @@ def test_invalid_source(test_geojson_path):
)


def test_compare_results(test_geojson_path):
"""Compare results from different sources."""
sources = {"google": None, "microsoft": "Nepal", "osm": None, "overture": None}

results = {}
for source, location in sources.items():
result_file = os.path.join(OUTPUT_DIR, f"{source}_buildings.geojson")
download_buildings(
source=source,
input_path=test_geojson_path,
output_path=result_file,
format="geojson",
location=location,
)
results[source] = gpd.read_file(result_file)

# Print comparison statistics
for source, gdf in results.items():
print(f"\n{source.upper()} Statistics:")
print(f"Number of buildings: {len(gdf)}")
print(f"Total area: {gdf.geometry.area.sum():.2f} square meters")
# def test_compare_results(test_geojson_path):
# """Compare results from different sources."""
# sources = {"google": None, "microsoft": "Nepal", "osm": None, "overture": None}

# results = {}
# for source, location in sources.items():
# result_file = os.path.join(OUTPUT_DIR, f"{source}_buildings.geojson")
# download_buildings(
# source=source,
# input_path=test_geojson_path,
# output_path=result_file,
# format="geojson",
# location=location,
# )
# results[source] = gpd.read_file(result_file)

# # Print comparison statistics
# for source, gdf in results.items():
# print(f"\n{source.upper()} Statistics:")
# print(f"Number of buildings: {len(gdf)}")
# print(f"Total area: {gdf.geometry.area.sum():.2f} square meters")

0 comments on commit b01131d

Please # to comment.