Commit 78c196fb authored by Mathieu Giraud's avatar Mathieu Giraud

model.js: when there are enough dates, set the key point to 'day after first sample'

parent 9aeac84b
......@@ -453,6 +453,12 @@ Model.prototype = {
initClones: function () {
myConsole.log("initClones()");
// time_type to delta_date if we have enough different dates
deltas = this.dateDiffMinMax()
myConsole.log(deltas)
if (deltas.max > 1)
this.time_type = "delta_date"
// NSIZE
var n_max = 0;
for (var i = 0; i < this.clones.length; i++) {
......
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