The main problem of this function was in parsing filenames. To overcome potential ambiguities I moved all process of sample name extraction from the filename to check_sample_name. Now it returns the name of the sample that should be contained in the n_evt dictionary from JSON file. If not, then it returns 0 and the code throws a warning. Also there appeared a functionality to veto datasets even if they were included in --samples option.
The main problem of this function was in parsing filenames. To overcome potential ambiguities I moved all process of sample name extraction from the filename to check_sample_name. Now it returns the name of the sample that should be contained in the n_evt dictionary from JSON file. If not, then it returns 0 and the code throws a warning. Also there appeared a functionality to veto datasets even if they were included in --samples option.