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
aa070b81
Commit
aa070b81
authored
2 years ago
by
Fabian Wachsmann
Browse files
Options
Downloads
Patches
Plain Diff
Provenance for not-opened xdsets
parent
be2d3b0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tzis/provenance.py
+2
-1
2 additions, 1 deletion
tzis/provenance.py
tzis/tzis.py
+1
-1
1 addition, 1 deletion
tzis/tzis.py
with
3 additions
and
2 deletions
tzis/provenance.py
+
2
−
1
View file @
aa070b81
...
...
@@ -88,7 +88,8 @@ class Provenance(object):
attributes
=
{}
default_atts
=
[
"
chunkdim
"
,
"
startchunk
"
,
"
target_mb
"
,
"
open_mfdataset_kwargs
"
]
for
key
in
default_atts
:
attributes
[
TZIS
[
key
]]
=
pargs
[
key
]
if
key
in
pargs
.
keys
():
attributes
[
TZIS
[
key
]]
=
pargs
[
key
]
activity
.
add_attributes
(
attributes
)
def
gen_input
(
self
,
input_type
,
input_ids
):
...
...
This diff is collapsed.
Click to expand it.
tzis/tzis.py
+
1
−
1
View file @
aa070b81
...
...
@@ -755,7 +755,7 @@ class Tzis:
f
"
input_
{
first_attr
}
"
,
self
.
mf_dset
.
attrs
[
first_attr
]
)
elif
self
.
verbose
:
print
(
"
Cannot create input provenance
"
)
print
(
"
Cannot create input provenance
because no attrs given.
"
)
else
:
pargs
[
"
open_mfdataset_kwargs
"
]
=
json
.
dumps
(
OPEN_MFDATASET_KWARGS
)
...
...
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