From 6711ab2200cc71b73fd15cdc4a1c64a4957d5781 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 19 Jun 2026 17:03:48 +0200 Subject: [PATCH] Remove leftover debug prints from Pot.process() The unconditional p_loss/theta_amb/temp prints (left over from the heat-loss-units fix) ran every tick, spamming stdout in both the server and every demo script. Drop them and check off the matching TODO.md item. Co-Authored-By: Claude Sonnet 4.6 --- components/plant/TODO.md | 9 +++------ components/plant/pot.py | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/components/plant/TODO.md b/components/plant/TODO.md index 1b9ad66..83776a9 100644 --- a/components/plant/TODO.md +++ b/components/plant/TODO.md @@ -41,9 +41,6 @@ the current `delay`-line rewrite of `Pot`. changes (e.g. boil-off, adding water/grain) — `M` is a fixed constant for the whole simulation. -- [ ] **Debug `print()`s left in `Pot.process()`.** Every call prints - `p_loss`, `theta_amb`, and `temp` unconditionally — this runs once - per simulated/real tick (e.g. every `Controller.dt`), spamming stdout - in both the server and every demo script. Looks like leftover - debugging from the heat-loss-units fix; remove or gate behind a - debug flag. +- [x] **Debug `print()`s left in `Pot.process()`.** Fixed: the + unconditional `p_loss`/`theta_amb`/`temp` prints (leftover from the + heat-loss-units fix) were removed. diff --git a/components/plant/pot.py b/components/plant/pot.py index 2e15609..d07dac1 100644 --- a/components/plant/pot.py +++ b/components/plant/pot.py @@ -53,9 +53,6 @@ class Pot(APlant): p_loss = self.L * self.M * (self.temp - self.theta_amb) self.p_pot = self.delay.get() - p_loss - print(f"p_loss: {p_loss}") - print(f"theta_amb: {self.theta_amb}") - print(f"temp: {self.temp}") self.temp = min(100, self.temp + self.p_pot/(self.M * self.C) * self.dt) def is_activated(self):