Skip to content

Commit

Permalink
Update input model
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoDee committed Sep 9, 2024
1 parent 18d0a9e commit 7f91d8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/model/relval_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class RelValStep(ModelBase):
'lumisection': {},
'run': [],
'label': '',
'events': '',
},
# Keeping output of this task
'keep_output': True,
Expand All @@ -92,7 +93,9 @@ class RelValStep(ModelBase):
},
'_input': {
'dataset': lambda ds: not ds or ModelBase.lambda_check('dataset')(ds),
'label': lambda l: not l or ModelBase.lambda_check('label')(l)
'label': lambda l: not l or ModelBase.lambda_check('label')(l),
'events': lambda m: m == '' or int(m) > 0,
},
},
'lumis_per_job': lambda l: l == '' or int(l) > 0,
'name': lambda n: ModelBase.matches_regex(n, '[a-zA-Z0-9_\\-]{1,150}'),
Expand Down

0 comments on commit 7f91d8f

Please sign in to comment.