Skip to content

Commit

Permalink
Merge pull request #476 from olofsvensson/issue_472
Browse files Browse the repository at this point in the history
Issue #472, ISPyB-91 : Fix for MR tab
  • Loading branch information
olofsvensson authored Nov 20, 2018
2 parents b89723d + ed9785f commit 1d3769a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/mx/view/phasingview/phasinggridview.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ PhasingGridView.prototype.printHTML = function(target) {
var statisticsValues = _.map(steps, "statisticsValue");
for (var z=0; z < steps.length; z++){
var toBePushed = steps[z];

var listUglyMol = [];
/**
* This adds the phasing plots into the dictionary looking for them from the previous steps
*/
Expand Down Expand Up @@ -168,7 +168,6 @@ PhasingGridView.prototype.printHTML = function(target) {
}
} else if (step == "REFINEMENT") {
var pdbFileId = -1;
var listUglyMol = [];
var mapsArr = steps[z].map.split(",");
var pdbsArr = steps[z].pdb.split(",");
if ("mapFileName" in steps[z]) {
Expand Down Expand Up @@ -210,14 +209,15 @@ PhasingGridView.prototype.printHTML = function(target) {
var mapUrl2 = EXI.getDataAdapter().mx.phasing.downloadPhasingFilesByPhasingAttachmentId( mapsArr[indexFOFC_REFINE]);
listUglyMol.push('../viewer/uglymol/index.html?pdb=' + pdbUrl + '&map1=' + mapUrl1 + '&map2=' + mapUrl2);
}
} else {
listUglyMol.push("");
listUglyMol.push("");
}
toBePushed["listUglyMol"] = listUglyMol;
}
}
/** It will add only the files coming from these steps */
toBePushed["downloadFilesUrl"] = EXI.getDataAdapter().mx.phasing.getDownloadFilesByPhasingStepIdURL(parseDownloadAttachments(steps[z]));
toBePushed["downloadFilesUrl"] = EXI.getDataAdapter().mx.phasing.getDownloadFilesByPhasingStepIdURL(parseDownloadAttachments(steps[z]));
if (listUglyMol.length == 0) {
listUglyMol.push("");
listUglyMol.push("");
}
toBePushed["listUglyMol"] = listUglyMol;
node["metrics"].push(toBePushed);
}
}
Expand Down

0 comments on commit 1d3769a

Please sign in to comment.