Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tzis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
data-infrastructure-services
tzis
Commits
1d137a93
Commit
1d137a93
authored
2 years ago
by
Fabian Wachsmann
Browse files
Options
Downloads
Plain Diff
Resolved merge
parents
916fcbe8
e7dbaa22
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tzis/tzis.py
+19
-2
19 additions, 2 deletions
tzis/tzis.py
with
19 additions
and
2 deletions
tzis/tzis.py
+
19
−
2
View file @
1d137a93
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment