Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse the number of valence electrons #575

Merged
merged 2 commits into from Apr 6, 2020
Merged

Conversation

samwaseda
Copy link
Member

I wanted to have the number of valence electrons to analyse the number of empty bands.

pyiron/sphinx/base.py Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Apr 6, 2020

Pull Request Test Coverage Report for Build 4041

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 57.967%

Totals Coverage Status
Change from base Build 4032: 0.2%
Covered Lines: 11696
Relevant Lines: 20177

💛 - Coveralls

log_main = log_file[main_start:]

self._parse_dict["n_valence"] = {log_file[ii-1].split()[1]:int(ll.split('=')[-1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self._parse_dict["n_valence"] = {
    log_file[ii-1].split()[1]:int(ll.split('=')[-1])
    for ii, ll in enumerate(log_file)
    if ll.startswith('| Z')
}

@jan-janssen
Copy link
Member

@samwaseda samwaseda merged commit eb25b7f into master Apr 6, 2020
@samwaseda samwaseda deleted the spx_parse_n_electrons branch April 6, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants