forked from RnD/EVOLV
added warning when model is not specified so user knows.
This commit is contained in:
@@ -71,7 +71,7 @@ class Machine {
|
|||||||
this.config = this.configUtils.updateConfig(this.config, {general:{name: this.config.functionality?.softwareType + "_" + machineConfig.general.id}}); // add unique name if not present
|
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) {
|
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.`);
|
this.logger.error(`${!this.model ? 'Model not specified' : 'Curve not found for model ' + this.model} in machineConfig. Cannot make predictions.`);
|
||||||
// Set prediction objects to null to prevent method calls
|
// Set prediction objects to null to prevent method calls
|
||||||
this.predictFlow = null;
|
this.predictFlow = null;
|
||||||
this.predictPower = null;
|
this.predictPower = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user