From 5d2f12c229bb9d12407ee6ae518b84adb8b80ad0 Mon Sep 17 00:00:00 2001 From: Shayan Date: Sat, 30 Mar 2024 15:25:29 -0600 Subject: [PATCH] fixed bug in assert statement in Tensorfield #581 --- MinkowskiEngine/MinkowskiTensorField.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinkowskiEngine/MinkowskiTensorField.py b/MinkowskiEngine/MinkowskiTensorField.py index 6120904f..d47b09ba 100644 --- a/MinkowskiEngine/MinkowskiTensorField.py +++ b/MinkowskiEngine/MinkowskiTensorField.py @@ -315,7 +315,7 @@ def sparse( ) N_rows = self._manager.size(coordinate_map_key) - assert N_rows > 0, f"Invalid out coordinate map key. Found {N_row} elements." + assert N_rows > 0, f"Invalid out coordinate map key. Found {N_rows} elements." if len(inverse_mapping) == 0: # When the input has the same shape as the output