Skip to content

Commit

Permalink
fix(fjagepy): allow the _to_json of AgentID to be used to generate th…
Browse files Browse the repository at this point in the history
…e stringified values
  • Loading branch information
notthetup committed Jul 21, 2024
1 parent 41c6721 commit 66d13ff
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gateways/python/fjagepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ def __init__(self, inReplyTo=None, perf=Performative.INFORM, **kwargs):
if not k.startswith('_') and k.endswith('_'):
k = k[:-1]
self.__dict__[k] = v
if isinstance(v, AgentID):
self.__dict__[k] = v.name

def __getattribute__(self, name):
if name == 'performative':
Expand Down Expand Up @@ -407,8 +405,6 @@ def setclazz(self, **kwargs):
if not k.startswith('_') and k.endswith('_'):
k = k[:-1]
self.__dict__[k] = v
if isinstance(v, AgentID):
self.__dict__[k] = v.name

sname = name.split('.')[-1]
class_ = type(sname, (parent,), {"__init__": setclazz})
Expand Down Expand Up @@ -532,8 +528,6 @@ def __init__(self, **kwargs):
if not k.startswith('_') and k.endswith('_'):
k = k[:-1]
self.__dict__[k] = v
if isinstance(v, AgentID):
self.__dict__[k] = v.name


class Gateway:
Expand Down

0 comments on commit 66d13ff

Please sign in to comment.