Applied-GeoSolutions / gips

Geospatial Image Processing System
GNU General Public License v3.0
17 stars 5 forks source link

remove level from print #523

Closed bhbraswell closed 4 years ago

bhbraswell commented 4 years ago

This is a super tiny thing but I get an error pointing out that 'level' is not a keyword to print. Which occurs for me in this example. But works with the one-line fix of this PR.

# gips_export modis -p ndvi -d 2018-100 -s s3://rob-scratch/NHseacoast.zip -v5 --fetch --res 30 30 --outdir foo --notld
Fatal: 1 error(s) occurred:
Error:
Traceback (most recent call last):
  File "/gips/gips/utils.py", line 680, in cli_error_handler
    yield
  File "/gips/gips/scripts/export.py", line 67, in run_export
    shppath = get_s3_shppath(args.site, tmpdir)
  File "/gips/gips/scripts/export.py", line 41, in get_s3_shppath
    vprint('s3path', s3path)
  File "/gips/gips/utils.py", line 131, in vprint
    print(*args, sep=sep, end=end, level=level, file=file)
TypeError: 'level' is an invalid keyword argument for this function
ircwaves commented 4 years ago

Not sure how I missed this one, since I feel like I fixed the same issue at about the same time, but this is fixed in dev now. Hope all's well.