Skip to content
Snippets Groups Projects
Commit 1d137a93 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Resolved merge

parents 916fcbe8 e7dbaa22
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,11 @@ class Tzis:
# raise ValueError("Dataset '{0}' must either be a string or a list of strings")
if mf:
if self.verbose:
print("Resetting disk size and compression ratio")
self._disk_size=None
self._cratio=None
if type(mf) == str:
mf = [mf]
......@@ -385,7 +390,20 @@ class Tzis:
if not a == c or l_differ:
if self.verbose:
notinc=[key for key in a.keys()
if key not in c.keys()]
notina=[key for key in c.keys()
if key not in a.keys()]
print("Attributes of cloud store and source dataset differ.")
if notina:
print(f"Attribute not in source: {','.join(notinc)}")
if notinc:
print(f"Attribute not in cloud: {','.join(notina)}")
if not notina and not notinc:
for key in list(set(a.keys(),c.keys())):
if a[key] != c[key]:
print(f"Values of attribute {key} differ:")
print(f"source: {c[key]} cloud: {a[key]} ")
return True
for coord in already.coords:
......@@ -843,8 +861,7 @@ class Tzis:
if self._disk_size and not self._cratio:
self._cratio=self._disk_size/totalsize
if self.verbose:
print(f"Compression ratio was estimated to {self._cratio}")
print(f"Compression ratio was estimated by disk size to {self._cratio}")
if "chunks" in dset_to_write[self.varname].encoding.keys():
del dset_to_write[self.varname].encoding["chunks"]
pargs = locals()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment