Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sanika-n committed Jan 21, 2025
1 parent d71f688 commit 574681b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mesa/visualization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
from .components import make_plot_component, make_space_component
from .components.altair_components import make_space_altair
from .solara_viz import JupyterViz, SolaraViz
from .types import HexGrid, Network, OrthogonalGrid
from .user_param import Slider

__all__ = [
"HexGrid",
"JupyterViz",
"Network",
"OrthogonalGrid",
"Slider",
"SolaraViz",
"draw_space",
Expand Down
23 changes: 23 additions & 0 deletions mesa/visualization/types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""This module defines the types used in the visualization modules."""

from mesa.experimental.cell_space import (
HexGrid as ExperimentalHexGrid,
)
from mesa.experimental.cell_space import (
Network as ExperimentalNetwork,
)
from mesa.experimental.cell_space import (
OrthogonalMooreGrid,
OrthogonalVonNeumannGrid,
)
from mesa.space import (
HexMultiGrid,
HexSingleGrid,
MultiGrid,
NetworkGrid,
SingleGrid,
)

OrthogonalGrid = SingleGrid | MultiGrid | OrthogonalMooreGrid | OrthogonalVonNeumannGrid
HexGrid = HexSingleGrid | HexMultiGrid | ExperimentalHexGrid
Network = NetworkGrid | ExperimentalNetwork

0 comments on commit 574681b

Please sign in to comment.