From 25cdbd7ba263e5b8b1482a2ce82fca20905aa2f0 Mon Sep 17 00:00:00 2001 From: Roland Date: Tue, 25 Mar 2025 15:52:43 -0600 Subject: [PATCH] Updating map import times using 3.5GB pbf. --- modules/map/lib.py | 2 +- modules/map/test/test_lib.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/map/lib.py b/modules/map/lib.py index 97722aae..80f4fc55 100644 --- a/modules/map/lib.py +++ b/modules/map/lib.py @@ -223,7 +223,7 @@ def get_import_status(session: Session = None) -> List[MapFile]: # Calculated using many tests on a well-cooled RPi4 (4GB). RPI4_PBF_BYTES_PER_SECOND = 175473 -RPI4_COEFFICIENTS = [4.01229956e-15, 7.19038150e-06, -1.36868043e+02] +RPI4_COEFFICIENTS = [3.25099914e-15, 8.88717664e-06, -3.59754030e+02] # Calculated using many tests on a well-cooled RPi5 (8GB). RPI5_PBF_BYTES_PER_SECOND = 136003 RPI5_COEFFICIENTS = [1.66813827e-15, 2.35907825e-06, 5.37276181e+01] diff --git a/modules/map/test/test_lib.py b/modules/map/test/test_lib.py index c1737346..b45a8ac6 100644 --- a/modules/map/test/test_lib.py +++ b/modules/map/test/test_lib.py @@ -74,10 +74,10 @@ async def test_run_import_command(test_directory, mock_run_command, run_command_ (87745484, 500), (116318111, 662), (136372996, 777), - (1936075318, 28823), - (2676094489, 47839), - (3392375001, 70429), - (11346305075, 597985), + (1936075318, 29032), + (2676094489, 46705), + (3392375001, 67202), + (11346305075, 519006), ]) def test_seconds_to_import_rpi4(size, expected): assert lib.seconds_to_import(size) == expected