CTU-IIG / thermobench

Tools and benchmarks for measuring thermal properties of SoCs running Linux
GNU General Public License v2.0
3 stars 2 forks source link

InexactError: Int64 when interpolating #41

Closed benedond closed 3 years ago

benedond commented 3 years ago

Sequence Thermobench.read + interpolate leads to InexactError when processing file produced by Thermobench.

d = Thermobench.read("file.csv")
df = Thermobench.interpolate(d)

File.csv

# Started at: 2020-12-28 17:34:07 +0000, Version: v0.1-114-gb15b5bb, Generated by: thermobench --verbose --fan-cmd=fan --fan-on=0.5 --time=60 --wait=30 --wait-timeout=240 --sensors_file=../../thermobench/src/sensors.imx8 --cpu-usage --column=CPU0_work_done --column=CPU1_work_done --column=CPU2_work_done --column=CPU3_work_done --column=CPU4_work_done --column=CPU5_work_done --column=work_done '--sensor=/run/power Power mW' --output=./results//tacle_bench_app_lift-A53-4.yaml.csv -- demos-sched -c instances/tacle_bench_app_lift-A53-4.yaml
time/ms,CPU_0_temp/m°C,CPU_1_temp/m°C,GPU_0_temp/m°C,GPU_1_temp/m°C,DRC_temp/m°C,PMIC_temp/m°C,Cortex_A53_0_freq/Hz,Cortex_A53_1_freq/Hz,Cortex_A53_2_freq/Hz,Cortex_A53_3_freq/Hz,Cortex_A72_0_freq/Hz,Cortex_A72_1_freq/Hz,ambient/°C,cam_cpu,cam_mem,CPU0_work_done,CPU1_work_done,CPU2_work_done,CPU3_work_done,CPU4_work_done,CPU5_work_done,work_done,Power/mW,CPU0_load/%,CPU1_load/%,CPU2_load/%,CPU3_load/%,CPU4_load/%,CPU5_load/%
1.11139,28900,29100,29300,28100,28300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,1.056e+06,1.056e+06,,,,,,,,,,,5.568e+06,0,0,50,0,66.6667,0
64.1951,,,,,,,,,,,,,,,,,,,0,,,,,,,,,,
64.2365,,,,,,,,,,,,,,,,,0,,,,,,,,,,,,
65.3378,,,,,,,,,,,,,,,,,,0,,,,,,,,,,,
68.0878,,,,,,,,,,,,,,,,0,,,,,,,,,,,,,
139.794,,,,,,,,,,,,,,37.83,37.96,,,,,,,,,,,,,,
942.665,,,,,,,,,,,,,,,,,,,3000,,,,,,,,,,
943.323,,,,,,,,,,,,,,,,,3000,,,,,,,,,,,,
946.006,,,,,,,,,,,,,,,,,,3000,,,,,,,,,,,
973.107,,,,,,,,,,,,,,,,3000,,,,,,,,,,,,,
994.284,29700,29500,29300,28300,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3768e+06,95.9596,95.8763,95.9184,94.898,12.2449,3.06122
1820.74,,,,,,,,,,,,,,,,,,,6000,,,,,,,,,,
1821.07,,,,,,,,,,,,,,,,,6000,,,,,,,,,,,,
1823.72,,,,,,,,,,,,,,,,,,6000,,,,,,,,,,,
1857.39,,,,,,,,,,,,,,,,6000,,,,,,,,,,,,,
1994.76,29500,29300,29700,28100,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1852e+06,100,100,100,100,7,3
2698.93,,,,,,,,,,,,,,,,,9000,,,,,,,,,,,,
2699.45,,,,,,,,,,,,,,,,,,,9000,,,,,,,,,,
2701.32,,,,,,,,,,,,,,,,,,9000,,,,,,,,,,,
2741.7,,,,,,,,,,,,,,,,9000,,,,,,,,,,,,,
2994.03,29300,29300,29700,27900,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1546e+06,100,100,100,100,5,5.94059
3576.71,,,,,,,,,,,,,,,,,12000,,,,,,,,,,,,
3577.12,,,,,,,,,,,,,,,,,,,12000,,,,,,,,,,
3578.94,,,,,,,,,,,,,,,,,,12000,,,,,,,,,,,
3626.05,,,,,,,,,,,,,,,,12000,,,,,,,,,,,,,
3994.29,29500,29700,29700,28300,28700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.132e+06,100,100,100,100,5.15464,1.03093
4439.18,,,,,,,,,,,,,23.86,,,,,,,,,,,,,,,,
4454.4,,,,,,,,,,,,,,,,,15000,,,,,,,,,,,,
4454.89,,,,,,,,,,,,,,,,,,,15000,,,,,,,,,,
4456.47,,,,,,,,,,,,,,,,,,15000,,,,,,,,,,,
4510.95,,,,,,,,,,,,,,,,15000,,,,,,,,,,,,,
4994.6,29900,29700,29700,28100,28300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.4692e+06,100,100,100,100,7.92079,2.0202
5332.36,,,,,,,,,,,,,,,,,18000,,,,,,,,,,,,
5332.81,,,,,,,,,,,,,,,,,,,18000,,,,,,,,,,
5334.49,,,,,,,,,,,,,,,,,,18000,,,,,,,,,,,
5397.06,,,,,,,,,,,,,,,,18000,,,,,,,,,,,,,
5993.76,29700,29500,29700,28300,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3372e+06,100,100,100,100,6,6
6210.27,,,,,,,,,,,,,,,,,21000,,,,,,,,,,,,
6210.59,,,,,,,,,,,,,,,,,,,21000,,,,,,,,,,
6212.33,,,,,,,,,,,,,,,,,,21000,,,,,,,,,,,
6282.02,,,,,,,,,,,,,,,,21000,,,,,,,,,,,,,
6993.83,29500,29700,29700,28500,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.188e+06,100,100,100,100,2.04082,7
7088.35,,,,,,,,,,,,,,,,,,,24000,,,,,,,,,,
7088.54,,,,,,,,,,,,,,,,,24000,,,,,,,,,,,,
7090.1,,,,,,,,,,,,,,,,,,24000,,,,,,,,,,,
7167.01,,,,,,,,,,,,,,,,24000,,,,,,,,,,,,,
7966.24,,,,,,,,,,,,,,,,,,,27000,,,,,,,,,,
7966.36,,,,,,,,,,,,,,,,,27000,,,,,,,,,,,,
7967.84,,,,,,,,,,,,,,,,,,27000,,,,,,,,,,,
7994.01,29700,29700,29900,28500,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1878e+06,100,100,100,100,2.0202,6.06061
8051.93,,,,,,,,,,,,,,,,27000,,,,,,,,,,,,,
8844.29,,,,,,,,,,,,,,,,,30000,,30000,,,,,,,,,,
8845.58,,,,,,,,,,,,,,,,,,30000,,,,,,,,,,,
8937.31,,,,,,,,,,,,,,,,30000,,,,,,,,,,,,,
8994.62,29700,29700,29900,28500,28700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3514e+06,100,100,100,100,4,7.14286
9722.15,,,,,,,,,,,,,,,,,33000,,,,,,,,,,,,
9722.19,,,,,,,,,,,,,,,,,,,33000,,,,,,,,,,
9723.39,,,,,,,,,,,,,,,,,,33000,,,,,,,,,,,
9822.62,,,,,,,,,,,,,,,,33000,,,,,,,,,,,,,
9993.89,29700,29500,29700,28300,28500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.186e+06,100,100,100,100,4.0404,5.05051
10266.5,,,,,,,,,,,,,,37.76,37.96,,,,,,,,,,,,,,
10600.2,,,,,,,,,,,,,,,,,36000,,36000,,,,,,,,,,
10601.3,,,,,,,,,,,,,,,,,,36000,,,,,,,,,,,
10710.4,,,,,,,,,,,,,,,,36000,,,,,,,,,,,,,
10993.8,30100,29900,30100,28500,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1774e+06,100,100,100,100,8.08081,5.10204
11478,,,,,,,,,,,,,,,,,39000,,39000,,,,,,,,,,
11479.2,,,,,,,,,,,,,,,,,,39000,,,,,,,,,,,
11595.3,,,,,,,,,,,,,,,,39000,,,,,,,,,,,,,
11993.8,29700,29700,29900,28300,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1014e+06,100,100,100,100,8.82353,3.0303
12355.9,,,,,,,,,,,,,,,,,42000,,,,,,,,,,,,
12356,,,,,,,,,,,,,,,,,,,42000,,,,,,,,,,
12356.8,,,,,,,,,,,,,,,,,,42000,,,,,,,,,,,
12480.9,,,,,,,,,,,,,,,,42000,,,,,,,,,,,,,
12994.3,29900,29900,30100,28500,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.302e+06,100,100,100,100,3.125,3.06122
13233.9,,,,,,,,,,,,,,,,,45000,,45000,,,,,,,,,,
13234.6,,,,,,,,,,,,,,,,,,45000,,,,,,,,,,,
13365.8,,,,,,,,,,,,,,,,45000,,,,,,,,,,,,,
13994.3,30100,30100,30100,28500,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3328e+06,100,100,100,100,8,1.02041
14111.6,,,,,,,,,,,,,,,,,,,48000,,,,,,,,,,
14111.7,,,,,,,,,,,,,,,,,48000,,,,,,,,,,,,
14112.4,,,,,,,,,,,,,,,,,,48000,,,,,,,,,,,
14251,,,,,,,,,,,,,,,,48000,,,,,,,,,,,,,
14504.6,,,,,,,,,,,,,23.86,,,,,,,,,,,,,,,,
14989.4,,,,,,,,,,,,,,,,,,,51000,,,,,,,,,,
14989.5,,,,,,,,,,,,,,,,,51000,,,,,,,,,,,,
14990.2,,,,,,,,,,,,,,,,,,51000,,,,,,,,,,,
14994.3,30300,29900,30100,28500,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.364e+06,100,100,100,100,4.08163,5
15135.7,,,,,,,,,,,,,,,,51000,,,,,,,,,,,,,
15867.2,,,,,,,,,,,,,,,,,,,54000,,,,,,,,,,
15867.3,,,,,,,,,,,,,,,,,54000,,,,,,,,,,,,
15868.1,,,,,,,,,,,,,,,,,,54000,,,,,,,,,,,
15994.3,30100,30100,30100,28500,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2376e+06,100,100,100,100,5,6.93069
16020.4,,,,,,,,,,,,,,,,54000,,,,,,,,,,,,,
16745,,,,,,,,,,,,,,,,,,,57000,,,,,,,,,,
16745.2,,,,,,,,,,,,,,,,,57000,,,,,,,,,,,,
16745.8,,,,,,,,,,,,,,,,,,57000,,,,,,,,,,,
16905.3,,,,,,,,,,,,,,,,57000,,,,,,,,,,,,,
16994.6,29900,29900,30300,28900,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2336e+06,100,100,100,100,5.15464,2.0202
17622.8,,,,,,,,,,,,,,,,,,,60000,,,,,,,,,,
17623.1,,,,,,,,,,,,,,,,,60000,,,,,,,,,,,,
17623.6,,,,,,,,,,,,,,,,,,60000,,,,,,,,,,,
17791.1,,,,,,,,,,,,,,,,60000,,,,,,,,,,,,,
17994.5,29900,30300,30100,28500,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.234e+06,100,100,100,100,8.08081,4
18500.6,,,,,,,,,,,,,,,,,,,63000,,,,,,,,,,
18501,,,,,,,,,,,,,,,,,63000,,,,,,,,,,,,
18501.3,,,,,,,,,,,,,,,,,,63000,,,,,,,,,,,
18676.3,,,,,,,,,,,,,,,,63000,,,,,,,,,,,,,
18994.8,30100,30100,30500,29100,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.136e+06,100,100,100,100,7,2.0202
19378.4,,,,,,,,,,,,,,,,,,,66000,,,,,,,,,,
19378.9,,,,,,,,,,,,,,,,,66000,,,,,,,,,,,,
19379.1,,,,,,,,,,,,,,,,,,66000,,,,,,,,,,,
19561.4,,,,,,,,,,,,,,,,66000,,,,,,,,,,,,,
19994,30300,30100,30500,28700,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2046e+06,100,100,100,100,4.0404,4.12371
20256.2,,,,,,,,,,,,,,,,,,,69000,,,,,,,,,,
20256.6,,,,,,,,,,,,,,,,,69000,,,,,,,,,,,,
20256.9,,,,,,,,,,,,,,,,,,69000,,,,,,,,,,,
20381.4,,,,,,,,,,,,,,38.10,37.69,,,,,,,,,,,,,,
20449.9,,,,,,,,,,,,,,,,69000,,,,,,,,,,,,,
20994.3,30100,30100,30100,28500,28900,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.4896e+06,100,100,100,100,8.08081,6.06061
21134.2,,,,,,,,,,,,,,,,,,,72000,,,,,,,,,,
21134.7,,,,,,,,,,,,,,,,,72000,,,,,,,,,,,,
21134.9,,,,,,,,,,,,,,,,,,72000,,,,,,,,,,,
21336,,,,,,,,,,,,,,,,72000,,,,,,,,,,,,,
21994.3,30300,30100,30500,28700,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.179e+06,100,100,100,100,8,3.9604
22012.4,,,,,,,,,,,,,,,,,75000,,75000,,,,,,,,,,
22012.6,,,,,,,,,,,,,,,,,,75000,,,,,,,,,,,
22221.1,,,,,,,,,,,,,,,,75000,,,,,,,,,,,,,
22890.1,,,,,,,,,,,,,,,,,,,78000,,,,,,,,,,
22890.2,,,,,,,,,,,,,,,,,,78000,,,,,,,,,,,
22890.4,,,,,,,,,,,,,,,,,78000,,,,,,,,,,,,
22994.6,30300,30500,30500,28900,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3816e+06,100,100,100,100,5.10204,3.0303
23106,,,,,,,,,,,,,,,,78000,,,,,,,,,,,,,
23767.8,,,,,,,,,,,,,,,,,,,81000,,,,,,,,,,
23768.1,,,,,,,,,,,,,,,,,,81000,,,,,,,,,,,
23768.2,,,,,,,,,,,,,,,,,81000,,,,,,,,,,,,
23990.8,,,,,,,,,,,,,,,,81000,,,,,,,,,,,,,
23994,30100,30300,30300,29100,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.122e+06,100,100,100,100,1.03093,8
24567.9,,,,,,,,,,,,,23.882,,,,,,,,,,,,,,,,
24645.7,,,,,,,,,,,,,,,,,,,84000,,,,,,,,,,
24645.7,,,,,,,,,,,,,,,,,,84000,,,,,,,,,,,
24646.1,,,,,,,,,,,,,,,,,84000,,,,,,,,,,,,
24875.9,,,,,,,,,,,,,,,,84000,,,,,,,,,,,,,
24994.2,30500,30500,30500,28900,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3074e+06,100,100,100,100,3,6.06061
25523.5,,,,,,,,,,,,,,,,,,87000,87000,,,,,,,,,,
25523.9,,,,,,,,,,,,,,,,,87000,,,,,,,,,,,,
25760.6,,,,,,,,,,,,,,,,87000,,,,,,,,,,,,,
25994,30500,30500,30700,29300,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.4278e+06,100,100,100,100,3.06122,5.10204
26401.3,,,,,,,,,,,,,,,,,,90000,,,,,,,,,,,
26401.3,,,,,,,,,,,,,,,,,,,90000,,,,,,,,,,
26401.8,,,,,,,,,,,,,,,,,90000,,,,,,,,,,,,
26646.1,,,,,,,,,,,,,,,,90000,,,,,,,,,,,,,
26994.6,30700,30300,30700,29100,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2832e+06,100,100,100,100,7.07071,1.03093
27279.2,,,,,,,,,,,,,,,,,,93000,,,,,,,,,,,
27279.3,,,,,,,,,,,,,,,,,,,93000,,,,,,,,,,
27279.7,,,,,,,,,,,,,,,,,93000,,,,,,,,,,,,
27531.4,,,,,,,,,,,,,,,,93000,,,,,,,,,,,,,
27994,30500,30500,30500,29300,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2064e+06,100,100,100,100,8.91089,2.0202
28157,,,,,,,,,,,,,,,,,,96000,,,,,,,,,,,
28157.1,,,,,,,,,,,,,,,,,,,96000,,,,,,,,,,
28157.6,,,,,,,,,,,,,,,,,96000,,,,,,,,,,,,
28416.2,,,,,,,,,,,,,,,,96000,,,,,,,,,,,,,
28993.9,30500,30500,30900,29100,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1786e+06,100,100,100,100,4.0404,7
29034.6,,,,,,,,,,,,,,,,,,99000,,,,,,,,,,,
29035.1,,,,,,,,,,,,,,,,,,,99000,,,,,,,,,,
29035.5,,,,,,,,,,,,,,,,,99000,,,,,,,,,,,,
29302,,,,,,,,,,,,,,,,99000,,,,,,,,,,,,,
29912.5,,,,,,,,,,,,,,,,,,102000,,,,,,,,,,,
29913,,,,,,,,,,,,,,,,,,,102000,,,,,,,,,,
29913.4,,,,,,,,,,,,,,,,,102000,,,,,,,,,,,,
29994.6,30700,30500,30700,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.4344e+06,100,100,100,100,1.02041,7.07071
30188.5,,,,,,,,,,,,,,,,102000,,,,,,,,,,,,,
30483.5,,,,,,,,,,,,,,39.06,38.37,,,,,,,,,,,,,,
30790.4,,,,,,,,,,,,,,,,,,105000,,,,,,,,,,,
30791,,,,,,,,,,,,,,,,,,,105000,,,,,,,,,,
30791.8,,,,,,,,,,,,,,,,,105000,,,,,,,,,,,,
30994.1,30500,30700,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.378e+06,100,100,100,100,8.16327,6
31076.9,,,,,,,,,,,,,,,,105000,,,,,,,,,,,,,
31668.2,,,,,,,,,,,,,,,,,,108000,,,,,,,,,,,
31668.8,,,,,,,,,,,,,,,,,,,108000,,,,,,,,,,
31669.6,,,,,,,,,,,,,,,,,108000,,,,,,,,,,,,
31962.6,,,,,,,,,,,,,,,,108000,,,,,,,,,,,,,
31994.8,30900,30300,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3074e+06,100,100,100,100,7.07071,2.0202
32546,,,,,,,,,,,,,,,,,,111000,,,,,,,,,,,
32546.7,,,,,,,,,,,,,,,,,,,111000,,,,,,,,,,
32547.6,,,,,,,,,,,,,,,,,111000,,,,,,,,,,,,
32848.4,,,,,,,,,,,,,,,,111000,,,,,,,,,,,,,
32994.7,30700,30500,30900,29300,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1786e+06,100,100,100,100,5.05051,7.07071
33423.7,,,,,,,,,,,,,,,,,,114000,,,,,,,,,,,
33424.6,,,,,,,,,,,,,,,,,,,114000,,,,,,,,,,
33425.5,,,,,,,,,,,,,,,,,114000,,,,,,,,,,,,
33733.8,,,,,,,,,,,,,,,,114000,,,,,,,,,,,,,
33994.3,30300,30100,30700,28900,29100,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1784e+06,100,100,100,100,5.05051,3.0303
34301.6,,,,,,,,,,,,,,,,,,117000,,,,,,,,,,,
34302.5,,,,,,,,,,,,,,,,,,,117000,,,,,,,,,,
34303.5,,,,,,,,,,,,,,,,,117000,,,,,,,,,,,,
34619.2,,,,,,,,,,,,,,,,117000,,,,,,,,,,,,,
34627.5,,,,,,,,,,,,,23.871,,,,,,,,,,,,,,,,
34994.1,30700,30500,30900,29100,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.31e+06,100,100,100,100,4.9505,9.90099
35179.2,,,,,,,,,,,,,,,,,,120000,,,,,,,,,,,
35180.5,,,,,,,,,,,,,,,,,,,120000,,,,,,,,,,
35181.4,,,,,,,,,,,,,,,,,120000,,,,,,,,,,,,
35504.2,,,,,,,,,,,,,,,,120000,,,,,,,,,,,,,
35993.8,30700,30500,30500,29100,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1348e+06,100,100,100,100,6,2.06186
36057.1,,,,,,,,,,,,,,,,,,123000,,,,,,,,,,,
36058.3,,,,,,,,,,,,,,,,,,,123000,,,,,,,,,,
36059.3,,,,,,,,,,,,,,,,,123000,,,,,,,,,,,,
36389.2,,,,,,,,,,,,,,,,123000,,,,,,,,,,,,,
36934.8,,,,,,,,,,,,,,,,,,126000,,,,,,,,,,,
36936.3,,,,,,,,,,,,,,,,,,,126000,,,,,,,,,,
36937.1,,,,,,,,,,,,,,,,,126000,,,,,,,,,,,,
36994.3,30500,30500,30500,29100,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.173e+06,100,100,100,100,3,9.80392
37274.4,,,,,,,,,,,,,,,,126000,,,,,,,,,,,,,
37812.6,,,,,,,,,,,,,,,,,,129000,,,,,,,,,,,
37814,,,,,,,,,,,,,,,,,,,129000,,,,,,,,,,
37815,,,,,,,,,,,,,,,,,129000,,,,,,,,,,,,
37994.3,30700,30500,30900,29500,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2422e+06,100,100,100,100,2.04082,4.12371
38159.7,,,,,,,,,,,,,,,,129000,,,,,,,,,,,,,
38690.3,,,,,,,,,,,,,,,,,,132000,,,,,,,,,,,
38692,,,,,,,,,,,,,,,,,,,132000,,,,,,,,,,
38692.9,,,,,,,,,,,,,,,,,132000,,,,,,,,,,,,
38994.3,30700,30500,30900,29300,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3228e+06,100,100,100,100,9,2.0202
39045.2,,,,,,,,,,,,,,,,132000,,,,,,,,,,,,,
39567.9,,,,,,,,,,,,,,,,,,135000,,,,,,,,,,,
39569.8,,,,,,,,,,,,,,,,,,,135000,,,,,,,,,,
39570.8,,,,,,,,,,,,,,,,,135000,,,,,,,,,,,,
39929.8,,,,,,,,,,,,,,,,135000,,,,,,,,,,,,,
39994.1,30700,30500,31100,29500,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.158e+06,100,100,100,100,5.15464,4
40445.6,,,,,,,,,,,,,,,,,,138000,,,,,,,,,,,
40447.7,,,,,,,,,,,,,,,,,,,138000,,,,,,,,,,
40448.8,,,,,,,,,,,,,,,,,138000,,,,,,,,,,,,
40590.1,,,,,,,,,,,,,,39.33,38.72,,,,,,,,,,,,,,
40817.6,,,,,,,,,,,,,,,,138000,,,,,,,,,,,,,
40993.9,30700,30900,30900,29100,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3488e+06,100,100,100,100,9.18367,3.06122
41323.4,,,,,,,,,,,,,,,,,,141000,,,,,,,,,,,
41325.6,,,,,,,,,,,,,,,,,,,141000,,,,,,,,,,
41326.8,,,,,,,,,,,,,,,,,141000,,,,,,,,,,,,
41702.6,,,,,,,,,,,,,,,,141000,,,,,,,,,,,,,
41993.9,30900,30900,31100,29500,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1704e+06,100,100,100,100,5.15464,2.0202
42201.2,,,,,,,,,,,,,,,,,,144000,,,,,,,,,,,
42203.4,,,,,,,,,,,,,,,,,,,144000,,,,,,,,,,
42204.5,,,,,,,,,,,,,,,,,144000,,,,,,,,,,,,
42587.5,,,,,,,,,,,,,,,,144000,,,,,,,,,,,,,
42994,30700,30900,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2526e+06,100,100,100,100,7.92079,2.04082
43078.8,,,,,,,,,,,,,,,,,,147000,,,,,,,,,,,
43081.2,,,,,,,,,,,,,,,,,,,147000,,,,,,,,,,
43082.4,,,,,,,,,,,,,,,,,147000,,,,,,,,,,,,
43472.6,,,,,,,,,,,,,,,,147000,,,,,,,,,,,,,
43956.7,,,,,,,,,,,,,,,,,,150000,,,,,,,,,,,
43959,,,,,,,,,,,,,,,,,,,150000,,,,,,,,,,
43960.3,,,,,,,,,,,,,,,,,150000,,,,,,,,,,,,
43994.5,30500,30900,30900,29100,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1288e+06,100,100,100,100,6,5.94059
44357.3,,,,,,,,,,,,,,,,150000,,,,,,,,,,,,,
44692.3,,,,,,,,,,,,,23.849,,,,,,,,,,,,,,,,
44834.4,,,,,,,,,,,,,,,,,,153000,,,,,,,,,,,
44836.9,,,,,,,,,,,,,,,,,,,153000,,,,,,,,,,
44838.2,,,,,,,,,,,,,,,,,153000,,,,,,,,,,,,
44994.6,30900,30900,30900,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1746e+06,100,100,100,100,3,7.07071
45242.7,,,,,,,,,,,,,,,,153000,,,,,,,,,,,,,
45712.2,,,,,,,,,,,,,,,,,,156000,,,,,,,,,,,
45714.8,,,,,,,,,,,,,,,,,,,156000,,,,,,,,,,
45716.2,,,,,,,,,,,,,,,,,156000,,,,,,,,,,,,
45994.6,30900,30900,30900,29500,29500,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3578e+06,100,100,100,100,3,8.91089
46128,,,,,,,,,,,,,,,,156000,,,,,,,,,,,,,
46589.9,,,,,,,,,,,,,,,,,,159000,,,,,,,,,,,
46592.7,,,,,,,,,,,,,,,,,,,159000,,,,,,,,,,
46594.1,,,,,,,,,,,,,,,,,159000,,,,,,,,,,,,
46994.7,30700,30900,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1644e+06,100,100,100,100,3.0303,4.21053
47013.8,,,,,,,,,,,,,,,,159000,,,,,,,,,,,,,
47467.8,,,,,,,,,,,,,,,,,,162000,,,,,,,,,,,
47470.4,,,,,,,,,,,,,,,,,,,162000,,,,,,,,,,
47472.7,,,,,,,,,,,,,,,,,162000,,,,,,,,,,,,
47898.6,,,,,,,,,,,,,,,,162000,,,,,,,,,,,,,
47993.8,30700,30900,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2114e+06,100,100,100,100,4,8.91089
48345.7,,,,,,,,,,,,,,,,,,165000,,,,,,,,,,,
48348.2,,,,,,,,,,,,,,,,,,,165000,,,,,,,,,,
48350.3,,,,,,,,,,,,,,,,,165000,,,,,,,,,,,,
48783.7,,,,,,,,,,,,,,,,165000,,,,,,,,,,,,,
48994.1,30900,30900,30900,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1904e+06,100,100,100,100,4,5.10204
49223.4,,,,,,,,,,,,,,,,,,168000,,,,,,,,,,,
49226.1,,,,,,,,,,,,,,,,,,,168000,,,,,,,,,,
49228.2,,,,,,,,,,,,,,,,,168000,,,,,,,,,,,,
49669.4,,,,,,,,,,,,,,,,168000,,,,,,,,,,,,,
49993.8,30700,30700,30700,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.137e+06,100,100,100,100,6.12245,2.0202
50101.2,,,,,,,,,,,,,,,,,,171000,,,,,,,,,,,
50103.9,,,,,,,,,,,,,,,,,,,171000,,,,,,,,,,
50106.1,,,,,,,,,,,,,,,,,171000,,,,,,,,,,,,
50556.8,,,,,,,,,,,,,,,,171000,,,,,,,,,,,,,
50730,,,,,,,,,,,,,,39.40,38.92,,,,,,,,,,,,,,
50979.3,,,,,,,,,,,,,,,,,,174000,,,,,,,,,,,
50982.1,,,,,,,,,,,,,,,,,,,174000,,,,,,,,,,
50984.3,,,,,,,,,,,,,,,,,174000,,,,,,,,,,,,
50994.4,30900,30900,30900,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3512e+06,100,100,100,100,7.07071,8.08081
51448.4,,,,,,,,,,,,,,,,174000,,,,,,,,,,,,,
51857.2,,,,,,,,,,,,,,,,,,177000,,,,,,,,,,,
51860,,,,,,,,,,,,,,,,,,,177000,,,,,,,,,,
51862.3,,,,,,,,,,,,,,,,,177000,,,,,,,,,,,,
51994.5,30900,30500,30900,29300,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.168e+06,100,100,100,100,4,8.82353
52334.7,,,,,,,,,,,,,,,,177000,,,,,,,,,,,,,
52735,,,,,,,,,,,,,,,,,,180000,,,,,,,,,,,
52738,,,,,,,,,,,,,,,,,,,180000,,,,,,,,,,
52740.5,,,,,,,,,,,,,,,,,180000,,,,,,,,,,,,
52993.8,30900,30700,31100,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2464e+06,100,100,100,100,9,2.04082
53219,,,,,,,,,,,,,,,,180000,,,,,,,,,,,,,
53612.8,,,,,,,,,,,,,,,,,,183000,,,,,,,,,,,
53615.9,,,,,,,,,,,,,,,,,,,183000,,,,,,,,,,
53618.5,,,,,,,,,,,,,,,,,183000,,,,,,,,,,,,
53993.9,30900,30700,30900,29500,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1352e+06,100,100,100,100,4.08163,4.0404
54104,,,,,,,,,,,,,,,,183000,,,,,,,,,,,,,
54490.5,,,,,,,,,,,,,,,,,,186000,,,,,,,,,,,
54493.7,,,,,,,,,,,,,,,,,,,186000,,,,,,,,,,
54496.3,,,,,,,,,,,,,,,,,186000,,,,,,,,,,,,
54761.6,,,,,,,,,,,,,23.882,,,,,,,,,,,,,,,,
54988.6,,,,,,,,,,,,,,,,186000,,,,,,,,,,,,,
54994.7,30900,30700,30900,29500,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,1.056e+06,1.056e+06,,,,,,,,,,,6.251e+06,100,100,100,100,2.0202,5.10204
55368.2,,,,,,,,,,,,,,,,,,189000,,,,,,,,,,,
55371.5,,,,,,,,,,,,,,,,,,,189000,,,,,,,,,,
55374,,,,,,,,,,,,,,,,,189000,,,,,,,,,,,,
55871.4,,,,,,,,,,,,,,,,189000,,,,,,,,,,,,,
55994.7,30900,30900,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2126e+06,100,100,100,100,5.05051,2
56245.7,,,,,,,,,,,,,,,,,,192000,,,,,,,,,,,
56249.2,,,,,,,,,,,,,,,,,,,192000,,,,,,,,,,
56251.8,,,,,,,,,,,,,,,,,192000,,,,,,,,,,,,
56755.6,,,,,,,,,,,,,,,,192000,,,,,,,,,,,,,
56993.9,30700,30700,30900,29700,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2048e+06,100,100,100,100,7.92079,2.04082
57123.3,,,,,,,,,,,,,,,,,,195000,,,,,,,,,,,
57127,,,,,,,,,,,,,,,,,,,195000,,,,,,,,,,
57129.5,,,,,,,,,,,,,,,,,195000,,,,,,,,,,,,
57638.9,,,,,,,,,,,,,,,,195000,,,,,,,,,,,,,
57994.3,30500,30500,31100,29500,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.1746e+06,100,100,100,100,5.05051,4
58001,,,,,,,,,,,,,,,,,,198000,,,,,,,,,,,
58004.7,,,,,,,,,,,,,,,,,,,198000,,,,,,,,,,
58007.2,,,,,,,,,,,,,,,,,198000,,,,,,,,,,,,
58524.7,,,,,,,,,,,,,,,,198000,,,,,,,,,,,,,
58878.8,,,,,,,,,,,,,,,,,,201000,,,,,,,,,,,
58882.6,,,,,,,,,,,,,,,,,,,201000,,,,,,,,,,
58885.2,,,,,,,,,,,,,,,,,201000,,,,,,,,,,,,
58994.5,30500,30900,30900,29300,29700,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.2958e+06,100,100,100,100,8.91089,3
59409.4,,,,,,,,,,,,,,,,201000,,,,,,,,,,,,,
59756.1,,,,,,,,,,,,,,,,,,204000,,,,,,,,,,,
59760.3,,,,,,,,,,,,,,,,,,,204000,,,,,,,,,,
59762.8,,,,,,,,,,,,,,,,,204000,,,,,,,,,,,,
59994.1,30700,30900,30500,29300,29300,70000,1.2e+06,1.2e+06,1.2e+06,1.2e+06,600000,600000,,,,,,,,,,,6.3176e+06,100,100,100,100,4,4.0404
wentasah commented 3 years ago

I cannot reproduce your problem with my setup. Is the error message accompanied by a backtrace? If yes, please send it here.

Also, I upgraded the dependencies of the Thermobench package recently. It could be that you are using different version of some dependency. Can you try activating and instantiating my environment as described at https://ctu-iig.github.io/thermobench/dev/#Installation?

benedond commented 3 years ago

Stacktrace says:

julia> df = Thermobench.interpolate(d)
ERROR: InexactError: Int64(237.69506768475188)
Stacktrace:
 [1] Int64 at ./float.jl:710 [inlined]
 [2] convert at ./number.jl:7 [inlined]
 [3] setindex! at ./array.jl:847 [inlined]
 [4] setindex!(::SentinelArrays.SentinelArray{Int64,1,Int64,Missing,Array{Int64,1}}, ::Float64, ::Int64) at /home/benedond/.julia/packages/SentinelArrays/Ubf17/src/SentinelArrays.jl:224
 [5] insert_single_entry!(::DataFrame, ::Float64, ::Int64, ::Int64) at /home/benedond/.julia/packages/DataFrames/yqToF/src/dataframe/dataframe.jl:520
 [6] setindex!(::DataFrame, ::Float64, ::Int64, ::Int64) at /home/benedond/.julia/packages/DataFrames/yqToF/src/dataframe/dataframe.jl:560
 [7] interpolate!(::DataFrame) at /home/benedond/Workspace/thermobench/julia/src/Thermobench.jl:333
 [8] interpolate at /home/benedond/Workspace/thermobench/julia/src/Thermobench.jl:380 [inlined]
 [9] interpolate(::Thermobench.Data) at /home/benedond/Workspace/thermobench/julia/src/Thermobench.jl:377
 [10] top-level scope at none:1

I will try to upgrade the dependencies as described in your readme.

benedond commented 3 years ago

After calling

(@v1.5) pkg> activate /path/to/thermobench/julia
(Thermobench) pkg> instantiate

the problem still persists.

status command produces:

(Thermobench) pkg> status
Project Thermobench v0.1.0
Status `~/Workspace/thermobench/julia/Project.toml`
  [a5944310] CMPFit v0.3.1
  [336ed68f] CSV v0.8.2
  [35d6a980] ColorSchemes v3.10.2
  [5ae59095] Colors v0.12.4
  [a93c6f00] DataFrames v0.22.2
  [1313f7d8] DataFramesMeta v0.6.0
  [31a5f54b] Debugger v0.6.6
  [31c24e10] Distributions v0.23.12
  [e30172f5] Documenter v0.26.1
  [997ab1e6] DocumenterMarkdown v0.2.1
  [dc211083] Gnuplot v1.3.0
  [2fda8390] LsqFit v0.10.0 `https://github.com/JuliaNLSolvers/LsqFit.jl.git#master`
  [7eb4fadd] Match v1.1.0
  [eff96d63] Measurements v2.3.0
  [b98c9c47] Pipe v1.3.0
  [54e16d92] PrettyPrinting v0.2.1
  [2913bbd2] StatsBase v0.33.2
  [ade2ca70] Dates
  [44cfe95a] Pkg
  [de0858da] Printf
  [9a3f8284] Random
  [10745b16] Statistics
  [8dfed614] Test
wentasah commented 3 years ago

I still cannot reproduce it. I have the same versions of the packages as you and have Julia 1.5.3, which is what you use, I think. Can you send me the output of

eltype.(eachcol(d.df))

There should be no Int64. If it is, it could be the reason for the error.

If there is no Int64, can you try modifying the Thermobench.jl source around the line 333 as follows (uncommenting and modifying the @show line)?

for i in valid_row + 1 : row - 1
    @show i, col
    df[i, col] = v₀ + (v₁ - v₀)*(df[i, 1] - t₀)/(t₁ - t₀)
end

Then run the interpolation again and send me the last printed numbers before the error.

benedond commented 3 years ago

I tried the eltype, and there seem to be several Int64 columns:

julia> answ = eltype.(eachcol(d.df))
30-element Array{Type,1}:
 Float64
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}
 ⋮
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}
 Union{Missing, Float64}

julia> for i in answ
       println(i)
       end
Float64
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Int64}
Union{Missing, Int64}
Union{Missing, Int64}
Union{Missing, Int64}
Missing
Missing
Missing
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
Union{Missing, Float64}
wentasah commented 3 years ago

Interesting. In your case, the CPUX_work_done columns are stored as Int64. In my case these are floats:

julia> DataFrame(name=names(d.df), type=eltype.(eachcol(d.df)))
30×2 DataFrame
 Row │ name               type                    
     │ String             Type                    
─────┼────────────────────────────────────────────
   1 │ time               Float64
   2 │ CPU_0_temp         Union{Missing, Float64}
   3 │ CPU_1_temp         Union{Missing, Float64}
   4 │ GPU_0_temp         Union{Missing, Float64}
   5 │ GPU_1_temp         Union{Missing, Float64}
   6 │ DRC_temp           Union{Missing, Float64}
   7 │ PMIC_temp          Union{Missing, Float64}
   8 │ Cortex_A53_0_freq  Union{Missing, Float64}
   9 │ Cortex_A53_1_freq  Union{Missing, Float64}
  10 │ Cortex_A53_2_freq  Union{Missing, Float64}
  11 │ Cortex_A53_3_freq  Union{Missing, Float64}
  12 │ Cortex_A72_0_freq  Union{Missing, Float64}
  13 │ Cortex_A72_1_freq  Union{Missing, Float64}
  14 │ ambient            Union{Missing, Float64}
  15 │ cam_cpu            Union{Missing, Float64}
  16 │ cam_mem            Union{Missing, Float64}
  17 │ CPU0_work_done     Union{Missing, Float64}
  18 │ CPU1_work_done     Union{Missing, Float64}
  19 │ CPU2_work_done     Union{Missing, Float64}
  20 │ CPU3_work_done     Union{Missing, Float64}
  21 │ CPU4_work_done     Missing
  22 │ CPU5_work_done     Missing
  23 │ work_done          Missing
  24 │ Power_mW           Union{Missing, Float64}
  25 │ CPU0_load_         Union{Missing, Float64}
  26 │ CPU1_load_         Union{Missing, Float64}
  27 │ CPU2_load_         Union{Missing, Float64}
  28 │ CPU3_load_         Union{Missing, Float64}
  29 │ CPU4_load_         Union{Missing, Float64}
  30 │ CPU5_load_         Union{Missing, Float64}

Having Int64 there should never happen, because Thermobench.read passes typemap=Dict(Int64 => Float64) to CSV.File and this should convert all Int64 to Float64.

Can you experiment a bit with manual invovation of CSV.File on your file? Use the parameters used by Thermobench.jl and try to play with typemap:

CSV.File("file.csv"; comment="#", normalizenames=true,
        silencewarnings=true,
        typemap=Dict(Int64 => Float64),
        )
benedond commented 3 years ago

I have tried CSV.File() - for a simple file (data_2.csv) typemap works, but for more complicated file (data.csv) typemap does not seem to work. I tried, e.g., Int64 => String - the result is shown in the following picture:

DataToStr

data.zip

wentasah commented 3 years ago

It's weird. Probably CSV.jl bug. I cannot reproduce it both on my laptop (NixOS, Julia 1.5.3) and on the ritchie server (Debian, Julia 1.4.2). Where did you get Julia from? Distribution package, or binaries from https://julialang.org/downloads/, or something else?

benedond commented 3 years ago

I have downloaded Julia from https://julialang.org/downloads/ - Generic Linux on x86, 64-bit.

Downgrading to LTS (1.0.5) seemingly helped for CSV loading, but probably cannot be used with Thermobench since it is too old - e.g., Unable to use OpenSpecFun_jll on Julia versions older than 1.3!

I have also tried downloading v1.3 and 1.4 from https://julialang.org/downloads/ but with no success.

Later I might try it on a different laptop.

wentasah commented 3 years ago

Which distribution do you have? Can you delete ~/.julia and try again? Or run Julia as

env -i $(which julia)

which should eliminate influence of all environment variables.

benedond commented 3 years ago

I am running Ubuntu 18. I have deleted ~/.julia and tried again. The problem seems to be somewhere in Atom editor or Atom-julia integration. When I run Julia directly from the command-line, the conversion works as expected. However, when I run it in Atom, the discussed error occurs. In both cases, the same julia binary should be executed.

Edit: For some instances, the error occurs even when running directly from terminal.

wentasah commented 3 years ago

Yes, I can reproduce it in Atom. Do you have some minimal CSV file that could be attached to CSV.jl issue?

benedond commented 3 years ago

I would not call it minimal, but after randomly deleting some rows from data.csv, I obtained a bit smaller csv for which the error still occurs.

data_min.zip

I tried to randomly delete more rows, or restrict columns to,e.g., [ time_ms, CPU_0_temp_m°C, CPU_1_temp_m°C, CPU0_work_done ], but typemap=Dict(Int64 => Float64) then started working.