Commit fd7be97b authored by Daria Zenkova's avatar Daria Zenkova

now images are taken from tmp working directory

parent 9d302ca6
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -350,13 +350,15 @@ morpheus.PcaPlotTool.prototype = { ...@@ -350,13 +350,15 @@ morpheus.PcaPlotTool.prototype = {
console.log(arguments); console.log(arguments);
var req = ocpu.call("pcaPlot", arguments, function (session) { var req = ocpu.call("pcaPlot", arguments, function (session) {
session.getObject(function (data) { console.log(session);
var location = "tmp/" + data.split("\"")[1]; console.log(session.txt);
var txt = session.txt.split("\n");
console.log(location); console.log(txt);
var img = $('<img />', {src : location, style : "width:720px;height:540px"}); 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); _this.$chart.prepend(img);
});
/*var img = $('<img />', {src : session.getLoc() + 'graphics/1/png', style : "width:720px;height:540px"});*/ /*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