Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Nested Subfolder Creation in create_session_directory #20

Open
LucaKolibius opened this issue Mar 17, 2024 · 0 comments
Open

Comments

@LucaKolibius
Copy link

LucaKolibius commented Mar 17, 2024

I noticed that while create_session_directory supports the creation of subdirectories within a session, it does not currently support the creation of nested subfolders within those subdirectories.

For example, I am trying to adapt SESSION_FOLDERS to contain 00_origiSeshs, with subfolders origSesh00 to origSesh09, and each of these subfolders should contain additional subfolders named "behavior", "neural", and "audio". The current implementation creates the origSeshXX subfolders correctly but does not create the further nested folders.

I think this could be implemented by adding at the end of the function:

for nested_subfolder in nested_subfolders:
    make_folder(recordings_path / subject / experiment / session / subdir / subfolder / nested_subfolder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant