Skip to content

Commit

Permalink
simplify geojson.dump for deepsource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
k034b363 committed Oct 11, 2024
1 parent e6ab24b commit a6e589d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plantcv/geospatial/points_to_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a6e589d

Please sign in to comment.