Skip to content

🐛 DICT_DESCRIPTIONS dict is empty for data_structure files converted to dataclasses #4215

@clmould

Description

@clmould

Describe the bug

In the dictionaries, the "DICT_DESCRIPTIONS" do not work for the new dataclass structure so you get warnings when running PROCESS (here I have run process -v -c examples/data/run_process.conf:

Image

This comes from trying to obtain the comment for the variables as this gives a KeyError for any vars now in a dataclass:
Image

The DICT_MODULE, DICT_DEFAULT and DICT_VAR_TYPE all work as expected still.

Steps to reproduce

Try to access any vars from the converted files in the dicts and you get a keyerror as they are not in there (first var is in current data structure, last 2 examples are in dataclass format):

Image

Expected behaviour

The DICT_DESCRIPTIONS should contain the variable descriptions eg:

Image

Evidence

Environment

  • OS:
  • Version:

Additional context

Metadata

Metadata

Assignees

Labels

Data structureIssues related to the data structure

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions