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 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 17:03:48 +02:00
co-authored by Claude Sonnet 4.6
parent 40d57dc68a
commit 6711ab2200
2 changed files with 3 additions and 9 deletions
+3 -6
View File
@@ -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.
-3
View File
@@ -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):