Skip to content

Commit

Permalink
add os path join to try to fix deepsource external file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
k034b363 committed Oct 11, 2024
1 parent 51c10e3 commit e6ab24b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plantcv/geospatial/points_to_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import geojson
import rasterio
import os
from plantcv.plantcv import fatal_error


Expand Down Expand Up @@ -34,5 +35,5 @@ def points_to_geojson(img, viewer, out_path):
"name": rasterio.crs.CRS.to_string(img.metadata["crs"])
}
}
with open(out_path, 'w') as f:
with open(os.path.join(out_path, '.geojson'), 'w') as f:
geojson.dump(feature_collection, f)

0 comments on commit e6ab24b

Please sign in to comment.