Comments (4)
Hi Germain,
Thanks for reporting the issue. I have applied your fix and contributions.
As for the line-mode, I know that VASP uses Line-mode. But because of the way the Enum design pattern works, I can't use "-" in the class. In any case, VASP does not actually look for "Line-mode". They only look at the first letter of that line.
Regarding having pymatgen dev and stable versions on the same machine, one possibility is to use virtualenv. Another way is to simply fork the repo to your own Github repo and you can always work off your own fork of pymatgen. When you have some contributions that you would like to share with the community, you can submit a pull request and I can add them.
from pymatgen.
hi, i am new to vasp, and ran into this article
http://gvallver.perso.univ-pau.fr/?p=587
it is very helpful for me, and i applied to a ge-bulk system as an example to learn band structure (L-G-X)
there is an error when i get to the point of get_band_structure,
and i narrowed down the error in pymatgen/electronic_structure/bandstructure.py
class BandStructureSymmLine(BandStructure, MSONable):
......
self._branches.append({"start_index": b[0], "end_index": b[-1],
"name": (self._kpoints[b[0]].label + "-" +
self._kpoints[b[-1]].label)})
.....
and, here for my system, i have tried to None+"-"
(a NoneType and a string)
----error msg--------------------------
pymatgen/electronic_structure/bandstructure.py", line 741, in init
"name": (self._kpoints[b[0]].label + "-" +
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
so, i changed to
self._branches.append({"start_index": b[0], "end_index": b[-1],
"name": (str(self._kpoints[b[0]].label) + "-" +
str(self._kpoints[b[-1]].label))})
and it worked.
is this a bug?
from pymatgen.
Hi,
Thanks for your report. Could you send me your vasp files? Send them to me to [email protected] . We'll take it from there.
from pymatgen.
I have looked into the files you sent.
Your KPOINTS file does not have label for each kpoint. this is mandatory for a band structure along symmetry lines.
It is:
K-points L-G-X
25
Line-mode
reciprocal
0.5 0.5 0.5
0 0 0
0 0 0
0.5 0.5 0
While it should be:
K-points L-G-X
25
Line-mode
reciprocal
0.5 0.5 0.5 L
0 0 0 G
0 0 0 G
0.5 0.5 0 X
I have applied a patch so a clearer exception is now raised when this happens.
Geoffroy
from pymatgen.
Related Issues (20)
- `typing_extension` imported at run time causing ImportError HOT 4
- OptimadeRester HOT 14
- Overlayed subplots from `BSPlotterProjected.get_projected_plots_dots()` and `get_projected_plots_dots_patom_pmorb()` HOT 1
- `atom_site_label` in CIF file are not unique HOT 10
- CrystalNN gives incorrect result for simple aromatic ring HOT 13
- ChemEnv unable to identify the environments of supercell HOT 7
- Atom labels in CIF file are silently rewritten by CifWriter HOT 6
- Collect possible issues might come with Python 3.12
- Incompatibility Issue with ALGO Parameter in Incar and Vasprun Classes
- Periodic boundary condition is not considered in the interpolator of VolumetricData HOT 1
- [Dev] `datetime.datetime.utcnow()` deprecated and replacement breaks `strptime`
- Read in POSCAR with `Structure.from_file` seems slow? HOT 3
- `get_points_in_sphere()` has inconsistent return types HOT 1
- Monthly issue metrics report
- StructureMatcher might be wrong when used to check if two structures are equal. HOT 3
- Error in CP2K output parser structure parsing
- Bug in `core.composition` comparison
- Argument `check_occu` is not working as intended (in `_get_structure` and `parse_structures`) HOT 13
- Check inputs provided to MPRester functions
- `.as_dict()` method on `VaspInput` causes an `AttributeError`
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 pymatgen.