def __init__(self, iter_num, sequence_num, path, outitems=['im', 'fAB', 'fBA', 'vAB', 'vBA'], outdirform='together'): assert outdirform in ['together', 'split'] assert set(outitems).issubset(set(['im', 'fAB', 'fBA', 'vAB', 'vBA'])) assert 2 <= sequence_num and 1 <= iter_num res = self.GenNameOpts(sequence_num, outitems, outdirform) operation, sdir, suffix, ext = res name_opts = GetNameOpts() name_opts['target'] = path name_opts['operation'] = operation name_opts['sdir'] = sdir name_opts['suffix'] = suffix name_opts['ext'] = ext self.nameManager = NameManager2(iter_num, name_opts) self.step = len(outitems)