Comments (13)
OK. Insha'Allah I will look into it. I will try removing the comments altogether first. I remember I had an INCAR file which looked fine to me but VASP reported error and I did a workaround by removing the comments and still do not know what wrong was there. Maybe some issue of similar type is present here. Actually, I write so many comments 😊 because I tend to forget what the tags mean, what are their default values and so forth and each time I have to look into vasp wiki; so irritating.
Anyway, Insha'Allah I will look into it. And, I can't thank you enough @utf, @ajjackson for the time you spent on my issue.
from sumo.
Please can you provide more information on exactly what command you're running and if possible provide the vasprun.xml
from sumo.
vasprun.zip
Thank you very much for your response. I am sorry. Actually, I was in a hurry so didn't write in detail; thought maybe if someone responds then .... Anyway, I used the command "sumo-dosplot". I am attaching the vasprun.xml file. sumo-bandplot works fine. Also, when I used the sumo-dosplot command for a vasp official tutorial vasprun.xml file, it worked like a charm but it is not working for my personal project. Also, I could use the plotdos.sh script to plot the dos and there were no issues. So, I don't know what's going on. Note: I am new to VASP so I might make silly mistakes.
from sumo.
I'm not able to reproduce your error. When I run sumo-dosplot
on your vasprun.xml file, I get the following plot.
dos.pdf
from sumo.
Wow! Thank you very much. Maybe I have not been able to properly install sumo :(
from sumo.
Here is the complete output on the screen in case it illustrates my problem better:
sumo-dosplot
Traceback (most recent call last):
File "/home/iq/.local/bin/sumo-dosplot", line 8, in
sys.exit(main())
^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/sumo/cli/dosplot.py", line 645, in main
dosplot(
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/sumo/cli/dosplot.py", line 207, in dosplot
dos, pdos = load_dos(
^^^^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/sumo/electronic_structure/dos.py", line 102, in load_dos
band = vr.get_band_structure()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/pymatgen/io/vasp/outputs.py", line 904, in get_band_structure
kpoint_file = Kpoints.from_file(kpoints_filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py", line 1360, in from_file
return cls.from_str(file.read())
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py", line 1387, in from_str
kpts = tuple(int(i) for i in lines[3].split())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/iq/.local/pipx/venvs/sumo/lib/python3.11/site-packages/pymatgen/io/vasp/inputs.py", line 1387, in
kpts = tuple(int(i) for i in lines[3].split())
^^^^^^
ValueError: invalid literal for int() with base 10: '!'
from sumo.
Ah, please can you also send your KPOINTS file too?
from sumo.
I really appreciate your effort. Here is the KPOINTS file.
KPOINTS.zip
from sumo.
I found the specific issue. The issue is related to file path. Usually I run the sumo-dosplot command where the vasprun.xml file is and that is a deep directory like /home/iq/Jobs/VASP/Na2Cr3As3/Encut 300/sigma 0.1 6x6x12/DOS and it contains "space" which causes the issue. I just copied the vasprun.xml file I shared with you in the Home folder and executed the sumo-dosplot command with no issue.
By the way, the sumo-bandplot command works fine even in such deep directories.
I guess, once someone starts using computers/phones, s/he should not name any file/folder containing "space".
And thank you very much @utf for your time you spent looking into my issue. Should I close this now?
[So many things to learn: writing space inside angular brackets acts like a code and the text does not appear in comments here.]
from sumo.
It's good to hear that this isn't blocking your work any more 😄
I would be interested to know exactly where things go awry: with proper use of pathlib etc. we shouldn't have to encounter problems like this.
from sumo.
Update/Edit: Things are way more complicated than my novice mind could think of. Maybe "space" is not actual issue. It seems that in my pc sumo-dosplot only works with vasprun.xml file in the Home directory. Any other location - I encounter the issue. This is most problematic when I want to execute sumo-bandplot --dos <path_to_the_dos_vasprun.xml_file>. I couldn't do it.
from sumo.
Strange, the error message seems to blame the formatting of the KPOINTS file (finding "!" where it expected a number). But the one you uploaded looks fine. I wonder if somehow it decided to look at the KPOINTS in your current directory, rather than the one next to the vasprun.xml? (Looking at the code, this should not happen, but...) Do you have another KPOINTS sitting around which might be corrupt?
("Corrupt" in this case could be a perfectly correct KPOINTS file that uses some new/unusual features or keywords...)
from sumo.
If I remove the comments altogether from the KPOINTS file then it works fine. As soon as I add comments the issue emerges again. And, earlier I mentioned that if I copy the vasprun.xml file to the Home directory then there is no problem - that is so because I do not copy the KPOINTS file, containing comments, there.
from sumo.
Related Issues (20)
- [Feature Discussion] Wannier90 support HOT 3
- [Feature Discussion] Comparing band structures on the same plot HOT 7
- What is the recommended way to use band.dat from sumo-bandplot? HOT 2
- sumo-optplot failed to plot optical absorption spectra diagrams of VASP GW+BSE computation. HOT 17
- The correct method of passing `Positional Arguments` to this tool. HOT 11
- A lot of link cannot be found HOT 4
- Sumo-bandplot fails with KeyError: <Spin.up: 1> HOT 2
- Plotting the bandstructure along a specific high symmetry path defined by the user HOT 2
- sumo phonon plot erro HOT 2
- Band-edge positions evaluated via sumo-bandstats in collinear antiferromagnetic NiO HOT 3
- strange DOS shape HOT 4
- Is it possible to plot the projected band structure of the lm-decomposed orbitals?
- error plotting band structure HOT 4
- DOS plot from DOSCAR(.lobster) HOT 5
- How to rotate Octahdrals locally along with unit cell axis HOT 14
- Separating spin-up and spin-down contributions in sumo-bandplot output .dat file HOT 2
- Effective mass
- How to change yellow band color to red bands in band strcture? HOT 1
- AttributeError: 'NoneType' object has no attribute 'group' (Plotting DoS) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sumo.