Skip to content

Commit

Permalink
Update osm2pgqsql-tuner
Browse files Browse the repository at this point in the history
  • Loading branch information
rustprooflabs committed Jan 4, 2024
1 parent 1cd1f98 commit a5849f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docker/osm2pgsql_recommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a5849f4

Please sign in to comment.