mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
lf_csv.py and lf_graph.py : changed variables to snake case
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -22,7 +22,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
|
|
||||||
class LfCSV:
|
class lf_csv:
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
_columns=['Stations', 'bk', 'be', 'vi', 'vo'],
|
_columns=['Stations', 'bk', 'be', 'vi', 'vo'],
|
||||||
_rows=[['sta0001', 'sta0002', 'sta0003', 'sta0004', 'sta0005'],
|
_rows=[['sta0001', 'sta0002', 'sta0003', 'sta0004', 'sta0005'],
|
||||||
@@ -45,5 +45,5 @@ class LfCSV:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test = LfCSV()
|
test = lf_csv()
|
||||||
test.generate_csv()
|
test.generate_csv()
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import pandas as pd
|
|||||||
import pdfkit
|
import pdfkit
|
||||||
import math
|
import math
|
||||||
from matplotlib.colors import ListedColormap
|
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
|
# 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.text_rotation = _text_rotation
|
||||||
self.grp_title = _grp_title
|
self.grp_title = _grp_title
|
||||||
self.enable_csv = _enable_csv
|
self.enable_csv = _enable_csv
|
||||||
self.lf_csv = LfCSV()
|
self.lf_csv = lf_csv()
|
||||||
|
|
||||||
def build_bar_graph(self):
|
def build_bar_graph(self):
|
||||||
if self.color is None:
|
if self.color is None:
|
||||||
@@ -162,7 +162,7 @@ class lf_scatter_graph():
|
|||||||
self.label = _label
|
self.label = _label
|
||||||
self.values = _values
|
self.values = _values
|
||||||
self.enable_csv = _enable_csv
|
self.enable_csv = _enable_csv
|
||||||
self.lf_csv = LfCSV()
|
self.lf_csv = lf_csv()
|
||||||
|
|
||||||
def build_scatter_graph(self):
|
def build_scatter_graph(self):
|
||||||
if self.color is None:
|
if self.color is None:
|
||||||
@@ -214,7 +214,7 @@ class lf_stacked_graph():
|
|||||||
self.label = _label
|
self.label = _label
|
||||||
self.color = _color
|
self.color = _color
|
||||||
self.enable_csv = _enable_csv
|
self.enable_csv = _enable_csv
|
||||||
self.lf_csv = LfCSV()
|
self.lf_csv = lf_csv()
|
||||||
|
|
||||||
def build_stacked_graph(self):
|
def build_stacked_graph(self):
|
||||||
fig = plt.subplots(figsize=self.figsize)
|
fig = plt.subplots(figsize=self.figsize)
|
||||||
@@ -266,7 +266,7 @@ class lf_horizontal_stacked_graph():
|
|||||||
self.color = _color
|
self.color = _color
|
||||||
self.disable_xaxis = _disable_xaxis
|
self.disable_xaxis = _disable_xaxis
|
||||||
self.enable_csv = _enable_csv
|
self.enable_csv = _enable_csv
|
||||||
self.lf_csv = LfCSV()
|
self.lf_csv = lf_csv()
|
||||||
|
|
||||||
def build_horizontal_stacked_graph(self):
|
def build_horizontal_stacked_graph(self):
|
||||||
def sumzip(items):
|
def sumzip(items):
|
||||||
|
|||||||
Reference in New Issue
Block a user