Skip to content
Snippets Groups Projects
Commit de4cbfd0 authored by Hammouda Elbez's avatar Hammouda Elbez :computer:
Browse files

Layout updated

parent f0a23c9e
Branches
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Global_Var():
data_loaded = None
db = None
updateInterval = 1.0 # 1 second
InputPerEpoch = 1
InputPerEpoch = 100
stepMax = 0
Max = 0
nbrClasses = 0
......
......@@ -87,7 +87,7 @@ class callbacks(callbacksOp):
fill='tozeroy' if len(
generalGraphFilter) == 1 else 'none',
line=dict(color="rgb(31, 119, 180)"),
name='Spikes'+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
name='Spikes '+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
mode='lines+markers',
text=list(super.xAxisLabel),
customdata=list(super.SpikeGraphY[layer]),
......@@ -112,7 +112,7 @@ class callbacks(callbacksOp):
fill='tozeroy' if len(
generalGraphFilter) == 1 else 'none',
line=dict(color="rgb(255, 127, 14)"),
name='Synapses activity'+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
name='Synapses activity '+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
mode='lines+markers',
text=list(super.xAxisLabel),
customdata=list(super.SynapseGraphY[layer]),
......@@ -136,7 +136,7 @@ class callbacks(callbacksOp):
fill='tozeroy' if len(
generalGraphFilter) == 1 else 'none',
line=dict(color="rgb(44, 160, 44)"),
name='Neuron\'s potential'+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
name='Neuron\'s potential '+ ('['+layer+']' if len(generalLayerFilter) > 1 else ''),
mode='lines+markers',
text=list(super.xAxisLabel),
customdata=list(super.PotentialGraphY[layer]),
......@@ -753,7 +753,6 @@ class callbacks(callbacksOp):
L = dict({i["_id"]: i["C"] for i in labels})
print(timestamp, interval, Max)
return [L, Max]
def getSpike(timestamp, interval, layer, perNeuron):
......
......@@ -189,8 +189,7 @@ class layout(layoutOp):
id='2DViewLayerFilter',
options=[{'label': str(i), 'value': str(i)} for i in (
i["layer"] for i in self.g.LayersNeuronsInfo)],
value=[str(i) for i in (
i["layer"] for i in self.g.LayersNeuronsInfo)],
value=[],
multi=True,
style={"minWidth": "80%", "textAlign": "start"}),
], style={"textAlign": "start", },className="d-flex col-lg-12 col-sm-12 col-xs-12"),
......
......@@ -36,12 +36,6 @@ class spark(sparkOp):
LN = data["L:N"]
LN = loads(dumps(LN))
self.g.Layer_Neuron = LN
try:
self.g.InputPerEpoch = data["E"]
except Exception:
self.g.InputPerEpoch = pymongo.collection.Collection(self.g.db, 'labels').count_documents({})
pass
for l in LN:
if(l == "Input"):
self.g.Input = LN[l]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment