From 806075f6ef087b59f7f7f46ed457ff3c66375e3c Mon Sep 17 00:00:00 2001 From: Andi <andi.gerken@gmail.com> Date: Thu, 15 Dec 2022 18:57:02 +0100 Subject: [PATCH] Fixed minibug --- src/conversion_scripts/convert_from_csv.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/conversion_scripts/convert_from_csv.py b/src/conversion_scripts/convert_from_csv.py index 2a51a9e..d15e761 100644 --- a/src/conversion_scripts/convert_from_csv.py +++ b/src/conversion_scripts/convert_from_csv.py @@ -90,7 +90,6 @@ def handle_switches(poses, supress=None): poses[t - 1] = np.nan if supress is None or t not in supress: - distances = get_distances(poses[t], last_poses) switches = {} @@ -101,7 +100,6 @@ def handle_switches(poses, supress=None): if len(switches) > 0 or np.any( np.isnan(poses[t]) != np.isnan(poses[t - 1]) ): - switch_distances = np.array( [ get_distances(poses[t, con_perm], last_poses, diagonal=True) @@ -124,7 +122,6 @@ def handle_switches(poses, supress=None): if np.argmin(switch_distances_sum) != 0: if distances_switched * 1.5 < distances_normal: - print( f"Switch: {connections} distance sum\t{np.min(switch_distances_sum):.2f} vs\t{np.min(switch_distances_sum[0]):.2f}" ) @@ -147,7 +144,6 @@ def handle_file(file, args): if args.columns_per_entity is None: all_col_types_matching = [] for cols in range(1, len(pf.columns) // 2 + 1): - dt = np.array(pf.dtypes, dtype=str) # print(dt) @@ -262,8 +258,6 @@ def handle_file(file, args): if all_switches is not None: iof.attrs["switches"] = all_switches - iof.attrs["switches"] = all_switches - # assert np.all( # poses[np.logical_not(np.isnan(poses[:, 0])), 0] >= 0 # ), f"Error: x coordinate is not positive, {np.min(poses[:, 0])}" -- GitLab