Commit 069f79a6 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-c/4347-optimisation-distrib-load' into 'dev'

Resolve "Optimisation du chargement des distributions"

Closes #4347

See merge request !732
parents f3465bdc 55eda178
Pipeline #152113 passed with stages
in 17 minutes
......@@ -1838,7 +1838,6 @@ Clone.prototype = {
round = true
}
var values = []
var available_axes = Axis.prototype.available()
for (var a = 0; a < axes.length; a++) {
var axe = axes[a]
......@@ -1846,8 +1845,8 @@ Clone.prototype = {
if (axe == undefined || naxe == undefined){
console.default.error("Getter: not axis " + axe + "; ("+naxe+")")
}
if (available_axes.indexOf(naxe) != -1 ) {
var axis_p = Axis.prototype.getAxisProperties(naxe)
if (this.m.available_axes.indexOf(naxe) != -1 ) {
var axis_p = AXIS_DEFAULT[naxe]
var value = axis_p.fct(this, timepoint)
values.push( value )
} else {
......
......@@ -63,8 +63,8 @@ function Model() {
this.NORM_EXPECTED = "expected"
this.NORM_EXTERNAL = "external"
this.normalization_mode = this.NORM_FALSE
//this.axes = new Axes(this)
//this.available_axes = this.axes.available()
this.axes = new Axis(this)
this.available_axes = this.axes.available()
setInterval(function(){return self.updateIcon()}, 100);
}
......
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