From f8ec5669e34c82d4765764f2b515bf0e08845bd3 Mon Sep 17 00:00:00 2001 From: Marshall Ward Date: Fri, 13 May 2022 22:35:53 -0400 Subject: [PATCH] Version 1.4 update --- CHANGELOG | 11 +++++++++++ f90nml/__init__.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 1f586f0..5eb2fe3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,14 @@ +1.4: + - Ordering of duplicate keys is now preserved, through the introduction of + two new classes. The Cogroup extends the list previously associated with + the values of a duplicate key. The NmlKey extends str and externally + holds the namelist key, but also contains an internal key to distinguish + between duplicates. + - A repeated key is no longer initialized with a list, and must now be + explicitly declared as a cogroup with the `add_cogroup` function. + - A performance issue related to the detection of values in a line has been + fixed. Thanks to Stephen LeDoux for reporting and Philip Cross for + fixing this issue. 1.3.1: - String splitting is now an optional feature, enabled by the split_strings property. Default string array output again resembles v1.2 output. diff --git a/f90nml/__init__.py b/f90nml/__init__.py index 1bc47a2..acae4c5 100644 --- a/f90nml/__init__.py +++ b/f90nml/__init__.py @@ -6,7 +6,7 @@ from f90nml.namelist import Namelist from f90nml.parser import Parser -__version__ = '1.3.1' +__version__ = '1.4' def read(nml_path):