ecmwf / eckit

A C++ toolkit that supports development of tools and applications at ECMWF.
https://confluence.ecmwf.int/display/eckit
Apache License 2.0
23 stars 24 forks source link

literal input of string array in configuration? #38

Closed mmiesch closed 3 years ago

mmiesch commented 3 years ago

JEDI uses eckit::Configuration.get() methods to read our yaml configuration files. One of our data assimilation applications requires a list of state variables which includes nitric oxide (NO):

    state variables: [u,v,T,DELP,ps,sphum,ice_wat,liq_wat,o3mr,
                      no2, no,o3,no3,h2o2,n2o5,
                      hno3,hono,pna,so2,sulf,
[...]

Well, when the configuration get() method parses this string vector, it is converting no to false. This is causing an error in our application.

Is there currently a way to suppress this conversion? In other words, read the string literally, without modification? If not, do you have any suggestions on how to address this? We could of course change the variable name but this is not ideal because the variable names for the application (FV3 LAM) are standardized. Thanks for any ideas you may have.

We're using eckit 1.16.0

mmiesch commented 3 years ago

Actually - it looks like quotes work no.