Compare commits

..

1 commit

Author SHA1 Message Date
c8b71bae6a Hace shift con los datos del archivo zeroCurrent.txt 2026-05-06 10:35:48 +02:00
3 changed files with 150 additions and 0 deletions

View file

View file

@ -151,6 +151,7 @@ def procesar_archivo_depurado(filepath: Path,
I_mA = -I_mA
I_A = I_mA / 1000.0
# Construimos un DataFrame auxiliar ordenado por V
df2 = pd.DataFrame({"V": V, "I_mA": I_mA, "I_A": I_A})
df2 = df2.sort_values("V").reset_index(drop=True)
@ -1204,6 +1205,13 @@ def leer_IV_numeric(filepath: Path):
V = df["Voltage(V)"].to_numpy(dtype=float)
I_mA = (-df["Current(mA)"]).to_numpy(dtype=float) # inviertes signo aquí
# Realiza shift a la corriente con el archivo de calibracion dado
df0 = pd.read_csv('zeroCurrent.txt')
I_0_mA = np.average(df0["Current(mA)"].to_numpy())
print(f"Shift Corriente (mA)={I_0_mA}")
I_mA -= I_0_mA
I_A = I_mA / 1000.0
# Quitar NaN/inf

142
zeroCurrent.txt Executable file
View file

@ -0,0 +1,142 @@
Voltage(V),Current(mA)
-2.000000E+1,1.257860E-3
-1.900000E+1,1.248952E-3
-1.800000E+1,1.248952E-3
-1.700000E+1,1.253035E-3
-1.600000E+1,1.251921E-3
-1.500000E+1,1.263055E-3
-1.400000E+1,1.253034E-3
-1.300000E+1,1.255632E-3
-1.200000E+1,1.229280E-3
-1.100000E+1,1.247096E-3
-1.000000E+1,1.258230E-3
-9.000000E+0,1.237445E-3
-8.000000E+0,1.242642E-3
-7.000000E+0,1.261570E-3
-6.000000E+0,1.253776E-3
-5.000000E+0,1.251549E-3
-4.000000E+0,1.239672E-3
-3.000000E+0,1.260828E-3
-2.000000E+0,1.253034E-3
-1.000000E+0,1.246353E-3
0.000000E+0,1.250065E-3
1.000000E+0,1.237816E-3
2.000000E+0,1.255260E-3
3.000000E+0,1.275303E-3
4.000000E+0,1.245610E-3
5.000000E+0,1.265281E-3
6.000000E+0,1.259343E-3
7.000000E+0,1.253033E-3
8.000000E+0,1.258972E-3
9.000000E+0,1.254889E-3
1.000000E+1,1.259714E-3
1.100000E+1,1.254889E-3
1.200000E+1,1.256745E-3
1.300000E+1,1.253404E-3
1.400000E+1,1.270477E-3
1.500000E+1,1.257487E-3
1.600000E+1,1.256002E-3
1.700000E+1,1.267137E-3
1.800000E+1,1.267508E-3
1.900000E+1,1.266395E-3
2.000000E+1,1.266395E-3
2.100000E+1,1.262312E-3
2.200000E+1,1.257116E-3
2.300000E+1,1.280498E-3
2.400000E+1,1.260085E-3
2.500000E+1,1.254518E-3
2.600000E+1,1.288293E-3
2.700000E+1,1.251177E-3
2.800000E+1,1.284210E-3
2.900000E+1,1.286066E-3
3.000000E+1,1.265281E-3
3.100000E+1,1.266766E-3
3.200000E+1,1.263797E-3
3.300000E+1,1.270106E-3
3.400000E+1,1.257116E-3
3.500000E+1,1.273447E-3
3.600000E+1,1.260456E-3
3.700000E+1,1.261941E-3
3.800000E+1,1.265652E-3
3.900000E+1,1.257116E-3
4.000000E+1,1.274931E-3
4.100000E+1,1.263425E-3
4.200000E+1,1.266023E-3
4.300000E+1,1.269364E-3
4.400000E+1,1.266765E-3
4.500000E+1,1.252290E-3
4.600000E+1,1.252662E-3
4.700000E+1,1.270106E-3
4.800000E+1,1.266023E-3
4.900000E+1,1.269735E-3
5.000000E+1,1.282725E-3
5.100000E+1,1.270477E-3
5.200000E+1,1.270848E-3
5.300000E+1,1.275673E-3
5.400000E+1,1.285323E-3
5.500000E+1,1.270477E-3
5.600000E+1,1.270848E-3
5.700000E+1,1.277529E-3
5.800000E+1,1.265652E-3
5.900000E+1,1.270848E-3
6.000000E+1,1.262683E-3
6.100000E+1,1.267508E-3
6.200000E+1,1.279385E-3
6.300000E+1,1.267508E-3
6.400000E+1,1.269364E-3
6.500000E+1,1.271590E-3
6.600000E+1,1.276044E-3
6.700000E+1,1.277529E-3
6.800000E+1,1.282725E-3
6.900000E+1,1.273817E-3
7.000000E+1,1.265280E-3
7.100000E+1,1.297942E-3
7.200000E+1,1.267136E-3
7.300000E+1,1.283467E-3
7.400000E+1,1.299798E-3
7.500000E+1,1.271219E-3
7.600000E+1,1.284209E-3
7.700000E+1,1.296458E-3
7.800000E+1,1.273446E-3
7.900000E+1,1.262683E-3
8.000000E+1,1.281983E-3
8.100000E+1,1.279013E-3
8.200000E+1,1.274559E-3
8.300000E+1,1.293860E-3
8.400000E+1,1.269735E-3
8.500000E+1,1.302767E-3
8.600000E+1,1.300540E-3
8.700000E+1,1.288663E-3
8.800000E+1,1.293860E-3
8.900000E+1,1.301283E-3
9.000000E+1,1.276415E-3
9.100000E+1,1.283467E-3
9.200000E+1,1.289035E-3
9.300000E+1,1.285694E-3
9.400000E+1,1.277529E-3
9.500000E+1,1.275673E-3
9.600000E+1,1.291633E-3
9.700000E+1,1.294231E-3
9.800000E+1,1.276787E-3
9.900000E+1,1.270106E-3
1.000000E+2,1.286437E-3
1.010000E+2,1.284581E-3
1.020000E+2,1.274931E-3
1.030000E+2,1.275302E-3
1.040000E+2,1.298685E-3
1.050000E+2,1.298685E-3
1.060000E+2,1.284953E-3
1.070000E+2,1.292376E-3
1.080000E+2,1.297943E-3
1.090000E+2,1.285324E-3
1.100000E+2,1.287922E-3
1.110000E+2,1.288664E-3
1.120000E+2,1.283468E-3
1.130000E+2,1.307222E-3
1.140000E+2,1.290891E-3
1.150000E+2,1.261570E-3
1.160000E+2,1.306480E-3
1.170000E+2,1.280870E-3
1.180000E+2,1.292005E-3
1.190000E+2,1.307222E-3
1.200000E+2,1.309449E-3