-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[draft] new reader for curry files, using curry-python-reader code #13176
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
base: main
Are you sure you want to change the base?
Conversation
mne/io/curry/curryreader.py
Outdated
@@ -0,0 +1,633 @@ | |||
# Authors: The MNE-Python contributors. | |||
# License: BSD-3-Clause | |||
# Copyright the MNE-Python contributors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this file the official reader? is this file copied from somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it's copied from https://github.com/neuroscan/curry-python-reader
the false info you flagged was added by [autofix.ci]
further formatting changes were necessary to pacify pre-commit hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you discussed this topic with a compumedics dev in #12855
they said they wont supply a pypi or conda version, but we are free to use the code.
the github repo has a BSD3 license applied, but they dont include any note in the file itself
Given that @CurryKaiser refused our offer to help them package up their reader for PyPI / conda-forge, I see two remaining options:
Personally I lean toward option 2. I say this because if we're going to try to support curry files, at a minimum we need to be able to fix bugs when they arise, and ideally we should be willing/able to incorporate new features that have high demand from our users ( |
hum... my first reaction is to push a version 0.1 of their package on pypi
and rely on this. Basically we maintain a fork and hope that the fork
changes are accepted upstream... it feels less hacky and they also have a
CI and some testing setup with test_data that I would not duplicate in
mne-python...
… Message ID: ***@***.***>
|
that indeed is less hacky than my approach to vendoring. I'd be OK with that outcome, though curious what @larsoner will think. |
I'm fine with that idea but it would be good to get some blessing/permission from them to do this |
xref to #12855 (comment) where I've asked for confirmation that Compumedics really doesn't want to be the packager and they're OK with us doing it. |
And nothing has changed, so all good from our side. Sorry we couldn't package it for you. And thank you for working on this! |
thanks @CurryKaiser ! ok, sounds like a plan.. I can start working on this again soon, if you give a go @agramfort @drammock @larsoner I guess the fork should live in the mne-tools org? I have the necessary rights to create it |
Yeah I think so |
I already made the fork |
ok, sounds like a plan.. I can start working on this again soon, if you
give a go @agramfort <https://github.com/agramfort> @drammock
<https://github.com/drammock> @larsoner <https://github.com/larsoner>Message
ID: ***@***.***>
+1
|
xref to mne-tools/curry-python-reader#1 |
i could need some guidance on 2 things:
a few other things to discuss:
|
p.s. and could you remind me how to switch off the CIs when pushing these early commits? |
Push commits with |
... for the cHPI stuff it's probably easiest to load a Neuromag raw FIF file with cHPI info and look at how the info is stored for example in For preload, since |
ok,
|
@CurryKaiser in another place you said you might be able to provide us with test files - could we perhaps get a small one with epoched recordings in it (format version shouldn't matter)? |
Could be that they were truncated, let me check. |
Ok, try these: |
thanks for the file @CurryKaiser |
@drammock @larsoner @agramfort currently related question: |
Yeah use |
see conda-forge PR: conda-forge/staged-recipes#29754 |
hi all
as discussed in #13033 here a draft PR to use the official curry reader code.
in a first step i just use the reader as a module (only fixed formatting to force it past pre-commit).
it has some drawbacks (e.g. data is always loaded) and i did not implement all possible data yet (eg hpi, or epoched recordings) but in general it already works pretty well. tested it with all their example data, and one of my own recordings that didnt work in mne before.
it would be great to get some feedback how you want me to proceed with this @drammock @larsoner:
BACKGROUND:
the curry data reader currently cant handle all/newer curry files
plan is port code from the official curry reader into mne-python
for permission see #12855
closes #12795 #13033 #12855