|
|
|
@ -10,11 +10,6 @@ from kedro.io import AbstractDataSet, DataSetError
|
|
|
|
from kedro.framework.session import KedroSession
|
|
|
|
from kedro.framework.session import KedroSession
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
# FIXME : ça n'est plus utile
|
|
|
|
|
|
|
|
# we need the context here to have access to the config
|
|
|
|
|
|
|
|
with KedroSession.create() as session:
|
|
|
|
|
|
|
|
context = session.load_context()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class XMLDataSet:
|
|
|
|
class XMLDataSet:
|
|
|
|
"lxml.etree._ElementTree loader"
|
|
|
|
"lxml.etree._ElementTree loader"
|
|
|
|
@ -83,8 +78,6 @@ class XMLDataSetCollection(AbstractDataSet):
|
|
|
|
folderpath: str):
|
|
|
|
folderpath: str):
|
|
|
|
self._housename = housename
|
|
|
|
self._housename = housename
|
|
|
|
self._folderpath = Path(folderpath)
|
|
|
|
self._folderpath = Path(folderpath)
|
|
|
|
# self.house_path = Path(context.get_houses()[self._housename]['path'])
|
|
|
|
|
|
|
|
# print(self.house_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_datasets(self):
|
|
|
|
def get_datasets(self):
|
|
|
|
if hasattr(self, 'datasets'):
|
|
|
|
if hasattr(self, 'datasets'):
|
|
|
|
|