Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tweak shape repr in _api.check_shape error message.#26513

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ksunden merged 1 commit intomatplotlib:mainfromanntzer:csn
Aug 15, 2023

Conversation

anntzer
Copy link
Contributor

Fill in "None" dimsfrom the end with the letters N, M, L, K, ... so as to get e.g. "(N, 2)", "(M, 2, N)", "(L, M, N)", etc.

PR summary

PR checklist

@@ -151,12 +151,10 @@ def check_shape(shape, /, **kwargs):
if (len(data_shape) != len(shape)
or any(s != t and t is not None for s, t in zip(data_shape, shape))):
dim_labels = iter(itertools.chain(
'MNLIJKLH',
'NMLIJKLH',
Copy link
Member

Choose a reason for hiding this comment

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

It's not new, but should L appear in this list twice? That seems odd/likely for unintended

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

indeed, fixed.

Fill in "None" dims *from the end* with the letters N, M, L, K, ... soas to get e.g. "(N, 2)", "(M, 2, N)", "(L, M, N)", etc.
@ksundenksunden added this to thev3.8.0 milestoneAug 15, 2023
@ksundenksunden merged commit0e3fd10 intomatplotlib:mainAug 15, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestAug 15, 2023
QuLogic added a commit that referenced this pull requestAug 16, 2023
…513-on-v3.8.xBackport PR#26513 on branch v3.8.x (Tweak shape repr in _api.check_shape error message.)
@anntzeranntzer deleted the csn branchAugust 16, 2023 08:18
@ksundenksunden mentioned this pull requestSep 15, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

3 participants
@anntzer@ksunden@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp