Skip to content

Conversation

@likeajumprope
Copy link

Summary

This PR implements the MVP features we landed on for the Participantwise datastore while maintaining full backward compatibility with existing code. The main enhancement is a Type dictionary system that enables clean, intuitive syntax for creating datastores.

Key Features Added

🎯 MVP Features Implemented

  • Type Dictionary: Hidden Constant property mapping type names to read functions
    • Keys: "Anatomical NIfTI", "EEG EDF", "Functional NIfTI", "DWI", "Fieldmap"
    • Values: Structs containing ReadFcn, FileExtensions, FolderPath
  • AvailableTypes Property: Dependent property returning keys(obj.Type)
  • Single Argument Constructor: Validates input against Type dictionary keys
  • Public fileDatastoreObj: Accessible datastore property as requested
  • No-argument read(): Dispatches to fileDatastore.read() in MVP mode (partially functional)

@tiborauer tiborauer self-requested a review November 3, 2025 10:28
@tiborauer
Copy link
Collaborator

I have the same issues with this PR as with #3.

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.

3 participants