Skip to content

Commit

Permalink
default to most recent finished run and clarify no network error
Browse files Browse the repository at this point in the history
  • Loading branch information
nlouwen committed Nov 28, 2024
1 parent 6fcaabe commit bc36c25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions big_scape/output/html_template/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,14 @@ <h3>Network</h3>
}
$("#bigscape-runs").html("")
for (var [run_id, data] of Object.entries(run_data)) {
var inc = data["end_time"] ? "" : "(Unfinished) " // label runs that did not finish
for (var cutoff of data["cutoffs"].split(",")) {
$("#bigscape-runs").append("<option value='" + run_id + "," + cutoff + "'>" + data["label"] + "_c" + cutoff + "</option>");
var val = run_id + "," + cutoff
$("#bigscape-runs").append("<option value='" + val + "'>" + inc + data["label"] + "_c" + cutoff + "</option>");
}
// set default loaded run to the most recent finished run
if (!inc) {
$("#bigscape-runs").val(val)
}
}
$("#bigscape-runs").off().on("change", function () {
Expand Down Expand Up @@ -899,7 +905,7 @@ <h3>Network</h3>
WHERE family.run_id==${run_id} AND family.cutoff==${cutoff}
GROUP BY gbk.organism`)[0]
if (gbk_org_data === undefined) {
throw Error("There were no networks created in this run")
throw Error("There were no networks created in this run;\nPlease select another from the dropdown")
}
var pieLabels = []
var pieData = []
Expand Down

0 comments on commit bc36c25

Please sign in to comment.