def characterResultDir(self, data_name=None, layer_name=None): if data_name is None: data_name = self._name result_dir = subDirectory(self._character_dir, data_name) if layer_name is not None: result_dir = subDirectory(result_dir, layer_name) return result_dir
def __init__(self, name="", dataset_name=""): target_dir = datasetDir(dataset_name) super(DatasetBatch, self).__init__(name, target_dir) self._dataset_name = dataset_name self._data_name = "" self._data_file_name = "" self._data_file = "" self._result_root = subDirectory(self._target_dir, "results/" + self._name) self._dataset_files = datasetFiles(self._target_dir) self._data_file_id = 0
def resultDir(self, result_name=None): if result_name is None: result_name = self._name return subDirectory(self._target_dir, "results/" + result_name)
def colorMapResultsDir(): return subDirectory(colorMapDatasetDir(), "results")
def shapeResultDir(result_name): return subDirectory(shapeResultsDir(), result_name)
def shapeResultsDir(): return subDirectory(shapeDatasetDir(), "results")