final adjustments of plotting, panles, etc.
This commit is contained in:
1 parent
28afdac2f7
commit
cd7eb7b5eb
4 files changed
+20
-6
No files matched your search
@@ -119,6 +119,8 @@ function newSuperalgosFunctionLibraryLearningSessionFunctions() {
|
||||
'Serial Number->Identifier->Begin->End->Begin Rate->End Rate->Strategy Name->Status->Exit Type->' +
|
||||
'Balance->Begin Balance->End Balance->' +
|
||||
'Index->Situation Name->Formula->Periods->' +
|
||||
'Features->Feature->Begin->End->Feature Value->'+
|
||||
'Labels->Label->Begin->End->Label Value->'+
|
||||
'Predictions->Prediction->Begin->End->Prediction Value->'
|
||||
|
||||
let learningEngine = UI.projects.superalgos.functionLibraries.protocolNode.getProtocolNode(node.learningEngineReference.payload.referenceParent, false, true, true, false, false, lightingPath)
|
||||
|
||||
@@ -3,7 +3,7 @@ function newPlotterPanel() {
|
||||
const MODULE_NAME = 'Plotter Panel'
|
||||
const ERROR_LOG = true
|
||||
const logger = newWebDebugLog()
|
||||
|
||||
|
||||
|
||||
let thisObject = {
|
||||
fitFunction: undefined,
|
||||
@@ -23,6 +23,7 @@ function newPlotterPanel() {
|
||||
let currentRecord
|
||||
let upDownButton
|
||||
let panelNode
|
||||
let recordSet = new Map()
|
||||
|
||||
return thisObject
|
||||
|
||||
@@ -34,6 +35,7 @@ function newPlotterPanel() {
|
||||
|
||||
heightFactor = undefined
|
||||
currentRecord = undefined
|
||||
recordSet = undefined
|
||||
upDownButton.finalize()
|
||||
upDownButton = undefined
|
||||
panelNode = undefined
|
||||
@@ -79,6 +81,20 @@ function newPlotterPanel() {
|
||||
|
||||
function onRecordChange(pCurrentRecord) {
|
||||
currentRecord = pCurrentRecord
|
||||
|
||||
if (currentRecord === undefined) {
|
||||
recordSet = new Map()
|
||||
return
|
||||
}
|
||||
if (currentRecord.index !== undefined) {
|
||||
/*
|
||||
There is a situation when we expect to receive many records
|
||||
that are part of a set. We will know when when we detect the
|
||||
property index. In that situation we will build the recordset
|
||||
by adding each record to a Map by index.
|
||||
*/
|
||||
recordSet.set(currentRecord.index, currentRecord)
|
||||
}
|
||||
}
|
||||
|
||||
function draw() {
|
||||
|
||||
Reference in new issue
Block a user