Open yzhang-23 opened 4 months ago
Is your potential file accessible to the notebook? If you do
!ls
in another notebook cell, do you see gp_iter6_sparse9k.xml
in the output?
Is your potential file accessible to the notebook? If you do
!ls
in another notebook cell, do you see
gp_iter6_sparse9k.xml
in the output?
The command ! ls
showed nothing. Where can I get the file gp_iter6_sparse9k.xml
, and where should I put the file? Please forgive me if I am asking some naive questions since I'm a newbie to QUIP. Thanks!
One option is to get it from the silicon testing framework repo: https://github.com/libAtoms/silicon-testing-framework/ in particular: https://github.com/libAtoms/silicon-testing-framework/blob/master/models/GAP/gp_iter6_sparse9k.xml
I don't know how it works on Windows, but if all else fails you can specify the full access path to your file in the
param_filename='gp_iter6_sparse9k.xml'
line in your code. Or copy the file to the same location where your notebook is.
One option is to get it from the silicon testing framework repo: https://github.com/libAtoms/silicon-testing-framework/ in particular: https://github.com/libAtoms/silicon-testing-framework/blob/master/models/GAP/gp_iter6_sparse9k.xml
I don't know how it works on Windows, but if all else fails you can specify the full access path to your file in the
param_filename='gp_iter6_sparse9k.xml'
line in your code. Or copy the file to the same location where your notebook is.
hi, albaqa, thanks for your suggestions. I have downloaded the file gp_iter6_sparse9k.xml and copied it into the container (to the same location where the notebook file is), but still got the same runtime error as above. Is there something wrong in the line calc_args='local_gap_variance'
? Thanks!
In Python you can break lines if they are enclosed within a brackets. So
pot = Potential('xml_label=GAP_2017_6_17_60_4_3_56_165',
param_filename='gp_iter6_sparse9k.xml',
calc_args='local_gap_variance')
is one single command and the your notebook is complaining about the whole command. It just happens to be that calc_args='local_gap_variance')
is the last line.
I have downloaded the file gp_iter6_sparse9k.xml and copied it into the container (to the same location where the notebook file is),
Did you confirm that you see the file when you do !ls
? What you said here
The command ! ls showed nothing.
actually suggests that your current directory is not the same as where your notebook file is - otherwise the command would have showed at least your notebook file. As I said, I don't know how jupyter notebooks work on Windows (and after today, I have even less desire to do anything with Microsoft) or the file structure you are using.
In Python you can break lines if they are enclosed within a brackets. So
pot = Potential('xml_label=GAP_2017_6_17_60_4_3_56_165', param_filename='gp_iter6_sparse9k.xml', calc_args='local_gap_variance')
is one single command and the your notebook is complaining about the whole command. It just happens to be that
calc_args='local_gap_variance')
is the last line.I have downloaded the file gp_iter6_sparse9k.xml and copied it into the container (to the same location where the notebook file is),
Did you confirm that you see the file when you do
!ls
? What you said hereThe command ! ls showed nothing.
actually suggests that your current directory is not the same as where your notebook file is - otherwise the command would have showed at least your notebook file. As I said, I don't know how jupyter notebooks work on Windows (and after today, I have even less desire to do anything with Microsoft) or the file structure you are using.
I understand how Python is working here, but just suspected that the option line calc_args='local_gap_variance'
might cause the issue. Thank you for clarifying this point!
Of course now the "! ls" command shows both the notebook and gp_iter6_sparse9k.xml. I'm sure they are in the same directory. Personally I'm not a super fan of Windows, but there is some restrictions in my work place, so I have to use a Windows machine to run QUIP. I'm running the jupyter notebook in a container using the office docker image of QUIP. Any ideas on what can cause the runtime error above? Your help will be greatly appreciated!
Sorry, I should have said that you also need the sparse point files, which you can find in the same place in the repo.
Sorry, I should have said that you also need the sparse point files, which you can find in the same place in the repo.
hi, albapa, I have put the file gp_iter6_sparse9k.xml.sparseX.GAP_2017_6_17_60_4_3_56_1651 (this is the sparse point file, right?) under the same directory of the notebook file and run the notebook. But I still got the error messages as the following:
RuntimeError Traceback (most recent call last)
hi, QUIP developers. I was trying to run the quippy demo notebook on the page https://libatoms.github.io/QUIP/Tutorials/CCP5-June-2021.html#Using-QUIP-with-Python-and-the-Atomic-Simulation-Environment :
I was using the docker image of QUIP on windows 11. However, I got the following error messages:
I really have no clue about what the RuntimeError is. Any hint? Thank you very much for your help!