Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 21 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ classifiers = [

dependencies = [
"click",
"iohub>=0.3.11",
# 0.4.0 is the first release with compute_pyramid(num_workers=) (#497), the
# (T, 1, Z, Y, X) label images segment and track write (#485/#486/#489/#496) and
# label pyramids (#488/#461/#491); waveorder's pinned rev requires 0.4.1.
"iohub>=0.4.1",
"matplotlib",
"natsort",
"numpy",
Expand Down Expand Up @@ -68,6 +71,14 @@ track = [
"geff-spec>=1.3",
"tracksdata",
"hoct>=0.3; python_version < '3.14'",
# ultrack needs gurobipy on every Python, and 3.14 needs gurobipy 13 for wheels.
# Split it on 3.14 here, beside hoct, not in a [tool.uv] constraint: from a
# constraint uv only splits the resolution at ultrack, after it has queued hoct,
# and then keeps hoct's gurobipy<13 on 3.14 too, so `uv lock --upgrade` (and any
# lock without the split already in uv.lock) fails. Gurobi licences are tied to
# the major version, so hold 3.14 below gurobipy 14 until we move to a v14 licence.
"gurobipy>12.0.1,<13; python_version < '3.14'",
"gurobipy>=13,<14; python_version >= '3.14'",
"trackastra[ilp]",
]

Expand Down Expand Up @@ -110,17 +121,6 @@ biahub = "biahub.cli.main:cli"
# when resolving build-system requirements such as iohub's hatchling /
# uv-dynamic-versioning chain, which pulls in packaging>=24.2.
index-strategy = "unsafe-best-match"
# waveorder's own [tool.uv.sources] pins iohub to an older main commit
# (b7bc648, the czbiohub-sf/iohub#476 merge) than the one biahub needs below.
# uv refuses two git URLs for one package, so force the whole graph onto
# biahub's rev. Drop together with the iohub pin.
override-dependencies = [
"iohub @ git+https://github.com/czbiohub-sf/iohub@c9c85b9372b5c7fbc902ef0954c7529bc3fa80a5",
]
# ultrack needs gurobipy on every Python; HOCT (Python < 3.14 only) pins it below 13,
# whose wheels stop at 3.13. Keep gurobipy 13 on 3.14 so the track extra still installs
# there; this forks the resolution by Python version.
constraint-dependencies = ["gurobipy>=13; python_version >= '3.14'"]

[tool.uv.sources]
# Private repo, no PyPI release. HTTPS rather than ssh so that installing the
Expand Down Expand Up @@ -158,32 +158,19 @@ imaging_qc_pipeline = { git = "https://github.com/czbiohub-sf/imaging-qc-pipelin
# royerlab/ultrack main once #290 merges, and at a release once one contains them.
ultrack = { git = "https://github.com/ieivanov/ultrack", rev = "69e7589a050b0aa5f84ccda3bdf072f5289f939c" }

# Pin iohub to main at the czbiohub-sf/iohub#497 merge (c9c85b9):
# compute_pyramid(num_workers=), which `biahub pyramid` uses to downsample each shard
# in (t, c) sub-blocks on every CPU of its job. Main also carries #496: label images are
# (T, 1, Z, Y, X), the image's axes with one channel (the DCA array standard wants
# every array 5D), and a label with more than one channel is refused. Main also
# carries #489 (process_single_position(output_label=...), with which `biahub
# segment` writes its labels into the plate's label images with --resume, and
# create_empty_labels, with which segment --init and track --init scaffold those
# label images), #486 (create_empty_plate(label_names=...), #360), #485 (the labels
# list on <fov>/labels/zarr.json, so ome-zarr-models and dca-validate can open a
# field that has labels) and #488/#461/#491 (label pyramids, shard size targets,
# resumable pyramids) for the pyramid step. Drop to a PyPI release once one
# contains them.
#
iohub = { git = "https://github.com/czbiohub-sf/iohub", rev = "c9c85b9372b5c7fbc902ef0954c7529bc3fa80a5" }

# tracksdata has no stable release yet (0.1.0 release candidates); pin the commit the
# A549 benchmark used.
tracksdata = { git = "https://github.com/royerlab/tracksdata", rev = "e13cf379b5127deeb8301ce56410fda35b5a3cf9" }

# Pin waveorder to the main commit that merged mehta-lab/waveorder#583, which
# runs apply-inv-tf through iohub's process_single_position with resume (on top
# of mehta-lab/waveorder#582, which shares one transfer function across
# workers). `biahub apply-inv-tf --resume` passes resume= through to it. Drop
# this back to a PyPI floor once waveorder cuts a release containing both.
waveorder = { git = "https://github.com/mehta-lab/waveorder", rev = "8d796509b88bafc46a31b81889f6b8034a9050db" }
# Pin waveorder to main at the mehta-lab/waveorder#595 merge (0e25b9b), which runs
# apply-inv-tf's phase and fluorescence models on the config's `device` (null, the
# default, is still the CPU). Main also carries #583, which runs apply-inv-tf
# through iohub's process_single_position with resume (`biahub apply-inv-tf
# --resume` passes resume= through to it), #582, which shares one transfer
# function across workers, and #593, which drops waveorder's own iohub git pin for
# a PyPI floor. Drop this back to a PyPI floor once waveorder cuts a release
# containing them (3.0.5 does not).
waveorder = { git = "https://github.com/mehta-lab/waveorder", rev = "0e25b9bbe760e5278fde867ef24bdf28979f0bca" }

[tool.hatch.metadata]
allow-direct-references = true
Expand Down
Loading
Loading