-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1111 from StochSS/develop
2.3.2 Release
- Loading branch information
Showing
64 changed files
with
2,249 additions
and
97,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
StochSS is a platform for simulating biochemical systems | ||
Copyright (C) 2019-2020 StochSS developers. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
let path = require('path'); | ||
//support files | ||
let app = require('../app'); | ||
let Plotly = require('../lib/plotly'); | ||
//views | ||
var PageView = require('../pages/base'); | ||
//templates | ||
let template = require("../templates/pages/multiplePlots.pug"); | ||
|
||
import initPage from './page.js'; | ||
|
||
let ModelEditor = PageView.extend({ | ||
template: template, | ||
initialize: function (attrs, options) { | ||
PageView.prototype.initialize.apply(this, arguments); | ||
let urlParams = new URLSearchParams(window.location.search); | ||
this.workflow = urlParams.get("wkfl"); | ||
this.job = urlParams.get("job"); | ||
this.path = urlParams.get("path"); | ||
this.data = urlParams.get("data"); | ||
}, | ||
render: function (attrs, options) { | ||
PageView.prototype.render.apply(this, arguments); | ||
let queryStr = "?path=" + this.path + "&data=" + this.data; | ||
let endpoint = path.join(app.getApiPath(), "workflow/plot-results") + queryStr; | ||
let self = this; | ||
app.getXHR(endpoint, { | ||
success: function (err, response, body) { | ||
self.plotFigure(body); | ||
}, | ||
error: function (err, response, body) { | ||
console.log(body) | ||
} | ||
}); | ||
}, | ||
plotFigure: function (figure) { | ||
let el = this.queryByHook("figures"); | ||
let config = {"responsive":true}; | ||
Plotly.newPlot(el, figure, config); | ||
} | ||
}); | ||
|
||
initPage(ModelEditor); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
section.page | ||
|
||
h3="Workflow: "+this.workflow | ||
|
||
h4="Job: "+this.job | ||
|
||
div.card.card-body | ||
|
||
h5 Plot Trajectories: Multiple Graphs | ||
|
||
div(data-hook="figures") |
Oops, something went wrong.