45 """Get executor step event counts from executor config."""
47 argdict = executor.conf.argdict
48 if 'splitConfig' not in argdict:
51 maxEvents = argdict[
'maxEvents'].returnMyValue(exe=executor)
52 skipEvents = argdict[
'skipEvents'].returnMyValue(exe=executor)
53 splitConfig = argdict[
'splitConfig'].returnMyValue(exe=executor)
59 if sum(fractions) != 1:
60 raise ValueError(
'Event fractions should total to 1!')
63 for i
in range(len(fractions) - 1):
64 counts.append(
round(maxEvents * fractions[i]))
65 counts.append(maxEvents -
sum(counts))
68 for i
in range(len(fractions)):
69 sums.append(skipEvents +
sum(counts[:i]))