From 7f91d8f4cc83a4c1fb6429d8b474032b254dd98b Mon Sep 17 00:00:00 2001 From: AdrianoDee Date: Mon, 9 Sep 2024 16:46:43 +0200 Subject: [PATCH] Update input model --- core/model/relval_step.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/model/relval_step.py b/core/model/relval_step.py index 752457f..fc0f4b1 100644 --- a/core/model/relval_step.py +++ b/core/model/relval_step.py @@ -66,6 +66,7 @@ class RelValStep(ModelBase): 'lumisection': {}, 'run': [], 'label': '', + 'events': '', }, # Keeping output of this task 'keep_output': True, @@ -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}'),