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β
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.
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?
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.
How would I reset the conf.yml to the default values?
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?
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?
Iβve opened up a new topic 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.