Hi,
I’m new to pylinac and trying to read a log file with PicketFence. However I’m obtaining an error when trying to read a bin file.
My guess is that maybe the bin file is not appropiate or that maybe I should provide an expected map as well?
my_log = “/Users/oscarestradapastor/Desktop/Python Projects/mlc/DHX” is the directory containing the .bin file. Am I doing something wrong? Any ideas?
Thanks.
Oscar
1 logs found.
Log loaded: 1 of 1
[<pylinac.log_analyzer.Dynalog object at 0x13756f450>]
pf = PicketFence(my_dcm, mlc = “HDMLC”, crop_mm = 90, filter = 10, log = my_log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pylinac/picketfence.py”, line 243, in init
self._load_log(log)
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pylinac/picketfence.py”, line 452, in _load_log
fl = mlog.fluence.expected.calc_map(equal_aspect=True)
^^^^^^^^^^^^
AttributeError: ‘MachineLogs’ object has no attribute ‘fluence’