-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
cannot import name most_recent_subdirectory from avgn.utils.paths
def most_recent_subdirectory(dataset_loc):
""" return the subdirectory that has been generated most
recently with the "%Y-%m-%d_%H-%M-%S" time scheme used in AVGN
"""
subdir_list = list((dataset_loc).iterdir())
directory_dates = [
datetime.strptime(i.name, "%Y-%m-%d_%H-%M-%S") for i in subdir_list
]
return subdir_list[np.argsort(directory_dates)[-1]]
Metadata
Metadata
Assignees
Labels
No labels