File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
qiita_db/metadata_template Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -809,12 +809,15 @@ def _get_predecessors(workflow, node):
809809
810810 # 2.
811811 pt_dt = self .data_type ()
812+ pt_artifact = self .artifact .artifact_type
812813 workflows = [wk for wk in qdb .software .DefaultWorkflow .iter ()
813- if pt_dt in wk .data_type ]
814+ if wk .artifact_type == pt_artifact and
815+ pt_dt in wk .data_type ]
814816 if not workflows :
815817 # raises option a.
816- raise ValueError (f'This preparation data type: "{ pt_dt } " does not '
817- 'have valid workflows' )
818+ msg = (f'This preparation data type: "{ pt_dt } " and/or artifact '
819+ f'type "{ pt_artifact } " does not have valid workflows' )
820+ raise ValueError (msg )
818821 missing_artifacts = dict ()
819822 for wk in workflows :
820823 missing_artifacts [wk ] = dict ()
You can’t perform that action at this time.
0 commit comments