<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setDriftLength(self, x):
 """ set lengths for drift sections :param x: single double or list :return: None :Example: """

        if x != self.getDriftLength():
            self._setDriftList(x)
            self.refresh = True