diff options
author | Håkon Solbjørg <hakon@solbj.org> | 2023-02-23 19:04:17 +0100 |
---|---|---|
committer | Håkon Solbjørg <hakon@solbj.org> | 2023-02-23 19:04:17 +0100 |
commit | ee9d93f1d31d259c0e2502894051c03eea3f553a (patch) | |
tree | 894cc6178fcdea606b9de7d131ede64d186f0ce4 | |
parent | b8c225d083f24a3e078b6922502f4d23aa71106e (diff) |
fix(koblingsplan): Strip whitespace from interface names
-rw-r--r-- | tools/koblingsplan/script.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/koblingsplan/script.py b/tools/koblingsplan/script.py index 3c4fa4b..7fa12b6 100644 --- a/tools/koblingsplan/script.py +++ b/tools/koblingsplan/script.py @@ -34,12 +34,12 @@ with open('tg23-koblingsplan.csv', newline='') as csvfile: current_iteration['a_type'] = row[0] if len(row[0].strip()) > 0 else prev_iteration['a_type'] current_iteration['a_model'] = row[1] if len(row[1].strip()) > 0 else prev_iteration['a_model'] current_iteration['a_node'] = row[2] if len(row[2].strip()) > 0 else prev_iteration['a_node'] - current_iteration['a_interface'] = row[3] if len(row[3].strip()) > 0 else prev_iteration['a_interface'] + current_iteration['a_interface'] = row[3].strip() if len(row[3].strip()) > 0 else prev_iteration['a_interface'] current_iteration['a_ae'] = row[4] if len(row[4].strip()) > 0 else prev_iteration['a_ae'] current_iteration['b_type'] = row[5] if len(row[5].strip()) > 0 else prev_iteration['b_type'] current_iteration['b_model'] = row[6] if len(row[6].strip()) > 0 else prev_iteration['b_model'] current_iteration['b_node'] = row[7] if len(row[7].strip()) > 0 else prev_iteration['b_node'] - current_iteration['b_interface'] = row[8] if len(row[8].strip()) > 0 else prev_iteration['b_interface'] + current_iteration['b_interface'] = row[8].strip() if len(row[8].strip()) > 0 else prev_iteration['b_interface'] current_iteration['b_ae'] = row[9] if len(row[9].strip()) > 0 else prev_iteration['b_ae'] current_iteration['cable_type'] = row[10] if len(row[10].strip()) > 0 else prev_iteration['cable_type'] dataset.append(current_iteration) |