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

CURRY Data Format Reader only works in specific cases #12855

Open
CurryKaiser opened this issue Sep 16, 2024 · 9 comments
Open

CURRY Data Format Reader only works in specific cases #12855

CurryKaiser opened this issue Sep 16, 2024 · 9 comments
Labels

Comments

@CurryKaiser
Copy link

Description of the problem

Dear MNE Team!

I am from the Curry Dev team and our users often ask about your Curry reader. We believe that it isn't up to date / complete and would like to offer some help (if wanted).

Attached you can find a python script (.py but hiding as .txt) that we use (and maintain) to load Curry data into python. Maybe the resulting data structure can be used by you to transform it according to MNE conventions.

curryreader.txt
README.txt
requirements.txt

If you need any test data, we would be happy to provide! We know that this might not be of highest importance, so we would understand if it isn't something that can be done at the moment.

Best Regards,
Fabian Kaiser
Compumedics - Curry Dev Team

Steps to reproduce

N/A

Link to data

No response

Expected results

N/A

Actual results

N/A

Additional information

N/A

Copy link

welcome bot commented Sep 16, 2024

Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

@agramfort
Copy link
Member

hi @CurryKaiser, yes can you share a super tiny file eg 5MB so we can use it for testing when integrating this code? thanks

@CurryKaiser
Copy link
Author

Yes of course! Actually, I have prepared a few files for you:
SampleFiles.zip
Let me know how it goes. Hope it isn't too much of a hassle and thank you for all your efforts!

@agramfort
Copy link
Member

thanks. Can you clarify what are files .cdt.dpo vs .cdt.dpa? I only see issues with the file MEG_A + MEG_B + Oth.cdt as it has a .dpo file (no .dpa)? Is it a different curry version?

@CurryKaiser
Copy link
Author

of course. .dpo and .dpa files are parameter and sensor geometry files. .dpo files are written at the time of aquisition and .dpa files are written when the .cdt files are opened for analysis. .dpa takes precedence over .dpo if it exists and this is important to keep the original data and parameters.

Maybe it could be worth considering to base the MNE Curry reader on our Python reader i.e. calling it first then just converting the output into MNE file format. This way whenever we add something to our file format, your reader would be up to date as well, as we maintain the Python reader. Though it might be a little early to tell if that is less work.

A collegue of mine has briefly skimmed the code of your Curry reader in the past and noticed some bugs and maybe some things missing but he never got around to reporting it and quite some time has passed. It would be a relief though if it is just the .dpo file that couldn't be read (as it is very similar to a .dpa file).

@agramfort
Copy link
Member

agramfort commented Sep 22, 2024 via email

@CurryKaiser
Copy link
Author

It might be possible. But I wanna hold off on commenting any further until our Python Reader expert is back which will be in 2 weeks.
Yeah sorry about the unreported bug, it has been a long while ago and I am sure my collegue was swamped with work at that time.

@CurryKaiser
Copy link
Author

Apologies for the delay.

These were the issues so far that our expert did spot:

  1. Missing "cdt.dpo"
    dpo

  2. Landmark tokens:
    landmarks

  3. Issue with dev_head_transform:
    dev_head_transform

I will get back to you with pypi and conda packages. I think that should prevent any headaches in the future.

@CurryKaiser
Copy link
Author

At this point, it is unsure whether we can release the packages in the way that you suggest. I will keep you up to date when a decision is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants