Repository navigation
Replies: 1 comment 3 replies
|
from pymatgen.io.cif import CifParser
parser = CifParser.from_str(ciftext)
structs = parser.parse_structures() |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I see deprecations from
I now get a deprecation warning that use of
StringIOis deprecated andfrom_strshould be used. ButCifParserrequires a string.So, how is the ' from_str ()` supposed to work? I see no way to do that.
Why is
StringIO(text)deprecated? That is a completely standard way to make text look like a file, which is what CifParser wants.All reactions