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

55 from ds #56

Merged
merged 8 commits into from
Oct 14, 2024
Merged

55 from ds #56

merged 8 commits into from
Oct 14, 2024

Conversation

rogerkuou
Copy link
Member

@rogerkuou rogerkuou commented Oct 1, 2024

Fix #55.

  • Add from_zarr function
  • Add test files and unit tests
  • Replace lint unit test with precommit hooks
  • Remove example dir from ruff check

@rogerkuou
Copy link
Member Author

Hi @SarahAlidoost, when you have time, can you review this PR? The details should be in the issue description.

While creating this PR, the ruff linting is failling on the notebooks. These notebooks exists mainly for archiving purposes. In the future they will all be moved to PyDePSI workflow. Therefore I turned off ruff linting on them. I also replaced the unit test for linting with a pre-commit hook.

sarxarray/_io.py Outdated Show resolved Hide resolved
sarxarray/_io.py Outdated Show resolved Hide resolved
sarxarray/_io.py Outdated Show resolved Hide resolved
sarxarray/_io.py Outdated Show resolved Hide resolved
sarxarray/_io.py Outdated Show resolved Hide resolved
tests/test_io.py Outdated Show resolved Hide resolved
tests/test_io.py Outdated Show resolved Hide resolved
tests/test_io.py Outdated Show resolved Hide resolved
Copy link
Member

@SarahAlidoost SarahAlidoost left a comment

Choose a reason for hiding this comment

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

@rogerkuou please see my comments and suggestions, the main concern is this comment.

@rogerkuou rogerkuou changed the title 55 from zarr 55 from ds Oct 11, 2024
@rogerkuou
Copy link
Member Author

Thanks @SarahAlidoost! I adpted your suggestions and re-write from_zarr to from_ds. Now the reading function operates on a DS read by open_zarr. Can you give it another look?

Copy link
Member

@SarahAlidoost SarahAlidoost left a comment

Choose a reason for hiding this comment

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

@rogerkuou thanks for the fixes, looks great 👍

@rogerkuou rogerkuou merged commit fc04d1f into main Oct 14, 2024
15 checks passed
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.

from_zarr function
2 participants