Skip to content

Commit

Permalink
Fix bad variable names in utility methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgritter committed Dec 1, 2019
1 parent 5ee7ca4 commit 38056ae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions soffit/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# soffit/application.py
#
# Copyright 2018 Mark Gritter
# Copyright 2018-2019 Mark Gritter
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -157,7 +157,7 @@ def runSingleIter( self ):
print( "Iteration {}: graph size {}".format( self.iteration,
len( self.graph.nodes ) ) )
if self.callback is not None:
self.callback( iteration, g )
self.callback( self.iteration, self.graph )

self.iteration += 1

Expand Down Expand Up @@ -198,9 +198,11 @@ def applyRuleset( rulesetFilename,
The callback function is called with (iteration, graph) at each step."""

grammar = loadGrammar( rulesetFilename )
app = ApplicationState( initialGraph=g, grammar=grammar, callback=callback )
app = ApplicationState( initialGraph=grammar.start,
grammar=grammar,
callback=callback )
app.run( maxIterations=maxIterations )
soffit.display.drawSvg( g, outputFile )
soffit.display.drawSvg( app.graph, outputFile )

def main():
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 38056ae

Please sign in to comment.