diff --git a/pylinac/core/image.py b/pylinac/core/image.py index 82b5d54a1..9e6071df7 100644 --- a/pylinac/core/image.py +++ b/pylinac/core/image.py @@ -807,16 +807,7 @@ def _get_axis_value(self, axis_str: str, axis_dcm_attr: str) -> float: float """ axis_found = False - - # try to interpret from DICOM data - if not axis_found: - try: - axis = float(getattr(self.metadata, axis_dcm_attr)) - axis_found = True - except AttributeError: - axis = 0 - - if self._use_filenames and not axis_found: + if self._use_filenames: filename = osp.basename(self.path) # see if the keyword is in the filename keyword_in_filename = axis_str.lower() in filename.lower()