Skip to main content

Plugin bundle for the OpenUC2 'Mimir' microscope

Project description

redsun-mimir

License Apache Software License 2.0 PyPI Python Version tests codecov

Bundle of redsun components for the openUC2 "Mimir" microscope

About mimir

Mimir is the codename for an in-development portable interferometric scattering microscope (iSCAT), with an hardware controller developed by openUC2. It employs pymmcore-plus for camera control and pyserial for motor and laser control.

redsun-mimir is a bundle of components developed to target the specific hardware and software requirements for real-time acquisition with said microscope.

[!NOTE] This bundle has been used as a staging ground for development in cohesion with the main framework. Some components may be moved to redsun itself to be provided as built-in functionalities. Expect breaking changes as the framework evolves.

[!WARNING] The youseetoo module has not been fully tested and there is currently no known way of testing it in a continous integration. Ensure you can pre-emptively test the components locally.

Installation

It is strongly reccomended to install redsun-mimir in a virtual environment.

uv (reccomended)

Be sure to install uv first.

# create the venv
uv venv --python 3.10

# activate the environment in...
# ... linux
source .venv/bin/activate

# ... windows
.venv\Scripts\activate

uv pip install redsun-mimir
pip

You should have Python installed in your machine.

# create the venv
python -m venv .venv

# activate the environment in...
# ... linux
source .venv/bin/activate

# ... windows
.venv\Scripts\activate

pip install redsun-mimir

Installing from source

redsun-mimir is developed via uv; you can clone the repository and install development dependencies:

git clone https://github.com/redsun-acquisition/redsun-mimir

cd redsun-mimir

uv sync

Running a simulator container

redsun-mimir comes with a simple simulation environment with simulated devices for demonstration purposes. You can install it by adding the sim optional dependencies:

uv (reccomended)
# in your virtual environment
uv pip install redsun-mimir[sim]

# run the example container via command line
mimir sim
pip
# in your virtual environment
pip install redsun-mimir[sim]

# run the example container via command line
mimir sim

Features

  • Live data capture and median computation based on square-scan movement for background noise reduction following the procedure described in this paper.
  • Data storage in Zarr v3 format via acquire-zarr.
  • Manual control of laser and motor drivers.
  • Fully extensible via additional components following the redsun framework.

Contributing

Contributions are very welcome. Tests can be run with pytest, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the Apache Software License 2.0 license, redsun-mimir is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redsun_mimir-0.1.0.tar.gz (59.7 kB view details)

Uploaded Source

Built Distribution

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

redsun_mimir-0.1.0-py3-none-any.whl (88.4 kB view details)

Uploaded Python 3

File details

Details for the file redsun_mimir-0.1.0.tar.gz.

File metadata

  • Download URL: redsun_mimir-0.1.0.tar.gz
  • Upload date:
  • Size: 59.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redsun_mimir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d86787869f7986c1608f337fbdc0b9b1104bad0578b1ceaaed8050384b9b65e
MD5 a79cf943459ec99964580b1462309aef
BLAKE2b-256 c71cbbfee5d1829e0126c02ffadb451c4558abd068460fe5b0128748af9a846b

See more details on using hashes here.

Provenance

The following attestation bundles were made for redsun_mimir-0.1.0.tar.gz:

Publisher: ci.yaml on redsun-acquisition/redsun-mimir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redsun_mimir-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: redsun_mimir-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 88.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redsun_mimir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eab5fdbb55bdde228beab46e3d5f3fb4e0c7ce829675ee9c0083441b6cc25f85
MD5 f64ff2f6c5a3ef9e3ea7406914c7d8e0
BLAKE2b-256 1cdd733fdedf1635ee480c0a3f977cf183d86673fc3469c7c6b4e4f234532ecb

See more details on using hashes here.

Provenance

The following attestation bundles were made for redsun_mimir-0.1.0-py3-none-any.whl:

Publisher: ci.yaml on redsun-acquisition/redsun-mimir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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