Bug fixes and final modifications.

This commit is contained in:
2023-01-11 23:54:19 +01:00
parent bfe8ace466
commit cfdd7db2ec
3 changed files with 8 additions and 12 deletions

View File

@@ -1194,8 +1194,10 @@ function startSequence(All) {
writeAsciiFile(seq_file, data);
// Remove the fort.33 and other redundant files
cmd="cd " + All["workPath"] + ";rm -f eingabe1.inp; rm -f fort.33";
execute(cmd);
if (!webOrApp) {
cmd="cd " + All["workPath"] + ";rm -f eingabe1.inp; rm -f fort.33";
execute(cmd);
}
Progress=100;
document.getElementById("pBar").style.width = Progress + "%";
document.getElementById("pBar").innerHTML = Progress + "%";

View File

@@ -1,17 +1,9 @@
// This file contains function that are web app specific
function getFiles(dir, filelist){
fileList = [];
return fileList;
}
function execute(command) {
// exec(command, {stdio: 'inherit'});
}
function checkDir(directory) {
// Check whether directory exists, if not create it
return(1);
}
function writeAsciiFile(filename,content) {
// Write string content into ascii file filename

View File

@@ -1,4 +1,6 @@
const Plotly = require('plotly.js-dist');
if (!amIWeb()) {
const Plotly = require('plotly.js-dist');
}
function Plot_xy(plotdiv,x,y,labels){
// Plot (x,y) scatter with x/ylabels
@@ -97,7 +99,7 @@ function sizePlot(){
function resizePl(flag){
let newx=this.innerWidth/2-50;
let newy=this.innerHeight-85;
let newy=this.innerHeight-185;
var plotDiv1=this.document.getElementById("plotRge");
var plotDiv2=this.document.getElementById("plotFrac");
var update ={