-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
6,167 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.3.1" | ||
|
||
__all__ = ["builtin_matchers", "parse_iter"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
""" | ||
Convert the discrete CP2K PDOS points to a smoothed curve using convoluted gaussians. | ||
If you have separate alpha/beta-spin pdos files (spin-unrestricted calculation), | ||
pass both files as arguments to get one common grid for both of them. | ||
""" | ||
|
||
# Copyright (c) 2020 Tiziano Müller <[email protected]>, | ||
|
@@ -15,7 +18,8 @@ | |
|
||
|
||
HEADER_MATCH = re.compile( | ||
r"\# Projected DOS for atomic kind (?P<element>\w+) at iteration step i = \d+, E\(Fermi\) = [ \t]* (?P<Efermi>[^\t ]+) a\.u\." | ||
r"\# Projected DOS for (?:atomic kind \w+|list \d+ of \d+ atoms,)" | ||
r" at iteration step i = \d+, E\(Fermi\) = [ \t]* (?P<Efermi>[^\t ]+) a\.u\." | ||
) | ||
|
||
# Column indexes, starting from 0 | ||
|
@@ -45,7 +49,7 @@ def cp2k_pdos(): | |
metavar="<PDOS-file>", | ||
type=str, | ||
nargs="+", | ||
help="the PDOS file generated by CP2K, specify two (alpha/beta) files for a common grid", | ||
help="the PDOS file generated by CP2K, specify two files (alpha/beta) in a spin-unrestricted case", | ||
) | ||
parser.add_argument("--sigma", "-s", type=float, default=0.02, help="sigma for the gaussian distribution (default: 0.02)") | ||
parser.add_argument("--de", "-d", type=float, default=0.001, help="integration step size (default: 0.001)") | ||
|
@@ -67,7 +71,7 @@ def cp2k_pdos(): | |
print( | ||
f"The file '{pdosfilename}' does not look like a CP2K PDOS output.\n" | ||
"If it is indeed a correct output file, please report an issue at\n" | ||
" https://github.com/dev-zero/cp2k-tools/issues" | ||
" https://github.com/cp2k/cp2k-output-tools/issues" | ||
) | ||
sys.exit(1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "cp2k-output-tools" | ||
version = "0.3.0" | ||
version = "0.3.1" | ||
description = "Python tools to handle CP2K output files" | ||
authors = ["Tiziano Müller <[email protected]>"] | ||
repository = "https://github.com/cp2k/cp2k-output-tools" | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters