original_docstring: reset all trims in group *HCOR* and *VCOR* 
docstring: reset all trims in group *HCOR* and *VCOR
docstring_tokens: reset all trims in group * HCOR * and * VCOR
code: def _reset_trims(verbose=False):
      """reset all trims in group *HCOR* and *VCOR* """
      trimx = machines._lat.getGroupMembers(['*', 'HCOR'], op='intersection')
      trimy = machines._lat.getGroupMembers(['*', 'VCOR'], op='intersection')
      pv = []
      for e in trimx:
          pv.extend(e.pv(field='x', handle='setpoint'))
      for e in trimy:
          pv.extend(e.pv(field='y', handle='setpoint'))
      if not pv:
          raise ValueError("no pv for trims found")
  
      if verbose:
          for p in pv:
              print((p, caget(p),))
              caput(p, 0.0, wait=True)
              print(caget(p))
      else:
          caput(pv, 0.0)
  
      _logger.info("reset all trims")
      #print "DONE"
code_tokens: def _reset_trims ( verbose = False ) : trimx = machines . _lat . getGroupMembers ( [ '*' , 'HCOR' ] , op = 'intersection' ) trimy = machines . _lat . getGroupMembers ( [ '*' , 'VCOR' ] , op = 'intersection' ) pv = [ ] for e in trimx : pv . extend ( e . pv ( field = 'x' , handle = 'setpoint' ) ) for e in trimy : pv . extend ( e . pv ( field = 'y' , handle = 'setpoint' ) ) if not pv : raise ValueError ( "no pv for trims found" ) if verbose : for p in pv : print ( ( p , caget ( p ) , ) ) caput ( p , 0.0 , wait = True ) print ( caget ( p ) ) else : caput ( pv , 0.0 ) _logger . info ( "reset all trims" )
short_docstring: reset all trims in group *HCOR* and *VCOR
short_docstring_tokens: reset all trims in group * HCOR * and * VCOR
comment: """reset all trims in group *HCOR* and *VCOR* """$SEP$#print "DONE"