Skip to content

Commit

Permalink
[fix] fix #5 (#6)
Browse files Browse the repository at this point in the history
rename castep_elnes_parser.py to ceparser.py
update README.md and castep_elnes_parser.rst
  • Loading branch information
kiyou authored Apr 26, 2022
1 parent 8390016 commit 5139ed8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The label of the site of interest can be specified by `element` and `suffix`.
``` python
>>> !ls . # prepare two {seed_name}.castep files for ground state and excitated state
case_gs.castep case.castep
>>> import castep_elnes_parser as cep
>>> import ceparser as cep
>>> # extract energies and calculate excitation energy for a site labelled as "C:ex"
>>> energies = cep.get_energies(filename_gs="./case_gs.castep", filename_ex="./case.castep", element="C", suffix=":ex")
```
Expand All @@ -55,7 +55,7 @@ This script can form spectra from a pair of {seed_name}.bands and {seed_name}.ee
case_elnes.bands case_elnes.eels_mat
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> import castep_elnes_parser as cep
>>> import ceparser as cep
>>> # calculate gaussian smeared spectra of Gaussian sigma 0.3 eV
>>> energies = np.arange(-4.999, 30.002, 0.001) # make an array for energies with a desired range and resolution
>>> sp = cep.get_smeared_spectrum(energies=energies, sigma=0.3, calc_dir=".", seed_name="case_elnes") # parse and make spectra by gaussian smearing with sigma
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/castep_elnes_parser.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
castep\_elnes\_parser module
============================

.. automodule:: castep_elnes_parser
.. automodule:: ceparser
:members:
:undoc-members:
:show-inheritance:

0 comments on commit 5139ed8

Please sign in to comment.