Skip to content

Commit

Permalink
#536 Removed OpinionsIO, removed -O in filenames for samples
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Nov 20, 2023
1 parent d5d7655 commit 76b4c1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
37 changes: 0 additions & 37 deletions arekit/contrib/utils/io_utils/opinions.py

This file was deleted.

5 changes: 2 additions & 3 deletions arekit/contrib/utils/io_utils/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from arekit.contrib.utils.data.readers.base import BaseReader
from arekit.common.experiment.api.base_samples_io import BaseSamplesIO
from arekit.contrib.utils.data.writers.base import BaseWriter
from arekit.contrib.utils.io_utils.utils import filename_template, check_targets_existence
from arekit.contrib.utils.io_utils.utils import check_targets_existence

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -64,9 +64,8 @@ def check_targets_existed(self, data_types_iter):
# endregion

def __get_input_sample_target(self, data_type):
template = filename_template(data_type=data_type)
return self.__get_filepath(out_dir=self.__target_dir,
template=template,
template=f"{data_type.name.lower()}",
prefix=self.__prefix,
extension=self.__target_extension)

Expand Down
7 changes: 0 additions & 7 deletions arekit/contrib/utils/io_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import logging
from os.path import join, exists

from arekit.common.experiment.data_type import DataType


logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
Expand All @@ -19,11 +17,6 @@ def join_dir_with_subfolder_name(subfolder_name, dir):
return target_dir


def filename_template(data_type):
assert(isinstance(data_type, DataType))
return "{data_type}-0".format(data_type=data_type.name.lower())


def check_targets_existence(targets):
assert (isinstance(targets, Iterable))

Expand Down

0 comments on commit 76b4c1f

Please sign in to comment.