code: def _ls2ar(inp, strinp):
      r
  
      # Check if input is 1 or 3 elements (float, list, tuple, array)
      if np.size(inp) == 1:
          start = np.squeeze(inp)
          stop = start+1
          num = 1
      elif np.size(inp) == 3:
          start = inp[0]
          stop = inp[1]
          num = inp[2]
      else:
          print("* ERROR   :: <"+strinp+"> must be a float or a tuple of 3 " +
                "elements (start, stop, num); <"+strinp+" provided: " + str(inp))
          raise ValueError(strinp)
  
      # Re-arrange it to be compatible with np.arange/slice for brute
      if num < 2 or start == stop:
          stop = start
          step = 1
      else:
          step = (stop-start)/(num-1)
      return (start, stop+step/2, step)
docs: r"""Convert float or linspace-input to arange/slice-input for brute.