Merge remote-tracking branch 'origin/sebl' into sebl
This commit is contained in:
commit
beef5ad2c7
@ -63,6 +63,6 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
get_data(remote_db)
|
get_data(remote_db)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Exception {e} in plots.py")
|
print(f"Exception {e} in calculations.py")
|
||||||
finally:
|
finally:
|
||||||
remote_db.close()
|
remote_db.close()
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# config.py, adjust as needed
|
# 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_HOST = 'slenzlinger.dev'
|
||||||
SSH_USERNAME = 'sebl' #TODO: Enter own username
|
SSH_USERNAME = 'sebl' #TODO: Enter own username
|
||||||
SSH_PASSWORD = 'your_ssh_password' # TODO: to not push to git
|
SSH_PASSWORD = 'your_ssh_password' # TODO: to not push to git
|
||||||
|
|||||||
@ -10,8 +10,6 @@ import numpy as np
|
|||||||
logging.getLogger("matplotlib").setLevel(logging.WARNING)
|
logging.getLogger("matplotlib").setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Summary charts ======================================================================================================
|
# Summary charts ======================================================================================================
|
||||||
def plt_acc_by_year(db):
|
def plt_acc_by_year(db):
|
||||||
acc_year_sql = """
|
acc_year_sql = """
|
||||||
@ -261,8 +259,6 @@ def severity_by_month(db):
|
|||||||
#fig.show()
|
#fig.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Utilities ===========================================================================================================
|
# Utilities ===========================================================================================================
|
||||||
def save_as_barplot(df, xname, yname, orientation, file_name):
|
def save_as_barplot(df, xname, yname, orientation, file_name):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user