Skip to content

Commit

Permalink
g.gui.example: fix typo in statitistics -> statistics (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Nov 10, 2023
1 parent 4744671 commit aaaa23c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/gui/wxpython/example/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def OnCloseWindow(self, event):
def InitVariables(self):
"""!Initialize any variables nneded by application"""
self.currentRaster = None
self.statitistics = dict()

# use WIND_OVERRIDE region not to affect current region
gcore.use_temp_region()
Expand Down Expand Up @@ -329,7 +328,7 @@ def SetLayer(self, name):

self.UpdateStatistics()

def ComputeStatitistics(self):
def ComputeStatistics(self):
"""!Computes statistics for raster map using 'r.univar' module.
@return statistic in form of dictionary
Expand All @@ -349,7 +348,7 @@ def UpdateStatistics(self):
Called after changing raster map.
"""
stats = self.ComputeStatitistics()
stats = self.ComputeStatistics()
self.info.WriteStatistics(name=self.currentRaster, statDict=stats)


Expand Down

0 comments on commit aaaa23c

Please sign in to comment.