Skip to content

Commit

Permalink
Merge pull request #986 from dandi/rm-size-cmp
Browse files Browse the repository at this point in the history
Remove size comparison check when uploading Zarr entries
  • Loading branch information
yarikoptic authored Apr 26, 2022
2 parents 30446b8 + bd2325f commit 5154ca3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dandi/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
from dandischema.models import BareAsset, CommonModel
from dandischema.models import Dandiset as DandisetMeta
from dandischema.models import DigestType, get_schema_version
from nwbinspector import Importance, inspect_nwb, load_config
from pydantic import ValidationError
from nwbinspector import inspect_nwb, load_config, Importance
import requests
import zarr

Expand Down Expand Up @@ -896,14 +896,6 @@ def iter_upload(
old_zarr_entries.pop(k)
to_delete.append(v)
to_upload.register(local_entry)
elif local_entry.size != remote_entry.size:
lgr.debug(
"%s: Path %s in Zarr has different size from"
" local file; re-uploading",
asset_path,
local_entry,
)
to_upload.register(local_entry)
else:
digesting.append(
executor.submit(
Expand Down

0 comments on commit 5154ca3

Please sign in to comment.