Skip to content

Commit

Permalink
Fix pylint issues in examples.shifting_sands (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5kin committed Jun 27, 2018
1 parent d96d75c commit 8ee3543
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/game_of_life.py
Expand Up @@ -268,7 +268,7 @@ class GOLExperiment6D(GOLExperiment2):


def main():
# Finally, an example of how to run model/experiment interactively
"""Run model/experiment interactively."""
import moire
ca = GameOfLifeColor(GOLExperimentColor)
gui = moire.GUI(runnable=ca)
Expand Down
13 changes: 7 additions & 6 deletions examples/shifting_sands.py
Expand Up @@ -47,10 +47,10 @@ def absorb(self):
@color_effects.MovingAverage
def color(self):
"""Render contrast black & white cells."""
r = self.main.state * 255
g = self.main.state * 255
b = self.main.state * 255
return (r, g, b)
red = self.main.state * 255
green = self.main.state * 255
blue = self.main.state * 255
return (red, green, blue)


class ShiftingSandsExperiment(core.Experiment):
Expand All @@ -70,9 +70,10 @@ class ShiftingSandsExperiment(core.Experiment):


def main():
"""Run model/experiment interactively."""
import moire
ca = ShiftingSands(ShiftingSandsExperiment)
gui = moire.GUI(runnable=ca)
model = ShiftingSands(ShiftingSandsExperiment)
gui = moire.GUI(runnable=model)
gui.run()


Expand Down

0 comments on commit 8ee3543

Please sign in to comment.