You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, the API is as_grey. The problem is that our API is not homogeneous. It seems that US spelling is in majority in our library. I would suggest to either:
Is it trivial to support as_gray along with as_grey? The **kwarg is used for the plugins... it doesn't seem nice to me to go that way. I would prefer to follow a deprecation cycle. Do you agree?
I'd go with as_gray, since this is the "most used" nomenclature in books, papers, et al. It could confuse some users (I was one of them). For me, @sciunto's solution 2 is the way to go.
As a new user of skimage it seems very strange to keep two versions of the API whenever there is a gray. This pollutes the API surface and for no good reason. I think it makes sense to choose one, deprecate the other and remove it in a major version release.
@PinkFloyded I actually agree with you and disagree with past me. 😂 🤷♂️ The intention going forward is to follow US convention everywhere. However, this will take time as it requires breaking changes and deprecations. (Not least in graycoprops, which looks weird to me spelled that way. Anyone else?)
Reacted by Egor Panfilov and Alexandre de Siqueira
Reacted by Egor Panfilov and Alexandre de Siqueira
Activity
jni commentedon Apr 9, 2017
What does RFC mean for those of us that are uninitiated? =)
My preference is for both to work. (I think this is what we do with rgb2grey/rgb2gray?)
[-]RFC: gray vs grey[/-][+]SKIEP: gray vs grey[/+]soupault commentedon Apr 9, 2017
Is seems that
skimage.iois the only place whereas_graykeyword is used.It won't be a bad idea to support both
as_grayandas_greythere. 👍sciunto commentedon Apr 9, 2017
Request For Comments, but I have no idea what SKIEP means :D
soupault commentedon Apr 9, 2017
@sciunto It is our new brand for labelling strategic discussions: SciKit-Image Enhancement Proposal (copy from PEP) 😄 .
sciunto commentedon Apr 9, 2017
needs a little TM them :)
sciunto commentedon Apr 15, 2017
Is it trivial to support
as_grayalong withas_grey? The **kwarg is used for the plugins... it doesn't seem nice to me to go that way. I would prefer to follow a deprecation cycle. Do you agree?sciunto commentedon Apr 15, 2017
I notice that in mrphology, we have grey.py and greyreconstruct.py. Ndimage uses grey as well...
soupault commentedon Apr 15, 2017
matplotlib and Pillow use
gray,grayscale.@sciunto Sorry, I didn't catch your second proposal.
sciunto commentedon Apr 15, 2017
What I meant is:
as_grayifas_greyis not set, but **kwargs is used for plugins, so it's not very clean.as_graywithas_grey=None. Ifas_greyis not None, raise a warning for deprecation.I prefer solution 2. However, if we go this way (ie in favour of gray), we have to change a lot of stuffs.
alexdesiqueira commentedon Apr 18, 2017
I'd go with
as_gray, since this is the "most used" nomenclature in books, papers, et al. It could confuse some users (I was one of them). For me, @sciunto's solution 2 is the way to go.3 remaining items
sciunto commentedon May 23, 2018
I just opened a small PR #3098 but ideally, it would be good to replace other places but deprecations are needed... :(
PinkFloyded commentedon Nov 24, 2018
As a new user of skimage it seems very strange to keep two versions of the API whenever there is a gray. This pollutes the API surface and for no good reason. I think it makes sense to choose one, deprecate the other and remove it in a major version release.
jni commentedon Nov 24, 2018
@PinkFloyded I actually agree with you and disagree with past me. 😂 🤷♂️ The intention going forward is to follow US convention everywhere. However, this will take time as it requires breaking changes and deprecations. (Not least in
graycoprops, which looks weird to me spelled that way. Anyone else?)[-]SKIEP: gray vs grey[/-][+]SKIP: gray vs grey[/+]Merge pull request #3 from Aleahjing/master