code: def get_volume(f):
      
      fd, temp = tempfile.mkstemp('.gro')
      try:
          rc,out,err = gromacs.editconf(f=f, o=temp, stdout=False)
      finally:
          os.unlink(temp)
      return [float(x.split()[1]) for x in out.splitlines()
              if x.startswith('Volume:')][0]
docs: Return the volume in nm^3 of structure file *f*.
  
      (Uses :func:`gromacs.editconf`; error handling is not good)