Giter Site home page Giter Site logo

nmr_autosampler_python's Introduction

Python Code for NMR Autosampler

Introduction

The "RotoMate" is a 3D-printed autosampler for the Magritek Spinsolve benchtop NMR spectrometer, based on Arduino, Python, and PHP.

Our open-access manuscript with detailed build instructions and CAD data can be found under the following URL: https://doi.org/10.1016/j.ohx.2021.e00211

This repository contains the Python code for the "RotoMate".

Third-party software

On Windows machines, which this software is intended to run on, Python 3 must be installed first.

The python scripts require XAMPP and a fully set up MySQL database (see the webinterface's Github page).

The automatic evaluation of NMR spectra (optional) uses the ACD NMR Processor Academic Edition (Version 12.01).

The following libraries are required for this program:

Library Licence Weblink
pyserial BSD https://pypi.org/project/pyserial/
PyQt5 GPLv3 https://pypi.org/project/PyQt5/
PyQtWebEngine GPLv3 https://pypi.org/project/PyQtWebEngine/
mysqlclient GPLv2 https://github.com/PyMySQL/mysqlclient

The libraries pyserial, PyQt5 and PyQtWebEngine can simply be installed using pip:

pip install [packagename]

The mysqlclient library can not be easily installed in this fashion on Windows. It will complain about missing Visual C++ instead, even if Visual C++ has been painstakingly set up.

This problem can be circumvented by using a precompiled package ("wheel") which is available under the following URL: https://www.lfd.uci.edu/~gohlke/pythonlibs/

After downloading the .whl file, it can be installed using the following command:

pip install mysqlclient-[VERSION].whl

Setup

Make sure to follow the instructions on the setup of the webinterface first. The python script reads certain settings from the MySQL database, and will not work without them.

To start the Autosampler GUI, first launch the Spinsolve software, and then launch main.pyw.

Licence

This code is available under the conditions of GNU General Public Licence version 3 or any later version.

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.