mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2026-07-15 23:31:52 +02:00
Resolved some warnings and style issues
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import random
|
||||
from typing import List, Union
|
||||
from typing import List
|
||||
|
||||
from marl_factory_grid.environment.rules import Rule
|
||||
from marl_factory_grid.environment import constants as c
|
||||
from marl_factory_grid.environment.rules import Rule
|
||||
from marl_factory_grid.utils.results import TickResult
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@ class AgentSingleZonePlacementBeta(Rule):
|
||||
super().__init__()
|
||||
|
||||
def on_init(self, state, lvl_map):
|
||||
zones = state[c.ZONES]
|
||||
n_zones = state[c.ZONES]
|
||||
agents = state[c.AGENT]
|
||||
if len(self.coordinates) == len(agents):
|
||||
coordinates = self.coordinates
|
||||
@@ -31,4 +29,4 @@ class AgentSingleZonePlacementBeta(Rule):
|
||||
return []
|
||||
|
||||
def tick_post_step(self, state) -> List[TickResult]:
|
||||
return []
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user