ssec-jhu / dplutils

Distributed(Data) Pipeline Uitilities
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

set-config deep update of dicts in kwargs? #79

Open amitschang opened 4 months ago

amitschang commented 4 months ago

Right now --set-config updates task properties that are scalar directly and dicts it updates. Should it go further and update dicts for instance in kwargs? For example:

given task function like:

def task(indf, dict_kwarg: dict, ...):

should this be possible?

--set-config task.kwargs.dict_kwarg.dict_elem = 1

In such a case one could argue perhaps dict_elem ought to be a kwarg itself, but it is worth considering how this would look.