Open source microscope control using python
Project description
pycromanager
is a Python library for customized microscope hardware control and integration with image processing. It works together with Micro-manager and Micro-magellan, or can be used as a standalone backend system for controlling microscope hardware.
Check out to the journal article or the documentation for an idea of the capabilities and how to get started.
Have a cool example of something you've done with pycromanager
or an idea for improvement? Reach out on the issues page.
Installing pycro-manager
- Download the lastest version of micro-manager 2.0
- Install pycro-manager using
pip install pycromanager
- Run Micro-Manager, select tools-options, and check the box that says Run server on port 4827 (you only need to do this once)
To verify everything is working, run the following code:
from pycromanager import Core
core = Core()
print(core)
which will give an output like:
<pycromanager.core.mmcorej_CMMCore object at 0x7fe32824a208>
Troubleshooting
Upon creating the Bridge, you may see an error with something like:
UserWarning: Version mistmatch between Java ZMQ server and Python client.
Java ZMQ server version: 2.4.0
Python client expected version: 2.5.0
In this case case your Micro-manager version Pycro-manager versions are out of sync. Usually, this can be fixed by downloading the latest versions of both. Uprgade to the latest Pycro-manager with:
pip install pycromanager --upgrade
Contributing
We welcome community contributions to improve Pycro-manager, including bug fixes, improvements to documentation, examples of different use cases, or internal improvements. Check out the contributing guide to see more about the workflow. Areas where community contributions would be especially helpful can be found on the Issues page with a Help wanted label
Information about how to setup a development environment for the Java parts of Pycro-manager can be found here
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
Built Distribution
File details
Details for the file pycromanager-1.0.1.tar.gz
.
File metadata
- Download URL: pycromanager-1.0.1.tar.gz
- Upload date:
- Size: 59.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11134e94391c4147e9c057296788e778ed99e924504a5782a23d720b30d9a927 |
|
MD5 | 76f71596432c7a1dae3537ee9540f2fe |
|
BLAKE2b-256 | 7e8f4bf7c32d258d859cb321c78143e1d66268baf6bc5d44e4fd9ab4f9eb3a2f |
File details
Details for the file pycromanager-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pycromanager-1.0.1-py3-none-any.whl
- Upload date:
- Size: 69.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38fd2fa718d3d895c3c89ebd35eb1f1078d7eb32be63d578d47706922e1d0975 |
|
MD5 | c9b718877ec9f0d729a51069841fa2b1 |
|
BLAKE2b-256 | 33c9ed07835d25d1fa392c607074fbb0cfdf5734d62898d4ebe7689f3b302ac1 |