Skip to content

Commit

Permalink
Remove mesa.flat namespace (#2091)
Browse files Browse the repository at this point in the history
This doesn't seem to be used as often as the current simple namespace.
  • Loading branch information
rht authored Jul 3, 2024
1 parent 15ca7cf commit 0f3fe74
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions mesa/flat/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions mesa/flat/visualization.py

This file was deleted.

5 changes: 0 additions & 5 deletions tests/test_import_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,25 @@ def test_import():
# This tests the new, simpler Mesa namespace. See
# https://github.com/projectmesa/mesa/pull/1294.
import mesa
import mesa.flat as mf
from mesa.time import RandomActivation

_ = mesa.time.RandomActivation
_ = RandomActivation
_ = mf.RandomActivation

from mesa.space import MultiGrid

_ = mesa.space.MultiGrid
_ = MultiGrid
_ = mf.MultiGrid

from mesa.visualization_old.ModularVisualization import ModularServer

_ = mesa.visualization_old.ModularServer
_ = ModularServer
_ = mf.ModularServer

from mesa.datacollection import DataCollector

_ = DataCollector
_ = mesa.DataCollector
_ = mf.DataCollector

from mesa.batchrunner import batch_run

Expand Down

0 comments on commit 0f3fe74

Please sign in to comment.