-
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
reading from ASE file slow error #16
Comments
Hi Asif, If you run this example script, is the warning message shown? Did you change only |
Hello , Thank you for your email. Yes I did that and then this warning appear and I checked the timings and observe its performance is lower. this is my script: |
Is it correct that if you execute the example code as is, the error message does not appear? can you check |
If i run the example script then there is no warning. Its type is: Atoms(symbols='OC3H8', pbc=False), <class 'numpy.ndarray'> ,<class 'ase.cell.Cell'>. SO positions and cell has type Class numpy arrays. Now using the read_vasp() I got: I think when reading the position and cell I have read first then convert them to numpy.array() and then create a atoms object and then feed to dftd3. |
Hello Coro, I want to say I get rid of this warning by changing the source code. In the torch_dftd3_calculator.py module with np.array() there there was no warning. What do you think? I analyse dftd3 for materials project data with Grimme code and your code and the dft-d3 values were identical. |
Yeah I think your solution works. can you see if which of another tentative solution may be
|
So I checked and it is atoms.get_cell() that has the list of numpy.ndarrays. For others it is fine. |
Is it possible to share us the POSCAR file that caused this problem? Sorry for my late response. |
For our side, I try the following POSCAR ("Si.POSCAR"):
Then,
Some specific notation in POSCAR may change the behavior of |
Hello All,
while running the code I got this error:
UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /home/conda/feedstock_root/build_artifacts/pytorch-recipe_1658220910000/work/torch/csrc/utils/tensor_new.cpp:201.)
I am reading the POSCAR file using ASE and then using the the torch.dftd3 object to find the corrected energy. It says is extremely slow how I can avoid that.
Regards,
Asif
The text was updated successfully, but these errors were encountered: