Skip to content

fix write Trajectory XDATACAR with variable lattice#2310

Merged
mkhorton merged 1 commit intomaterialsproject:masterfrom
gpetretto:bugfix
Nov 29, 2021
Merged

fix write Trajectory XDATACAR with variable lattice#2310
mkhorton merged 1 commit intomaterialsproject:masterfrom
gpetretto:bugfix

Conversation

@gpetretto
Copy link
Contributor

@gpetretto gpetretto commented Nov 25, 2021

Summary

In the current implementation of the write_Xdatcar in Trajectory the lattice is either written only once if constan_lattice==True or never if constan_lattice==False. Fix to write it multiple times if the lattice is not constant.
Added a specific check in the tests.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 83.124% when pulling 9b8995f on gpetretto:bugfix into dd37370 on materialsproject:master.

@mkhorton
Copy link
Member

Many thanks @gpetretto

@mkhorton mkhorton merged commit 4fc889f into materialsproject:master Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants