Skip to content

Commit

Permalink
convert de-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyHow committed May 23, 2024
1 parent 00f5561 commit bf6c211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/griml/convert/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def convert(indir, proj, band_info, startdate, enddate, outdir=None):
# Convert raster to vector
if outdir is not None:
outfile = str(Path(outdir).joinpath(Path(i).stem+'.shp'))
g = raster_to_vector(str(i), proj, band_info, startdate, enddate, None)
print('Saved to '+str(Path(outfile).name))
g = raster_to_vector(str(i), proj, band_info, startdate, enddate, outfile)
print('Saved to '+str(Path(outfile)))

else:
g = raster_to_vector(str(i), proj, band_info, startdate, enddate)
Expand Down

0 comments on commit bf6c211

Please sign in to comment.