Skip to content

[Fix] Fix a corner case#36

Closed
JRombouts wants to merge 1 commit into
Robertleoj:mainfrom
JRombouts:fix_single_corner_case
Closed

[Fix] Fix a corner case#36
JRombouts wants to merge 1 commit into
Robertleoj:mainfrom
JRombouts:fix_single_corner_case

Conversation

@JRombouts

Copy link
Copy Markdown
Contributor

Note that:

In [1]: import numpy as np
In [2]: a = np.array([[1]])
In [3]: a.squeeze()
Out[3]: array(1) # and a.squeeze().shape == ()

This breaks in Frame __postinit___ (shape[0] access)

We want:

In [4]: a.squeeze(1).shape
Out[4]: (1,)

BTW: might be nice to use LFS for the assets

Note that:

In [1]: import numpy as np
In [2]: a = np.array([[1]])
In [3]: a.squeeze()
Out[3]: array(1) # and a.squeeze().shape == ()

This breaks in Frame postinit (shape[0] access)

We want:

In [4]: a.squeeze(1).shape
Out[4]: (1,)
@Robertleoj

Copy link
Copy Markdown
Owner

Thanks!

Closing this one as it's included in #37

@Robertleoj Robertleoj closed this Jun 24, 2026
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.

2 participants