Skip to content

New test-historical config triggers a bug in GHG processing #108

@penguian

Description

@penguian

When testing with u-dq819/trunk, using the new https://github.com/ACCESS-NRI/access-esm1.6-configs/tree/test-historical branch of the ESM1.6 config, the test fails in f90nmlwhen it tries to read the atmosphere/namelists file:

$ cat ~/cylc-run/u-dq819.trunk/run64/log/job/1/HI_ancil_ghg/NN/job.err
Using the cylc session localhost

Loading cylc/8.5.0
  Loading requirement: mosrs-setup/2.0.1
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/851/pcl851/cylc-run/u-dq819.trunk/run64/lib/python/esm1p6_ancil/ghg/cmip7_HI_ghg_generate.py", line 136, in <module>
    cmip7_hi_ghg_patch(ghg_mmr_dict)
  File "/home/851/pcl851/cylc-run/u-dq819.trunk/run64/lib/python/esm1p6_ancil/ghg/cmip7_HI_ghg_generate.py", line 120, in cmip7_hi_ghg_patch
    parser.read(
  File "/opt/conda/lib/python3.10/site-packages/f90nml/parser.py", line 281, in read
    return self._readstream(nml_file, nml_patch)
  File "/opt/conda/lib/python3.10/site-packages/f90nml/parser.py", line 388, in _readstream
    v_name, v_values = self._parse_variable(
  File "/opt/conda/lib/python3.10/site-packages/f90nml/parser.py", line 650, in _parse_variable
    p_repr = patch_nml._f90repr(patch_values[p_idx])
  File "/opt/conda/lib/python3.10/site-packages/f90nml/namelist.py", line 980, in _f90repr
    raise ValueError('Type {0} of {1} cannot be converted to a Fortran'
ValueError: Type <class 'list'> of [1850, 1850, 1850, 1850, 1850, 1850, 1850, 1850, 1850, 1850, 1850] cannot be converted to a Fortran type.
2025-11-27T11:54:54+11:00 CRITICAL - failed/ERR

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions