Source code for cis_interface.drivers.PickleFileInputDriver
from cis_interface.drivers.FileInputDriver import FileInputDriver
[docs]class PickleFileInputDriver(FileInputDriver):
r"""Class that sends messages read from a file.
Args:
name (str): Name of the queue that messages should be sent to.
args (str): Path to the file that messages should be read from.
**kwargs: Additional keyword arguments are passed to the parent class.
"""
def __init__(self, name, args, **kwargs):
icomm_kws = kwargs.get('icomm_kws', {})
# ocomm_kws = kwargs.get('ocomm_kws', {})
icomm_kws.setdefault('comm', 'PickleFileComm')
kwargs['icomm_kws'] = icomm_kws
super(PickleFileInputDriver, self).__init__(name, args, **kwargs)
self.debug('(%s)', args)