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:
@@ -41,9 +41,6 @@ the current `delay`-line rewrite of `Pot`.
|
|||||||
changes (e.g. boil-off, adding water/grain) — `M` is a fixed
|
changes (e.g. boil-off, adding water/grain) — `M` is a fixed
|
||||||
constant for the whole simulation.
|
constant for the whole simulation.
|
||||||
|
|
||||||
- [ ] **Debug `print()`s left in `Pot.process()`.** Every call prints
|
- [x] **Debug `print()`s left in `Pot.process()`.** Fixed: the
|
||||||
`p_loss`, `theta_amb`, and `temp` unconditionally — this runs once
|
unconditional `p_loss`/`theta_amb`/`temp` prints (leftover from the
|
||||||
per simulated/real tick (e.g. every `Controller.dt`), spamming stdout
|
heat-loss-units fix) were removed.
|
||||||
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.
|
|
||||||
|
|||||||
@@ -53,9 +53,6 @@ class Pot(APlant):
|
|||||||
p_loss = self.L * self.M * (self.temp - self.theta_amb)
|
p_loss = self.L * self.M * (self.temp - self.theta_amb)
|
||||||
self.p_pot = self.delay.get() - p_loss
|
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)
|
self.temp = min(100, self.temp + self.p_pot/(self.M * self.C) * self.dt)
|
||||||
|
|
||||||
def is_activated(self):
|
def is_activated(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user