mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 18:48:11 +08:00
app config bug fix: (#1833)
* app config bug fix: When reading a config file that included per_dataset_config, the dataroot specializations were applied, but not the default config. This PR fixes that and also includes a test for this case.
This commit is contained in:
@@ -100,7 +100,10 @@ class AppConfig(object):
|
||||
|
||||
per_dataset_config = config.get("per_dataset_config", {})
|
||||
for key, dataroot_config in per_dataset_config.items():
|
||||
self.add_dataroot_config(key, **dataroot_config)
|
||||
# first create and initialize the dataroot with the default config
|
||||
self.add_dataroot_config(key, **config["dataset"])
|
||||
# then apply the per dataset configuration
|
||||
self.dataroot_config[key].update_from_config(dataroot_config, f"per_dataset_config__{key}")
|
||||
|
||||
self.is_complete = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user