Control Leica microscopes with python
Project description
Overview
Control Leica microscopes with python
Installation
Install using pip…
pip install leicacam
Example
communicate with microscope
from leicacam import CAM
cam = CAM() # initiate and connect, default localhost:8895
# some commands are created as short hands
# start matrix scan
response = cam.start_scan()
print(response)
# but you could also create your own command with a list of tuples
command = [('cmd', 'enableall'),
('value', 'true')]
response = cam.send(command)
print(response)
# or even send it as a bytes string (note the b)
command = b'/cmd:enableall /value:true'
response = cam.send(command)
print(response)
Documentation
See available commands in the API reference: http://leicacam.rtfd.org.
Development
Install dependencies and link development version of leicacam to pip:
pip install -r requirements_dev.txt
Testing
tox
Build documentation locally
To build the documentation:
pip install -r docs/requirements.txt
make docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leicacam-0.2.1.tar.gz
(18.0 kB
view details)
Built Distribution
File details
Details for the file leicacam-0.2.1.tar.gz
.
File metadata
- Download URL: leicacam-0.2.1.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 925fd2c3d21bf3327734bec98ee4c611fae265110a664192f61ca98e786e1b8b |
|
MD5 | 4531cc4649dc01a4de5b09bab6b23e00 |
|
BLAKE2b-256 | 19f2bb0bd0c0b55501d9756408034499e5a83d4fec83210f83af512159c44107 |
File details
Details for the file leicacam-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: leicacam-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0232791d72da69474ea2e5bc91f54833daa883144d01e901f085ea09e1d520a |
|
MD5 | 7e7cff44ef7d746932abc2decaac66bb |
|
BLAKE2b-256 | 48f7b0c760028d95cdb9ce293be86cc2dea707bb170d27769c55f4dbad50dc4d |