Traj module error

Hi all,

What would be the reason that Trajectory module gives me this error?

File /opt/anaconda3/lib/python3.9/site-packages/spyder_kernels/py3compat.py:356 in compat_exec

exec(code, globals, locals)

File ~/untitled0.py:21
tlog = TrajectoryLog(tlog_path)

File /opt/anaconda3/lib/python3.9/site-packages/pylinac/log_analyzer.py:2342 in init
super().init(filename, exclude_beam_off)

File /opt/anaconda3/lib/python3.9/site-packages/pylinac/log_analyzer.py:1555 in init
raise OSError(f"{filename} was not a valid log file")

OSError: /Users/myname/Desktop/5487337_RT_BRST_RNI_1LAO_20230814151247.bin was not a valid log file

This might be a permissions issue. The flag for checking a valid log is that the first 5 bytes has to be “VOSTL”. What version of TrueBeam did this get generated by?

You can print the first 5 bytes like so:

with open(‘mylogfile.bin’, ‘rb’) as f:
print(f.read(5))