Giter Club home page Giter Club logo

py-licor's Introduction

py-licor

Python logging software for the Licor 840 CO2/H2O analyzer

Dependencies

  • bs4 (beautifulsoup)
  • pyserial

Python Versions

This software package is written for Python 3+.

Installation

To install from PyPi:

$ pip install py-licor [--upgrade]

To install directly from GitHub:

$ pip install git+https://github.com/quant-aq/py-licor.git

You can also download and install from source:

python setup.py install

Documentation

There isn't any real documentation yet...but for now, there are only a few commands:

To setup a connection:

import licor

dev1 = licor.Licor840()

# set the port
dev1.port = "/dev/tty.USA19H142P1.1"

# begin the connection
dev1.connect()

# read a line
dev1.read()

A successfull read will return a dictionary with the data - if it fails, it will return an empty dictionary. At any point, you can reset the port and re-connect. You can also set the default timeout using the timeout attribute of the Licor840 class. That's it! All connections on made using baud=9600.

py-licor's People

Contributors

dhhagan avatar

Stargazers

祝介东 avatar

Watchers

James Cloos avatar  avatar Eben Cross avatar

Forkers

roaldarbol

py-licor's Issues

Support for other Licors

Hi there! I'm working with a Li-7000, and figured there would be some good libraries out there. This seems to be the nicest Licor Python library, so I wondered if you'd accept pull requests if I can find way to make the library a bit more generic - maybe creating a list of supported Licors and their column names, and then you can specify which machine you have when you create the object? I appreciate it's an old library and that you may not be developing on it anymore, but thought it would be nicer to build on something already existing rather than just fork and make something new. :-)
Cheers, Mikkel

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.