-
Notifications
You must be signed in to change notification settings - Fork 15
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
SPHINX eigen values parser #1159
Conversation
@@ -2286,6 +2286,7 @@ def _parse_band(self, term): | |||
arr = np.loadtxt(re.findall(term, self.log_main, re.MULTILINE)) | |||
shape = (-1, len(self.k_points), arr.shape[-1]) | |||
if self.spin_enabled: | |||
arr = np.vstack((arr[::2], arr[1::2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment in the code why this is needed. Otherwise, this will cause a lot of headache for later devels.
I'm actually a bit concerned that it may or may not work depending on the SPHInX version? I'm saying this because it was correct in an earlier version and stopped being so with the current version. Maybe we need a version check inside the parser. |
Sphinx has not changed here, I believe the loop order in the writing routine dates back from 2002.
I suspect rather that the pyiron parser has never has been validated in this point.
But please do so this time, Ahmed!
…-------------------------------------------------
Stay up to date and follow us on LinkedIn, Twitter and YouTube.
Max-Planck-Institut für Eisenforschung GmbH
Max-Planck-Straße 1
D-40237 Düsseldorf
Handelsregister B 2533
Amtsgericht Düsseldorf
Geschäftsführung
Prof. Dr. Gerhard Dehm
Prof. Dr. Jörg Neugebauer
Prof. Dr. Dierk Raabe
Dr. Kai de Weldige
Ust.-Id.-Nr.: DE 11 93 58 514
Steuernummer: 105 5891 1000
Please consider that invitations and e-mails of our institute are
only valid if they end with ***@***.***
If you are not sure of the validity please contact ***@***.***
Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails
aus unserem Haus nur mit der Endung ***@***.*** gültig sind.
In Zweifelsfällen wenden Sie sich bitte an ***@***.***
-------------------------------------------------
--EdoMail64fb3410_7a6d7337_241f
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<div id=3D=22edo-message=22><div><div style=3D=22font-size:16px=22>Sphinx=
has not changed here, I believe the loop order in the writing routine da=
tes back from 2002.</div><div style=3D=22font-size:16px=22>I suspect rath=
er that the pyiron parser has never has been validated in this point.</di=
v><div style=3D=22font-size:16px=22>But please do so this time, Ahmed=21<=
/div><div style=3D=22font-size:16px=22><br></div></div></div>
--EdoMail64fb3410_7a6d7337_241f--
|
Ninja comment, but it sounds like this can be more readably solved by `arr.reshape(-1, 2)` or something related. /smokebomb
From: freyso ***@***.***>
To: pyiron/pyiron_atomistics ***@***.***>
Cc: Subscribed ***@***.***>
Sent: 9/8/2023 12:00 PM
Subject: Re: [pyiron/pyiron_atomistics] SPHINX eigen values parser (PR #1159)
@freyso commented on this pull request.
----------------
In pyiron_atomistics/sphinx/base.py: > @@ -2286,6 +2286,7 @@ def _parse_band(self, term):
arr = np.loadtxt(re.findall(term, self.log_main, re.MULTILINE))
shape = (-1, len(self.k_points), arr.shape[-1])
if self.spin_enabled:
+ arr = np.vstack((arr[::2], arr[1::2]))
Please add a comment why this is needed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
…-------------------------------------------------
Stay up to date and follow us on LinkedIn, Twitter and YouTube.
Max-Planck-Institut für Eisenforschung GmbH
Max-Planck-Straße 1
D-40237 Düsseldorf
Handelsregister B 2533
Amtsgericht Düsseldorf
Geschäftsführung
Prof. Dr. Gerhard Dehm
Prof. Dr. Jörg Neugebauer
Prof. Dr. Dierk Raabe
Dr. Kai de Weldige
Ust.-Id.-Nr.: DE 11 93 58 514
Steuernummer: 105 5891 1000
Please consider that invitations and e-mails of our institute are
only valid if they end with ***@***.***
If you are not sure of the validity please contact ***@***.***
Bitte beachten Sie, dass Einladungen zu Veranstaltungen und E-Mails
aus unserem Haus nur mit der Endung ***@***.*** gültig sind.
In Zweifelsfällen wenden Sie sich bitte an ***@***.***
-------------------------------------------------
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bumps [mp-api]() from 0.34.3 to 0.35.1. --- updated-dependencies: - dependency-name: mp-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [mp-api](https://github.com/materialsproject/api) from 0.37.2 to 0.37.3. - [Release notes](https://github.com/materialsproject/api/releases) - [Commits](materialsproject/api@v0.37.2...v0.37.3) --- updated-dependencies: - dependency-name: mp-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [mp-api](https://github.com/materialsproject/api) from 0.37.3 to 0.37.5. - [Release notes](https://github.com/materialsproject/api/releases) - [Commits](materialsproject/api@v0.37.3...v0.37.5) --- updated-dependencies: - dependency-name: mp-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [h5py](https://github.com/h5py/h5py) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/h5py/h5py/releases) - [Changelog](https://github.com/h5py/h5py/blob/master/docs/release_guide.rst) - [Commits](h5py/h5py@3.9.0...3.10.0) --- updated-dependencies: - dependency-name: h5py dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Currently calphy complains if this value is set to None.
Bumps [pandas](https://github.com/pandas-dev/pandas) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/pandas-dev/pandas/releases) - [Commits](pandas-dev/pandas@v2.1.1...v2.1.2) --- updated-dependencies: - dependency-name: pandas dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [scikit-learn](https://github.com/scikit-learn/scikit-learn) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/scikit-learn/scikit-learn/releases) - [Commits](scikit-learn/scikit-learn@1.3.1...1.3.2) --- updated-dependencies: - dependency-name: scikit-learn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.8.0 to 3.8.1. - [Release notes](https://github.com/matplotlib/matplotlib/releases) - [Commits](matplotlib/matplotlib@v3.8.0...v3.8.1) --- updated-dependencies: - dependency-name: matplotlib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
self.collect_sphinx_log(file_name="sphinx.log", cwd=directory)
beforeself.collect_eps_dat()
This appears as a problem only in the case of ferromagnetic systems (metals) where the 2 spin channels are different (while in nonmagnetic systems you have one spin channel and in antiferromagnetic systems you two identical but opposite dos)
I did not change the current parser priority. However, I changed the order of the parsed eigenvalues to match what pyiron expects: arr = np.vstack((arr[::2], arr[1::2]))