|
@@ -18,7 +18,6 @@ import pandas as pd
|
|
|
|
|
|
from taipy.config.common.scope import Scope
|
|
from taipy.config.common.scope import Scope
|
|
|
|
|
|
-from .._entity._reload import _self_reload
|
|
|
|
from .._version._version_manager_factory import _VersionManagerFactory
|
|
from .._version._version_manager_factory import _VersionManagerFactory
|
|
from ..job.job_id import JobId
|
|
from ..job.job_id import JobId
|
|
from ._abstract_file import _FileDataNodeMixin
|
|
from ._abstract_file import _FileDataNodeMixin
|
|
@@ -99,8 +98,6 @@ class CSVDataNode(DataNode, _FileDataNodeMixin, _TabularDataNodeMixin):
|
|
default_value = properties.pop(self._DEFAULT_DATA_KEY, None)
|
|
default_value = properties.pop(self._DEFAULT_DATA_KEY, None)
|
|
_FileDataNodeMixin.__init__(self, properties)
|
|
_FileDataNodeMixin.__init__(self, properties)
|
|
_TabularDataNodeMixin.__init__(self, **properties)
|
|
_TabularDataNodeMixin.__init__(self, **properties)
|
|
- properties[self._IS_GENERATED_KEY] = self._is_generated
|
|
|
|
- properties[self._PATH_KEY] = self._path
|
|
|
|
|
|
|
|
DataNode.__init__(
|
|
DataNode.__init__(
|
|
self,
|
|
self,
|
|
@@ -137,17 +134,6 @@ class CSVDataNode(DataNode, _FileDataNodeMixin, _TabularDataNodeMixin):
|
|
def storage_type(cls) -> str:
|
|
def storage_type(cls) -> str:
|
|
return cls.__STORAGE_TYPE
|
|
return cls.__STORAGE_TYPE
|
|
|
|
|
|
- @property # type: ignore
|
|
|
|
- @_self_reload(DataNode._MANAGER_NAME)
|
|
|
|
- def path(self):
|
|
|
|
- return self._path
|
|
|
|
-
|
|
|
|
- @path.setter
|
|
|
|
- def path(self, value):
|
|
|
|
- self._path = value
|
|
|
|
- self.properties[self._PATH_KEY] = value
|
|
|
|
- self.properties[self._IS_GENERATED_KEY] = False
|
|
|
|
-
|
|
|
|
def _read(self):
|
|
def _read(self):
|
|
if self.properties[self._EXPOSED_TYPE_PROPERTY] == self._EXPOSED_TYPE_PANDAS:
|
|
if self.properties[self._EXPOSED_TYPE_PROPERTY] == self._EXPOSED_TYPE_PANDAS:
|
|
return self._read_as_pandas_dataframe()
|
|
return self._read_as_pandas_dataframe()
|