Skip to content

[BUG, MRG] Fix tutorial + example show_view to use correct keyword args#9599

Merged
larsoner merged 3 commits intomne-tools:mainfrom
alexrockhill:tut
Jul 21, 2021
Merged

[BUG, MRG] Fix tutorial + example show_view to use correct keyword args#9599
larsoner merged 3 commits intomne-tools:mainfrom
alexrockhill:tut

Conversation

@alexrockhill
Copy link
Contributor

This is in reference to #9598.

Also if there were two hemispheres but the same view, it would do the depreciation warning so I fixed that.

@larsoner
Copy link
Member

larsoner commented Jul 21, 2021

Also if there were two hemispheres but the same view, it would do the depreciation warning so I fixed that.

Makes sense, to be safe can you make sure you touch/change all six failed examples in https://app.circleci.com/pipelines/github/mne-tools/mne-python/9192/workflows/843a1e8e-b046-48bc-9909-908f9b29b317/jobs/31440 EDIT: so that CircleCI runs and we make sure the errors are gone

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

LGTM, will merge once CircleCI comes back happy. Thanks for the quick fix @alexrockhill !

# Rotate the view and add a title.
brain.show_view(view={'azimuth': 0, 'elevation': 0, 'distance': 550,
'focalpoint': [0, 0, 0]})
brain.show_view(azimuth=0, elevation=0, distance=550, focalpoint=(0, 0, 0))
Copy link
Member

Choose a reason for hiding this comment

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

What a nicer API :)

@alexrockhill
Copy link
Contributor Author

@larsoner, do you know what's going on with this failed test?

@larsoner
Copy link
Member

Looks unrelated to your changes, I'm guessing it's VTK 9.0.3's fault. I'll open a PR to try to fix it

@larsoner larsoner merged commit fb074dd into mne-tools:main Jul 21, 2021
@larsoner
Copy link
Member

Thanks @alexrockhill !

@alexrockhill alexrockhill deleted the tut branch July 21, 2021 19:11
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Aug 2, 2021
…gs (mne-tools#9599)

* fix tutorial + example show_view

* clean up paths to touch examples

* seg fault
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.

2 participants