|
|
|
|
@ -2,13 +2,19 @@ from kedro.pipeline import Pipeline, node, pipeline
|
|
|
|
|
from kedro.framework.session import KedroSession
|
|
|
|
|
|
|
|
|
|
from .nodes import parse_xsl
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
# we need the context here in order to access to prepare_pipeline_creation()
|
|
|
|
|
with KedroSession.create() as session:
|
|
|
|
|
context = session.load_context()
|
|
|
|
|
# we have to call the catalog attribute,
|
|
|
|
|
# important: **we have to call** the catalog as an attribute,
|
|
|
|
|
# because it makes a call to the _get_catalog() of the context method
|
|
|
|
|
catalog = context.catalog
|
|
|
|
|
logger.info("loading houses")
|
|
|
|
|
logger.info("------------------ houses ---------------------")
|
|
|
|
|
logger.info(str(context.get_houses()))
|
|
|
|
|
|
|
|
|
|
def nodes_factory(nodes_description):
|
|
|
|
|
"nodes creation"
|
|
|
|
|
|