Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove global config for dataclass_wizard (#36)
In working on the yaml configuration files in neural-lam I realised that setting global configuration for `dataclass_wizard` is a very bad idea. This should be obvious because different uses of `dataclass_wizard` might have different needs for configuration, however previously I didn't realise how to set the config when using `dataclass_wizard.YAMLWizard`. It turns out the key is to 1) also inherit from `dataclass_wizard.JSONWizard` (and make this the primary parent class) and 2) use `dataclass_wizard.JSONWizard.Meta` to define the config (not `dataclass_wizard.YAMLWizard.Meta` since this class does not exist). This commit removes the global config for `dataclass_wizard` and only sets the configuration on `mllam-data-preps` `mllam_data_prep.config.Config` config dataclass.
- Loading branch information