Skip to content

Commit

Permalink
version 0.16
Browse files Browse the repository at this point in the history
Corrected addition and multiplicition by scalar
  • Loading branch information
ozak committed Jan 16, 2015
1 parent 3fec29a commit b859e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions georasters/georasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def __add__(self, other):
ndv=np.nan
return GeoRaster(self.raster+other.raster, self.geot, nodata_value=ndv, projection = self.projection, datatype = self.datatype)
else:
return GeoRaster(self.raster+other, self.geot, self.geot, nodata_value=self.nodata_value, projection = self.projection, datatype = self.datatype)
return GeoRaster(self.raster+other, self.geot, nodata_value=self.nodata_value, projection = self.projection, datatype = self.datatype)

def __radd__(self, other):
return self.__add__(other)
Expand All @@ -315,7 +315,7 @@ def __mul__(self, other):
ndv=np.nan
return GeoRaster(self.raster*other.raster, self.geot, nodata_value=ndv, projection = self.projection, datatype = self.datatype)
else:
return GeoRaster(self.raster*other, self.geot, self.geot, nodata_value=self.nodata_value, projection = self.projection, datatype = self.datatype)
return GeoRaster(self.raster*other, self.geot, nodata_value=self.nodata_value, projection = self.projection, datatype = self.datatype)

def __rmul__(self, other):
return self.__mul__(other)
Expand Down

0 comments on commit b859e4d

Please sign in to comment.