Skip to content

Commit

Permalink
changing raster's from_array method to staticmethod form classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
wbierbower committed Sep 3, 2015
1 parent c48c5e0 commit 2e06225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fauxgeo/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def __init__(self, uri, driver):
self.driver = driver
self.dataset = None

@classmethod
def from_array(self, array, affine, proj, datatype, nodata_val, driver='GTiff', filepath=None):
@staticmethod
def from_array(array, affine, proj, datatype, nodata_val, driver='GTiff', filepath=None):
if len(array.shape) is 2:
num_bands = 1
elif len(array.shape) is 3:
Expand Down

0 comments on commit 2e06225

Please sign in to comment.