Add new API backward compatibility support

This commit is contained in:
allegroai 2019-07-06 22:59:56 +03:00
parent e7f1e3de86
commit c3eb5fd8b0
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ from .backend_interface.task.development.worker import DevWorker
from .backend_interface.task.log import TaskHandler
from .storage import StorageHelper
from .utilities.plotly_reporter import SeriesInfo
from .backend_interface import TaskStatusEnum
from .backend_api.services import tasks
from .backend_interface.task import Task as _Task
from .config import running_remotely, get_cache_dir
@ -605,7 +605,7 @@ class Logger(object):
pass
def _start_task_if_needed(self):
if self._task._status == TaskStatusEnum.created:
if self._task._status == tasks.TaskStatusEnum.created:
self._task.mark_started()
self._task._dev_mode_task_start()

View File

@ -16,7 +16,7 @@ from .debugging.log import get_logger
from .storage import StorageHelper
from .utilities.enum import Options
from .backend_interface import Task as _Task
from .backend_interface.model import Model as _Model, DummyModel as _DummyModel
from .backend_interface.model import create_dummy_model, Model as _Model
from .config import running_remotely, get_cache_dir
ARCHIVED_TAG = "archived"
@ -643,7 +643,7 @@ class OutputModel(BaseModel):
self._model_local_filename = None
self._base_model = None
self._floating_data = _DummyModel(
self._floating_data = create_dummy_model(
design=_Model._wrap_design(config_text),
labels=label_enumeration or task.get_labels_enumeration(),
name=name,