code: def check_inputs_not_arrays(func):
      
      @wraps(func)
      def func_wrapper(self, R, z, phi, t):
          if (hasattr(R, '__len__') and len(R) > 1) \
                  or (hasattr(z, '__len__') and len(z) > 1) \
                  or (hasattr(phi, '__len__') and len(phi) > 1) \
                  or (hasattr(t, '__len__') and len(t) > 1):
              raise TypeError('Methods in SpiralArmsPotential do not accept array inputs. Please input scalars.')
          return func(self, R, z, phi, t)
  
      return func_wrapper
docs: Decorator to check inputs and throw TypeError if any of the inputs are arrays.
      Methods potentially return with silent errors if inputs are not checked.