Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Fix make_sample_data return value #123

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

mstabrin
Copy link
Contributor

I just did a plugin installation via cookiecutter, but loading the sample data lead to:

TypeError: ViewerModel._add_layer_from_data() takes from 2 to 4 positional arguments but 513 were given

I checked the code here:
https://github.com/napari/napari/blob/main/napari/plugins/_skimage_data.py

and adapted the make_sample_data return values accordingly.

I just did a plugin installation via cookiecutter, but loading the sample data lead to:

`TypeError: ViewerModel._add_layer_from_data() takes from 2 to 4 positional arguments but 513 were given`

I checked the code here:
https://github.com/napari/napari/blob/main/napari/plugins/_skimage_data.py

and adapted the make_sample_data return values accordingly.
@mstabrin
Copy link
Contributor Author

Are those failing tests related to my change?

@Czaki
Copy link
Contributor

Czaki commented Jun 23, 2022

Looks unrelated. Also visible on main branch.

hackebrot/pytest-cookies#62

@mstabrin
Copy link
Contributor Author

mstabrin commented Jul 5, 2022

@Czaki Do you think we can merge the fix or should we wait for the windows tests to pass again?

@tlambert03
Copy link
Contributor

thanks @mstabrin, LGTM

@tlambert03 tlambert03 merged commit 1ae9726 into napari:main Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants