From a6e589d11919135136c4062002021acaa68202cf Mon Sep 17 00:00:00 2001 From: k034b363 Date: Fri, 11 Oct 2024 16:11:54 -0500 Subject: [PATCH] simplify geojson.dump for deepsource issue --- plantcv/geospatial/points_to_geojson.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plantcv/geospatial/points_to_geojson.py b/plantcv/geospatial/points_to_geojson.py index 035a677..2d85bb4 100644 --- a/plantcv/geospatial/points_to_geojson.py +++ b/plantcv/geospatial/points_to_geojson.py @@ -35,5 +35,5 @@ def points_to_geojson(img, viewer, out_path): "name": rasterio.crs.CRS.to_string(img.metadata["crs"]) } } - with open(os.path.join(out_path, '.geojson'), 'w') as f: - geojson.dump(feature_collection, f) + #with open(out_path, 'w') as f: + geojson.dump(feature_collection, out_path)