ImperialCollegeLondon / virtual_ecosystem

This repository is the home for the codebase for the Virtual Ecosystem project.
https://virtual-ecosystem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Look at creating `Config` directly from dictionaries. #367

Open davidorme opened 9 months ago

davidorme commented 9 months ago

Is your feature request related to a problem? Please describe.

It is odd that Config shouldn't be update'd since it is a dict subclass. Doing so would completely bypass the schema validation, so we probably need to redefine Config.update and Config.__setitem__ probably needs to be got rid of! Or possibly there is a better base for this class that gives dict like behaviour? We could possibly make it something with dot style access, like a Dotmap.