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.2.tar.gz
(19.4 kB
view details)
Built Distribution
File details
Details for the file leicacam-0.2.2.tar.gz
.
File metadata
- Download URL: leicacam-0.2.2.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 236e14e75ca9c2f487db268f94ad6a007d8f9c4aca7d0867ca916a1acdd2a885 |
|
MD5 | f6fba0d54bcf2feb22cda5ca863462ac |
|
BLAKE2b-256 | f9e6fee6375b4dfb9a53b3307499afb533edad3aa668e43f626ac2c37dc5f041 |
File details
Details for the file leicacam-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: leicacam-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66dc708f94c2bbcae6899967538220c5ead06cb4ec2ae347411d34aacde23d14 |
|
MD5 | aac11320406149a66038c78d37344aba |
|
BLAKE2b-256 | ff7b6b926197cb92a6931a002351a2d872b21334a53a9503915eaa40e0cc4254 |