()
return max_file, max_dir, max_mtime
function to retrieve most recently created file generated from
    reduced dimensionality technique
function to retrieve most recently created file generated from
    reduced dimensionality technique
function to retrieve most recently created file generated from reduced dimensionality technique
def get_last_file():
    '''
    function to retrieve most recently created file generated from
    reduced dimensionality technique
    '''
    
    max_mtime = 0
    max_file = ""
    max_dir = ""
    for dirname, subdirs, files in os.walk("./data"):
        for fname in files:
            if fname == ".DS_Store":
                continue
            full_path = os.path.join(dirname, fname)
            mtime = os.stat(full_path).st_mtime
            if mtime > max_mtime:
                max_mtime = mtime
                max_dir = dirname
                max_file = fname

    return max_file, max_dir, max_mtime
def get_last_file ( ) : max_mtime = 0 max_file = "" max_dir = "" for dirname , subdirs , files in os . walk ( "./data" ) : for fname in files : if fname == ".DS_Store" : continue full_path = os . path . join ( dirname , fname ) mtime = os . stat ( full_path ) . st_mtime if mtime > max_mtime : max_mtime = mtime max_dir = dirname max_file = fname return max_file , max_dir , max_mtime