| 1 |
Release Notes for version 5.0.1 |
| 2 |
=============================== |
| 3 |
|
| 4 |
A bugfix release to fix deployment errors and get Github CI |
| 5 |
passing. |
| 6 |
|
| 7 |
Release Notes for version 5.0.0 |
| 8 |
=============================== |
| 9 |
|
| 10 |
Version 5.0 officially drops all support for Python 2.0. |
| 11 |
|
| 12 |
New since 4.4.6 |
| 13 |
=============== |
| 14 |
|
| 15 |
* New function ReadCifWithError may be used instead of ReadCif. It will not |
| 16 |
raise an Exception on a parse error, instead returning the |
| 17 |
partially populated CIF object and parse information. |
| 18 |
|
| 19 |
* Similar to the above, when the CifFile constructor is called with new option |
| 20 |
'allow_partial = True', parsing information is available |
| 21 |
by calling the get_parsing_result method on the returned |
| 22 |
CifFile object instead of raising an exception (thanks to Inigo Gabirondo |
| 23 |
for work on these two items). |
| 24 |
|
| 25 |
* Dictionary merging and validation has been improved (Inigo Gabirondo) |
| 26 |
|
| 27 |
* A helpful convert_to_canonical method is provided for CifFile objects. When |
| 28 |
called with a dictionary, data names are converted to canonical form |
| 29 |
(Inigo Gabirondo). |
| 30 |
|
| 31 |
* Previously deprecated methods and classes are now gone: AddCifItem, AddToLoop, |
| 32 |
and ValidCifFile |
| 33 |
|
| 34 |
Developer-visible changes |
| 35 |
========================= |
| 36 |
|
| 37 |
From version 5.0.0 noweb files (*.nw) for source have been removed. It was |
| 38 |
too much of a barrier for Windows-based developers to contribute. The |
| 39 |
.py files are now the canonical source, with the original literate |
| 40 |
programming sections converted to python comments. |
| 41 |
|
| 42 |
Python 3 notes |
| 43 |
============== |
| 44 |
|
| 45 |
* In the original Python 2 version, the top-level `CifFile` module |
| 46 |
imported everything from the `CifFile.py` and `StarFile.py` |
| 47 |
modules. This meant that it was sufficient for your code to include |
| 48 |
`from CifFile import x`, where x is anything defined in CifFile.py or |
| 49 |
StarFile.py. This has been replicated in Python 3 by explicitly |
| 50 |
importing those classes and functions in CifFile_module.py and |
| 51 |
StarFile.py required for the tests to succeed. If your code uses a |
| 52 |
function not included in the tests (note that all classes and |
| 53 |
therefore their methods are included) you will need to refer to it as |
| 54 |
`CifFile.CifFile_module.x` (for a function named `x` in |
| 55 |
`CifFile_module.py`). |