GithubHelp home page GithubHelp logo

liweicao / centripeta Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.23 MB

Code for the paper "Optimisation of formulations using robotic experiments driven by machine learning DoE"

Python 87.19% C++ 12.81%
bayesianoptimization multiobject optimization automation

centripeta's Introduction

Centripeta

This is a set of tools for controlling the centripeta robots in publication 'Optimisation of formulations using robotic experiments driven by machine learning DoE'.

top-view

This robot contains two parts: sample preparation part and sanple analysis part. A general scheme for the procedure is provided below. The continuous lines represent the materials flow, whereas dashed lines represent the information flow.

image

Installation

The easiest way to install centripeta is using pip:

pip install -e git+https://github.com/sustainable-processes/centripeta@master#egg=centripeta

To use the code for pH measurement, the PicoSDK C libraries need to installed. For details, please refer to Picotech website(https://www.picotech.com/downloads) and their github repository.

Running the experiments

Below is a simple example for running the experiments.

from centripeta import Dispenser
from pycont.controller import MultiPumpController
from commanduino import CommandManager
import pandas as pd

#This is the CSV file with the conditions to dispense into the vials
CONDITIONS_FILE="xp_initial_0.csv"

#Instantiate the communication with the robot
mgr = CommandManager.from_configfile('platform_config_ports.json')
pumps = MultiPumpController.from_configfile('pycont_config_less.json')
d = Dispenser(manager=mgr, pump_controller=pumps)

# Read in conditions and run the robot
conditions = pd.read_csv(CONDITION_FILE)
for i, condition in conditions.iterrows():
    #Dispense each surfactant
    d.dispense(pump_name="Plantacare818", volume=condition['Plantacare818'], speed_in=1500)
    d.dispense(pump_name="Texapon", volume =condition['Texapon'], speed_in=1500) 
    d.dispense(pump_name="DehytonAB30", volume=condition['DehytonAB30'], speed_in=1500)
    d.dispense(pump_name="ArlyponTT", volume=condition['ArlyponTT'])
    d.dispense(pump_name="CC7BZ", volume=condition['CC7BZ'])

    #Wait and dispense water
    time.sleep(10)
    d.dispense(pump_name="water", volume=condition['water'])

    #Wait and turn the wheel
    time.sleep(5)
    d.turn_wheel(n_turns=1)
    print('finish sample' + 'i')
print('Done!!')

To see more examples, take a look at the protocol directory, which contains the files for the robotic system control.

centripeta's People

Contributors

liweicao avatar marcosfelt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.