-
Notifications
You must be signed in to change notification settings - Fork 23
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
[BUG] Fails evaluating density of open shell systems #130
Comments
Hi @marco-2023, it is great you are using Gbasis. I saw your issue this morning and I tested your code because so far I haven't had problems with Gbasis but it is true it has not been in active development so it could very well be that a bug like this could have gone undetected after the merging of some PR. Anyway, I tried your code and as far as I tested it worked fine for me. Below I added the sniped I used and the outputs so you can check if this is the same thing you tried with your code. I initially copy the code you added to the issue and the only thing missing was importing Numpy. I am checking the package versions you are using and I have older versions installed. This could be a version issue where something allowed in older version of Numpy for instance is not allowed in newer ones and it is causing the output of Nans. If you could try to downgrade to my versions and see if the issue is fix that would be great and it would mean it is most likely a version problem. Let me know what you think.
Output
|
Could it be related to issue #129 ??? |
@PaulWAyers, @marco-2023, I just took another look and yes @PaulWAyers, it looks it is because of issue #129. I test Marco's code with both, old and new versions of Scipy and the normalization is messed up as it was pointed out in #129: gbasis/contractions.py Lines 409 to 418 in 2eb9e49
return is Lines 140 to 142 in 2eb9e49
This problem is avoidable by downgrading the versions for now but I guess either we should update/check gbasis for newer versions of its dependencies or update the README file to constraint the available versions to use. |
I'm going to close this issue referencing the underlying issue, #129 |
Describe the bug
The function$\rho(r)$ in a grid of points for open-shell systems.
evaluate_density
from modulegbasis.evals.density
fails to evaluateTo Reproduce
Expected behaviour
density
should be anumpy.ndarray
with the values of the electron density for each point of the grid.Screenshots
System Information:
Additional context
The text was updated successfully, but these errors were encountered: