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

Generalize code to retrieve conversion parameters for all example data #21

Merged
merged 19 commits into from
Dec 10, 2024

Conversation

alessandratrapani
Copy link
Collaborator

@alessandratrapani alessandratrapani commented Dec 3, 2024

With this PR I wanted to generalize the code for all example data given by the Cai Lab.

Additions:

  1. add util functions for retrieving the data source folder path
  2. add a util function that update a yaml file that contains the for each subject and each session the list of args to pass to the session_to_nwb function

Improvements:

  1. the convert session script works for both example subjects
  2. more flexibility in choosing which data stream to add:
    • one can remove the data source path of a specific data stream directly from the yaml file
    • one can choose the data stream to add by simply calling the function for retrieving the data source folder path of that data stream exlusevely

TODO:

  • adapt script for converting week session
  • adapt script for converting all session

@alessandratrapani alessandratrapani self-assigned this Dec 3, 2024
Copy link
Collaborator

@h-mayorquin h-mayorquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We reviewed this in an in-person discussion. New script of data path localization features that is used to build a yaml that can be modified manually and then fit into the convert all sessions.

@alessandratrapani alessandratrapani merged commit 57f96cd into main Dec 10, 2024
@alessandratrapani alessandratrapani deleted the generalize_for_other_sub branch December 10, 2024 09:14
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

Successfully merging this pull request may close these issues.

2 participants