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

Add group and imagesequence to NeoMatlabIO #1360

Closed
wants to merge 6 commits into from

Conversation

zm711
Copy link
Contributor

@zm711 zm711 commented Dec 5, 2023

Fixes #1358,

here's a starting draft for working on NeoMatlabIO. I tested locally and it worked for writing and reading groups and imagesequences. I added a test for writing/reading imagesequences for the CI. Feel free to give it a read when you have time.

@apdavison

@pep8speaks
Copy link

pep8speaks commented Dec 5, 2023

Hello @zm711! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-12-05 19:54:41 UTC

neo/io/neomatlabio.py Outdated Show resolved Hide resolved
@apdavison apdavison self-assigned this Dec 5, 2023
This is done by saving references to objects inside groups, on the assumption that those objects are already stored somewhere within segments.
This assumption may not always be true, so probably we should only save references for objects that would otherwise be duplicated.
zm711 added 2 commits January 2, 2024 07:22
Implement support for saving/loading Groups in NeoMatlabIO.
@apdavison apdavison added this to the 0.13.0 milestone Jan 26, 2024
@apdavison apdavison requested a review from mdenker January 26, 2024 14:43
if len(arr) > 0:
data_complement["spatial_scale"] = arr
else:
pass #
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For an ImageSequence this is required, so passing could mess up an ImageSequence if someone doesn't supply the scale. So I'm not sure if we should instead raise an error since I'm not sure what an appropriate default would be.

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.

NeoMatlabIO doesn't save groups and imagesequences to .mat
3 participants