>>> from tpt import tpt_sumup --input-ini >>> estL = ['Girona', 'Anglès', 'Olot', 'Farners'] >>> tempL = [ ... ['09:01:2024', [(0.7, -6.4, 11.7), (3.3, -3.9, 10.2), (0.9, -6.7, 10.8), (2.6, -3.0, 11.3)]], ... ['08:01:2024', [(0.9, -7.2, 13.5), (2.3, -5.2, 13.0), (1.2, -6.1, 11.3), (3.3, -3.3, 13.0)]], ... ['07:01:2024', [(3.2, -4.8, 16.1), (3.9, -3.5, 14.5), (5.0, -1.9, 11.7), (4.8, -1.5, 17.4)]], ... ] --input-fi --output-ini >>> tmo_corr = [ ... ['09:01:2024', 1.88, (-6.7, 'Olot'), (11.7, 'Girona')], ... ['08:01:2024', 1.92, (-7.2, 'Girona'), (13.5, 'Girona')], ... ['07:01:2024', 4.22, (-4.8, 'Girona'), (17.4, 'Farners')], ... ] --output-fi >>> tmo = tpt_sumup(estL, tempL) >>> if tmo == tmo_corr: ... True ... else: ... print(tmo) ... print(tmo_corr) True