pylinac icon indicating copy to clipboard operation
pylinac copied to clipboard

DeviceFieldAnalysis.results_data() fails with AttributeError for Profiler

Open StephenTerry opened this issue 2 years ago • 1 comments

Describe the bug After loading and analyzing a Profiler file using DeviceFieldAnalysis, calling the results_data() method gives an AttributeError because there is no central_roi attribute.

To Reproduce Steps to reproduce the behavior:

  1. Load a Profiler .prm file using DeviceFieldAnalysis, then run analyze().
  2. Call results_data().
  3. Receive error: AttributeError: 'DeviceFieldAnalysis' object has no attribute 'central_roi'

Expected behavior Returning the results_data dictionary.

Additional context Adding a central_roi class to the DeviceFieldAnalysis object with attributes max, mean, std, and min set to None fixes the issue, but I'm not sure if that is the proper way to address this.

StephenTerry avatar Mar 03 '23 20:03 StephenTerry

Confirmed. Fix should be in the next release due April 20th. Thanks for reporting.

jrkerns avatar Mar 20 '23 21:03 jrkerns

Fixed in 3.10

jrkerns avatar Jul 23 '24 18:07 jrkerns