From aebb6f01f4fff4575ea89b9b0ea76dda6a66000a Mon Sep 17 00:00:00 2001 From: Sebastian Lenzlinger <74497638+sebaschi@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:54:58 +0100 Subject: [PATCH 1/2] SYNC COMMIT --- analysis/config_example.py | 2 +- analysis/plots.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/analysis/config_example.py b/analysis/config_example.py index 830fe5e..f272d79 100644 --- a/analysis/config_example.py +++ b/analysis/config_example.py @@ -1,5 +1,5 @@ # config.py, adjust as needed -# TODO RENAME THIS FILE TO "config.py" +# TODO COPY and then RENAME TO "config.py" SSH_HOST = 'slenzlinger.dev' SSH_USERNAME = 'sebl' #TODO: Enter own username SSH_PASSWORD = 'your_ssh_password' # TODO: to not push to git diff --git a/analysis/plots.py b/analysis/plots.py index bc15213..a85777d 100644 --- a/analysis/plots.py +++ b/analysis/plots.py @@ -10,8 +10,6 @@ import numpy as np logging.getLogger("matplotlib").setLevel(logging.WARNING) - - # Summary charts ====================================================================================================== def plt_acc_by_year(db): acc_year_sql = """ @@ -260,8 +258,6 @@ def severity_by_month(db): #fig.show() - - # Utilities =========================================================================================================== def save_as_barplot(df, xname, yname, orientation, file_name): pass From 19ee2b27b7666063f2f8adfb4f2a3e7997445b31 Mon Sep 17 00:00:00 2001 From: Sebastian Lenzlinger <74497638+sebaschi@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:57:03 +0100 Subject: [PATCH 2/2] Fix typo. Fix typo in calculations.py. --- analysis/calculations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/calculations.py b/analysis/calculations.py index abfa20e..624d303 100644 --- a/analysis/calculations.py +++ b/analysis/calculations.py @@ -63,6 +63,6 @@ if __name__ == "__main__": try: get_data(remote_db) except Exception as e: - print(f"Exception {e} in plots.py") + print(f"Exception {e} in calculations.py") finally: remote_db.close()