From 6227bbe2566bac8db43f06e9862a9940efd99373 Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Fri, 11 Jul 2025 12:27:06 +0200 Subject: [PATCH] Update temperature handling in Reactor class and remove redundant setter --- src/specificClass.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/specificClass.js b/src/specificClass.js index 509f460..8fb1448 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -44,7 +44,7 @@ class Reactor { this.logger.debug(`---------------------- updating ${subType} ------------------ `); switch (subType) { case "temperature": - this.logger.debug(`no nothing`); + this.temperature = value; break; default: this.logger.error(`Type '${subType}' not recognized for measured update.`); @@ -70,14 +70,6 @@ class Reactor { this.OTR = input.payload; } - /** - * Setter for temperature. - * @param {object} input - Input object (msg) containing payload with temperature value [C]. - */ - set setTemperature(input) { - this.temperature = input.payload; - } - /** * Calculate the oxygen transfer rate (OTR) based on the dissolved oxygen concentration and temperature. * @param {number} S_O - Dissolved oxygen concentration [g O2 m-3].