ImperialCollegeLondon / ImperialCollegeLondon/virtual_ecosystem

Look at creating `Config` directly from dictionaries.

Open
#367 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
5
Avg merge
2d 1h
Merged PRs (30d)
34

Description

**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.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating Config and reading its schema-validation, update, and item-assignment behavior; first settle the intended dictionary-like API, then add tests showing validation is preserved and the chosen behavior is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.