code: def st_odd0_even1(n_slices, TR):
      """Ascend alternate starting at slice 0 for odd, slice 1 for even `n_slices`
  
      Acquisitions with alternating ascending slices from Siemens scanners often
      seem to have this behavior as default - see:
          https://mri.radiology.uiowa.edu/fmri_images.html
  
      This means we use the :func:`st_02413` algorithm if `n_slices` is odd, and
      the :func:`st_13024` algorithm if `n_slices` is even.
  
      For example, for 4 slices and a TR of 1:
  
      >>> {name}(4, 1.)
      array([ 0.5 ,  0.  ,  0.75,  0.25])
  
      5 slices and a TR of 1:
  
      >>> {name}(5, 1.)
      array([ 0. ,  0.6,  0.2,  0.8,  0.4])
  
      {pstr}
      """
      if n_slices % 2 == 0:
          return st_13024(n_slices, TR)
      return st_02413(n_slices, TR)
  
file_path: nipy/nipy/algorithms/slicetiming/timefuncs.py
imports: import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: st_odd0_even1(n_slices, TR) and returns: st_02413, st_13024