Skip to content

Commit

Permalink
allow inputDataset and userInputFiles at same time. Fix #5308 (#5313)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored May 13, 2024
1 parent 26e1b3e commit 017373d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/python/CRABClient/JobType/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,6 @@ def validateConfig(self, config):
if not valid:
return valid, reason

## Make sure only one of the two parameters Data.inputDataset and Data.userInputFiles
## was specified.
if getattr(config.Data, 'inputDataset', None) and getattr(config.Data, 'userInputFiles', None):
msg = "Invalid CRAB configuration: Analysis job type accepts either an input dataset or a set of user input files to run on, but not both."
msg += "\nSuggestion: Specify only one of the two parameters, Data.inputDataset or Data.userInputFiles, but not both."
return False, msg

## Make sure at least one of the two parameters Data.inputDataset and Data.userInputFiles
## was specified.
if not getattr(config.Data, 'inputDataset', None) and not getattr(config.Data, 'userInputFiles', None):
Expand Down

0 comments on commit 017373d

Please sign in to comment.