Commit fd7be97b authored by Daria Zenkova's avatar Daria Zenkova

now images are taken from tmp working directory

parent 9d302ca6
This diff is collapsed.
......@@ -350,13 +350,15 @@ morpheus.PcaPlotTool.prototype = {
console.log(arguments);
var req = ocpu.call("pcaPlot", arguments, function (session) {
session.getObject(function (data) {
var location = "tmp/" + data.split("\"")[1];
console.log(location);
var img = $('<img />', {src : location, style : "width:720px;height:540px"});
_this.$chart.prepend(img);
});
console.log(session);
console.log(session.txt);
var txt = session.txt.split("\n");
console.log(txt);
var imageLocationAr = txt[txt.length - 2].split("/");
var imageLocation = session.getLoc() + "files/" + imageLocationAr[imageLocationAr.length - 1];
console.log(imageLocation);
var img = $('<img />', {src : imageLocation, style : "width:720px;height:540px"});
_this.$chart.prepend(img);
/*var img = $('<img />', {src : session.getLoc() + 'graphics/1/png', style : "width:720px;height:540px"});*/
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment