Commit 3eb03b8d authored by Benjamin's avatar Benjamin
Browse files

black format

parent 2cf5f974
...@@ -2,4 +2,4 @@ from .arenas_configurations_proto_pb2 import * ...@@ -2,4 +2,4 @@ from .arenas_configurations_proto_pb2 import *
from .arena_configuration_proto_pb2 import * from .arena_configuration_proto_pb2 import *
from .items_to_spawn_proto_pb2 import * from .items_to_spawn_proto_pb2 import *
from .vector_proto_pb2 import * from .vector_proto_pb2 import *
from .__init__ import * from .__init__ import *
\ No newline at end of file
...@@ -2,94 +2,151 @@ ...@@ -2,94 +2,151 @@
# source: animalai/communicator_objects/arena_configuration_proto.proto # source: animalai/communicator_objects/arena_configuration_proto.proto
import sys import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message from google.protobuf import message as _message
from google.protobuf import reflection as _reflection from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2 from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports) # @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default() _sym_db = _symbol_database.Default()
from animalai.communicator_objects import items_to_spawn_proto_pb2 as animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2 from animalai.communicator_objects import (
items_to_spawn_proto_pb2 as animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2,
)
DESCRIPTOR = _descriptor.FileDescriptor( DESCRIPTOR = _descriptor.FileDescriptor(
name='animalai/communicator_objects/arena_configuration_proto.proto', name="animalai/communicator_objects/arena_configuration_proto.proto",
package='communicator_objects', package="communicator_objects",
syntax='proto3', syntax="proto3",
serialized_pb=_b('\n=animalai/communicator_objects/arena_configuration_proto.proto\x12\x14\x63ommunicator_objects\x1a\x38\x61nimalai/communicator_objects/items_to_spawn_proto.proto\"\x81\x01\n\x17\x41renaConfigurationProto\x12\t\n\x01t\x18\x01 \x01(\x05\x12\x11\n\tpass_mark\x18\x02 \x01(\x02\x12\x35\n\x05items\x18\x03 \x03(\x0b\x32&.communicator_objects.ItemToSpawnProto\x12\x11\n\tblackouts\x18\x04 \x03(\x05\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3') serialized_pb=_b(
, '\n=animalai/communicator_objects/arena_configuration_proto.proto\x12\x14\x63ommunicator_objects\x1a\x38\x61nimalai/communicator_objects/items_to_spawn_proto.proto"\x81\x01\n\x17\x41renaConfigurationProto\x12\t\n\x01t\x18\x01 \x01(\x05\x12\x11\n\tpass_mark\x18\x02 \x01(\x02\x12\x35\n\x05items\x18\x03 \x03(\x0b\x32&.communicator_objects.ItemToSpawnProto\x12\x11\n\tblackouts\x18\x04 \x03(\x05\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3'
dependencies=[animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2.DESCRIPTOR,]) ),
dependencies=[
animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2.DESCRIPTOR,
],
)
_ARENACONFIGURATIONPROTO = _descriptor.Descriptor( _ARENACONFIGURATIONPROTO = _descriptor.Descriptor(
name='ArenaConfigurationProto', name="ArenaConfigurationProto",
full_name='communicator_objects.ArenaConfigurationProto', full_name="communicator_objects.ArenaConfigurationProto",
filename=None, filename=None,
file=DESCRIPTOR, file=DESCRIPTOR,
containing_type=None, containing_type=None,
fields=[ fields=[
_descriptor.FieldDescriptor( _descriptor.FieldDescriptor(
name='t', full_name='communicator_objects.ArenaConfigurationProto.t', index=0, name="t",
number=1, type=5, cpp_type=1, label=1, full_name="communicator_objects.ArenaConfigurationProto.t",
has_default_value=False, default_value=0, index=0,
message_type=None, enum_type=None, containing_type=None, number=1,
is_extension=False, extension_scope=None, type=5,
options=None, file=DESCRIPTOR), cpp_type=1,
_descriptor.FieldDescriptor( label=1,
name='pass_mark', full_name='communicator_objects.ArenaConfigurationProto.pass_mark', index=1, has_default_value=False,
number=2, type=2, cpp_type=6, label=1, default_value=0,
has_default_value=False, default_value=float(0), message_type=None,
message_type=None, enum_type=None, containing_type=None, enum_type=None,
is_extension=False, extension_scope=None, containing_type=None,
options=None, file=DESCRIPTOR), is_extension=False,
_descriptor.FieldDescriptor( extension_scope=None,
name='items', full_name='communicator_objects.ArenaConfigurationProto.items', index=2, options=None,
number=3, type=11, cpp_type=10, label=3, file=DESCRIPTOR,
has_default_value=False, default_value=[], ),
message_type=None, enum_type=None, containing_type=None, _descriptor.FieldDescriptor(
is_extension=False, extension_scope=None, name="pass_mark",
options=None, file=DESCRIPTOR), full_name="communicator_objects.ArenaConfigurationProto.pass_mark",
_descriptor.FieldDescriptor( index=1,
name='blackouts', full_name='communicator_objects.ArenaConfigurationProto.blackouts', index=3, number=2,
number=4, type=5, cpp_type=1, label=3, type=2,
has_default_value=False, default_value=[], cpp_type=6,
message_type=None, enum_type=None, containing_type=None, label=1,
is_extension=False, extension_scope=None, has_default_value=False,
options=None, file=DESCRIPTOR), default_value=float(0),
], message_type=None,
extensions=[ enum_type=None,
], containing_type=None,
nested_types=[], is_extension=False,
enum_types=[ extension_scope=None,
], options=None,
options=None, file=DESCRIPTOR,
is_extendable=False, ),
syntax='proto3', _descriptor.FieldDescriptor(
extension_ranges=[], name="items",
oneofs=[ full_name="communicator_objects.ArenaConfigurationProto.items",
], index=2,
serialized_start=146, number=3,
serialized_end=275, type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="blackouts",
full_name="communicator_objects.ArenaConfigurationProto.blackouts",
index=3,
number=4,
type=5,
cpp_type=1,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=146,
serialized_end=275,
) )
_ARENACONFIGURATIONPROTO.fields_by_name['items'].message_type = animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2._ITEMTOSPAWNPROTO _ARENACONFIGURATIONPROTO.fields_by_name[
DESCRIPTOR.message_types_by_name['ArenaConfigurationProto'] = _ARENACONFIGURATIONPROTO "items"
].message_type = (
animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2._ITEMTOSPAWNPROTO
)
DESCRIPTOR.message_types_by_name["ArenaConfigurationProto"] = _ARENACONFIGURATIONPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR) _sym_db.RegisterFileDescriptor(DESCRIPTOR)
ArenaConfigurationProto = _reflection.GeneratedProtocolMessageType('ArenaConfigurationProto', (_message.Message,), dict( ArenaConfigurationProto = _reflection.GeneratedProtocolMessageType(
DESCRIPTOR = _ARENACONFIGURATIONPROTO, "ArenaConfigurationProto",
__module__ = 'animalai.communicator_objects.arena_configuration_proto_pb2' (_message.Message,),
# @@protoc_insertion_point(class_scope:communicator_objects.ArenaConfigurationProto) dict(
)) DESCRIPTOR=_ARENACONFIGURATIONPROTO,
__module__="animalai.communicator_objects.arena_configuration_proto_pb2"
# @@protoc_insertion_point(class_scope:communicator_objects.ArenaConfigurationProto)
),
)
_sym_db.RegisterMessage(ArenaConfigurationProto) _sym_db.RegisterMessage(ArenaConfigurationProto)
DESCRIPTOR.has_options = True DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\252\002\021AAIOCommunicators')) DESCRIPTOR._options = _descriptor._ParseOptions(
descriptor_pb2.FileOptions(), _b("\252\002\021AAIOCommunicators")
)
# @@protoc_insertion_point(module_scope) # @@protoc_insertion_point(module_scope)
...@@ -13,9 +13,7 @@ from google.protobuf.internal.containers import ( ...@@ -13,9 +13,7 @@ from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
) )
from google.protobuf.message import ( from google.protobuf.message import Message as google___protobuf___message___Message
Message as google___protobuf___message___Message,
)
from typing import ( from typing import (
Iterable as typing___Iterable, Iterable as typing___Iterable,
...@@ -23,10 +21,7 @@ from typing import ( ...@@ -23,10 +21,7 @@ from typing import (
Union as typing___Union, Union as typing___Union,
) )
from typing_extensions import ( from typing_extensions import Literal as typing_extensions___Literal
Literal as typing_extensions___Literal,
)
builtin___bool = bool builtin___bool = bool
builtin___bytes = bytes builtin___bytes = bytes
...@@ -36,29 +31,51 @@ if sys.version_info < (3,): ...@@ -36,29 +31,51 @@ if sys.version_info < (3,):
builtin___buffer = buffer builtin___buffer = buffer
builtin___unicode = unicode builtin___unicode = unicode
class ArenaConfigurationProto(google___protobuf___message___Message): class ArenaConfigurationProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
t = ... # type: builtin___int t = ... # type: builtin___int
pass_mark = ... # type: builtin___float pass_mark = ... # type: builtin___float
blackouts = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] blackouts = (
...
) # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int]
@property @property
def items(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto]: ... def items(
self,
def __init__(self, ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[
animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto
]: ...
def __init__(
self,
*, *,
t : typing___Optional[builtin___int] = None, t: typing___Optional[builtin___int] = None,
pass_mark : typing___Optional[builtin___float] = None, pass_mark: typing___Optional[builtin___float] = None,
items : typing___Optional[typing___Iterable[animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto]] = None, items: typing___Optional[
blackouts : typing___Optional[typing___Iterable[builtin___int]] = None, typing___Iterable[
) -> None: ... animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto
]
] = None,
blackouts: typing___Optional[typing___Iterable[builtin___int]] = None,
) -> None: ...
if sys.version_info >= (3,): if sys.version_info >= (3,):
@classmethod @classmethod
def FromString(cls, s: builtin___bytes) -> ArenaConfigurationProto: ... def FromString(cls, s: builtin___bytes) -> ArenaConfigurationProto: ...
else: else:
@classmethod @classmethod
def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> ArenaConfigurationProto: ... def FromString(
cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]
) -> ArenaConfigurationProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"blackouts",b"blackouts",u"items",b"items",u"pass_mark",b"pass_mark",u"t",b"t"]) -> None: ... def ClearField(
self,
field_name: typing_extensions___Literal[
"blackouts",
b"blackouts",
"items",
b"items",
"pass_mark",
b"pass_mark",
"t",
b"t",
],
) -> None: ...
...@@ -2,129 +2,191 @@ ...@@ -2,129 +2,191 @@
# source: animalai/communicator_objects/arenas_configurations_proto.proto # source: animalai/communicator_objects/arenas_configurations_proto.proto
import sys import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message from google.protobuf import message as _message
from google.protobuf import reflection as _reflection from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2 from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports) # @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default() _sym_db = _symbol_database.Default()
from animalai.communicator_objects import arena_configuration_proto_pb2 as animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2 from animalai.communicator_objects import (
arena_configuration_proto_pb2 as animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2,
)
DESCRIPTOR = _descriptor.FileDescriptor( DESCRIPTOR = _descriptor.FileDescriptor(
name='animalai/communicator_objects/arenas_configurations_proto.proto', name="animalai/communicator_objects/arenas_configurations_proto.proto",
package='communicator_objects', package="communicator_objects",
syntax='proto3', syntax="proto3",
serialized_pb=_b('\n?animalai/communicator_objects/arenas_configurations_proto.proto\x12\x14\x63ommunicator_objects\x1a=animalai/communicator_objects/arena_configuration_proto.proto\"\xd4\x01\n\x19\x41renasConfigurationsProto\x12K\n\x06\x61renas\x18\x01 \x03(\x0b\x32;.communicator_objects.ArenasConfigurationsProto.ArenasEntry\x12\x0c\n\x04seed\x18\x02 \x01(\x05\x1a\\\n\x0b\x41renasEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.communicator_objects.ArenaConfigurationProto:\x02\x38\x01\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3') serialized_pb=_b(
, '\n?animalai/communicator_objects/arenas_configurations_proto.proto\x12\x14\x63ommunicator_objects\x1a=animalai/communicator_objects/arena_configuration_proto.proto"\xd4\x01\n\x19\x41renasConfigurationsProto\x12K\n\x06\x61renas\x18\x01 \x03(\x0b\x32;.communicator_objects.ArenasConfigurationsProto.ArenasEntry\x12\x0c\n\x04seed\x18\x02 \x01(\x05\x1a\\\n\x0b\x41renasEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.communicator_objects.ArenaConfigurationProto:\x02\x38\x01\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3'
dependencies=[animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2.DESCRIPTOR,]) ),
dependencies=[
animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2.DESCRIPTOR,
],
)
_ARENASCONFIGURATIONSPROTO_ARENASENTRY = _descriptor.Descriptor( _ARENASCONFIGURATIONSPROTO_ARENASENTRY = _descriptor.Descriptor(
name='ArenasEntry', name="ArenasEntry",
full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry', full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry",
filename=None, filename=None,
file=DESCRIPTOR, file=DESCRIPTOR,
containing_type=None, containing_type=None,
fields=[ fields=[
_descriptor.FieldDescriptor( _descriptor.FieldDescriptor(
name='key', full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry.key', index=0, name="key",
number=1, type=5, cpp_type=1, label=1, full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry.key",
has_default_value=False, default_value=0, index=0,
message_type=None, enum_type=None, containing_type=None, number=1,
is_extension=False, extension_scope=None, type=5,
options=None, file=DESCRIPTOR), cpp_type=1,
_descriptor.FieldDescriptor( label=1,
name='value', full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry.value', index=1, has_default_value=False,
number=2, type=11, cpp_type=10, label=1, default_value=0,
has_default_value=False, default_value=None, message_type=None,
message_type=None, enum_type=None, containing_type=None, enum_type=None,
is_extension=False, extension_scope=None, containing_type=None,
options=None, file=DESCRIPTOR), is_extension=False,
], extension_scope=None,
extensions=[ options=None,
], file=DESCRIPTOR,
nested_types=[], ),
enum_types=[ _descriptor.FieldDescriptor(
], name="value",
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry.value",
is_extendable=False, index=1,
syntax='proto3', number=2,
extension_ranges=[], type=11,
oneofs=[ cpp_type=10,
], label=1,
serialized_start=273, has_default_value=False,
serialized_end=365, default_value=None,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")),
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=273,
serialized_end=365,
) )
_ARENASCONFIGURATIONSPROTO = _descriptor.Descriptor( _ARENASCONFIGURATIONSPROTO = _descriptor.Descriptor(
name='ArenasConfigurationsProto', name="ArenasConfigurationsProto",
full_name='communicator_objects.ArenasConfigurationsProto', full_name="communicator_objects.ArenasConfigurationsProto",
filename=None, filename=None,
file=DESCRIPTOR, file=DESCRIPTOR,
containing_type=None, containing_type=None,
fields=[ fields=[
_descriptor.FieldDescriptor( _descriptor.FieldDescriptor(
name='arenas', full_name='communicator_objects.ArenasConfigurationsProto.arenas', index=0, name="arenas",
number=1, type=11, cpp_type=10, label=3, full_name="communicator_objects.ArenasConfigurationsProto.arenas",
has_default_value=False, default_value=[], index=0,
message_type=None, enum_type=None, containing_type=None, number=1,
is_extension=False, extension_scope=None, type=11,
options=None, file=DESCRIPTOR), cpp_type=10,
_descriptor.FieldDescriptor( label=3,
name='seed', full_name='communicator_objects.ArenasConfigurationsProto.seed', index=1, has_default_value=False,
number=2, type=5, cpp_type=1, label=1, default_value=[],
has_default_value=False, default_value=0, message_type=None,
message_type=None, enum_type=None, containing_type=None, enum_type=None,
is_extension=False, extension_scope=None, containing_type=None,
options=None, file=DESCRIPTOR), is_extension=False,
], extension_scope=None,
extensions=[ options=None,
], file=DESCRIPTOR,
nested_types=[_ARENASCONFIGURATIONSPROTO_ARENASENTRY, ], ),
enum_types=[ _descriptor.FieldDescriptor(
], name="seed",
options=None, full_name="communicator_objects.ArenasConfigurationsProto.seed",
is_extendable=False, index=1,
syntax='proto3', number=2,
extension_ranges=[], type=5,
oneofs=[ cpp_type=1,
], label=1,
serialized_start=153, has_default_value=False,
serialized_end=365, default_value=0,
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[_ARENASCONFIGURATIONSPROTO_ARENASENTRY,],
enum_types=[],
options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=153,
serialized_end=365,
) )
_ARENASCONFIGURATIONSPROTO_ARENASENTRY.fields_by_name['value'].message_type = animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2._ARENACONFIGURATIONPROTO _ARENASCONFIGURATIONSPROTO_ARENASENTRY.fields_by_name[