Skip to content

add keep_matlab_shapes to oct2py #334

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

Merged
merged 5 commits into from
Dec 11, 2024

Conversation

tylerbjackson
Copy link
Contributor

so there is an option to reliably extract datastructures with all matlab dimensions. This makes it easier to work with the data when sometimes there are singletons and sometimes not in the extracted data.

We were running into an issue where the shape of the structures we were pulling out would sometimes be like [n, 1, m] and sometimes [n, 3, m] and without this the singleton dimensions was being squeezed out often. Adding this option allows us to have more consistent return shapes and has proved helpful.

…tract datastructures with all matlab dimensions. This makes it easier to work with the data when sometimes there are singletons and sometimes not in the extracted data.
Copy link
Owner

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thanks @tylerbjackson! Can you please add a test that uses the new option?

@tylerbjackson
Copy link
Contributor Author

I have added some tests ensuring the new functionality works and doesn't interfere with previous behaviours.

Copy link
Owner

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thank you!

@blink1073 blink1073 merged commit e4b82b9 into blink1073:main Dec 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants