code: def _remove_units(self, x):
          
          if hasattr(x, 'unit'):
              x = x.decompose(self.units).value
  
          else:
              x = np.array(x)
  
          return x
docs: Always returns an array. If a Quantity is passed in, it converts to the
          units associated with this object and returns the value.