You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When appending data to the logfile generated by OMS.setLogFile, the appended text gets cutoff suggesting the file has not been closed properly after terminating the simulation, i.e. the file writing buffer is still open.
Steps to reproduce the behavior
additional_info = ["Very important to know", "Where am I?", "How did I end up here?"]
OMS.setLogFile('log.txt')
OMS.simulate...
OMS.terminate...
with open(log.txt, 'a') as logfile:
logfile.write("\n".join(additional_info))
in resulting file parts of additional_info is missing.
Version and OS
Version: [OMSimulator from 2022-05-09]
Python 3.6.6, CentOS7
The text was updated successfully, but these errors were encountered:
Description
When appending data to the logfile generated by
OMS.setLogFile
, the appended text gets cutoff suggesting the file has not been closed properly after terminating the simulation, i.e. the file writing buffer is still open.Steps to reproduce the behavior
in resulting file parts of
additional_info
is missing.Version and OS
OMSimulator from 2022-05-09
]The text was updated successfully, but these errors were encountered: