Skip to content

Commit 14b5a19

Browse files
committed
rm counts
1 parent a5ddd93 commit 14b5a19

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

qiita_db/artifact.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)