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

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

Merged
merged 3 commits into from
Jul 21, 2021

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 !

@@ -280,8 +279,7 @@ def plot_approach(power, n):
brain.add_foci(vertices[0][0], coords_as_verts=True, hemi='lh', color='b')
brain.add_foci(vertices[1][0], coords_as_verts=True, hemi='rh', color='b')
# 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.

None yet

2 participants