Skip to main content

Open source microscope control using python

Project description

Documentation Status License PyPI PyPI - Downloads

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

  1. Download the lastest version of micro-manager 2.0
  2. Install pycro-manager using pip install pycromanager
  3. 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

pycromanager-1.0.2.tar.gz (59.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycromanager-1.0.2-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file pycromanager-1.0.2.tar.gz.

File metadata

  • Download URL: pycromanager-1.0.2.tar.gz
  • Upload date:
  • Size: 59.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pycromanager-1.0.2.tar.gz
Algorithm Hash digest
SHA256 df70f31fea456a9aeb0b53a3dbbec6a538dfc580d2c3a750ff9dbeb105c522a5
MD5 a986eb4a10a173275054dfa7a96090d0
BLAKE2b-256 30f35117f4bedbc4bd4725be098ea936e07ee0255f428d4f362d2a3f49c58297

See more details on using hashes here.

File details

Details for the file pycromanager-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pycromanager-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 69.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pycromanager-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9510fd6bc6dff071a81b2b1f5e94a7d175952e863ff69a5ddd7f86ed27247bc7
MD5 bcaada8479a88f84b64456c2a5bd5933
BLAKE2b-256 944f5c930f54b1e1cdbe00c8b81d435369ec16cc06fc886fff2dfbdf78079c35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page