From 16ce79a99afa009dd234e83bc2e1bf6f8fc9efc4 Mon Sep 17 00:00:00 2001 From: philpMartin Date: Sat, 4 Jul 2020 17:05:52 +0200 Subject: [PATCH] Remove Redundant Op --- main_package/classes/parameters_estimator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main_package/classes/parameters_estimator.py b/main_package/classes/parameters_estimator.py index b54e503..c687a05 100644 --- a/main_package/classes/parameters_estimator.py +++ b/main_package/classes/parameters_estimator.py @@ -43,9 +43,12 @@ class ParametersEstimator: #changed_node = which_node time = self.compute_time_delta(trajectory[indx], trajectory[indx + 1]) + which_element = transition[1][0] + self.amalgamated_cims_struct.update_state_residence_time_for_matrix(which_node, which_matrix, which_element, + time) for node_indx in range(0, 3): - #if node != changed_node: + if node_indx != transition[0]: # print(node) which_node = node_indx which_matrix = self.which_matrix_to_update(row, node_indx)