Skip to content

Bug: Manager #251

@kobebryant432

Description

@kobebryant432

Describe the bug
The manager does not reset i.e. a new instance of the manager can access previously loaded yml files.

Expected behavior
When an instance of the manager is re-created all previously added yml files should no longer be remembered.

Environment
(super) computer -
Branch -
Conda environment -
Other relevant environment information:

Minimal Reproducible Example

    path_to_yml = Path("/dodrio/scratch/projects/2022_200/project_output/RMIB-UGent/vsc46032_kobe/CORDEX.be-II-model-evaluation/src/cordexbeII_dataset.yml")
    manager = vp.InputManager(machine="hortense") # Load the manager with shared datasets on hortense
    manager.update_catalog_from_yaml(path_to_yml)

     path_to_yml = Path(TO_A_DIFFERENT_YAML)

    manager = vp.InputManager(machine="hortense") # Load the manager with shared datasets on hortense
    manager.update_catalog_from_yaml(path_to_yml) 

manager still has access to the data in the first loaded yml file.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions