pylinac icon indicating copy to clipboard operation
pylinac copied to clipboard

Log Analyzer module - Class Dynalog--open file erro

Open yang-6256922 opened this issue 1 year ago • 0 comments

It will get an erro when loading a MLC dynalog file witch contain a chinese characters.Beacuase the patient names are chinese characters in the MLC dynalog files. The statements of 'with open(self.a_logfile) as a_log:' in class of Dynalog in log_analyzer module has no 'encoding=utf-8',that is the reason.I hope to add an 'encoding=' parameter in the Initialization function in class of Dynalog. This will lead to better compatibility of programs in countries where English is not the mother tongue.

yang-6256922 avatar Jul 19 '22 05:07 yang-6256922