From 8910e5e9881500a538ed6653e478dac0c410b2a9 Mon Sep 17 00:00:00 2001 From: JasonGellis Date: Sat, 20 Apr 2024 17:25:43 +0100 Subject: [PATCH] spelling errors and code cleanup --- .vscode/settings.json | 5 +++++ pylithics/scripts/run.py | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b752546 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "isna" + ] +} \ No newline at end of file diff --git a/pylithics/scripts/run.py b/pylithics/scripts/run.py index 3ecac6a..779ceeb 100644 --- a/pylithics/scripts/run.py +++ b/pylithics/scripts/run.py @@ -14,7 +14,7 @@ def run_pipeline(id_list, metadata_df, input_dir, output_dir, config_file, get_arrows): """ - Script that sets up directories, data identification, and configurations for lithic characterisation, + Script that sets up directories, data identification, and configurations for lithic characterization, and runs the pipeline. Parameters @@ -56,14 +56,14 @@ def run_pipeline(id_list, metadata_df, input_dir, output_dir, config_file, get_a config_file['scale_id'] = "no scale" config_file["scale_mm"] = 1 - run_characterisation(input_dir, output_dir, config_file, get_arrows) + run_characterization(input_dir, output_dir, config_file, get_arrows) return 0 -def run_characterisation(input_dir, output_dir, config_file, arrows, debug=False): +def run_characterization(input_dir, output_dir, config_file, arrows, debug=False): """ - Characterisation of image file. + Characterization of image file. Parameters ---------- @@ -87,7 +87,7 @@ def run_characterisation(input_dir, output_dir, config_file, arrows, debug=False print('=============================') print('Processing figure: ', id) - # if output dir doesnt exist create one + # if output dir doesn't exist create one if not os.path.exists(output_dir): os.makedirs(output_dir) @@ -147,7 +147,7 @@ def run_characterisation(input_dir, output_dir, config_file, arrows, debug=False def main(): - parser = argparse.ArgumentParser(description="Run lithic characterisation pipeline") + parser = argparse.ArgumentParser(description="Run lithic characterization pipeline") parser.add_argument("-c", "--config", required=True, type=str, metavar="config-file", help="the model config file (YAML)")