Commit f1daad1f authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 9ce7f677
const fs = require('fs') const fs = require('fs')
let moment = require('moment-timezone') let moment = require('moment-timezone')
let _ = require('lodash')
init() init()
...@@ -59,6 +60,7 @@ for (let i=0;i<dataFile.length;i++) ...@@ -59,6 +60,7 @@ for (let i=0;i<dataFile.length;i++)
let atrPeriod=last[16] let atrPeriod=last[16]
lastConfig.push({name:name,timeStamp:timeStamp,pvtPeriod:pvtPeriod,atrFactor:atrFactor,atrPeriod:atrPeriod}) lastConfig.push({name:name,timeStamp:timeStamp,pvtPeriod:pvtPeriod,atrFactor:atrFactor,atrPeriod:atrPeriod})
} }
lastConfig=_.uniq(lastConfig)
console.log('Done all configs:'+lastConfig.length) console.log('Done all configs:'+lastConfig.length)
createRunResfileADV(JSON.stringify(lastConfig, null, 2)) createRunResfileADV(JSON.stringify(lastConfig, null, 2))
......
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