AILab-FOI/APi

File closed prematurely

Opened this issue · 0 comments

APi/baseagent.py

Lines 1426 to 1431 in 3b23905

self.ncfile_thread = Thread( target=asyncio.run, args=( self.input_ncfile_run( self.cmd, self.output_file_path ), ) )
#self.ncfile_thread.start()
# TODO: find out why only the first output is processed, i.e.
# ncat writes to the file and closes it seemingly after each
# input making it possible for read_file() to read it and end
# prematurely. See if this can be avoided.