diff options
Diffstat (limited to 'lib/lennart/DataProcessor.py')
-rw-r--r-- | lib/lennart/DataProcessor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py index 23e6766..7c161ab 100644 --- a/lib/lennart/DataProcessor.py +++ b/lib/lennart/DataProcessor.py @@ -291,8 +291,10 @@ class DataProcessor: delta_drift = np.abs(prev_drift - new_drift) csr_weights.append(delta_drift) - prev_nodes = new_nodes - prev_drifts = new_drifts + # a transition's candidate list may be empty + if len(new_nodes): + prev_nodes = new_nodes + prev_drifts = new_drifts # add an end node for shortest path search # (end node == final sync, so drift == 0) |