From 009ea3393f3c28877884558ffe6690a5eb91aaa8 Mon Sep 17 00:00:00 2001 From: Wallace Abreu <36208882+abreuwallace@users.noreply.github.com> Date: Sun, 26 May 2024 23:54:56 -0300 Subject: [PATCH 1/3] radius units from m to cm --- spatialscaper/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spatialscaper/utils.py b/spatialscaper/utils.py index 33d0b3d..bed25a4 100644 --- a/spatialscaper/utils.py +++ b/spatialscaper/utils.py @@ -140,6 +140,7 @@ def get_labels(ir_times, time_grid, IR_XYZs, class_id=None, source_id=0, polar=T if polar: coords = cartesian_to_polar(IR_XYZ_interp)[1:] coords[:, :2] = np.round(coords[:, :2], 3) + coords[-1] = round(100 * coords[-1]) else: coords = IR_XYZ_interp[1:] labels = np.hstack( From f1ea78d15698f9308118f867e39e30d9be09067e Mon Sep 17 00:00:00 2001 From: Wallace Abreu <36208882+abreuwallace@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:56:10 -0300 Subject: [PATCH 2/3] correcting m to cm --- spatialscaper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spatialscaper/utils.py b/spatialscaper/utils.py index bed25a4..b74a24f 100644 --- a/spatialscaper/utils.py +++ b/spatialscaper/utils.py @@ -140,7 +140,7 @@ def get_labels(ir_times, time_grid, IR_XYZs, class_id=None, source_id=0, polar=T if polar: coords = cartesian_to_polar(IR_XYZ_interp)[1:] coords[:, :2] = np.round(coords[:, :2], 3) - coords[-1] = round(100 * coords[-1]) + coords[:, -1] = int(np.round(100 * coords[:, -1])) else: coords = IR_XYZ_interp[1:] labels = np.hstack( From 3674de3f566b999cc8ae690c3f3eee6feca87c5c Mon Sep 17 00:00:00 2001 From: Wallace Abreu <36208882+abreuwallace@users.noreply.github.com> Date: Sun, 9 Jun 2024 17:58:57 -0300 Subject: [PATCH 3/3] correcting m to cm --- spatialscaper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spatialscaper/utils.py b/spatialscaper/utils.py index b74a24f..f08be85 100644 --- a/spatialscaper/utils.py +++ b/spatialscaper/utils.py @@ -140,7 +140,7 @@ def get_labels(ir_times, time_grid, IR_XYZs, class_id=None, source_id=0, polar=T if polar: coords = cartesian_to_polar(IR_XYZ_interp)[1:] coords[:, :2] = np.round(coords[:, :2], 3) - coords[:, -1] = int(np.round(100 * coords[:, -1])) + coords[:, -1] = np.round(100 * coords[:, -1]) else: coords = IR_XYZ_interp[1:] labels = np.hstack(