Skip to content

Commit 0a2476e

Browse files
Merge pull request #372 from rustprooflabs/upgrade-tuner
Update osm2pgqsql-tuner
2 parents 1cd1f98 + a5849f4 commit 0a2476e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docker/osm2pgsql_recommendation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,13 @@ def get_recommended_script(system_ram_gb: float,
7575
"""
7676
LOGGER.debug('Generating recommended osm2pgsql command')
7777

78-
rec = tuner.recommendation(system_ram_gb=system_ram_gb,
78+
rec = tuner.Recommendation(system_ram_gb=system_ram_gb,
7979
osm_pbf_gb=osm_pbf_gb,
8080
slim_no_drop=import_mode.slim_no_drop,
8181
append_first_run=import_mode.append_first_run,
8282
ssd=True)
8383

84-
osm2pgsql_cmd = rec.get_osm2pgsql_command(out_format='api',
85-
pbf_path=pbf_filename)
84+
osm2pgsql_cmd = rec.get_osm2pgsql_command(pbf_path=pbf_filename)
8685

8786
osm2pgsql_cmd = osm2pgsql_cmd.replace('~/pgosm-data', output_path)
8887

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
click>=8.1.3
22
coverage>=6.4.1
33
GitPython>=3.1.31
4-
osm2pgsql-tuner==0.0.6
4+
osm2pgsql-tuner==0.1.0
55
osmium>=3.4.1
66
packaging>=23.0
77
psycopg>=3.1

0 commit comments

Comments
 (0)