mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-23 07:16:44 +02:00
test new pipeline
This commit is contained in:
parent
c3a1cb0cfa
commit
0083f027d2
@ -73,7 +73,7 @@ class Entity(EnvObject, abc.ABC):
|
||||
print(f'Objects of {self.__class__.__name__} can not be bound to other entities.')
|
||||
exit()
|
||||
|
||||
def summarize_state(self) -> dict: # tile=str(self.tile.name)
|
||||
def summarize_state(self) -> dict:
|
||||
return dict(name=str(self.name), x=int(self.x), y=int(self.y), can_collide=bool(self.var_can_collide))
|
||||
|
||||
@abc.abstractmethod
|
||||
|
@ -19,15 +19,6 @@ class PositionMixin:
|
||||
def render(self):
|
||||
return [y for y in [x.render() for x in self] if y is not None]
|
||||
|
||||
# @classmethod
|
||||
# def from_tiles(cls, tiles, *args, entity_kwargs=None, **kwargs):
|
||||
# collection = cls(*args, **kwargs)
|
||||
# entities = [cls._entity(tile, str_ident=i,
|
||||
# **entity_kwargs if entity_kwargs is not None else {})
|
||||
# for i, tile in enumerate(tiles)]
|
||||
# collection.add_items(entities)
|
||||
# return collection
|
||||
|
||||
@classmethod
|
||||
def from_coordinates(cls, positions: [(int, int)], *args, entity_kwargs=None, **kwargs, ):
|
||||
collection = cls(*args, **kwargs)
|
||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ long_description = (this_directory / "README.md").read_text()
|
||||
|
||||
|
||||
setup(name='Marl-Factory-Grid',
|
||||
version='0.1.2',
|
||||
version='0.1.9',
|
||||
description='A framework to research MARL agents in various setings.',
|
||||
author='Steffen Illium',
|
||||
author_email='steffen.illium@ifi.lmu.de',
|
||||
|
Loading…
x
Reference in New Issue
Block a user