Skip to content

NUOPC_CompAttributeIngest fails (quietly) if line has spaces #293

@danrosen25

Description

@danrosen25

Discussed in https://github.com/orgs/esmf-org/discussions/291

Using ESMF_Config with a list of items isn't working unless items do not have whitespace and are parsed in user code. Reproducer attached

What's broken

<COMP>_attributes::
      restart_fh = 0.05,0.25,0.5,3,6
 ::

Lists aren't working. This is seen as a single string.

<COMP>_attributes::
      restart_fh = 0.05, 0.25, 0.5, 3, 6
 ::

Spaces are breaking ESMF_Info. So NUOPC attributes doesn't store restart_fhat all. This is also true for restart_fh = "0.05, 0.25, 0.5, 3, 6".
reproducer_info.tar.gz

Issue Source

NUOPC_CompAttributeIngest does not ingest attributes from a NUOPC_FreeFormat if they do not have exactly 3 tokens. First token is the Info label, second token is =, third token is value up until first space. If a 4th token is found then it silently skips the line.

! Just skip these lines for now....

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions