File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1227,10 +1227,6 @@ def release(self):
12271227 if "analysis" in pvals :
12281228 cmd_out_id = None
12291229 analysis = qdb .analysis .Analysis (pvals ["analysis" ])
1230- if "artifacts" in pvals :
1231- parents = [
1232- qdb .artifact .Artifact (aid ) for aid in pvals ["artifacs" ]
1233- ]
12341230 else :
12351231 cmd_out_id = provenance ["cmd_out_id" ]
12361232 analysis = None
@@ -1241,8 +1237,15 @@ def release(self):
12411237 params = job .parameters
12421238 cmd_out_id = provenance ["cmd_out_id" ]
12431239 name = provenance ["name" ]
1244- analysis = None
12451240 data_type = None
1241+ if "analysis" in pvals :
1242+ analysis = qdb .analysis .Analysis (pvals ["analysis" ])
1243+ if "artifacts" in pvals :
1244+ parents = [
1245+ qdb .artifact .Artifact (aid ) for aid in pvals ["artifacs" ]
1246+ ]
1247+ else :
1248+ analysis = None
12461249
12471250 # Create the artifact
12481251 atype = a_info ["artifact_type" ]
You can’t perform that action at this time.
0 commit comments