Skip to content

Commit

Permalink
Merge branch 'develop' into metric-label
Browse files Browse the repository at this point in the history
  • Loading branch information
namnguyen20999 authored Jun 19, 2024
2 parents 53b451b + 8c3bf61 commit 262eb10
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion taipy/core/data/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from taipy.config.common.scope import Scope

from .._entity._reload import _Reloader
from .._version._version_manager_factory import _VersionManagerFactory
from ..job.job_id import JobId
from ._file_datanode_mixin import _FileDataNodeMixin
Expand Down Expand Up @@ -116,7 +117,8 @@ def __init__(
**properties,
)

self._write_default_data(default_value)
with _Reloader():
self._write_default_data(default_value)

self._TAIPY_PROPERTIES.update(
{
Expand Down
4 changes: 3 additions & 1 deletion taipy/core/data/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from taipy.config.common.scope import Scope

from .._entity._reload import _Reloader
from .._version._version_manager_factory import _VersionManagerFactory
from ..exceptions.exceptions import ExposedTypeLengthMismatch, NonExistingExcelSheet, SheetNameLengthMismatch
from ..job.job_id import JobId
Expand Down Expand Up @@ -118,7 +119,8 @@ def __init__(
**properties,
)

self._write_default_data(default_value)
with _Reloader():
self._write_default_data(default_value)

self._TAIPY_PROPERTIES.update(
{
Expand Down
5 changes: 3 additions & 2 deletions taipy/core/data/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from taipy.config.common.scope import Scope

from .._entity._reload import _self_reload
from .._entity._reload import _Reloader, _self_reload
from .._version._version_manager_factory import _VersionManagerFactory
from ._file_datanode_mixin import _FileDataNodeMixin
from .data_node import DataNode
Expand Down Expand Up @@ -112,7 +112,8 @@ def __init__(
self._decoder = self._properties.get(self._DECODER_KEY, _DefaultJSONDecoder)
self._encoder = self._properties.get(self._ENCODER_KEY, _DefaultJSONEncoder)

self._write_default_data(default_value)
with _Reloader():
self._write_default_data(default_value)

self._TAIPY_PROPERTIES.update(
{
Expand Down
4 changes: 3 additions & 1 deletion taipy/core/data/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from taipy.config.common.scope import Scope

from .._entity._reload import _Reloader
from .._version._version_manager_factory import _VersionManagerFactory
from ..exceptions.exceptions import UnknownCompressionAlgorithm, UnknownParquetEngine
from ..job.job_id import JobId
Expand Down Expand Up @@ -153,7 +154,8 @@ def __init__(
**properties,
)

self._write_default_data(default_value)
with _Reloader():
self._write_default_data(default_value)

if not self._last_edit_date and (isfile(self._path) or isdir(self._path)):
self._last_edit_date = datetime.now()
Expand Down
4 changes: 3 additions & 1 deletion taipy/core/data/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from taipy.config.common.scope import Scope

from .._entity._reload import _Reloader
from .._version._version_manager_factory import _VersionManagerFactory
from ._file_datanode_mixin import _FileDataNodeMixin
from .data_node import DataNode
Expand Down Expand Up @@ -98,7 +99,8 @@ def __init__(
**properties,
)

self._write_default_data(default_value)
with _Reloader():
self._write_default_data(default_value)

self._TAIPY_PROPERTIES.update(
{
Expand Down

0 comments on commit 262eb10

Please sign in to comment.