Skip to content

Only adding zarrRootPath field to datasets that use Zarr #137

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 1 commit into from
Jul 18, 2024
Merged
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
5 changes: 3 additions & 2 deletions polaris/hub/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,9 @@ def upload_dataset(
dataset.owner = HubOwner.normalize(owner or dataset.owner)
dataset_json = dataset.model_dump(exclude={"cache_dir", "table"}, exclude_none=True, by_alias=True)

# We will save the Zarr archive to the Hub as well
dataset_json["zarrRootPath"] = f"{PolarisFileSystem.protocol}://data.zarr"
# If the dataset uses Zarr, we will save the Zarr archive to the Hub as well
if dataset.uses_zarr:
dataset_json["zarrRootPath"] = f"{PolarisFileSystem.protocol}://data.zarr"

# Uploading a dataset is a three-step process.
# 1. Upload the dataset meta data to the hub and prepare the hub to receive the data
Expand Down
Loading