From 6c8ca41061fa96c8ca0c18683f95d65bb4ff6c4c Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Tue, 16 Jul 2024 21:19:36 +0100 Subject: [PATCH] address J-M comments --- examples/using_not_in_operator.py | 2 +- manage.py | 4 ++-- .../validation/omero_keyvalue_data_validator.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/using_not_in_operator.py b/examples/using_not_in_operator.py index c105263..1765a05 100644 --- a/examples/using_not_in_operator.py +++ b/examples/using_not_in_operator.py @@ -45,4 +45,4 @@ main_attributes = [] query = {"and_filters": and_filters} # -recieved_results_data = query_the_search_ending(query, main_attributes) +received_results_data = query_the_search_ending(query, main_attributes) diff --git a/manage.py b/manage.py index 34dbb1b..20ea696 100644 --- a/manage.py +++ b/manage.py @@ -369,11 +369,11 @@ def restore_elasticsearch_data(): @manager.option("-p", "--project_name", help="Project name, or part of it") def data_validator(screen_name=None, project_name=None): """ - Checking key-value pair for tailing and heading space. + Checking key-value pair for trailing and heading space. It also checks the key-value pair duplication. It can check all the projects and screens. Also, it can run for a specific project or screen. - The output is a collection of CSV files; each check usually generates three files: + The output is a collection of CSV files; each check usually generates three files: The main file contains image details (e.g. image id) in addition to the key and the value. one file for screens and one for projects. diff --git a/omero_search_engine/validation/omero_keyvalue_data_validator.py b/omero_search_engine/validation/omero_keyvalue_data_validator.py index 064b04d..905fa81 100644 --- a/omero_search_engine/validation/omero_keyvalue_data_validator.py +++ b/omero_search_engine/validation/omero_keyvalue_data_validator.py @@ -56,7 +56,7 @@ def check_for_trailing_space(screen_name, project_name): ) tail_space_results = conn.execute_query(sql_statment) if len(tail_space_results) == 0: - search_omero_app.logger.info("No results is aviable fro trailing space") + search_omero_app.logger.info("No results is availlable for trailing space") return search_omero_app.logger.info("Generate for trailing space ...") genrate_reports(tail_space_results, "tailing_space", screen_name, project_name) @@ -116,7 +116,7 @@ def genrate_reports(results, check_type, screen_name, project_name): df.groupby(["screen_name", "name", "value"]) .size() .reset_index() - .rename(columns={0: "no of images"}) + .rename(columns={0: "number of images"}) ) with open(screens_file, "w") as text_file: text_file.write(df2.to_csv()) @@ -127,7 +127,7 @@ def genrate_reports(results, check_type, screen_name, project_name): df.groupby(["project_name", "name", "value"]) .size() .reset_index() - .rename(columns={0: "no of images"}) + .rename(columns={0: "number of images"}) ) with open(projects_file, "w") as text_file: