https://github.com/nelsond/hfwlm
🌊📏 Python library for controlling HighFinesse wavelength meters
https://github.com/nelsond/hfwlm
device-wrapper lab physics python-library
Last synced: 2 months ago
JSON representation
🌊📏 Python library for controlling HighFinesse wavelength meters
- Host: GitHub
- URL: https://github.com/nelsond/hfwlm
- Owner: nelsond
- Created: 2016-10-11T14:59:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T14:14:41.000Z (almost 5 years ago)
- Last Synced: 2024-03-19T20:20:47.334Z (almost 2 years ago)
- Topics: device-wrapper, lab, physics, python-library
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
# hfwlm [](https://travis-ci.org/nelsond/hfwlm)
Python library for controlling HighFinesse wavelength meters.
## Install
Install with pip
```shell
$ pip install git+git://github.com/nelsond/hfwlm.git
```
## Example usage
```python
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
```shell
$ pip install -r requirements/dev.txt
```
Run tests
```shell
$ py.test tests/
```
Generate coverage report
```shell
$ py.test --cov=wlm tests/
```