This commit is contained in:
François Boulogne 2025-06-20 16:02:55 +02:00
parent 10534c4867
commit cba2a2e1af
2649 changed files with 133 additions and 2 deletions

View file

@ -58,7 +58,6 @@ def thickness_from_minmax(wavelengths,
peaks.sort() peaks.sort()
k_values = np.arange(len(peaks)) k_values = np.arange(len(peaks))
n_over_lambda = refractive_index[peaks][::-1] / wavelengths[peaks][::-1]
if k_values.size < 2: if k_values.size < 2:
# Can't fit if less than two points. # Can't fit if less than two points.
@ -66,7 +65,10 @@ def thickness_from_minmax(wavelengths,
if isinstance(refractive_index, np.ndarray): if isinstance(refractive_index, np.ndarray):
refractive_index = refractive_index[peaks][::-1] #refractive_index = refractive_index[peaks][::-1]
n_over_lambda = refractive_index[peaks][::-1] / wavelengths[peaks][::-1]
else:
n_over_lambda = refractive_index / wavelengths[peaks][::-1]
if method.lower() == 'ransac': if method.lower() == 'ransac':
residual_threshold = 4e-5 residual_threshold = 4e-5

View file

@ -0,0 +1,72 @@
author: Emmanuelle Rio
refractive_index: 1.33
known_thicknesses:
012909.xy: 3975
013920.xy: 3952
014519.xy: 3863
016039.xy: 3795
018362.xy: 3646
019239.xy: 3602
020269.xy: 3302
020509.xy: 3212
020908.xy: 3284
021402.xy: 3184
022248.xy: 2896
022768.xy: 3042
023927.xy: 2986
024507.xy: 2842
025777.xy: 2784
026577.xy: 2729
027537.xy: 2461
028749.xy: 2545
029827.xy: 2426
030897.xy: 2400
032378.xy: 2252
033178.xy: 2325
034380.xy: 2052
035616.xy: 2032
036017.xy: 2109
036897.xy: 1937
037966.xy: 1899
038926.xy: 1908
039655.xy: 1802
040176.xy: 1810
040736.xy: 1831
042055.xy: 1701
042855.xy: 1604
043878.xy: 1652
044698.xy: 1642
045508.xy: 1621
046676.xy: 1512
047196.xy: 1485
047569.xy: 1519
048936.xy: 1435
049976.xy: 1375
050726.xy: 1350
051166.xy: 1319
052966.xy: 1234
054038.xy: 1214
055015.xy: 1173
056055.xy: 1163
057057.xy: 1086
058037.xy: 1053
059076.xy: 1072
059555.xy: 947
060434.xy: 1001
062254.xy: 847
063904.xy: 833
066474.xy: 591
067504.xy: 601
068443.xy: 564
069543.xy: 501
070033.xy: 457
071364.xy: 451
072523.xy: 425
073524.xy: 397
074503.xy: 404
075504.xy: 296
076542.xy: 295
077693.xy: 250
078653.xy: 194
079441.xy: 142
080561.xy: 118

Some files were not shown because too many files have changed in this diff Show more