# PID Automation Error

**URL:** <https://forum.pioreactor.com/t/pid-automation-error/57>\
**Category:** Uncategorized\
**Created:** [February 18, 2023, 11:00pm UTC](https://forum.pioreactor.com/t/pid-automation-error/57 "2023-02-18T23:00:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![realPeteDavidson](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@realPeteDavidson](https://forum.pioreactor.com/u/realPeteDavidson)\
**Post date:** [February 18, 2023, 11:00pm UTC](https://forum.pioreactor.com/t/pid-automation-error/57/1 "2023-02-18T23:00:28Z")

</div>

I just tried to run the PID Morbidostat Dosing Automation and this error popped up. I think it might be similar to the previous issue with Chemostat dosing automation.

| 14:57:35 | pioreactor1 | dosing automation | can’t multiply sequence by non-int of type ‘float’ |
| --- | --- | --- | --- |
| 14:57:33 | pioreactor1 | dosing control | Disconnected. |
| 14:57:33 | pioreactor1 | dosing control | can’t multiply sequence by non-int of type ‘float’ |
| 14:57:33 | pioreactor1 | dosing control | Starting pid\_morbidostat(target\_od=1.5, target\_growth\_rate=0.1, duration=60.0, skip\_first\_run=False). |

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [February 18, 2023, 11:14pm UTC](https://forum.pioreactor.com/t/pid-automation-error/57/2 "2023-02-18T23:14:36Z")

</div>

Yes, you’re right, it’s the same error. A variable (target\_growth\_rate) is coming in as a string, when it should be cast to float before it’s used.

We have [tests for this automation](https://github.com/Pioreactor/pioreactor/blob/master/pioreactor/tests/test_dosing_control.py#L208-L216), but the variables are passed in as floats.

Fix is in our development branch. If you need a working version now, you can install the bleeding edge with `pio update app -b develop`.

---

<div class="post-metadata">

**Author:** ![realPeteDavidson](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@realPeteDavidson](https://forum.pioreactor.com/u/realPeteDavidson)\
**Post date:** [February 18, 2023, 11:25pm UTC](https://forum.pioreactor.com/t/pid-automation-error/57/3 "2023-02-18T23:25:36Z")

</div>

Thanks. I also just noticed that when I run the waste pump (both continuously and for 1 mL), it does not send any message to the Recent event log in the UI. When I add media or alt media, it does send a message to the Recent event logs.

Not sure if this is intended or not, but it does log when the waste media pump runs as part of an automation.
