ufs-community / uwtools

Workflow tools for use with applications with UFS and beyond
GNU Lesser General Public License v2.1
12 stars 24 forks source link

Driver controller argument should accept a keypath #617

Closed maddenp-noaa closed 1 month ago

maddenp-noaa commented 1 month ago

Currently, the controller argument to a driver constructor expects a scalar string specifying a top-level key in the input config providing the controller driver's config, from which execution and rundir information can be taken.

However, the controller driver's config may be nested under other keys, in which case the controller argument would need to accept a keypath, and logic to traverse that keypath to to the appropriate block would need to be executed.

Decide whether to accept both a scalar string and an array keypath, or just the latter. Implement. Test.