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

Layout updated

parent cacc32df
No related branches found
No related tags found
1 merge request!25VS2N 0.36
......@@ -136,8 +136,10 @@ class Global_Var():
if ('synapseWeight' in self.db.list_collection_names()):
col = pymongo.collection.Collection(self.db, 'synapseWeight')
col.create_index([("T", 1)])
col.create_index([("C", 1)])
col.create_index([("L", 1)])
col.create_index([("To", 1)])
col.create_index([("index", 1)])
print("Synapses index done")
def getLabelTime(self, step, value):
......@@ -268,13 +270,15 @@ class Global_Var():
conf.setAppName(self.name)
conf.set("spark.executor.instances", "8")
conf.set("spark.executor.memory", "8g")
conf.set("spark.executor.memory", "16g")
conf.set("spark.sql.execution.arrow.pyspark.enabled", "true")
self.sparkSession = SparkSession.builder.config(conf=conf) \
.config('spark.jars.packages', 'org.mongodb.spark:mongo-spark-connector_2.12:2.4.4') \
.getOrCreate()
if not self.config.DEBUG:
self.sparkSession.sparkContext.setLogLevel("Error")
return self.sparkSession.version
except Exception as e:
print("createSparkSession:" + str(e))
......
......@@ -116,7 +116,7 @@ class callbacks(callbacksOp):
mode='lines+markers',
text=list(super.xAxisLabel),
customdata=list(super.SynapseGraphY[layer]),
hovertemplate="<span style='color:white;''>%{text} <br> <b>%{customdata}</b> <br> <b>Max</b> "+str(super.MaxSynapse[layer])+"<\span>"))
hovertemplate="<span style='color:white;'>%{text} <br> <b>%{customdata}</b> <br> <b>Max</b> "+str(super.MaxSynapse[layer])))
if(f == "Potentials"):
if(layer not in super.PotentialGraphY):
super.PotentialGraphY[layer] = deque(maxlen=100)
......@@ -233,7 +233,7 @@ class callbacks(callbacksOp):
go.Treemap(
labels=list(super.Label.keys()
) if super.Label != [] else [],
textfont_size=18,
textfont_size=20,
textposition="middle center",
parents=["" for i in range(
len(super.Label))],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment