'''
Created on Jul 11, 2013

@author: odenas
'''

import datetime
import os


def this_train_name(cfg_file, seed="noseed"):
    """train subdir inside archive"""

    cfg_name = os.path.splitext(os.path.basename(cfg_file))[0]
    timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
    seed = str(seed)
    return "tr_%s_%s_%s" % (cfg_name, timestamp, seed)
