From ca14ccfbb7135c03765ceb0a7a91d12f479c2453 Mon Sep 17 00:00:00 2001 From: JMGaljaard Date: Thu, 15 Sep 2022 21:23:15 +0200 Subject: [PATCH] Make config_path accessible --- fltk/util/config/experiment_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fltk/util/config/experiment_config.py b/fltk/util/config/experiment_config.py index 8d7fc496..0d106702 100644 --- a/fltk/util/config/experiment_config.py +++ b/fltk/util/config/experiment_config.py @@ -273,13 +273,13 @@ class ExperimentParser: # pylint: disable=too-few-public-methods """Simple parser to load experiment configuration into a programmatic objects.""" def __init__(self, config_path: Path): - self.__config_path = config_path + self._config_path = config_path def parse(self) -> ExperimentConfig: """Parse function to load JSON conf into JobDescription objects. Any changes to the JSON file format should be reflected by the classes used. For more information refer to the dataclasses JSON documentation https://pypi.org/project/dataclasses-json/. """ - with open(self.__config_path, 'r') as config_file: + with open(self._config_path, 'r') as config_file: experiment = ExperimentConfig.from_json(config_file.read()) return experiment