|
|
|
@ -102,7 +102,7 @@ class IReader(IO):
|
|
|
|
|
"""
|
|
|
|
|
def __init__(self,_agent,_plugins=None,_logger=None):
|
|
|
|
|
super().__init__(_agent,_plugins,_logger)
|
|
|
|
|
|
|
|
|
|
self._args = if 'args' in _args else None
|
|
|
|
|
def _stream (self,_data ):
|
|
|
|
|
# self.log(action='streaming',object=self._agent._engine.name, input= type(_data).__name__)
|
|
|
|
|
_shape = []
|
|
|
|
@ -120,8 +120,10 @@ class IReader(IO):
|
|
|
|
|
if 'plugins' in _args :
|
|
|
|
|
|
|
|
|
|
self._init_plugins(_args['plugins'])
|
|
|
|
|
|
|
|
|
|
_data = self._agent.read(**_args)
|
|
|
|
|
if self._args :
|
|
|
|
|
_data = self._agent.read(**self._args)
|
|
|
|
|
else:
|
|
|
|
|
_data = self._agent.read(**_args)
|
|
|
|
|
|
|
|
|
|
_objectName = '.'.join([self._agent.__class__.__module__,self._agent.__class__.__name__])
|
|
|
|
|
if types.GeneratorType == type(_data):
|
|
|
|
|