File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -353,19 +353,7 @@ def create(
353353 "at least one filepath is required."
354354 )
355355
356- # Check that the combination of parameters is correct
357- counts = (
358- int (bool (parents or processing_parameters ))
359- + int (prep_template is not None )
360- + int (bool (analysis or data_type ))
361- )
362- if counts != 1 :
363- # More than one parameter has been provided
364- raise qdb .exceptions .QiitaDBArtifactCreationError (
365- "One and only one of parents, prep template or analysis must "
366- "be provided"
367- )
368- elif bool (parents ) != bool (processing_parameters ):
356+ if bool (parents ) != bool (processing_parameters ):
369357 # When provided, parents and processing parameters both should be
370358 # provided (this is effectively doing an XOR)
371359 raise qdb .exceptions .QiitaDBArtifactCreationError (
You can’t perform that action at this time.
0 commit comments