nicolay-r/AREkit

`SamplesIO.create_target` -- provide this parameter as function [ARElight backlog]

Closed this issue · 0 comments

Prefix is no longer applicable

@property
def Prefix(self):
return self.__prefix

The code below is no longer applicable in general. It only complicates the class:

def check_targets_existed(self, data_types_iter):
for data_type in data_types_iter:
targets = [
self.__get_input_sample_target(data_type=data_type),
]
if not check_targets_existence(targets=targets):
return False
return True
# 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,
prefix=self.__prefix,
extension=self.__target_extension)
@staticmethod
def __get_filepath(out_dir, template, prefix, extension):
assert(isinstance(template, str))
assert(isinstance(prefix, str))
assert(isinstance(extension, str))
return join(out_dir, "{prefix}-{template}{extension}".format(
prefix=prefix, template=template, extension=extension))