diff --git a/change_log_metz.md b/change_log_metz.md index 99a6a06..60a2dee 100644 --- a/change_log_metz.md +++ b/change_log_metz.md @@ -1,4 +1,10 @@ +# 20231013: +Adding the shipcall evaluation (traffic state). Provided a one-line function to connect, evaluate and update the shipcalls in a database +The sql database can now be properly updated by SQL calls (using mysql.connector and pydapper) +Preparing a pull request, where all necessary changes are provided. + +# TODO: there must be a call function in the application, which asks for an update of the evaluation state & message. Discussing with Daniel Schick. # 20231012: Building out the remaining validation rules, which are all finalized now (0001 - 0006). @@ -9,9 +15,6 @@ Renaming 'ValidationRuleState' to StatusFlags, which better suits the client ver The traffic status (StatusFlags) will be stored in 'shipcall.evaluation'. The potential error message (str) is stored in 'shipcall.evaluation_message'. Create a oneline function that applies all validation rules and stores the results in 'evaluation' and 'evaluation_message'. -# TODO: determine, how the results will be made accessible to the API. Options are: overwriting the MySQL database or calling the api's /shipcalls route - - # 20231006 Focusing entirely on the traffic light. The ValidationRules object is inherited from ValidationRuleFunctions, which is connected to the SQLHandler. This makes it possible to compute all functions within ValidationRules. The object's methods have a default naming convention and input/output convention. The outputs diff --git a/src/lib_brecal_utils/tests/test_import_modules.py b/src/lib_brecal_utils/tests/test_import_modules.py index cdbb942..712795b 100644 --- a/src/lib_brecal_utils/tests/test_import_modules.py +++ b/src/lib_brecal_utils/tests/test_import_modules.py @@ -8,21 +8,16 @@ def test_import_colorama(): import colorama return -def test_import_matplotlib(): - """matplotlib is used for visualizations (e.g. images and graphs)""" - import matplotlib - return - -def test_import_matplotlib_pyplot(): - """pyplot as a sub-library of matplotlib, which is used to plot images and graphs""" - import matplotlib.pyplot as plt - return - def test_import_tqdm_tqdm(): """tqdm is a neat utility library for simple display of progress in loops""" from tqdm import tqdm return +def test_import_numpy(): + """numpy is useful to evaluate multiple entries simultaneously, as boolean operations (e.g., greater than) are efficiently handled""" + import numpy as np + return + def test_import_pandas(): """pandas is useful to handle dataframes and read from .csv or .json files, which can be collected into joint DataFrame objects""" import pandas as pd @@ -94,8 +89,6 @@ def test_import_datetime(): if __name__=="__main__": test_import_colorama() - test_import_matplotlib() - test_import_matplotlib_pyplot() test_import_tqdm_tqdm() test_import_pandas() test_import_flask()