Skip to content

Document the multichannel->channel_axis transition in the release notes - #5438

Merged
mkcor merged 1 commit into
scikit-image:mainfrom
grlee77:docs-release-api
Jun 24, 2021
Merged

mkcor merged 1 commit into
scikit-image:mainfrom
grlee77:docs-release-api

Conversation

@grlee77

@grlee77 grlee77 commented Jun 21, 2021

Copy link
Copy Markdown
Contributor

Description

I put the most detail under the API section, but there were also deprecation and new feature components.

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.

@grlee77 grlee77 added the 📄 type: Documentation Updates, fixes and additions to documentation label Jun 21, 2021

@mkcor mkcor 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.

Wonderful! I appreciate your writing style, @grlee77: It is very clear.

@mkcor

mkcor commented Jun 23, 2021

Copy link
Copy Markdown
Member

By the way, I wonder if we should turn

def rgb2gray(rgb):

into

def rgb2gray(rgb, channel_axis=-1)

'simply' adding a call to np.moveaxis at the beginning of the function... 🤔

@grlee77

grlee77 commented Jun 23, 2021 •

Copy link
Copy Markdown
Contributor Author

def rgb2gray(rgb, channel_axis=-1)

Good point. The prior PRs deprecated multichannel, replacing it with channel_axis. However, we probably want to also add a new channel_axis argument to any functions that always assumed a color image for input and thus did not have a multichannel argument previously. This would include many functions in skimage.color, but I'm not sure if there are also others outside of that package?

@rfezzani

Copy link
Copy Markdown
Member

By the way, I wonder if we should turn

def rgb2gray(rgb):

into

def rgb2gray(rgb, channel_axis=-1)

'simply' adding a call to np.moveaxis at the beginning of the function... thinking

It's funny, I though about that when reviewing your PR @mkcor #5420 (here) 😄

@mkcor

mkcor commented Jun 24, 2021

Copy link
Copy Markdown
Member

It's funny, I though about that when reviewing your PR @mkcor #5420 (here) 😄

@rfezzani I know!! 😉

@mkcor

mkcor commented Jun 24, 2021

Copy link
Copy Markdown
Member

[...] but I'm not sure if there are also others outside of that package?

I don't know right off the bat. I'll open an issue so we can keep track.

By the way, this PR is a documentation one, so I guess I can go ahead and merge without a second approval.

@mkcor
mkcor merged commit d39d743 into scikit-image:main Jun 24, 2021
@grlee77
grlee77 deleted the docs-release-api branch July 8, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📄 type: Documentation Updates, fixes and additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants