Skip to content

Commit

Permalink
Merge pull request #10 from mcgalcode/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mcgalcode authored Nov 14, 2023
2 parents fe2d16f + 97ebb62 commit 900dd3f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ watch:
- src/pylattica
nav:
- Home:
- index.md
- Home: index.md
- Getting Started: ./guides/index.md
- Reference: reference/core/lattice.md
- Notebooks: ./examples/game_of_life.ipynb
- Guides: ./guides/constructing_lattices.ipynb
- Guides:
- Getting Started: ./guides/index.md
- Building Conway's Game Of Life: ./guides/game_of_life.ipynb
- Lattices: ./guides/constructing_lattices.ipynb
- Periodic Structures: ./guides/periodic_structures.ipynb
- Neighborhoods: ./guides/neighborhoods.ipynb
- Controllers and Update Rules: ./guides/controllers_and_update_rules.ipynb
- Simulation States: ./guides/simulation_state.ipynb
- Runners: ./guides/runners.ipynb
- Square Grids: ./guides/square_grids.ipynb
- Examples:
- Game Of Life: ./examples/game_of_life.ipynb
- Square Grids: ./examples/square_grids.ipynb
- Life Like Demos: ./examples/life_like_demos.ipynb
- Reference:
- Core:
Expand Down
4 changes: 2 additions & 2 deletions src/pylattica/visualization/cell_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class CellArtist:
@abstractmethod
def get_color_from_cell_state(self, cell_state: Dict):
pass
pass # pragma: no cover

@abstractmethod
def get_cell_legend_label(self, cell_state: Dict):
pass
pass # pragma: no cover

def get_legend(self, simulation_state: SimulationState):
legend = {}
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization/test_square_grid_artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_result_artist():
controller = Life(structure = simulation.structure)
runner = SynchronousRunner(parallel=True)
result = runner.run(simulation.state, controller, 10, verbose=False)
cell_artist = DiscreteCellArtist.from_discrete_state(result.last_step)
cell_artist = DiscreteCellArtist.from_discrete_result(result)
step_artist = SquareGridArtist2D(simulation.structure, cell_artist)
step_artist.get_img(result.last_step, cell_size=5)
result_artist = ResultArtist(step_artist, result)
Expand Down

0 comments on commit 900dd3f

Please sign in to comment.