Selaa lähdekoodia

revert normalize theta

Tuan Nguyen 1 vuosi sitten
vanhempi
sitoutus
e0d657fa3e
1 muutettua tiedostoa jossa 0 lisäystä ja 13 poistoa
  1. 0 13
      app.py

+ 0 - 13
app.py

@@ -103,19 +103,6 @@ def parse_theta_rho_file(file_path):
         print(f"Error reading file: {e}")
         print(f"Error reading file: {e}")
         return coordinates
         return coordinates
 
 
-    # ---- Normalization Step ----
-    if coordinates:
-        # Take the first coordinate's theta
-        first_theta = coordinates[0][0]
-
-        # Shift all thetas so the first coordinate has theta=0
-        normalized = []
-        for (theta, rho) in coordinates:
-            normalized.append((theta - first_theta, rho))
-
-        # Replace original list with normalized data
-        coordinates = normalized
-
     return coordinates
     return coordinates
 
 
 def send_coordinate_batch(ser, coordinates):
 def send_coordinate_batch(ser, coordinates):