Browse Source

Update interface of plot renderer

Yentl Van Tendeloo 4 years ago
parent
commit
3c1db73f4e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      interface/plot/main.py

+ 3 - 2
interface/plot/main.py

@@ -6,14 +6,15 @@ sys.path.append("wrappers/")
 from MatPlotLibWrapper import *
 from plot import *
 from modelverse import *
+import uuid
 
 # Login to Modelverse and have model rendered
 init()
 login("admin", "admin")
-rendered = model_render(sys.argv[1], sys.argv[2])
+rendered = model_render(sys.argv[1], "models/trace_mapper", "rendered/%s" % str(uuid.uuid4()))
 
 # Convert rendered to "MatPlotLib JSON"
-data = json.loads(rendered)
+data = rendered
 plots = {}
 axis = {}
 datasets = {}