Skip to content

Commit

Permalink
spelling errors and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGellis committed Apr 20, 2024
1 parent 4778bcf commit 8910e5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"isna"
]
}
12 changes: 6 additions & 6 deletions pylithics/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
----------
Expand All @@ -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)

Expand Down Expand Up @@ -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)")
Expand Down

0 comments on commit 8910e5e

Please sign in to comment.