mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-07 15:43:08 +00:00
Add visualizer class
This commit is contained in:
parent
8b763b2425
commit
93c318028b
@ -1,3 +1,4 @@
|
|||||||
from DAS.simulator import *
|
from DAS.simulator import *
|
||||||
from DAS.configuration import *
|
from DAS.configuration import *
|
||||||
from DAS.shape import *
|
from DAS.shape import *
|
||||||
|
from DAS.visualizer import *
|
||||||
|
|||||||
22
DAS/visualizer.py
Normal file
22
DAS/visualizer.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/python3
|
||||||
|
|
||||||
|
class Visualizer:
|
||||||
|
|
||||||
|
def __init__(self, execID):
|
||||||
|
self.execID = execID
|
||||||
|
self.folderPath = "results/"+self.execID
|
||||||
|
|
||||||
|
def plottingData(self):
|
||||||
|
data = []
|
||||||
|
print("Getting data from the folder...")
|
||||||
|
return data
|
||||||
|
|
||||||
|
def similarKeys(self, data):
|
||||||
|
filteredKeys = []
|
||||||
|
print("Getting filtered keys from data...")
|
||||||
|
return filteredKeys
|
||||||
|
|
||||||
|
def plotHeatmaps(self):
|
||||||
|
data = self.plottingData()
|
||||||
|
filteredKeys = self.similarKeys(data)
|
||||||
|
print("Plotting heatmaps...")
|
||||||
4
study.py
4
study.py
@ -51,6 +51,10 @@ def study():
|
|||||||
res.dump(execID)
|
res.dump(execID)
|
||||||
sim.logger.info("Results dumped into results/%s/" % (execID), extra=sim.format)
|
sim.logger.info("Results dumped into results/%s/" % (execID), extra=sim.format)
|
||||||
|
|
||||||
|
visualization = 1
|
||||||
|
if visualization:
|
||||||
|
vis = Visualizer(execID)
|
||||||
|
vis.plotHeatmaps()
|
||||||
|
|
||||||
|
|
||||||
study()
|
study()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user