Hello,
I get a strange result from ProbabilityDensityAnalysis. Li and transition metal layers are not arranged like POSCAR/CONTCAR. Here is the code I use:
file = ["tem-1000/out_vasprun.xml"]
analyzer = DiffusionAnalyzer.from_files(file, specie="Li", smoothed=False)
structure = analyzer.structure
trajectories = [s.frac_coords for s in analyzer.get_drift_corrected_structures()]
pda = ProbabilityDensityAnalysis(structure, trajectories, species="Li")
pda.to_chgcar("CHGCAR.vasp")
I attach vasprun file below. Hope that someone help me to check.

[AIMD.zip](https://github.com/materialsvirtuallab/pymatgen-analysis-diffusion/files/8717660/AIMD.zip)
Hello,
I get a strange result from ProbabilityDensityAnalysis. Li and transition metal layers are not arranged like POSCAR/CONTCAR. Here is the code I use:
file = ["tem-1000/out_vasprun.xml"]analyzer = DiffusionAnalyzer.from_files(file, specie="Li", smoothed=False)structure = analyzer.structuretrajectories = [s.frac_coords for s in analyzer.get_drift_corrected_structures()]pda = ProbabilityDensityAnalysis(structure, trajectories, species="Li")pda.to_chgcar("CHGCAR.vasp")I attach vasprun file below. Hope that someone help me to check.

[AIMD.zip](https://github.com/materialsvirtuallab/pymatgen-analysis-diffusion/files/8717660/AIMD.zip)