From df8648a0447dbfcc66cc6d25095c45a503bcf1cc Mon Sep 17 00:00:00 2001 From: ATAO Date: Wed, 24 Jan 2024 14:51:44 +0100 Subject: [PATCH] Adjust the default number of processes --- README.md | 2 +- geocoder/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b8f9f8..70fb7fa 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Options: -ban, --local-database TEXT Local BAN database for geocoding. [required] -p, --processes INTEGER Adjust the number of processes based on your - machine for calculations. [default: 40] + machine for calculations. [default: 12] -csv, --output-csv PATH Path to CSV file where results will be saved. -hdr, --include-header Include header row in the CSV output. diff --git a/geocoder/cli.py b/geocoder/cli.py index 71aec0c..8109ce7 100644 --- a/geocoder/cli.py +++ b/geocoder/cli.py @@ -142,7 +142,7 @@ def initdb(ban_datasheet, ban_db, separator, chunksize, verbose): @click.command(name="local") @click.option('--input-file', '-i', help='Addresses file to geocode', required=True, type=click.Path(exists=True)) @click.option('--local-database', '-ban', required=True, help='Local BAN database for geocoding.') -@click.option('--processes', '-p', default=40, show_default=True, help='Adjust the number of processes based on your ' +@click.option('--processes', '-p', default=12, show_default=True, help='Adjust the number of processes based on your ' 'machine for calculations.') @click.option('--output-csv', '-csv', type=click.Path(writable=True), help='Path to CSV file where results will be saved.')