diff --git a/docker/osm2pgsql_recommendation.py b/docker/osm2pgsql_recommendation.py index 6424dc9..25d53e7 100644 --- a/docker/osm2pgsql_recommendation.py +++ b/docker/osm2pgsql_recommendation.py @@ -75,14 +75,13 @@ def get_recommended_script(system_ram_gb: float, """ LOGGER.debug('Generating recommended osm2pgsql command') - rec = tuner.recommendation(system_ram_gb=system_ram_gb, + rec = tuner.Recommendation(system_ram_gb=system_ram_gb, osm_pbf_gb=osm_pbf_gb, slim_no_drop=import_mode.slim_no_drop, append_first_run=import_mode.append_first_run, ssd=True) - osm2pgsql_cmd = rec.get_osm2pgsql_command(out_format='api', - pbf_path=pbf_filename) + osm2pgsql_cmd = rec.get_osm2pgsql_command(pbf_path=pbf_filename) osm2pgsql_cmd = osm2pgsql_cmd.replace('~/pgosm-data', output_path) diff --git a/requirements.txt b/requirements.txt index 37441f8..01b6803 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ click>=8.1.3 coverage>=6.4.1 GitPython>=3.1.31 -osm2pgsql-tuner==0.0.6 +osm2pgsql-tuner==0.1.0 osmium>=3.4.1 packaging>=23.0 psycopg>=3.1