Skip to content

Commit 8689267

Browse files
committed
Updates
- increase test coverage - fix pre-commit issues - fix examples autobuild
1 parent f732051 commit 8689267

File tree

15 files changed

+27
-30
lines changed

15 files changed

+27
-30
lines changed

mesa/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ def create_agents(cls, model: Model, n: int, *args, **kwargs) -> AgentSet[Agent]
101101
"""
102102

103103
class ListLike:
104-
"""Helper class to make default arguments act as if they are in a
105-
list of length N.
104+
"""Make default arguments act as if they are in a list of length N.
105+
106+
This is a helper class.
106107
"""
107108

108109
def __init__(self, value):

mesa/examples/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
from mesa.examples.advanced.pd_grid.model import PdGrid
33
from mesa.examples.advanced.sugarscape_g1mt.model import SugarscapeG1mt
44
from mesa.examples.advanced.wolf_sheep.model import WolfSheep
5+
from mesa.examples.basic.alliance_formation.model import (
6+
MultiLevelAllianceModel,
7+
)
58
from mesa.examples.basic.boid_flockers.model import BoidFlockers
69
from mesa.examples.basic.boltzmann_wealth_model.model import BoltzmannWealth
710
from mesa.examples.basic.conways_game_of_life.model import ConwaysGameOfLife
8-
from mesa.examples.basic.meta_agents.alliance_formation.model import (
9-
MultiLevelAllianceModel,
10-
)
11-
from mesa.examples.basic.meta_agents.warehouse.model import (
12-
WarehouseModel,
13-
)
1411
from mesa.examples.basic.schelling.model import Schelling
1512
from mesa.examples.basic.virus_on_network.model import VirusOnNetwork
13+
from mesa.examples.basic.warehouse.model import (
14+
WarehouseModel,
15+
)
1616

1717
__all__ = [
1818
"BoidFlockers",

mesa/examples/basic/meta_agents/alliance_formation/Readme.md renamed to mesa/examples/basic/alliance_formation/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Alliance Formation Model
1+
# Alliance Formation Model (Meta-Agent Example)
22

33
## Summary
44

mesa/examples/basic/meta_agents/alliance_formation/model.py renamed to mesa/examples/basic/alliance_formation/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33

44
import mesa
5-
from mesa.examples.basic.meta_agents.alliance_formation.agents import AllianceAgent
5+
from mesa.examples.basic.alliance_formation.agents import AllianceAgent
66
from mesa.experimental.meta_agents.meta_agent import (
77
create_meta_agent,
88
find_combinations,

mesa/examples/basic/meta_agents/warehouse/Readme.md renamed to mesa/examples/basic/warehouse/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pseudo-Warehouse Model
1+
# Pseudo-Warehouse Model (Meta-Agent Example)
22

33
## Summary
44

0 commit comments

Comments
 (0)