original_docstring: 
      set pv to a value, waiting for timeout or the new orbit is stable around reforbit.
  
      - *diffstd* = 1e-7, std(obt - reforbit) < diffstd means stable
      - *minwait* = 2, wait at least *minwait* seconds.
      - *maxwait* =30, timeout seconds.
      - *step* = 2, sleep at each step.
      - *diffstd_list* = False
      
docstring: set pv to a value, waiting for timeout or the new orbit is stable around reforbit.
docstring_tokens: set pv to a value waiting for timeout or the new orbit is stable around reforbit .
code: def waitStableOrbit(reforbit, **kwargs):
      """
      set pv to a value, waiting for timeout or the new orbit is stable around reforbit.
  
      - *diffstd* = 1e-7, std(obt - reforbit) < diffstd means stable
      - *minwait* = 2, wait at least *minwait* seconds.
      - *maxwait* =30, timeout seconds.
      - *step* = 2, sleep at each step.
      - *diffstd_list* = False
      """
  
      diffstd = kwargs.get('diffstd', 1e-7)
      minwait = kwargs.get('minwait', 2)
      maxwait = kwargs.get('maxwait', 30)
      step    = kwargs.get('step', 2)
      diffstd_list = kwargs.get('diffstd_list', False)
      verbose = kwargs.get('verbose', 0)
  
      t0 = time.time()
      time.sleep(minwait)
      dv = getOrbit() - reforbit
      dvstd = [dv.std()]
      timeout = False
  
      while dv.std() < diffstd:
          time.sleep(step)
          dt = time.time() - t0
          if dt  > maxwait:
              timeout = True
              break
          dv = getOrbit() - reforbit
          dvstd.append(dv.std())
  
      if diffstd_list:
          return timeout, dvstd
code_tokens: def waitStableOrbit ( reforbit , ** kwargs ) : diffstd = kwargs . get ( 'diffstd' , 1e-7 ) minwait = kwargs . get ( 'minwait' , 2 ) maxwait = kwargs . get ( 'maxwait' , 30 ) step = kwargs . get ( 'step' , 2 ) diffstd_list = kwargs . get ( 'diffstd_list' , False ) verbose = kwargs . get ( 'verbose' , 0 ) t0 = time . time ( ) time . sleep ( minwait ) dv = getOrbit ( ) - reforbit dvstd = [ dv . std ( ) ] timeout = False while dv . std ( ) < diffstd : time . sleep ( step ) dt = time . time ( ) - t0 if dt > maxwait : timeout = True break dv = getOrbit ( ) - reforbit dvstd . append ( dv . std ( ) ) if diffstd_list : return timeout , dvstd
short_docstring: set pv to a value, waiting for timeout or the new orbit is stable around reforbit.
short_docstring_tokens: set pv to a value waiting for timeout or the new orbit is stable around reforbit .
comment: """
      set pv to a value, waiting for timeout or the new orbit is stable around reforbit.
  
      - *diffstd* = 1e-7, std(obt - reforbit) < diffstd means stable
      - *minwait* = 2, wait at least *minwait* seconds.
      - *maxwait* =30, timeout seconds.
      - *step* = 2, sleep at each step.
      - *diffstd_list* = False
      """