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

Fix misspelling found by codespell #11097

Merged
merged 2 commits into from
May 6, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented May 5, 2024

  • Closes #xxxx
  • Tests added / passed
  • Passes pre-commit run --all-files

@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

Admins can comment ok to test to allow this one PR to run or add to allowlist to allow all future PRs from the same author to run.

@@ -1673,8 +1673,8 @@ def block_index_shape_from_1d_bool_index(dim, loc0, loc1):
return np.sum(index[loc0:loc1])

@functools.lru_cache
def n_preceeding_from_1d_bool_index(dim, loc0):
"""Number of True index elements preceeding position loc0.
def n_preceding_from_1d_bool_index(dim, loc0):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it OK to change the function name? It's not part of the API as far as I can see — setitem_array is missing from the documentation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather not change this, Dask and public API is a bit weird sometimes, even though I agree with you that nobody should be using it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps duplicate the function (it's very short) and add a deprecation notice to the existing one?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yep, you can just call the new function from the old one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I call the old deprecated function from the new one - I suspect that's what you meant.

I have removed the cache associated to the old function, since it merely calls the new function which is cached.

Copy link
Contributor

github-actions bot commented May 5, 2024

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     15 files  ±0       15 suites  ±0   3h 24m 4s ⏱️ -49s
 13 121 tests ±0   11 730 ✅ ±0     931 💤 ±0  460 ❌ ±0 
162 468 runs  ±0  141 922 ✅  - 2  20 086 💤 +2  460 ❌ ±0 

For more details on these failures, see this check.

Results for commit 03456a2. ± Comparison against base commit 067c668.

♻️ This comment has been updated with latest results.

@phofl phofl merged commit 95f0704 into dask:main May 6, 2024
24 of 26 checks passed
@phofl
Copy link
Collaborator

phofl commented May 6, 2024

thx

@DimitriPapadopoulos DimitriPapadopoulos deleted the codespell branch May 6, 2024 19:53
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

3 participants