code: def st_03142(n_slices, TR):
      """Ascend alternate, where alternation is by half the volume
  
      Collect slice 0 then slice ``ceil(n_slices / 2.)`` then slice 1 then slice
      ``ceil(nslices / 2.) + 1`` etc.
  
      For example, for 5 slices and a TR of 1:
  
      >>> {name}(5, 1.)
      array([ 0. ,  0.4,  0.8,  0.2,  0.6])
  
      {pstr}
      """
      one_slice = TR / n_slices
      space_to_time = list(range(0, n_slices, 2)) + list(
          range(1, n_slices, 2)
      )
      return np.array(space_to_time) * one_slice
  
file_path: nipy/nipy/algorithms/slicetiming/timefuncs.py
imports: import numpy
label_desc: Use image node_id 11 for calling a global function with example usage: st_03142(n_slices, TR) and returns: unknown