Module ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A tapiriik.testing.testtools TapiriikTestCase tapiriik.services.interchange ActivityStatistic ActivityStatisticUnit StatisticTests N/A TapiriikTestCase N/A test_unitconv_temp N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit DegreesCelcius value 0 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit DegreesFahrenheit Value 32 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit DegreesCelcius value -40 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit DegreesFahrenheit Value -40 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit DegreesFahrenheit value -40 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit DegreesCelcius Value -40 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit DegreesFahrenheit value 32 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit DegreesCelcius Value 0 N/A test_unitconv_distance_nonmetric N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Miles value 1 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Feet Value 5280 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Feet value N/A 5280 2 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Miles Value 0.5 N/A test_unitconv_distance_metric N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Kilometers value 1 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Meters Value 1000 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 250 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Kilometers Value 0.25 N/A test_unitconv_distance_cross N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Kilometers value 1 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Miles Value 0.6214 places 4 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Miles value 1 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Kilometers Value 1.609 places 3 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit Miles value 1 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit Meters Value 1609 places 0 N/A test_unitconv_velocity_metric N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit MetersPerSecond value 100 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit KilometersPerHour Value 360 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit KilometersPerHour value 50 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit MetersPerSecond Value 13.89 places 2 N/A test_unitconv_velocity_cross N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit KilometersPerHour value 100 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit MilesPerHour Value 62 places 0 N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit MilesPerHour value 60 N/A N/A N/A self assertAlmostEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit KilometersPerHour Value 96.5 places 0 N/A test_unitconv_impossible N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit KilometersPerHour value 100 N/A N/A N/A self assertRaises ValueError N/A stat asUnits N/A ActivityStatisticUnit Meters N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit DegreesCelcius value 100 N/A N/A N/A self assertRaises ValueError N/A stat asUnits N/A ActivityStatisticUnit Miles N/A test_unitconv_noop N/A N/A self N/A N/A N/A stat N/A ActivityStatistic N/A ActivityStatisticUnit KilometersPerHour value 100 N/A N/A N/A self assertEqual N/A N/A N/A stat asUnits N/A ActivityStatisticUnit KilometersPerHour Value 100 N/A test_stat_coalesce N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A N/A N/A stat1 coalesceWith stat2 N/A N/A N/A self assertEqual N/A stat1 Value 1.5 N/A test_stat_coalesce_missing N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A N/A N/A stat1 coalesceWith stat2 N/A N/A N/A self assertEqual N/A stat1 Value 2 N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None N/A N/A N/A stat1 coalesceWith stat2 N/A N/A N/A self assertEqual N/A stat1 Value 1 N/A test_stat_coalesce_multi N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 N/A N/A N/A stat1 coalesceWith stat2 N/A N/A N/A stat1 coalesceWith stat3 N/A N/A N/A stat1 coalesceWith stat4 N/A N/A N/A stat1 coalesceWith stat5 N/A N/A N/A self assertEqual N/A stat1 Value 3 N/A test_stat_coalesce_multi_mixed N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 N/A N/A N/A stat5 coalesceWith stat2 N/A N/A N/A stat5 coalesceWith stat3 N/A N/A N/A stat1 coalesceWith stat5 N/A N/A N/A stat1 coalesceWith stat4 N/A N/A N/A self assertEqual N/A stat1 Value 3 N/A test_stat_coalesce_multi_mixed2 N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 N/A N/A N/A stat5 coalesceWith stat2 N/A N/A N/A stat3 coalesceWith stat5 N/A N/A N/A stat4 coalesceWith stat3 N/A N/A N/A stat1 coalesceWith stat4 N/A N/A N/A self assertEqual N/A stat1 Value 3 N/A test_stat_coalesce_multi_missingmixed N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 1 N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 N/A N/A N/A stat5 coalesceWith stat2 N/A N/A N/A stat3 coalesceWith stat5 N/A N/A N/A stat4 coalesceWith stat3 N/A N/A N/A stat1 coalesceWith stat4 N/A N/A N/A self assertAlmostEqual N/A stat1 Value N/A 8 3 N/A test_stat_coalesce_multi_missingmixed_multivalued N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None min None N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 max 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None gain 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None loss 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 min 3 N/A N/A N/A stat5 coalesceWith stat2 N/A N/A N/A stat3 coalesceWith stat5 N/A N/A N/A stat4 coalesceWith stat3 N/A N/A N/A stat1 coalesceWith stat4 N/A N/A N/A self assertAlmostEqual N/A stat1 Value N/A 7 2 N/A N/A N/A self assertEqual N/A stat1 Min 3 N/A N/A N/A self assertEqual N/A stat1 Max 2 N/A N/A N/A self assertEqual N/A stat1 Gain 3 N/A N/A N/A self assertEqual N/A stat1 Loss 4 N/A test_stat_sum N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None min None N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 max 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None gain 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None gain 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 max 3 N/A N/A N/A stat5 sumWith stat2 N/A N/A N/A stat3 sumWith stat5 N/A N/A N/A stat4 sumWith stat3 N/A N/A N/A stat1 sumWith stat4 N/A N/A N/A self assertEqual N/A stat1 Value 7 N/A N/A N/A self assertEqual N/A stat1 Max 3 N/A N/A N/A self assertEqual N/A stat1 Gain 7 N/A test_stat_update N/A N/A self N/A N/A N/A stat1 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None min None N/A stat2 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 2 max 2 N/A stat3 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None gain 3 N/A stat4 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value None gain 4 N/A stat5 N/A ActivityStatistic N/A ActivityStatisticUnit Meters value 5 max 3 N/A N/A N/A stat5 update stat2 N/A N/A N/A stat3 update stat5 N/A N/A N/A stat4 update stat3 N/A N/A N/A stat1 update stat4 N/A N/A N/A self assertEqual N/A stat1 Value 2 N/A N/A N/A self assertEqual N/A stat1 Max 2 N/A N/A N/A self assertEqual N/A stat1 Gain 3 N/A N/A