# Peristaltic pumps not stopping with manual control

**URL:** <https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265>\
**Category:** Peristaltic Pumps\
**Created:** [February 16, 2021, 9:12pm UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265 "2021-02-16T21:12:19Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![bgwong](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/bgwong/32/262_2.png) [@bgwong](https://www.evolver.bio/u/bgwong)\
**Post date:** [February 17, 2021, 2:15am UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/21 "2021-02-17T02:15:26Z")

</div>

If you change the conf file back to the default, you can probably revert it back to its original state. This doesnt solve the problem but you can roll it back by changing the value on line 33 back to “null”

> <https://github.com/FYNCH-BIO/evolver/blob/master/evolver/conf.yml#L33>

---

<div class="post-metadata">

**Author:** ![ericlyall](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@ericlyall](https://www.evolver.bio/u/ericlyall)\
**Post date:** [February 17, 2021, 2:32am UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/22 "2021-02-17T02:32:52Z")

</div>

Running the chemostat script through the terminal fixed the infinite pumping problem with the GUI.  
**I’m still unable to actually get the chemostat pumping with the dpu script though.  
How would I go about changing the conf file back to default?**  
Thanks for your help on this.

---

<div class="post-metadata">

**Author:** ![cmancuso](https://yyz1.discourse-cdn.com/flex035/user_avatar/www.evolver.bio/cmancuso/32/51_2.png) [@cmancuso](https://www.evolver.bio/u/cmancuso)\
**Post date:** [February 17, 2021, 4:18am UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/23 "2021-02-17T04:18:43Z")

</div>

The chemostat code has been updated since the time I wrote it, but I might still be able to help.

I wonder if its a problem with the recurring variable:

In this debugging script, I see that there’s a command to send a pump rate of 0|0 to all pumps and that has recurring = True. I think this turns off the pumps since pump duration and period are set to 0, but depending on how the GUI writes a command its possible that it is only setting the duration and the period but not setting recurring = False?

> [@ericlyall](#):
>
> Will check if scripts are stopped in a moment. I’m using pycharm, so that could be an issue. Going to restart my computer and then run scripts through the terminal.  
> In the meantime, here’s the output of the debugging. I added a line shown in the photo ![image](https://canada1.discourse-cdn.com/flex035/uploads/evolver/original/1X/9dc9aeb59bf4b3583424e69226cef56fe525b191.png)  
> e]0;eVOLVER EXPERIMENT: PRESS Ctrl-C TO PAUSEa  
> Connected to eVOLVER as client  
> Calibrate vials to blank? (y/n): y  
> Calibrations recieved  
> Test8\_Feb\_16\_Chemo\_expt: 0.0038 Hours  
> Message sent vial {‘fields\_expected\_incoming’: 49, ‘fields\_expected\_outgoing’: 49, ‘recurring’: True, ‘immediate’: False, ‘value’: [‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘0|0’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’, ‘–’], ‘param’: ‘pump’}

For reference, here’s how the the DPU is supposed to stop recurring chemostat events:

```
def stop_all_pumps(self, ):
    data = {'param': 'pump',
            'value': ['0'] * 48,
            'recurring': False,
            'immediate': True}
    logger.info('stopping all pumps')
    self.emit('command', data, namespace = '/dpu-evolver')

```

This function can be found in eVOLVER.py. We could compare that to how the pump commands are sent in the GUI, perhaps the GUI doesn’t always overwrite the recurring variable? That seems unlikely. It could be that the conf.yml got left in a weird state if pycharm was closed mid experiment and isn’t being written to correctly. I’ll second the calls for resetting conf.yml to default values and for @heinsz to weigh in since he’s behind this iteration of the cstat code.

---

<div class="post-metadata">

**Author:** ![ericlyall](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@ericlyall](https://www.evolver.bio/u/ericlyall)\
**Post date:** [February 17, 2021, 6:42pm UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/24 "2021-02-17T18:42:27Z")

</div>

How would I reset the conf.yml to the default values?

---

<div class="post-metadata">

**Author:** ![ericlyall](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@ericlyall](https://www.evolver.bio/u/ericlyall)\
**Post date:** [February 17, 2021, 9:47pm UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/25 "2021-02-17T21:47:12Z")

</div>

Can I delete that second conf.yml~ file? Not sure why there are two, is that a backup?  
There is conf.yml and conf.yml~ , I assume I should update just the conf.yml file?

---

<div class="post-metadata">

**Author:** ![ericlyall](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@ericlyall](https://www.evolver.bio/u/ericlyall)\
**Post date:** [February 17, 2021, 10:47pm UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/26 "2021-02-17T22:47:45Z")

</div>

I figured out how to edit that conf.yml line and changed line 33 to null as Brandon suggested, but the chemostat still is not pumping on any of the vials, even though the initial conditions are passed.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![ericlyall](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@ericlyall](https://www.evolver.bio/u/ericlyall)\
**Post date:** [February 18, 2021, 12:26am UTC](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265/27 "2021-02-18T00:26:14Z")

</div>

I’ve opened up a [new topic](https://www.evolver.bio/t/pumps-not-working-in-chemostat-mode/266) where we can continue discussion. The issue of pumps infinitely running off of the GUI is solved. I’m now trying to get the chemostat working.

[Previous page](https://www.evolver.bio/t/peristaltic-pumps-not-stopping-with-manual-control/265.md?page=1)
