This version has dropped all support for Python 2
Please see PyPI to download the files in this release.
New since 4.4.6
-
New function
ReadCifWithError
may be used instead ofReadCif
. It will not raise an Exception on a parse error, instead returning the partially populated CIF object and parse information. -
Similar to the above, when the
CifFile
constructor is called with new option 'allow_partial = True', parsing information is available by calling theget_parsing_result
method on the returned CifFile object instead of raising an exception (thanks to Inigo Gabirondo
for work on these two items). -
Dictionary merging and validation has been improved (Inigo Gabirondo)
-
A helpful
convert_to_canonical
method is provided for CifFile objects. When called with a dictionary, data names are converted to canonical form (Inigo Gabirondo). -
Previously deprecated methods and classes are now gone:
AddCifItem
,AddToLoop
, andValidCifFile
Developer-visible changes
From version 5.0.0 noweb files (*.nw) for source have been removed. It was too much of a barrier for Windows-based developers to contribute. The .py files are now the canonical source, with the original literate programming sections converted to python comments.
New Contributors
- @igabirondo16 has improved validation and much else (see history)
- @merkys made their first contribution in #6
- @CPrescher made their first contribution in #10
- @MarDiehl made their first contribution in #11
Full Changelog: 4.4.6...5.0