|
|
| plotDOS.filename = sys.argv[1] |
| |
|
| plotDOS.sigma = float(sys.argv[2]) |
| |
|
| plotDOS.file = h5py.File(filename, 'r'); |
| |
|
| plotDOS.dataset = file['DOS'] |
| |
|
| plotDOS.limits = dataset.attrs['UpLowLimits'] |
| |
|
| plotDOS.resolution = dataset.size |
| |
|
| plotDOS.energies = numpy.linspace(limits[1], limits[0], resolution) |
| |
|
| plotDOS.sigma_discrete_units = sigma*resolution/(limits[0] - limits[1]) |
| |
|
| plotDOS.fig = matplotlib.pyplot.figure() |
| |