1. Install MicroManager from here
    • Note the installation path somewhere C:/Program Files/Micro-Manager-2.0
  2. Install the Dhyana 400BSI V2 driver for MicroManager from here
    • Follow the Tuscan camera user guide for importing the driver files into the MicroManager program file folder noted above

Installation of Napari

Initialize conda environment named sipefield with Python 3.10

conda create -y -n sipefield -c conda-forge python=3.10
mmcore install

Setting Up Mesofield in Visual Studio Code

Below is a brief tutorial on how to set up a Python environment in VS Code, install mesofield, and run the mesofield CLI.

  1. Install MicroManager from here
    • Note the installation path somewhere C:/Program Files/Micro-Manager-2.0
  2. Install the Dhyana 400BSI V2 driver for MicroManager from here
    • Follow the Tuscan camera user guide for importing the driver files into the MicroManager program file folder noted above

1. Clone and Open in VS Code

  1. Clone this repository (or download it) to your local machine.
  2. Open the folder in Visual Studio Code.

2. Create a Virtual Environment

This uses a python virtual environment, not conda. This is to demonstrate this avenue of building a virtual environment, and allows following this tutorial without having installed conda. However, conda environments are much easier to manage.

Open VS Code’s integrated terminal and create a Python virtual environment:

python -m venv .venv

Activate it:

  • On Windows:
.venv\Scripts\activate
  • On macOS/Linux:
source .venv/bin/activate

3. Install Dependencies

Install the required dependencies using requirements.txt:

pip install -r requirements.txt

Optionally, you can install directly from setup.py:

pip install .

4. Launch Mesofield

Run the mesofield module in development mode from mesofield.main:

python -m mesofield launch --dev True

That’s it! This will open the main Mesofield GUI and set it up with simulated hardware for development.