f90nml
f90nml copied to clipboard
A Python module and command line tool for working with Fortran namelists
Hi @marshallward, just wondering if you'd consider this PR. It adds an optional `colwidth` argument to `write` and associated functions that sets a minimum column width between the start of...
I have a namelist like this ( `q` is an eight dimensional array, `q(8)` ) : ```fortran &example q(1) = 1, 2, 3 q(4) = 4, 5, 6 / ```...
One of the namelists I am trying to parse using `f90nml` contains an array assignment of the following syntax ``` &example arr(1:2)%foo = 1.0, 2.0 arr(1:2)%bar = 3.0, 4.0 /...
It doesn't seem that the CLI supports the use of '/'. Using `f90nml -v DIR='./path/to/dir' -v ODIR='/path/to/dir' input` will make DIR have the value '.', and ODIR empty. Escaping doesn't...
This follow namelist should fail parsing, but does not: ``` & x = 1 / ``` It instead produces the following namelist: ``` Namelist([('x', Namelist([('x', 1)]))]) ``` Our naive test...
f90nml version: 1.1.2 python: 3.6.9 (default, Oct 29 2019, 10:39:36) [GCC] OS: SuSe Linux 15.0 f90nml fails to read namelists, which contain entries for initialising arrays of types (fortran structures),...
I am not sure whether it is part of the namelist specification or not, but I met nml file with nested namelists like this: ```python f90nml.reads(""" &key &inner_key_1 a =...
Input: ```fortran § ids = 1, 2 foo = 10 bar = 20 / ``` Patch: ```py patch = {'sect': { 'ids': [3, 4, 5], 'foo': 6.0, 'bar': 7.0 }}...
When patching a existing namelist with trailing commas, the commas are not preserved. I tried a similar technique to #79 and it did not work ``` patch = { 'data':...
I have the use case where I'd like to remove an existing key by somehome indicating this in the patch dictionary. I tried `"key": None` but that doesn't have any...