From 1098de8636280f21fbfa9e13e44a32ef8682f859 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Thu, 15 Jul 2021 07:55:20 -0600 Subject: [PATCH] lf_csv.py and lf_graph.py : changed variables to snake case Signed-off-by: Chuck SmileyRekiere --- py-scripts/lf_csv.py | 4 ++-- py-scripts/lf_graph.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/py-scripts/lf_csv.py b/py-scripts/lf_csv.py index a87fb038..c7e7150b 100644 --- a/py-scripts/lf_csv.py +++ b/py-scripts/lf_csv.py @@ -22,7 +22,7 @@ import numpy as np import pandas as pd -class LfCSV: +class lf_csv: def __init__(self, _columns=['Stations', 'bk', 'be', 'vi', 'vo'], _rows=[['sta0001', 'sta0002', 'sta0003', 'sta0004', 'sta0005'], @@ -45,5 +45,5 @@ class LfCSV: if __name__ == "__main__": - test = LfCSV() + test = lf_csv() test.generate_csv() diff --git a/py-scripts/lf_graph.py b/py-scripts/lf_graph.py index fa82d944..9575989b 100755 --- a/py-scripts/lf_graph.py +++ b/py-scripts/lf_graph.py @@ -25,7 +25,7 @@ import pandas as pd import pdfkit import math from matplotlib.colors import ListedColormap -from lf_csv import LfCSV +from lf_csv import lf_csv # internal candela references included during intial phases, to be deleted at future date @@ -78,7 +78,7 @@ class lf_bar_graph(): self.text_rotation = _text_rotation self.grp_title = _grp_title self.enable_csv = _enable_csv - self.lf_csv = LfCSV() + self.lf_csv = lf_csv() def build_bar_graph(self): if self.color is None: @@ -162,7 +162,7 @@ class lf_scatter_graph(): self.label = _label self.values = _values self.enable_csv = _enable_csv - self.lf_csv = LfCSV() + self.lf_csv = lf_csv() def build_scatter_graph(self): if self.color is None: @@ -214,7 +214,7 @@ class lf_stacked_graph(): self.label = _label self.color = _color self.enable_csv = _enable_csv - self.lf_csv = LfCSV() + self.lf_csv = lf_csv() def build_stacked_graph(self): fig = plt.subplots(figsize=self.figsize) @@ -266,7 +266,7 @@ class lf_horizontal_stacked_graph(): self.color = _color self.disable_xaxis = _disable_xaxis self.enable_csv = _enable_csv - self.lf_csv = LfCSV() + self.lf_csv = lf_csv() def build_horizontal_stacked_graph(self): def sumzip(items):