forked from RnD/rotatingMachine
updates
This commit is contained in:
@@ -45,6 +45,7 @@ maintenanceAlert: this.state.checkMaintenanceStatus()
|
||||
//load local dependencies
|
||||
const EventEmitter = require('events');
|
||||
const {loadCurve,logger,configUtils,configManager,state, nrmse, MeasurementContainer, predict, interpolation , childRegistrationUtils} = require('generalFunctions');
|
||||
const { name } = require('../../generalFunctions/src/convert/lodash/lodash._shimkeys');
|
||||
|
||||
class Machine {
|
||||
|
||||
@@ -65,6 +66,9 @@ class Machine {
|
||||
|
||||
//Init config and check if it is valid
|
||||
this.config = this.configUtils.initConfig(machineConfig);
|
||||
|
||||
//add unique name for this node.
|
||||
this.config = this.configUtils.updateConfig(this.config, {general:{name: this.config.functionality?.softwareType + "_" + machineConfig.general.id}}); // add unique name if not present
|
||||
|
||||
if (!this.model || !this.curve) {
|
||||
this.logger.warn(`${!this.model ? 'Model not specified' : 'Curve not found for model ' + this.model} in machineConfig. Cannot make predictions.`);
|
||||
|
||||
Reference in New Issue
Block a user