-
Notifications
You must be signed in to change notification settings - Fork 17
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
Hubbard: change int values of eigenvalues to float #1178
Hubbard: change int values of eigenvalues to float #1178
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1178 +/- ##
=======================================
Coverage 73.09% 73.09%
=======================================
Files 95 95
Lines 6578 6576 -2
=======================================
- Hits 4808 4807 -1
+ Misses 1770 1769 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…resOrtegaGuerrero/aiidalab-qe into starting_ns_eigenvalue_float
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.
LGTM! Great if you can answer my comment, for further clarification 🙏
@@ -143,7 +143,7 @@ def _define_default_eigenvalues(self): | |||
[state + 1, spin, kind_name, -1] # default eigenvalue | |||
for state in range(num_states) | |||
] | |||
for spin in range(2) # spin up and down | |||
for spin in [2, 1] # spin up and down |
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.
Why reversed? Is this a standard?
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.
i will reverse it ,
state_index, | ||
kind_name, | ||
int(value), | ||
float(value), |
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.
Ah, I see here that it is indeed expecting REAL
. Good catch
The values for the
starting_ns_eigenvalue
should be floats and not integersAt the moment the app was doing two errors
The test was testing spin down as 1.
This PR changes the values to floats and corrects the tests. Closes #1176