original_docstring: 
      save element info to HDF5 file *output* in *h5group*
      
docstring: save element info to HDF5 file *output* in *h5group
docstring_tokens: save element info to HDF5 file * output * in * h5group
code: def saveElement(elem, output, h5group = "/"):
      """
      save element info to HDF5 file *output* in *h5group*
      """
      import h5py
      h5f = h5py.File(output, 'a')
      grp = h5f.require_group(h5group)
      for fld in elem.fields():
          try:
              val = elem.get(fld, handle="setpoint", unitsys=None)
              grp[fld + ".sp"] = val
          except:
              pass
          try:
              val = elem.get(fld, handle="readback", unitsys=None)
              grp[fld + ".rb"] = val
          except:
              pass
      grp.attrs["name"]   = elem.name
      grp.attrs["family"] = elem.family
      grp.attrs["cell"]   = elem.cell
      grp.attrs["girder"] = elem.girder
      h5f.close()
code_tokens: def saveElement ( elem , output , h5group = "/" ) : import h5py h5f = h5py . File ( output , 'a' ) grp = h5f . require_group ( h5group ) for fld in elem . fields ( ) : try : val = elem . get ( fld , handle = "setpoint" , unitsys = None ) grp [ fld + ".sp" ] = val except : pass try : val = elem . get ( fld , handle = "readback" , unitsys = None ) grp [ fld + ".rb" ] = val except : pass grp . attrs [ "name" ] = elem . name grp . attrs [ "family" ] = elem . family grp . attrs [ "cell" ] = elem . cell grp . attrs [ "girder" ] = elem . girder h5f . close ( )
short_docstring: save element info to HDF5 file *output* in *h5group
short_docstring_tokens: save element info to HDF5 file * output * in * h5group
comment: """
      save element info to HDF5 file *output* in *h5group*
      """