Skip to content

API: Return Path in data_path - #10348

Merged
larsoner merged 8 commits into
mne-tools:mainfrom
larsoner:path
Feb 16, 2022
Merged

larsoner merged 8 commits into
mne-tools:mainfrom
larsoner:path

Conversation

@larsoner

@larsoner larsoner commented Feb 15, 2022 •

Copy link
Copy Markdown
Member

Closes #10320

WIP because I still need to change ~200 instances in examples and tutorials. Pushing now to get CIs happy to make sure the simple magic class isn't breaking anything. The one thing I "broke" on purpose was 35_dipole_orientations.py where + is used but I didn't change it yet, just to make sure the DeprecationWarning shows up there.

@larsoner larsoner added this to the 1.0 milestone Feb 15, 2022
* upstream/main:
  MAINT: Make public Figure3D class (mne-tools#10347)
  update (mne-tools#10346)
  BUG: Fix bug with closing and resizing (mne-tools#10342)
@larsoner larsoner changed the title WIP: Return Path in data_path API: Return Path in data_path Feb 15, 2022

@agramfort agramfort left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good !

mne looks less old school now :)

@larsoner

Copy link
Copy Markdown
Member Author

I have a fix for the Windows failure. Just waiting to hear from CircleCI about which examples I messed up or missed...

@larsoner

Copy link
Copy Markdown
Member Author

Okay, let's see how it goes!

@larsoner
larsoner merged commit 5fd9ca6 into mne-tools:main Feb 16, 2022
@larsoner
larsoner deleted the path branch February 16, 2022 14:44
@cbrnr

cbrnr commented Feb 16, 2022

Copy link
Copy Markdown
Contributor

Nice! Why did you decide to go with an unmodified pathlib.Path in the end?

@larsoner

Copy link
Copy Markdown
Member Author

Nice! Why did you decide to go with an unmodified pathlib.Path in the end?

I didn't, it's a modified version called MNEPath. We call it a Path in the docs just for simplicity (and technically it is isinstance(x, Path) so not too misleading)

larsoner added a commit to larsoner/mne-python that referenced this pull request Feb 16, 2022
* upstream/main:
  API: Return Path in data_path (mne-tools#10348)
larsoner added a commit to larsoner/mne-python that referenced this pull request Feb 17, 2022
* upstream/main:
  MAINT: Update NIRx tests (mne-tools#10357)
  ENH: add Shift_JIS mu in _read_edf_header (mne-tools#10356)
  API: Return Path in data_path (mne-tools#10348)
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.

ENH: Return Path in data_path?

3 participants