Skip to content

If a facet is longer than 25 characters, preprocessor output files maybe overwritten #3006

@schlunma

Description

@schlunma

Describe the bug

Example: Two ICON runs

- {project: ICON, dataset: ICON-XPP, exp: exp: atm_amip_r2b5_hybrid1_tuned_version_1}
- {project: ICON, dataset: ICON-XPP, exp: exp: atm_amip_r2b5_hybrid1_tuned_version_2}

will produce just one preprocessor file:

ICON_ICON-XPP_atm-amip-r2b5-hybrid1-tun_atm-2d-ml_Amon_ps_19790101-19800101.nc

Notice that the exp part is stripped at 25 characters. I am pretty sure this is due to the following line:

return re.sub("[^a-zA-Z0-9]+", "-", str(value))[:25]

@bouweandela Any particular reason why you implemented it like that?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions