Comments (6)
This also struck me as odd. I'm currently working on #3767 which touches this bit of the code and happy to fix this if someone tells me the expected behaviour for magnetic moments.
from pymatgen.
This is because if "magmom" in site.properties
is true for this structure at https://github.com/materialsproject/pymatgen/blame/2d008e0dd5c430692e8dcac2505340a6bdff1642/pymatgen/io/cif.py#L1516C21-L1516C51
But I am not writing magnetic moments, and I do not know why that should override labels.
from pymatgen.
I confirm that removing the magnetic moments with structure.remove_site_property("magmom")
does fix the issue.
Regarding a PR, my own understanding of what the code tries to do for magnetic moments is insufficient to handle it well. I wouldn't want to break another use case…
from pymatgen.
@fxcoudert thanks for reporting. I assume a pull-request to fix this issue would be very welcome.
from pymatgen.
I confirm that removing the magnetic moments with
structure.remove_site_property("magmom")
does fix the issue.Regarding a PR, my own understanding of what the code tries to do for magnetic moments is insufficient to handle it well. I wouldn't want to break another use case…
I see! I also don't know that functionality. Should I leave it open to see if someone else can fix it?
from pymatgen.
@mkhorton , maybe you now more about this.
from pymatgen.
Related Issues (20)
- create a hcp mg grain boundary mgΣ7[0001](0001) too many values to unpack (expected 3) HOT 2
- Spacegroup P212121 does not give a valid pointgroup
- New pymatgen version HOT 10
- Numerical instability in lattice matrix operations : get_slabs / StructureMatcher / _cart_dists
- `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
- 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
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.