Skip to content

Bug when converting SPARTACUS single layer file into YAML #707

@dayantur

Description

@dayantur

Describe the bug
When using

suews-convert -i /Users/silviarognone/Downloads/AVL_1_LDN1/RunControl.nml -o single_meg.yml

The output YAML has no correct structure at levels initial_states.roofs and initial_states-walls (lines 2056 and 2057).
They are just populated with an empty array.

To Reproduce
Inputs are:

AVL_1_LDN1.zip

Expected behavior
We would expect to have something like (values are just examples):

    roofs:
    - state:
        value: 0.0
      soilstore:
        value: 20.0
      temperature:
        value:
        - 5.0
        - 5.0
        - 5.0
        - 5.0
        - 5.0
      tsfc:
        value: 5.0
      tin:
        value: 5.0
    walls:
    - state:
        value: 0.0
      soilstore:
        value: 20.0
      temperature:
        value:
        - 5.0
        - 5.0
        - 5.0
        - 5.0
        - 5.0
      tsfc:
        value: 5.0
      tin:
        value: 5.0

Output file obtained as reference

This is the output obtained as a reference:

single_meg.yml

Metadata

Metadata

Assignees

Labels

1-bugSomething isn't working2-infra:data-modelPydantic data models & validation2-infra:inputInput data handling and validation2-module:spartacusSPARTACUS radiation (suews_phys_spartacus.f95)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions