Support writing structures to compressed JSON (.json.gz .json.bz2 .json.xz .json.lzma) - #3003
Conversation
.json .json.gz .json.bz2 .json.xz .json.lzma
…n.bz2 .json.xz .json.lzma
|
Minimal example from pymatgen.core import Lattice, Structure
FeO = Structure(
lattice=Lattice.cubic(5),
species=("Fe", "O"),
coords=((0, 0, 0), (0.5, 0.5, 0.5)),
)
structure.to("FeO.json.gz")
structure.to("FeO.json.bz2") |
Test changes look fine, from what I can see of the failures, maybe its some interaction where each job in the build matrix is hitting MP with the same query at the same time with the same IP and one is timing out? Could just boost EDIT: Actually this probably isn't the case as the case as you're using pytest split etc so the build is quite staggered. |
|
@ml-evs Thanks for the quick reply! If the flakiness persists, I'll try increasing the timeout. |
…on.xz .json.lzma) (materialsproject#3003) * support writing structures to compressed JSON files .json .json.gz .json.bz2 .json.xz .json.lzma * check structure equality writing and reading from .json .json.gz .json.bz2 .json.xz .json.lzma
ffae4ea support writing structures to compressed JSON files
ba99183 check structure equality writing and reading from .json.gz .json.bz2 .json.xz .json.lzma
Related: #2994 helps with reducing test file sizes