Skip to content

Commit

Permalink
Update raster.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wbierbower committed Mar 17, 2015
1 parent a49cbeb commit e4cf6c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fauxgeo/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self, uri):
self.exists = False
self.uri = uri
self.dataset = None
self.tmp = False

if uri is not None:
if os.path.exists(uri):
Expand Down Expand Up @@ -45,7 +46,7 @@ def __exit__(self):

# Should probably be in TestRaster class
def _close(self):
if self.tmp is False:
if self.tmp is True:
os.remove(self.uri)

def init(self, array, affine, proj, datatype, nodata_val):
Expand Down

0 comments on commit e4cf6c1

Please sign in to comment.