Skip to content

Commit

Permalink
Specify Dandiset ID when creating a Zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Feb 15, 2022
1 parent 79179bd commit 5b5b091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dandi/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ def iter_upload(
yield {"status": "initiating upload"}
lgr.debug("%s: Beginning upload", asset_path)
bytes_uploaded = 0
r = client.post("/zarr/", json={"name": self.filepath.name})
r = client.post(
"/zarr/", json={"name": self.filepath.name, "dandiset": dandiset.identifier}
)
zarr_id = r["zarr_id"]
with RESTFullAPIClient(
"http://nil.nil",
Expand Down

0 comments on commit 5b5b091

Please sign in to comment.