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

Find and fix typos with codespell #8304

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

cclauss
Copy link

@cclauss cclauss commented Apr 20, 2024

@kmaehashi As discussed elsewhere...

codespell --skip="./docs/source/spelling_wordlist.txt,*.pyx" --write-changes \
--ignore-words-list=alo,alow,ans,bu,ccompiler,clen,commun,coo,fro,fo,indext,mata,matc,mone,nd,nin,nomes,numer,ot,shat,te,twon,ue,wew

cupyx/scipy/sparse/_csc.py Outdated Show resolved Hide resolved
Copy link
Contributor

@grlee77 grlee77 left a comment

Choose a reason for hiding this comment

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

Thanks @cclauss, IIRC you made this type of PR in the past to PyWavelets and/or scikit-image. I have been a fan of using codespell since that time.

Aside from the COO issue already discussed, I commented on just one other line where the suggestion should not be applied.

@@ -76,7 +76,7 @@ def _make_along_axis_idx(arr_shape, indices, axis):
dest_dims = list(range(axis)) + [None] + \
list(range(axis + 1, indices.ndim))

# build a fancy index, consisting of orthogonal aranges, with the
# build a fancy index, consisting of orthogonal arranges, with the
Copy link
Contributor

Choose a reason for hiding this comment

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

This change should not be made. "aranges" is refering to multiple calls to cupy.arange in the loop below.

Copy link
Contributor

Choose a reason for hiding this comment

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

One option could be to refer to them as just "orthogonal ranges". One might associate "range" with Python's built-in range rather than cupy.arange, but I think the meaning would still be clear enough given the actual code within the loop.

Copy link
Author

Choose a reason for hiding this comment

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

orthogonal cupy.arange calls

@cclauss cclauss closed this May 20, 2024
@cclauss cclauss deleted the codespell branch May 20, 2024 06:31
@leofang
Copy link
Member

leofang commented May 20, 2024

Hi @cclauss I noticed the PR was closed and the branch was deleted, do you think it's something you still want to push for, or should we take over and revive it?

@cclauss cclauss restored the codespell branch May 20, 2024 16:10
@cclauss cclauss reopened this May 20, 2024
@cclauss
Copy link
Author

cclauss commented May 20, 2024

@leofang I re-opend if you want to merge or cherry-pick parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants