a lot of changes
diff --git a/wally/suits/io/agent.py b/wally/suits/io/agent.py
index f6c3308..57ba229 100644
--- a/wally/suits/io/agent.py
+++ b/wally/suits/io/agent.py
@@ -293,15 +293,24 @@
def slice_config(sec_iter, runcycle=None, max_jobs=1000,
- soft_runcycle=None):
+ soft_runcycle=None, split_on_names=False):
jcount = 0
runtime = 0
curr_slice = []
prev_name = None
for pos, sec in enumerate(sec_iter):
- if soft_runcycle is not None and prev_name != sec.name:
- if runtime > soft_runcycle:
+
+ if prev_name is not None:
+ split_here = False
+
+ if soft_runcycle is not None and prev_name != sec.name:
+ split_here = (runtime > soft_runcycle)
+
+ if split_on_names and prev_name != sec.name:
+ split_here = True
+
+ if split_here:
yield curr_slice
curr_slice = []
runtime = 0