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 dev-requirements.txt
./setup.py develop
Testing
pip install tox
tox
Build documentation locally
To build the documentation:
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.0.tar.gz
(14.8 kB
view details)
Built Distribution
File details
Details for the file leicacam-0.2.0.tar.gz
.
File metadata
- Download URL: leicacam-0.2.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca7041c890f08850448a099fa4f4faffd03a82a14f7fa7664d1b447f2852169 |
|
MD5 | a65b121e9420bc421fc5eb798bc9b58e |
|
BLAKE2b-256 | f5b606e5e70a0571bb7577cd6869ee2e34593b9694cdeaa261a74114eaa63bc3 |
File details
Details for the file leicacam-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: leicacam-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d98f4a405d556b88c1d295d1d9feed6251b0f4ab401624bdf21d641d803d82 |
|
MD5 | b3d4d362bdefe5f250ba5998b4fe2963 |
|
BLAKE2b-256 | 5923bc0bd2ff7d5684ae85c89c36307ee465f1f05d966ed8570169594e37212c |