Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 889 Bytes

README.md

File metadata and controls

55 lines (37 loc) · 889 Bytes

hfwlm Build Status

Python library for controlling HighFinesse wavelength meters.

Install

Install with pip

$ pip install git+git://github.com/nelsond/hfwlm.git

Example usage

from wlm import WavelengthMeter

wm = WavelengthMeter()
wm.channel_count # => 8

# set switcher channel
wm.switcher_channel = 1

wm.switch_mode # => False

# enable switch mode
wm.switch_mode = True

# read properties of channels
channel = wm.channels[0]
channel.use # => False
channel.use = True
channel.show = True
channel.frequency # => 359.212...

Development

Install requirements for development environment

$ pip install -r requirements/dev.txt

Run tests

$ py.test tests/

Generate coverage report

$ py.test --cov=wlm tests/