Skip to content

circular dependency? #2

@mergansing

Description

@mergansing

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions