Aggiunta una quasi totale analisi dei dati dinamici della molla 1. Ore di lavoro meritano il salvataggio.

This commit is contained in:
2026-04-02 17:20:16 +02:00
parent 8c77baa938
commit 64e01df017
12 changed files with 2573 additions and 90 deletions

View File

@@ -0,0 +1,5 @@
m1,a1,ua1,w1,uw1,c1,uc1,a2,ua2,w2,uw2,c2,uc2
108.61,9.21,0.029,14.2459,0.0008,268.151,0.02,10.69,0.04,14.2434,0.0009,268.326,0.026
128.636666666667,10.037,0.025,13.1939,0.0007,259.605,0.018,9.744,0.027,13.1913,0.0009,259.745,0.02
148.38,9.93,0.03,12.3469,0.0007,251.525,0.021,11.41,0.03,12.3461,0.0006,251.542,0.023
168.53,11.34,0.03,11.6345,0.0005,243.211,0.021,11.5,0.03,11.6344,0.0006,243.13,0.021
1 m1 a1 ua1 w1 uw1 c1 uc1 a2 ua2 w2 uw2 c2 uc2
2 108.61 9.21 0.029 14.2459 0.0008 268.151 0.02 10.69 0.04 14.2434 0.0009 268.326 0.026
3 128.636666666667 10.037 0.025 13.1939 0.0007 259.605 0.018 9.744 0.027 13.1913 0.0009 259.745 0.02
4 148.38 9.93 0.03 12.3469 0.0007 251.525 0.021 11.41 0.03 12.3461 0.0006 251.542 0.023
5 168.53 11.34 0.03 11.6345 0.0005 243.211 0.021 11.5 0.03 11.6344 0.0006 243.13 0.021

View File

@@ -0,0 +1,6 @@
m1,a1,ua1,w1,uw1,c1,uc1,t1,a2,ua2,w2,uw2,c2,uc2,t2,a3,ua3,w3,uw3,c3,uc3,t3,a4,ua4,w4,uw4,c4,uc4,t4
49.25,9.7171,0.016,7.6565,0.0004,484.455,0.011,15.62,8.911,0.015,7.6569,0.0004,484.516,0.011,15.58,10.446,0.027,7.6603,0.0005,485.082,0.019,15.76,8.377,0.016,7.6582,0.0004,484.752,0.011,15.87
69.28,9.860,0.016,6.55968,0.00029,423.352,0.011,18.31,10.390,0.012,6.55891,0.00022,423.154,0.009,18.27,10.491,0.013,6.56002,0.00024,423.697,0.01,18.34,10.968,0.019,6.56,0.0003,423.465,0.014,18.16
88.97,11.584,0.014,5.84417,0.0002,363.229,0.01,20.27,10.1763,0.017,5.84585,0.00028,363.354,0.012,20.44,12.044,0.018,5.845,0.00026,363.183,0.013,20.54,11.224,0.016,5.84513,0.00025,363.233,0.011,20.49
108.61,11.542,0.026,5.3278,0.0003,303.5502,0.019,22.49,8.424,0.017,5.3282,0.0003,303.581,0.012,22.27,10.501,0.022,5.3296,0.0003,303.842,0.016,22.55,9.959,0.014,5.32822,0.0002,303.445,0.01,22.15
128.64,11.574,0.020,4.92663,0.00023,242.962,0.014,24.33,11.592,0.023,4.92537,0.00029,242.876,0.017,24.38,10.264,0.023,4.9243,0.0003,242.789,0.017,25.09,9.118,0.021,4.9261,0.0003,243.115,0.015,24.26
1 m1 a1 ua1 w1 uw1 c1 uc1 t1 a2 ua2 w2 uw2 c2 uc2 t2 a3 ua3 w3 uw3 c3 uc3 t3 a4 ua4 w4 uw4 c4 uc4 t4
2 49.25 9.7171 0.016 7.6565 0.0004 484.455 0.011 15.62 8.911 0.015 7.6569 0.0004 484.516 0.011 15.58 10.446 0.027 7.6603 0.0005 485.082 0.019 15.76 8.377 0.016 7.6582 0.0004 484.752 0.011 15.87
3 69.28 9.860 0.016 6.55968 0.00029 423.352 0.011 18.31 10.390 0.012 6.55891 0.00022 423.154 0.009 18.27 10.491 0.013 6.56002 0.00024 423.697 0.01 18.34 10.968 0.019 6.56 0.0003 423.465 0.014 18.16
4 88.97 11.584 0.014 5.84417 0.0002 363.229 0.01 20.27 10.1763 0.017 5.84585 0.00028 363.354 0.012 20.44 12.044 0.018 5.845 0.00026 363.183 0.013 20.54 11.224 0.016 5.84513 0.00025 363.233 0.011 20.49
5 108.61 11.542 0.026 5.3278 0.0003 303.5502 0.019 22.49 8.424 0.017 5.3282 0.0003 303.581 0.012 22.27 10.501 0.022 5.3296 0.0003 303.842 0.016 22.55 9.959 0.014 5.32822 0.0002 303.445 0.01 22.15
6 128.64 11.574 0.020 4.92663 0.00023 242.962 0.014 24.33 11.592 0.023 4.92537 0.00029 242.876 0.017 24.38 10.264 0.023 4.9243 0.0003 242.789 0.017 25.09 9.118 0.021 4.9261 0.0003 243.115 0.015 24.26

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

36
molla/dinamica/ripara.py Normal file
View File

@@ -0,0 +1,36 @@
def replace_every_second_comma(text, replacement=","):
result = []
comma_count = 0
for char in text:
if char == ",":
comma_count += 1
if comma_count % 2 == 0:
result.append(replacement)
continue
else:
result.append(".")
continue
result.append(char)
return "".join(result)
# Esempio d'uso
csv_line1 = "49,25,9,7171,0,016,7,6565,0,0004,484,455,0,011,15,62,8,911,0,015,7,6569,0,0004,484,516,0,011,15,58,10,446,0,027,7,6603,0,0005,485,082,0,019,15,76,8,377,0,016,7,6582,0,0004,484,752,0,011,15,87"
csv_line2 = "69,28,9,860,0,016,6,55968,0,00029,423,352,0,011,18,31,10,390,0,012,6,55891,0,00022,423,154,0,009,18,27,10,491,0,013,6,56002,0,00024,423,697,0,01,18,34,10,968,0,019,6,56,0,0003,423,465,0,014,18,16"
csv_line3 = "88,97,11,584,0,014,5,84417,0,0002,363,229,0,01,20,27,10,1763,0,017,5,84585,0,00028,363,354,0,012,20,44,12,044,0,018,5,845,0,00026,363,183,0,013,20,54,11,224,0,016,5,84513,0,00025,363,233,0,011,20,49"
csv_line4 = "108,61,11,542,0,026,5,3278,0,0003,303,5502,0,019,22,49,8,424,0,017,5,3282,0,0003,303,581,0,012,22,27,10,501,0,022,5,3296,0,0003,303,842,0,016,22,55,9,959,0,014,5,32822,0,0002,303,445,0,01,22,15"
csv_line5 = "128,64,11,574,0,020,4,92663,0,00023,242,962,0,014,24,33,11,592,0,023,4,92537,0,00029,242,876,0,017,24,38,10,264,0,023,4,9243,0,0003,242,789,0,017,25,09,9,118,0,021,4,9261,0,0003,243,115,0,015,24,26"
csv_lines = [csv_line1, csv_line2, csv_line3, csv_line4, csv_line5]
for csv_line in csv_lines:
fixed_line = replace_every_second_comma(csv_line)
print(fixed_line)
with open("miofile.txt", "a", encoding="utf-8") as f:
f.write(fixed_line)
f.write("\n")