Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -57,9 +57,9 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
rev: v3.2.0
hooks:
- id: setup-cfg-fmt
args: [--min-py-version, "3.11"]
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
Expand All @@ -33,7 +34,7 @@ repos:
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py38-plus, --keep-runtime-typing]
args: [--py311-plus, --keep-runtime-typing]
# - repo: https://github.com/tlambert03/napari-plugin-checks
# rev: v0.2.0
# hooks:
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ install_requires =
dask
fire
nd2
zarr>=2.4,<3
python_requires = >=3.10
zarr>=3.0
python_requires = >=3.11
include_package_data = True
package_dir =
=src
Expand Down
6 changes: 4 additions & 2 deletions src/zarr_tools/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import dask.array as da
import zarr
from zarr.storage import LocalStore


def to_zarr(
Expand All @@ -19,8 +20,9 @@ def to_zarr(
"""
Saves multiscale zarr dataset, returns the path.zarr
"""
store = zarr.DirectoryStore(baseurl := path)
grp = zarr.group(store)
baseurl = path
store = LocalStore(baseurl)
grp = zarr.open_group(store, mode="a")

print(baseurl)
datasets = []
Expand Down