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

[MRG] remove reliance on datasets.py module #254

Merged
merged 16 commits into from
Aug 14, 2019

Conversation

sappelhoff
Copy link
Member

@sappelhoff sappelhoff commented Aug 8, 2019

closes #249

This PR deprecates the datasets.py module. EDIT, this will be done in a separate PR.

post prior edit

I will remove all imports and references to that module in the code and examples, and make it so that when a user imports from datasets.py, they get a warning that this will be removed in mne-bids 0.4.

Or should I just go ahead and remove the module without a deprecation cycle? @jasmainak


This PR removes the dependency on the mne_bids.datasets module for:

  • tests of the CLI
  • the BrainVision renaming example
  • the group conversion example *edit: will be done in a different PR

The functionality of the mne_bids.datasets module is replaced my mne.datasets.

This involved a revamp of the group conversion example --> Now it only needs 1.6GB instead of the >7GB while still showing the same idea

Merge checklist

Maintainer, please confirm the following before merging:

  • All comments resolved
  • This is not your own PR
  • All CIs are happy
  • PR title starts with [MRG]
  • whats_new.rst is updated
  • PR description includes phrase "closes <#issue-number>"
  • Commit history does not contain any merge commits

@sappelhoff sappelhoff changed the title Deprecate datasets.py module [WIP] Deprecate datasets.py module Aug 8, 2019
@codecov-io
Copy link

codecov-io commented Aug 9, 2019

Codecov Report

Merging #254 into master will increase coverage by 0.1%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #254     +/-   ##
=========================================
+ Coverage   97.72%   97.83%   +0.1%     
=========================================
  Files           8        8             
  Lines         925      925             
=========================================
+ Hits          904      905      +1     
+ Misses         21       20      -1
Impacted Files Coverage Δ
mne_bids/datasets.py 100% <0%> (+3.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fb2187...c72247f. Read the comment docs.

@sappelhoff sappelhoff added this to the 0.3 milestone Aug 11, 2019
cli/tests/test_cli.py Show resolved Hide resolved
examples/convert_group_studies.py Outdated Show resolved Hide resolved
examples/rename_brainvision_files.py Outdated Show resolved Hide resolved
@sappelhoff sappelhoff requested a review from jasmainak August 13, 2019 15:35
@agramfort
Copy link
Member

Tell us when good to go. So far so good

@sappelhoff sappelhoff changed the title [WIP] Deprecate datasets.py module [MRG] remove reliance on datasets.py module Aug 13, 2019
@sappelhoff
Copy link
Member Author

rendered examples that I touched in this PR:

ready for review @jasmainak @agramfort

this is the first step prior to deprecating mne_bids.datasets ... I see the OpenNeuro fetcher development separate from this, because we can have our code as it is now without relying on any fetchers apart from the ones already implemented in MNE

@jasmainak jasmainak merged commit cc131ce into mne-tools:master Aug 14, 2019
@jasmainak
Copy link
Member

Thanks @sappelhoff !

@sappelhoff sappelhoff deleted the depr branch August 15, 2019 12:03
dominikwelke pushed a commit to dominikwelke/mne-bids that referenced this pull request Oct 29, 2019
* try nellh fix for windows bids validator

* try new fix by @nellh

* go back to bids-validator master: fixed for Windows

* awscli dependency

* do not use datasets.py function in cli test

* use awscli in example

* fix typo

* add awscli as optional dependency in README

* use awscli in convert group studies example

* do not use awscli in renaming example

* group studies example without awscli

* remove mention of awscli

* fix warning directive

* revers ds000117 example changes

* fix warning directive

* fix the warning directive finally
dominikwelke pushed a commit to dominikwelke/mne-bids that referenced this pull request Feb 7, 2020
* try nellh fix for windows bids validator

* try new fix by @nellh

* go back to bids-validator master: fixed for Windows

* awscli dependency

* do not use datasets.py function in cli test

* use awscli in example

* fix typo

* add awscli as optional dependency in README

* use awscli in convert group studies example

* do not use awscli in renaming example

* group studies example without awscli

* remove mention of awscli

* fix warning directive

* revers ds000117 example changes

* fix warning directive

* fix the warning directive finally
dominikwelke pushed a commit to dominikwelke/mne-bids that referenced this pull request Feb 7, 2020
* try nellh fix for windows bids validator

* try new fix by @nellh

* go back to bids-validator master: fixed for Windows

* awscli dependency

* do not use datasets.py function in cli test

* use awscli in example

* fix typo

* add awscli as optional dependency in README

* use awscli in convert group studies example

* do not use awscli in renaming example

* group studies example without awscli

* remove mention of awscli

* fix warning directive

* revers ds000117 example changes

* fix warning directive

* fix the warning directive finally
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.

4 participants