Skip to content

Commit

Permalink
Revert: Remove extra pylint fix changes
Browse files Browse the repository at this point in the history
Signed-off-by: yexiaochuan <[email protected]>
  • Loading branch information
yexiaochuan committed Oct 19, 2024
1 parent 728032d commit 47dced7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/testenvmanager/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def process_dataset(self):
self.test_url = self._process_index_file(self.test_url)

# pylint: disable=too-many-arguments
# pylint: disable=R0917
def split_dataset(self, dataset_url, dataset_format, ratio, method="default",
dataset_types=None, output_dir=None, times=1):
"""
Expand Down Expand Up @@ -204,15 +203,13 @@ def _read_data_file(cls, data_file, data_format):

return data

# pylint: disable=R0917
def _get_dataset_file(self, data, output_dir, dataset_type, index, dataset_format):
data_file = self._get_file_url(output_dir, dataset_type, index, dataset_format)

self._write_data_file(data, data_file, dataset_format)

return data_file

# pylint: disable=R0917
def _splitting_more_times(self, data_file, data_format, ratio,
data_types=None, output_dir=None, times=1):
if not data_types:
Expand Down Expand Up @@ -246,7 +243,6 @@ def _splitting_more_times(self, data_file, data_format, ratio,

return data_files

# pylint: disable=R0917
def _fwt_splitting(self, data_file, data_format, ratio,
data_types=None, output_dir=None, times=1):
if not data_types:
Expand Down Expand Up @@ -286,7 +282,6 @@ def _fwt_splitting(self, data_file, data_format, ratio,
return data_files

# add new splitting method for semantic segmentation
# pylint: disable=R0917
def _city_splitting(self, data_file, data_format, ratio,
data_types=None, output_dir=None, times=1):
if not data_types:
Expand Down Expand Up @@ -331,7 +326,6 @@ def _city_splitting(self, data_file, data_format, ratio,

return data_files

# pylint: disable=R0913
def _hard_example_splitting(self, data_file, data_format, ratio,
data_types=None, output_dir=None, times=1):
if not data_types:
Expand Down Expand Up @@ -371,7 +365,6 @@ def _hard_example_splitting(self, data_file, data_format, ratio,
return data_files

@classmethod
# pylint: disable=R0917
def load_data(cls, file: str, data_type: str, label=None, use_raw=False, feature_process=None):
"""
load data
Expand Down

0 comments on commit 47dced7

Please sign in to comment.