code: def fix_axon_peri(hobj):
      
      for i,sec in enumerate(hobj.axon):
          hobj.axon[i] = None
  
      for i,sec in enumerate(hobj.all):
          if 'axon' in sec.name():
              hobj.all[i] = None
  
      hobj.all = [sec for sec in hobj.all if sec is not None]
  
      hobj.axon = None
  
      #h.execute('create axon[2]', hobj)
      hobj.axon = [h.Section(name='axon[0]'), h.Section(name='axon[1]')]
      hobj.axonal = []
  
      for sec in hobj.axon:
          sec.L = 30
          sec.diam = 1
          hobj.axonal.append(sec)
          hobj.all.append(sec)  # need to remove this comment
  
      hobj.axon[0].connect(hobj.soma[0], 0.5, 0)
      hobj.axon[1].connect(hobj.axon[0], 1, 0)
  
      h.define_shape()
docs: Replace reconstructed axon with a stub
      :param hobj: hoc object