custom context not necessary anymore

develop
gwen 3 years ago
parent af4d0bc8f7
commit 537003eefa

@ -7,20 +7,20 @@ class ProjectContext(KedroContext):
project_version = "0.1" project_version = "0.1"
package_name = "actes_princiers" package_name = "actes_princiers"
def get_params(self): # def get_params(self):
houses = self.config_loader.get("params*") # houses = self.config_loader.get("params*")
return params # return params
def get_houses(self): # def get_houses(self):
"""loading from generic configuration file # """loading from generic configuration file
(that is, the global houses `houses.yaml`)""" # (that is, the global houses `houses.yaml`)"""
houses = self.config_loader.get("houses*") # houses = self.config_loader.get("houses*")
return houses['houses'] # return houses['houses']
def get_houses_datapath(self): # def get_houses_datapath(self):
"""loading from generic configuration file""" # """loading from generic configuration file"""
houses = self.config_loader.get("houses*") # houses = self.config_loader.get("houses*")
return houses['raw_datapath'] # return houses['raw_datapath']
# def get_catalog(self): # def get_catalog(self):
# "catalog loader entry point" # "catalog loader entry point"

@ -34,8 +34,8 @@ https://kedro.readthedocs.io/en/stable/kedro_project_setup/settings.html."""
# Class that manages Kedro's library components. # Class that manages Kedro's library components.
# from kedro.framework.context import KedroContext # from kedro.framework.context import KedroContext
from .customcontext import ProjectContext #from .customcontext import ProjectContext
CONTEXT_CLASS = ProjectContext #CONTEXT_CLASS = ProjectContext
# Class that manages the Data Catalog. # Class that manages the Data Catalog.
# from kedro.io import DataCatalog # from kedro.io import DataCatalog

Loading…
Cancel
Save