Skip to main content

Adaptive Milling

Ruff CI

Adaptive milling plugins for fibsemOS. This package currently contains:

  • AdaptivePolishing: a milling strategy that uses machine learning to determine when polishing is complete.
  • AsymmetricFiducial: a milling pattern that adds some asymmetry to the default Fiducial pattern.

Installation

Adaptive Milling is available from PyPI and can be installed via the following steps:

  1. Decide where you want to create your Python virtual environment and open a terminal in that location.
  2. Follow the one of the sets of instructions below. We recommend using 'uv' as it handles installing the appropriate torch backend automatically.
  3. Create a desktop shortcut for AutoLamella (fibsemOS GUI):
  • Run fibsem-autolamella-ui from the virtual environment created during step 3.
  • Tools → Create Desktop Shortcut...

In order to get AutoLamella set up for your system, please see the 'Getting started' documentation for fibsemOS.


# Create a virtual environment (Python 3.11 to match AutoScript's environment)
uv venv --python 3.11

# Activate the virtual environment (Windows)
.venv\Scripts\activate

# Install including AutoLamella from fibsemOS with the appropriate PyTorch backend for your machine
uv pip install adaptive-milling --extra ui --torch-backend auto

To activate the virtual environment on Linux systems: source .venv/bin/activate


Install using miniforge

# Create a virtual environment (Python 3.11 to match AutoScript's environment)
conda create -p ./.venv python=3.11

# Activate the virtual environment
conda activate ./.venv

# Install PyTorch (select appropriate compute platform, see table below)
python -m pip install torch torchvision --index-url <Index URL>

# Install including AutoLamella from fibsemOS
python -m pip install -e adaptive-milling[ui]

If using CUDA, the version must be below or equal to the the system CUDA version, which can be checked with the command nvidia-smi.

Compute Platform Index URL
CPU https://download.pytorch.org/whl/cpu
CUDA 11.3 https://download.pytorch.org/whl/cu113
CUDA 11.8 https://download.pytorch.org/whl/cu118
CUDA 12.6 https://download.pytorch.org/whl/cu126
CUDA 12.8 https://download.pytorch.org/whl/cu128

Usage

Please see the user guide.

Testing

You can run the package tests using pytest:

uv run pytest

Issues

Please use the GitHub issue tracker to submit bugs or request features.

Contributions

If you would like to help contribute to project, please read our contribution guide and code of conduct.

License

Copyright Rosalind Franklin Institute, 2024.

Distributed under the terms of the Apache-2.0 license with "Commons Clause" License Condition v1.0, see the license for further details.

Release files for adaptive-milling 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adaptive-milling 0.4.0
File Size Uploaded
adaptive_milling-0.4.0.tar.gz 14.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for adaptive-milling 0.4.0
File Interpreter ABI Platform
adaptive_milling-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 MB

Release files / adaptive_milling-0.4.0.tar.gz

Download URL adaptive_milling-0.4.0.tar.gz
Size 14.1 MB
Tags Source
SHA-256 checksum
How to use checksums
81d4a4c4331bd57f603e270cd9cc4063269749dc80483eb0e764df8ebcaa1580
BLAKE2b-256 checksum
How to use checksums
9c89ccd28f0b830c73b0bdae3008ad5c399bfb454f35d212c63d62328ac4c0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / adaptive_milling-0.4.0-py3-none-any.whl

Download URL adaptive_milling-0.4.0-py3-none-any.whl
Size 49.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c87e40b57939f91ab2b0b27f8c913971a27f37c0b0159639ab823c59fa342ff1
BLAKE2b-256 checksum
How to use checksums
7e28f6e1f22e3fffaf2856acd1f192b134afedbc02779133f88396ee9a791fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.2

2 release files

0.4.1

2 release files

This release

0.4.0 This release

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page