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

zarr_driver.py: Minor cleanup. #11896

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schwehr
Copy link
Member

@schwehr schwehr commented Mar 1, 2025

  • Break up massive wkt string in test_zarr_read_crs
  • Wrap a few places with gdal.quiet_errors where ZARR_V3 gives "Warning 1: fill_value = null is invalid" on open
  • Remove a commented out debugging print

- Break up massive wkt string in test_zarr_read_crs
- Wrap a few places with gdal.quiet_errors where ZARR_V3 gives
  "Warning 1: fill_value = null is invalid" on open
- Remove a commented out debugging print
@schwehr schwehr requested review from sgillies and dbaston March 1, 2025 17:51
@@ -5498,7 +5514,9 @@ def test_zarr_driver_rename(format):
try:
drv.Create(filename, 1, 1, options=["FORMAT=" + format])

assert gdal.Open(filename)
with gdal.quiet_errors():
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking a gdal.quiet_warnings() would be a good idea (I'm happy to implement it)

Copy link
Member Author

Choose a reason for hiding this comment

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

If you are up for it, gdal.quiet_warnings() seems like a nice addition.

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