prof.fwxm error

Hello,

I have this error message for fwxm in
x_rad_center = round(x_prof.fwxm_center(interpolate=True)[0], 2)
AttributeError: ‘SingleProfile’ object has no attribute ‘fwxm_center’
.

I am intriducing this class :
“from pylinac.core.image import DicomImage, ArrayImage, FileImage
from pylinac.core.profile import SingleProfile
from pylinac import ct
import pylinac
import pydicom
from pydicom.data import get_testdata_files
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import numpy as np
import math
import enum”

Hi,

I think you use version 3.0.0 of pylinac. With 3.0.0 you have two options:
.geometric_center() and .beam_center()
for reference:

https://pylinac.readthedocs.io/en/latest/core_modules.html#pylinac.core.profile.SingleProfile

Hello thank you

also the same problem for fwxm_edges
are there any changment

best regard’s

Hi,
I searched the docs and could not find fwxm_edges, it seems you try to use an attribute that is just not there.
The full documentation for the profile core modules is here:
https://pylinac.readthedocs.io/en/latest/core_modules.html#module-pylinac.core.profile