removes deprecated properties. Fixes couch offset issue.
@@ -17,7 +17,6 @@ import io
import math
import os.path as osp
import re
-import warnings
import matplotlib.pyplot as plt
import numpy as np
@@ -689,11 +688,6 @@ class WLImage(image.DicomImage):
"""The offset or distance between the field CAX and EPID in the y-direction (AP)."""
return -sin(self.gantry_angle) * self.cax2epid_vector.x
- @property
- def y_offset(self):
- warnings.warn("The 'y_offset' property is deprecated; use 'bb_y_offset' instead", DeprecationWarning)
- return self.bb_y_offset
-
@property
def bb_y_offset(self):
"""The offset or distance between the field CAX and BB in the y-direction (AP)."""
@@ -704,11 +698,6 @@ class WLImage(image.DicomImage):
"""The offset or distance between the field CAX and EPID in the x-direction (LR)."""
return cos(self.gantry_angle) * self.cax2epid_vector.x
- @property
- def x_offset(self):
- warnings.warn("The 'x_offset' property is deprecated; use 'bb_x_offset' instead", DeprecationWarning)
- return self.bb_x_offset
-
@property
def bb_x_offset(self):
"""The offset or distance between the field CAX and BB in the x-direction (LR)."""
@@ -720,15 +709,10 @@ class WLImage(image.DicomImage):
if is_close(self.couch_angle, [0, 360], delta=2):
return -self.cax2epid_vector.y
- @property
- def z_offset(self):
- warnings.warn("The 'z_offset' property is deprecated; use 'bb_z_offset' instead", DeprecationWarning)
- return self.bb_z_offset
-
@property
def bb_z_offset(self):
"""The offset or distance between the field CAX and BB in z-direction (SI)."""
- if is_close(self.couch_angle, [0, 360], delta=2):
+ # if is_close(self.couch_angle, [0, 360], delta=2):
return -self.cax2bb_vector.y
@property
