Skip to content

Commit

Permalink
address J-M comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Jul 16, 2024
1 parent 3dabf54 commit 6c8ca41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/using_not_in_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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())
Expand All @@ -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:
Expand Down

0 comments on commit 6c8ca41

Please sign in to comment.