diff --git a/parallel_examples/awsbatch/do_stitch.py b/parallel_examples/awsbatch/do_stitch.py index bfa81c4..1ac02c9 100755 --- a/parallel_examples/awsbatch/do_stitch.py +++ b/parallel_examples/awsbatch/do_stitch.py @@ -152,10 +152,7 @@ def main(): userFunc = getattr(tilingstats, userFuncName) tilingstats.calcPerSegmentSpatialStatsTiled(img, bandnum, - localDs, colInfo, userFunc, param) - - # ensure closed before uploading - del localDs + localOutfile, colInfo, userFunc, param) # upload the KEA file s3.upload_file(localOutfile, cmdargs.bucket, cmdargs.outfile) diff --git a/pyshepseg/tilingstats.py b/pyshepseg/tilingstats.py index 7b4b8c1..229dc9c 100644 --- a/pyshepseg/tilingstats.py +++ b/pyshepseg/tilingstats.py @@ -287,7 +287,7 @@ def calcPerSegmentStatsTiledRIOS(imgfile, imgbandnum, segfile, controls = applier.ApplierControls() controls.selectInputImageLayers([imgbandnum]) - #controls.setWindowSize(tiling.TILESIZE, tiling.TILESIZE) + # controls.setWindowSize(tiling.TILESIZE, tiling.TILESIZE) # now create a new temporary file for saving the new columns too tempFileMgr = applier.TempfileManager(controls.tempdir)