Update Python dependencies and fix GitHub Actions workflow#99
Update Python dependencies and fix GitHub Actions workflow#99rcmdnk wants to merge 1 commit intomne-tools:masterfrom
Conversation
|
Thank you @rcmdnk for this PR! The workflow file has not been updated in a long time. In my opinion, we should support Python >= 3.12,<3.14:
Can you, please, update the workflow file to use 3.12 and 3.13? |
|
@jbschiratti The Python versions in the workflow have been updated to 3.12 and 3.13. Regarding the Python version requirements, there are a few differences:
It would be good to align and maintain these versions consistently at some point. As for merging, it seems I don’t have the permission to merge this PR. |
Be careful, you're tagging someone else on this PR.
I've thought about this and I think that it would make sense to align with what's done in Therefore, I'd suggest:
|
|
I'm sorry for the wrong mention. Regarding the Python version requirements, I think it’s safer not to set |
|
@rcmdnk I just made you a maintainer of the repo. Thanks for helping this project stay usable by the community 🙏 |
7a3ea61 to
3b7a460
Compare
|
Thanks! This library is very useful, and I’ll try to keep it in good shape. I've rebased this branch onto master (including #97, #98), and all tests are now green. Note The setup-miniconda action sometimes raises a CondaHTTPError. To mitigate this, I’ve increased the number of retries and the timeout in the Conda configuration. |
|
@rcmdnk Thank you very much for updating the repository. One remark: I'm not sure that we need |
3b7a460 to
a3f0948
Compare
| of auditory vs. visual stimuli). | ||
|
|
||
| """ | ||
| # Author: Jean-Baptiste Schiratti <jean.baptiste.schiratti@gmail.com> |
There was a problem hiding this comment.
You may add your name and e-mail in this list of authors :-)
There was a problem hiding this comment.
Did you check that you can successfully generate the docs with this new example?
|
|
||
| X_train, X_test, y_train, y_test = train_test_split(data, y, test_size=0.2) | ||
| accuracy = pipe.fit(X_train, y_train).score(X_test, y_test) | ||
| print("Accuracy score = %1.3f" % accuracy) |
There was a problem hiding this comment.
Please use f-string instead
| return ['ch%s' % ch for ch in range(n_channels)] | ||
| else: | ||
| return ['ch%s_%s' % (ch, i) for ch in range(n_channels) | ||
| return ['ch%s__%s' % (ch, i) for ch in range(n_channels) |
There was a problem hiding this comment.
Please use f-strings instead
There was a problem hiding this comment.
The same comment applies to other places of this file.
| """Get the feature names""" | ||
| # trick: use only the first epoch to get the feature names | ||
| df = extract_features( | ||
| X[:1], |
There was a problem hiding this comment.
| X[:1], | |
| X[0], |
|
|
||
| feature_names : list of str | ||
|
|
||
| separator : str |
There was a problem hiding this comment.
Should list valid separators? Not all strings should be used as separators, right?
For example:
| separator : str | |
| separator : Literal["", "_", "__"] |
jbschiratti
left a comment
There was a problem hiding this comment.
Thanks a lot @rcmdnk for these changes and updating the unit tests.
A few changes are needed before we merge this
chore: upgrade `actions/checkout` to v5 in .github/workflows/main.yml chore: upgrade `conda-incubator/setup-miniconda` to v3 in .github/workflows/main.yml chore: upgrade `codecov/codecov-action` to v5 in .github/workflows/main.yml chore: update Ubuntu runner to `ubuntu-latest` in .github/workflows/main.yml chore: add Python 3.10,3.11,3.12,3.13 to matrix strategy in .github/workflows/main.yml chore: Configure retries and timeouts for conda downloads in .github/workflows/main.yml chore: update python version (>=3.10,<3.14) in setup.py and environment.yml — 3.9 reaches end of security support in Oct 2025, and 3.14 is not yet supported by Numba (numba/numba#9957)
a3f0948 to
dadd352
Compare
|
Sorry, some previous commit hashes were changed when I rebased histories. As you mentioned above, I've updated python version as >=3.10,<3.14 in these files. |
|
#100 includes these ubuntu/python updates. |
).
env.PYTHON_VERSIONand replace it withmatrix.python-versionfor consistency with the workflow matrix configuration.All tests will pass once #97 and #98 are merged.
Example test result is here: https://github.com/rcmdnk/mne-features/actions/runs/18524132632