Skip to content

Releases: jamesrhester/pycifrw

PyCIFRW Version 5.0

20 Feb 00:39
0007d95
Compare
Choose a tag to compare

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 of ReadCif. 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 the get_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, and ValidCifFile

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

Full Changelog: 4.4.6...5.0